![]() |
ZenWINX Architecture - Reference Manual - Guides |
|
Functions | |
int __stdcall | winx_debug_print (char *string) |
Delivers a message to the DbgView program. | |
void | winx_init_synch_objects (void) |
Initializes the synchronization objects used in the debugging routines. | |
void | winx_destroy_synch_objects (void) |
Destroys the synchronization objects used in the debugging routines. | |
void __cdecl | winx_dbg_print (char *format,...) |
DbgPrint() native equivalent. | |
char *__stdcall | winx_get_error_description (unsigned long status) |
Retrieves a human readable explaination of the NT status code. | |
void __cdecl | winx_dbg_print_ex (unsigned long status, char *format,...) |
Delivers an error message to the DbgView program. |
int __stdcall winx_debug_print | ( | char * | string | ) |
Delivers a message to the DbgView program.
[in] | string | the string to be delivered. |
Definition at line 116 of file dbg.c.
Referenced by winx_dbg_print().
void winx_init_synch_objects | ( | void | ) |
Initializes the synchronization objects used in the debugging routines.
Definition at line 46 of file dbg.c.
References winx_create_event().
Referenced by zenwinx_native_init().
void winx_destroy_synch_objects | ( | void | ) |
Destroys the synchronization objects used in the debugging routines.
Definition at line 70 of file dbg.c.
References winx_destroy_event().
Referenced by zenwinx_native_unload().
void __cdecl winx_dbg_print | ( | char * | format, | |
... | ||||
) |
DbgPrint() native equivalent.
Definition at line 81 of file dbg.c.
References winx_debug_print(), winx_virtual_alloc(), and winx_virtual_free().
char* __stdcall winx_get_error_description | ( | unsigned long | status | ) |
Retrieves a human readable explaination of the NT status code.
[in] | status | the NT status code. |
printf("%s\n",winx_get_error_description(STATUS_ACCESS_VIOLATION)); // prints "Access violation".
Definition at line 266 of file dbg.c.
Referenced by kb_open_internal(), kb_read_internal(), and winx_dbg_print_ex().
void __cdecl winx_dbg_print_ex | ( | unsigned long | status, | |
char * | format, | |||
... | ||||
) |
Delivers an error message to the DbgView program.
The error message includes NT status and its explaination.
[in] | status | the NT status code. |
[in] | format | the format string. |
[in] | ... | the parameters. |
NTSTATUS Status = NtCreateFile(...); if(!NT_SUCCESS(Status)){ winx_dbg_print_ex(Status,"Cannot create %s file",filename); }
Definition at line 293 of file dbg.c.
References winx_get_error_description(), winx_heap_alloc(), and winx_heap_free().