WizardsToolkit  1.0.7
nt-base.h File Reference
#include <windows.h>
#include <winuser.h>
#include <wingdi.h>
#include <io.h>
#include <process.h>
#include <errno.h>
#include <stdarg.h>
#include "wizard/exception.h"
Include dependency graph for nt-base.h:

Go to the source code of this file.

Data Structures

struct  dirent
struct  _DIR
struct  _NTMEMORYSTATUSEX
struct  timezone

Defines

#define WIN32_LEAN_AND_MEAN
#define VC_EXTRALEAN
#define PROT_READ   0x01
#define PROT_WRITE   0x02
#define MAP_SHARED   0x01
#define MAP_PRIVATE   0x02
#define MAP_ANONYMOUS   0x20
#define F_OK   0
#define R_OK   4
#define W_OK   2
#define RW_OK   6
#define _SC_PAGESIZE   1
#define _SC_PHYS_PAGES   2
#define _SC_OPEN_MAX   3
#define SSIZE_MAX   0x7fffffffL
#define chsize(file, length)   _chsize(file,length)
#define chdir   _chdir
#define close   _close
#define closedir(directory)   NTCloseDirectory(directory)
#define fdopen   _fdopen
#define fileno   _fileno
#define fstat   _fstat
#define fsync   _commit
#define ftruncate(file, length)   NTTruncateFile(file,length)
#define getcwd   _getcwd
#define getpid   _getpid
#define hypot   _hypot
#define inline   __inline
#define isatty   _isatty
#define locale_t   _locale_t
#define lseek   _lseek
#define lt_dlclose(handle)   NTCloseLibrary(handle)
#define lt_dlerror()   NTGetLibraryError()
#define lt_dlexit()   NTExitLibrary()
#define lt_dlinit()   NTInitializeLibrary()
#define lt_dlopen(filename)   NTOpenLibrary(filename)
#define lt_dlsetsearchpath(path)   NTSetSearchPath(path)
#define lt_dlsym(handle, name)   NTGetLibrarySymbol(handle,name)
#define mkdir   _mkdir
#define mmap(address, length, protection, access, file, offset)   NTMapMemory(address,length,protection,access,file,offset)
#define msync(address, length, flags)   NTSyncMemory(address,length,flags)
#define munmap(address, length)   NTUnmapMemory(address,length)
#define opendir(directory)   NTOpenDirectory(directory)
#define open   _open
#define pclose   _pclose
#define popen   _popen
#define fprintf_l   _fprintf_s_l
#define read   _read
#define readdir(directory)   NTReadDirectory(directory)
#define seekdir(directory, offset)   NTSeekDirectory(directory,offset)
#define setmode   _setmode
#define spawnvp   _spawnvp
#define stat   _stat
#define strcasecmp   _strcmpi
#define strncasecmp   _strnicmp
#define strtod_l   _strtod_l
#define sysconf(name)   NTSystemConfiguration(name)
#define tell   _tell
#define telldir(directory)   NTTellDirectory(directory)
#define tempnam   _tempnam_s
#define vfprintf_l   _vfprintf_l
#define vsnprintf   _vsnprintf
#define vsnprintf_l   _vsnprintf_l
#define write   _write
#define wstat   _wstat
#define SAFE_GLOBAL

Typedefs

typedef struct _DIR DIR
typedef struct _NTMEMORYSTATUSEX NTMEMORYSTATUSEX
typedef _locale_t locale_t
typedef UINT(CALLBACK * LPFNDLLFUNC1 )(DWORD, UINT)
typedef UINT(CALLBACK * LPFNDLLFUNC2 )(NTMEMORYSTATUSEX *)

Functions

