2.14.WD_KernelBufUnlock()

Purpose

Frees kernel buffer.

Prototype
DWORD WD_KernelBufUnlock(
    HANDLE hWD,
    WD_KERNEL_BUFFER *pKerBuf);
Parameters
NameTypeInput/Output
hWDHANDLEInput
pKerBufWD_KERNEL_BUFFER*
hKerBufDWORDInput
dwOptionsDWORDN/A
qwBytesUINT64N/A
pKernelAddrKPTRN/A
pUserAddrUPTRN/A
Description
NameDescription
hWDHandle to WinDriver's kernel-mode driver as received from WD_Open()[5.2]
pKerBufPointer to a KERNEL_BUFFER information structure:
hKerBuf Kernel buffer handle
Return Value

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

Remarks
Example
WD_KernelBufUnlock(hWD, &buf);