PURPOSE
Sets debugging level for collecting debug messages.
PROTOTYPE
DWORD WD_Debug(
HANDLE hWD,
WD_DEBUG *pDebug);
PARAMETERS
| Name | Type | Input/Output |
|---|---|---|
| HANDLE | Input | |
| WD_DEBUG* | Input | |
| DWORD | Input | |
| DWORD | Input | |
| DWORD | Input | |
| DWORD | Input | |
| DWORD | Input |
DESCRIPTION
| Name | Description |
|---|---|
| hWD | Handle to WinDriver's kernel-mode driver as received from WD_Open() [5.2] |
| pDebug | Pointer to a debug information structure: |
| Debug command: Set filter, Clear buffer, etc. For more details please refer to DEBUG_COMMAND in windrvr.h. |
|
| Used for dwCmd=DEBUG_SET_FILTER. Sets the
debugging level to collect: Error, Warning, Info, Trace.
For more details please refer to DEBUG_LEVEL in windrvr.h. |
|
| Used for dwCmd=DEBUG_SET_FILTER. Sets the
sections to collect: I/O, Memory, Interrupt, etc. Use
S_ALL for all. For more details please refer to DEBUG_SECTION in windrvr.h. |
|
| Used for dwCmd=DEBUG_SET_FILTER. Sets the
debugging level to print in a message box. For more details please refer to DEBUG_LEVEL in windrvr.h. |
|
| Used for dwCmd=DEBUG_SET_BUFFER. The size of buffer in the kernel. |
RETURN VALUE
Returns WD_STATUS_SUCCESS (0) on success, or an appropriate error code otherwise [A].
EXAMPLE
WD_DEBUG dbg; BZERO(dbg); dbg.dwCmd = DEBUG_SET_FILTER; dbg.dwLevel = D_ERROR; dbg.dwSection = S_ALL; dbg.dwLevelMessageBox = D_ERROR; WD_Debug(hWD, &dbg);