WizardExport char * NTGetLastError (void)
WizardExport const char * NTGetLibraryError (void)
WizardExport char * NTRegistryKeyLookup (const char *)
WizardExport DIRNTOpenDirectory (const char *)
WizardExport double NTElapsedTime (void)
WizardExport double NTUserTime (void)
WizardExport int Exit (int)
WizardExport int gettimeofday (struct timeval *, struct timezone *)
WizardExport int IsWindows95 ()
WizardExport int NTCloseDirectory (DIR *)
WizardExport int NTCloseLibrary (void *)
WizardExport int NTControlHandler (void)
WizardExport int NTExitLibrary (void)
WizardExport int NTInitializeLibrary (void)
WizardExport int NTSetSearchPath (const char *)
WizardExport int NTSyncMemory (void *, size_t, int)
WizardExport int NTUnmapMemory (void *, size_t)
WizardExport int NTSystemCommand (const char *)
WizardExport ssize_t NTSystemConfiguration (int)
WizardExport ssize_t NTTellDirectory (DIR *)
WizardExport WizardBooleanType NTGetExecutionPath (char *, const size_t)
WizardExport WizardBooleanType NTGetModulePath (const char *, char *)
WizardExport WizardBooleanType NTGatherRandomData (const size_t, unsigned char *)
WizardExport WizardBooleanType NTReportEvent (const char *, const WizardBooleanType)
WizardExport WizardBooleanType NTReportException (const char *, const WizardBooleanType)
WizardExport struct direntNTReadDirectory (DIR *)
WizardExport unsigned char * NTResourceToBlob (const char *)
WizardExport void NTErrorHandler (const ExceptionType, const char *, const char *)
WizardExport void * NTGetLibrarySymbol (void *, const char *)
WizardExport void * NTMapMemory (char *, size_t, int, int, int, WizardOffsetType)
WizardExport void * NTOpenLibrary (const char *)
WizardExport void NTSeekDirectory (DIR *, ssize_t)
WizardExport void NTWarningHandler (const ExceptionType, const char *, const char *)

Define Documentation

#define _SC_OPEN_MAX   3

Definition at line 51 of file nt-base.h.

Referenced by ResourceComponentGenesis().

#define _SC_PAGESIZE   1

Definition at line 49 of file nt-base.h.

Referenced by ResourceComponentGenesis().

#define _SC_PHYS_PAGES   2

Definition at line 50 of file nt-base.h.

Referenced by ResourceComponentGenesis().

#define chdir   _chdir

Definition at line 80 of file nt-base.h.

#define chsize (   file,
  length 
)    _chsize(file,length)

Definition at line 70 of file nt-base.h.

#define closedir (   directory)    NTCloseDirectory(directory)

Definition at line 86 of file nt-base.h.

#define F_OK   0

Definition at line 45 of file nt-base.h.

Referenced by IsAccessible().

#define fdopen   _fdopen

Definition at line 89 of file nt-base.h.

Referenced by OpenBlob().

#define fileno   _fileno
#define fprintf_l   _fprintf_s_l

Definition at line 193 of file nt-base.h.

#define fstat   _fstat

Definition at line 105 of file nt-base.h.

Referenced by FileToBlob(), GetBlobSize(), AcquireFileInfo(), and LogWizardEventList().

#define fsync   _commit

Definition at line 109 of file nt-base.h.

#define ftruncate (   file,
  length 
)    NTTruncateFile(file,length)

Definition at line 118 of file nt-base.h.

#define getcwd   _getcwd

Definition at line 121 of file nt-base.h.

Referenced by GetExecutionPath().

#define hypot   _hypot

Definition at line 127 of file nt-base.h.

#define inline   __inline

Definition at line 130 of file nt-base.h.

#define isatty   _isatty

Definition at line 133 of file nt-base.h.

#define locale_t   _locale_t

Definition at line 136 of file nt-base.h.

#define lseek   _lseek

Definition at line 142 of file nt-base.h.

Referenced by FileToBlob(), ImportKeyringKey(), and ConfigureFileToStringInfo().

#define lt_dlclose (   handle)    NTCloseLibrary(handle)

Definition at line 146 of file nt-base.h.

#define lt_dlerror ( )    NTGetLibraryError()

Definition at line 149 of file nt-base.h.

#define lt_dlexit ( )    NTExitLibrary()

