![]() |
ZenWINX Architecture - Reference Manual - Guides |
|
Functions | |
void __stdcall | winx_sleep (int msec) |
Suspends the execution of the current thread. | |
int __stdcall | winx_get_os_version (void) |
Returns the version of Windows. | |
int __stdcall | winx_get_windows_directory (char *buffer, int length) |
Retrieves the path of the Windows directory. | |
int __stdcall | winx_query_symbolic_link (short *name, short *buffer, int length) |
Queries a symbolic link. | |
int __stdcall | winx_set_system_error_mode (unsigned int mode) |
Sets a system error mode. | |
int __stdcall | winx_load_driver (short *driver_name) |
Loads a driver. | |
int __stdcall | winx_unload_driver (short *driver_name) |
Unloads a driver. | |
short *__stdcall | winx_get_windows_boot_options (void) |
Retrieves the Windows boot options. | |
int __stdcall | winx_windows_in_safe_mode (void) |
Determines whether Windows is in Safe Mode or not. |
void __stdcall winx_sleep | ( | int | msec | ) |
Suspends the execution of the current thread.
[in] | msec | the time interval, in milliseconds. If an INFINITE constant is passed, the time-out interval never elapses. |
Definition at line 38 of file misc.c.
Referenced by kb_check(), and kb_open().
int __stdcall winx_get_os_version | ( | void | ) |
Returns the version of Windows.
if(winx_get_os_version() >= 51){ // we are running on XP or later system }
Definition at line 71 of file misc.c.
References winx_get_proc_address().
int __stdcall winx_get_windows_directory | ( | char * | buffer, | |
int | length | |||
) |
Retrieves the path of the Windows directory.
[out] | buffer | pointer to the buffer to receive the null-terminated path. |
[in] | length | the length of the buffer, in characters. |
Definition at line 92 of file misc.c.
References winx_query_env_variable().
int __stdcall winx_query_symbolic_link | ( | short * | name, | |
short * | buffer, | |||
int | length | |||
) |
Queries a symbolic link.
[in] | name | the name of symbolic link. |
[out] | buffer | pointer to the buffer to receive the null-terminated target. |
[in] | length | of the buffer, in characters. |
winx_query_symbolic_link(L"\\??\\C:",buffer,BUFFER_LENGTH); // now the buffer may contain \Device\HarddiskVolume1 or something like that
Definition at line 117 of file misc.c.
Referenced by winx_get_drive_type().
int __stdcall winx_set_system_error_mode | ( | unsigned int | mode | ) |
Sets a system error mode.
[in] | mode | the process error mode. |
winx_set_system_error_mode(INTERNAL_SEM_FAILCRITICALERRORS);
int __stdcall winx_load_driver | ( | short * | driver_name | ) |
int __stdcall winx_unload_driver | ( | short * | driver_name | ) |
short* __stdcall winx_get_windows_boot_options | ( | void | ) |
Retrieves the Windows boot options.
Definition at line 243 of file misc.c.
References winx_heap_alloc(), winx_heap_free(), and winx_printf().
Referenced by winx_windows_in_safe_mode().
int __stdcall winx_windows_in_safe_mode | ( | void | ) |
Determines whether Windows is in Safe Mode or not.
Definition at line 336 of file misc.c.
References winx_get_windows_boot_options(), and winx_heap_free().