5.7.WD_DebugDump()

Purpose

Retrieves debug messages buffer.

Prototype
DWORD WD_DebugDump(
    HANDLE hWD,
    WD_DEBUG_DUMP *pDebugDump);
Parameters
NameTypeInput/Output
hWDHANDLEInput
pDebugWD_DEBUG_DUMP*Input
pcBufferPCHARInput/Output
dwSizeDWORDInput
Description
NameDescription
hWDHandle to WinDriver's kernel-mode driver as received from WD_Open()[5.2]
pDebugDump Pointer to a debug dump information structure:
pcBuffer Buffer to receive debug messages
dwSize Size of buffer in bytes
Return Value

Returns WD_STATUS_SUCCESS (0) on success, or an appropriate error code otherwise[A].

Example
char buffer[1024];
WD_DEBUG_DUMP dump;
dump.pcBuffer=buffer;
dump.dwSize = sizeof(buffer);
WD_DebugDump(hWD, &dump);