Definition at line 152 of file nt-base.h.

#define lt_dlinit ( )    NTInitializeLibrary()

Definition at line 155 of file nt-base.h.

#define lt_dlopen (   filename)    NTOpenLibrary(filename)

Definition at line 158 of file nt-base.h.

#define lt_dlsetsearchpath (   path)    NTSetSearchPath(path)

Definition at line 161 of file nt-base.h.

#define lt_dlsym (   handle,
  name 
)    NTGetLibrarySymbol(handle,name)

Definition at line 164 of file nt-base.h.

#define MAP_ANONYMOUS   0x20

Definition at line 44 of file nt-base.h.

Referenced by MapBlob().

#define MAP_PRIVATE   0x02

Definition at line 43 of file nt-base.h.

Referenced by MapBlob().

#define MAP_SHARED   0x01

Definition at line 42 of file nt-base.h.

Referenced by MapBlob().

#define mkdir   _mkdir

Definition at line 168 of file nt-base.h.

Referenced by AcquireFileInfo().

#define mmap (   address,
  length,
  protection,
  access,
  file,
  offset 
)    NTMapMemory(address,length,protection,access,file,offset)

Definition at line 171 of file nt-base.h.

Referenced by MapBlob().

#define msync (   address,
  length,
  flags 
)    NTSyncMemory(address,length,flags)

Definition at line 175 of file nt-base.h.

Referenced by SyncBlob().

#define munmap (   address,
  length 
)    NTUnmapMemory(address,length)

Definition at line 178 of file nt-base.h.

Referenced by UnmapBlob().

#define open   _open

Definition at line 184 of file nt-base.h.

Referenced by open_utf8().

#define opendir (   directory)    NTOpenDirectory(directory)

Definition at line 181 of file nt-base.h.

#define pclose   _pclose

Definition at line 187 of file nt-base.h.

Referenced by CloseBlob().

#define popen   _popen

Definition at line 190 of file nt-base.h.

Referenced by popen_utf8().

#define PROT_READ   0x01

Definition at line 40 of file nt-base.h.

Referenced by MapBlob().

#define PROT_WRITE   0x02

Definition at line 41 of file nt-base.h.

Referenced by MapBlob().

#define R_OK   4

Definition at line 46 of file nt-base.h.

#define read   _read
#define readdir (   directory)    NTReadDirectory(directory)

Definition at line 199 of file nt-base.h.

#define RW_OK   6

Definition at line 48 of file nt-base.h.

#define SAFE_GLOBAL

Definition at line 266 of file nt-base.h.

#define seekdir (   directory,
  offset 
)    NTSeekDirectory(directory,offset)

Definition at line 202 of file nt-base.h.

#define setmode   _setmode

Definition at line 205 of file nt-base.h.

Referenced by OpenBlob(), and AcquireUniqueFileResource().

#define spawnvp   _spawnvp

Definition at line 208 of file nt-base.h.

#define SSIZE_MAX   0x7fffffffL

Definition at line 53 of file nt-base.h.

Referenced by FileToBlob(), ReadBlobChunk(), WriteBlobChunk(), and ConfigureFileToStringInfo().

#define stat   _stat
#define strncasecmp   _strnicmp

Definition at line 222 of file nt-base.h.

Referenced by LocaleNCompare().

#define strtod_l   _strtod_l

Definition at line 225 of file nt-base.h.

Referenced by InterpretLocaleValue().

#define sysconf (   name)    NTSystemConfiguration(name)

Definition at line 228 of file nt-base.h.

Referenced by ResourceComponentGenesis().

#define tell   _tell

Definition at line 234 of file nt-base.h.

#define telldir (   directory)    NTTellDirectory(directory)

Definition at line 237 of file nt-base.h.

#define tempnam   _tempnam_s

Definition at line 240 of file nt-base.h.

#define VC_EXTRALEAN

Definition at line 26 of file nt-base.h.

#define vfprintf_l   _vfprintf_l

Definition at line 243 of file nt-base.h.

