|
WizardsToolkit
1.0.7
|
#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"
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 DIR * | NTOpenDirectory (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 dirent * | NTReadDirectory (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 _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 close _close |
Definition at line 83 of file nt-base.h.
Referenced by FileToBlob(), AcquireFileLock(), DestroyFile(), DestroyFileInfo(), GetPhrase(), GenerateEntropicChaos(), AcquireUniqueFilename(), AcquireUniqueFileResource(), and ConfigureFileToStringInfo().
| #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 |
Definition at line 92 of file nt-base.h.
Referenced by FileToBlob(), GetBlobSize(), OpenBlob(), SetBlobExtent(), LogWizardEventList(), and GetPhrase().
| #define fstat _fstat |
Definition at line 105 of file nt-base.h.
Referenced by FileToBlob(), GetBlobSize(), AcquireFileInfo(), and LogWizardEventList().
| #define ftruncate | ( | file, | |
| length | |||
| ) | NTTruncateFile(file,length) |
| #define getcwd _getcwd |
Definition at line 121 of file nt-base.h.
Referenced by GetExecutionPath().
| #define getpid _getpid |
Definition at line 124 of file nt-base.h.
Referenced by GetWizardThreadId(), AcquireFileLock(), TranslateEvent(), TranslateFilename(), GetPhrase(), GenerateEntropicChaos(), GetWizardThreadSignature(), IsWizardThreadEqual(), and GetExecutionPath().
| #define lseek _lseek |
Definition at line 142 of file nt-base.h.
Referenced by FileToBlob(), ImportKeyringKey(), and ConfigureFileToStringInfo().
| #define lt_dlsym | ( | handle, | |
| name | |||
| ) | NTGetLibrarySymbol(handle,name) |
| #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) |
| #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 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 read _read |
Definition at line 196 of file nt-base.h.
Referenced by FileToBlob(), ReadFileChunk(), GetPhrase(), ReadRandom(), and ConfigureFileToStringInfo().
| #define seekdir | ( | directory, | |
| offset | |||
| ) | NTSeekDirectory(directory,offset) |
| #define setmode _setmode |
Definition at line 205 of file nt-base.h.
Referenced by OpenBlob(), and AcquireUniqueFileResource().
| #define SSIZE_MAX 0x7fffffffL |
Definition at line 53 of file nt-base.h.
Referenced by FileToBlob(), ReadBlobChunk(), WriteBlobChunk(), and ConfigureFileToStringInfo().
| #define stat _stat |
Definition at line 215 of file nt-base.h.
Referenced by FileToBlob(), OpenBlob(), PrintKeyringProperties(), LogWizardEventList(), GetPathTemplate(), stat_utf8(), IsAccessible(), and IsDirectory().
| #define strcasecmp _strcmpi |
Definition at line 219 of file nt-base.h.
Referenced by GetConfigureInfo(), ConfigureInfoCompare(), ConfigureCompare(), ListConfigureInfo(), MimeInfoCompare(), MimeCompare(), ListMimeInfo(), and LocaleCompare().
| #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 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 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 UINT(CALLBACK * LPFNDLLFUNC1)(DWORD, UINT) |
| typedef UINT(CALLBACK * LPFNDLLFUNC2)(NTMEMORYSTATUSEX *) |
| typedef struct _NTMEMORYSTATUSEX NTMEMORYSTATUSEX |
| 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 | ) |
Referenced by GenerateEntropicChaos(), and ElapsedTime().
| 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 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 * | |||
| ) |