![]() |
Jungo WinDriver
Official Documentation
|
| DWORD DLLCALLCONV WDS_SharedBufferAlloc | ( | _In_ UINT64 | qwBytes, |
| _In_ DWORD | dwOptions, | ||
| _Outptr_ WD_KERNEL_BUFFER ** | ppKerBuf | ||
| ) |
Allocates a memory buffer that can be shared between the user mode and the kernel mode ("shared buffer"), and returns user-mode and kernel-mode virtual address space mappings of the allocated buffer.
| [in] | qwBytes | The size of the buffer to allocate, in bytes |
| [in] | dwOptions | Kernel buffer options bit-mask, which can consist of a combination of the enumeration values listed below.
|
| [out] | ppKerBuf | Pointer to a WD_KERNEL_BUFFER pointer, to be filled by the function. The caller should use *ppBuf->pUserAddr usermode mapped address. When the buffer is no longer needed, (*ppBuf) should be passed to WDS_SharedBufferFree() |