Referenced by FormatLocaleFileList().

#define vsnprintf   _vsnprintf

Definition at line 246 of file nt-base.h.

Referenced by ThrowWizardExceptionList(), FormatLocaleStringList(), and LogWizardEventList().

#define vsnprintf_l   _vsnprintf_l

Definition at line 249 of file nt-base.h.

Referenced by FormatLocaleStringList().

#define W_OK   2

Definition at line 47 of file nt-base.h.

#define WIN32_LEAN_AND_MEAN

Definition at line 25 of file nt-base.h.

#define write   _write

Definition at line 252 of file nt-base.h.

Referenced by WriteFileChunk(), GetPhrase(), and GetPassphrase().

#define wstat   _wstat

Definition at line 259 of file nt-base.h.

Referenced by stat_utf8().


Typedef Documentation

typedef struct _DIR DIR
typedef _locale_t locale_t

Definition at line 329 of file nt-base.h.

typedef UINT(CALLBACK * LPFNDLLFUNC1)(DWORD, UINT)

Definition at line 333 of file nt-base.h.

typedef UINT(CALLBACK * LPFNDLLFUNC2)(NTMEMORYSTATUSEX *)

Definition at line 336 of file nt-base.h.


Function Documentation

WizardExport int Exit ( int  )
WizardExport int gettimeofday ( struct timeval *  ,
struct timezone  
)

Referenced by GenerateEntropicChaos().

WizardExport int IsWindows95 ( )
WizardExport int NTCloseDirectory ( DIR )
WizardExport int NTCloseLibrary ( void *  )
WizardExport int NTControlHandler ( void  )
WizardExport double NTElapsedTime ( void  )
WizardExport void NTErrorHandler ( const ExceptionType  ,
const char *  ,
const char *   
)
WizardExport int NTExitLibrary ( void  )
WizardExport WizardBooleanType NTGatherRandomData ( const size_t  ,
unsigned char *   
)

Referenced by GenerateEntropicChaos().

WizardExport WizardBooleanType NTGetExecutionPath ( char *  ,
const size_t   
)

Referenced by GetExecutionPath().

WizardExport char* NTGetLastError ( void  )
WizardExport const char* NTGetLibraryError ( void  )
WizardExport void * NTGetLibrarySymbol ( void *  ,
const char *   
)
WizardExport WizardBooleanType NTGetModulePath ( const char *  ,
char *   
)

Referenced by GetConfigurePaths().

WizardExport int NTInitializeLibrary ( void  )
WizardExport void * NTMapMemory ( char *  ,
size_t  ,
int  ,
int  ,
int  ,
WizardOffsetType   
)
WizardExport DIR* NTOpenDirectory ( const char *  )
WizardExport void * NTOpenLibrary ( const char *  )
WizardExport struct dirent* NTReadDirectory ( DIR ) [read]
WizardExport char* NTRegistryKeyLookup ( const char *  )

Referenced by GetConfigurePaths().

WizardExport WizardBooleanType NTReportEvent ( const char *  ,
const WizardBooleanType   
)

Referenced by LogWizardEventList().

WizardExport WizardBooleanType NTReportException ( const char *  ,
const WizardBooleanType   
)
WizardExport unsigned char* NTResourceToBlob ( const char *  )

Referenced by GetConfigureOptions().

WizardExport void NTSeekDirectory ( DIR ,
ssize_t   
)
WizardExport int NTSetSearchPath ( const char *  )
WizardExport int NTSyncMemory ( void *  ,
size_t  ,
int   
)
WizardExport int NTSystemCommand ( const char *  )
WizardExport ssize_t NTSystemConfiguration ( int  )
WizardExport ssize_t NTTellDirectory ( DIR )
WizardExport int NTUnmapMemory ( void *  ,
size_t   
)
WizardExport double NTUserTime ( void  )

Referenced by GenerateEntropicChaos(), and UserTime().

WizardExport void NTWarningHandler ( const ExceptionType  ,
const char *  ,
const char *   
)