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 chsize(file, length)   _chsize(file,length)
#define access(path, mode)   _access(path,mode)
#define chdir   _chdir
#define close   _close
#define closedir(directory)   NTCloseDirectory(directory)
#define fdopen   _fdopen
#define fileno   _fileno
#define fsync   _commit
#define ftruncate(file, length)   NTFileTruncate(file,length)
#define getcwd   _getcwd
#define getpid   _getpid
#define inline   __inline
#define isatty   _isatty
#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 read   _read
#define readdir(directory)   NTReadDirectory(directory)
#define seekdir(directory, offset)   NTSeekDirectory(directory,offset)
#define setmode   _setmode
#define strcasecmp   _strcmpi
#define strncasecmp   _strnicmp
#define sysconf(name)   NTSystemConfiguration(name)
#define telldir(directory)   NTTellDirectory(directory)
#define tempnam   _tempnam
#define unlink   _unlink
#define vsnprintf   _vsnprintf
#define write   _write
#define SAFE_GLOBAL

Typedefs

typedef struct _DIR DIR
typedef struct _NTMEMORYSTATUSEX NTMEMORYSTATUSEX
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 access ( path,
mode   )     _access(path,mode)

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

Referenced by IsAccessible(), and IsDirectory().

#define chdir   _chdir

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

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

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

#define close   _close
#define closedir ( directory   )     NTCloseDirectory(directory)

Definition at line 74 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 77 of file nt-base.h.

Referenced by OpenBlob().

#define fileno   _fileno
#define fsync   _commit

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

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

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

#define getcwd   _getcwd

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

Referenced by GetExecutionPath().

#define getpid   _getpid
#define inline   __inline

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

#define isatty   _isatty

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

#define lt_dlclose ( handle   )     NTCloseLibrary(handle)

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

 
#define lt_dlerror (  )     NTGetLibraryError()

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

 
#define lt_dlexit (  )     NTExitLibrary()

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

 
#define lt_dlinit (  )     NTInitializeLibrary()

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

#define lt_dlopen ( filename   )     NTOpenLibrary(filename)

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

#define lt_dlsetsearchpath ( path   )     NTSetSearchPath(path)

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

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

Definition at line 119 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 122 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 125 of file nt-base.h.

Referenced by MapBlob().

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

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

Referenced by SyncBlob().

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

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

Referenced by UnmapBlob().

#define open   _open
#define opendir ( directory   )     NTOpenDirectory(directory)

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

#define pclose   _pclose

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

Referenced by CloseBlob().

#define popen   _popen

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

Referenced by OpenBlob().

#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 150 of file nt-base.h.

#define RW_OK   6

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

#define SAFE_GLOBAL

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

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

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

#define setmode   _setmode

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

Referenced by OpenBlob().

#define strcasecmp   _strcmpi
#define strncasecmp   _strnicmp

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

Referenced by LocaleNCompare().

#define sysconf ( name   )     NTSystemConfiguration(name)

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

Referenced by ResourceComponentGenesis().

#define telldir ( directory   )     NTTellDirectory(directory)

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

#define tempnam   _tempnam

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

#define unlink   _unlink

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

#define VC_EXTRALEAN

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

#define vsnprintf   _vsnprintf

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

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

#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 182 of file nt-base.h.

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


Typedef Documentation

typedef struct _DIR DIR
typedef UINT(CALLBACK * LPFNDLLFUNC1)(DWORD, UINT)

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

typedef UINT(CALLBACK * LPFNDLLFUNC2)(NTMEMORYSTATUSEX *)

Definition at line 256 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 *   
)
Generated by  doxygen 1.6.2-20100208