31#ifndef _WDFCOMMONBUFFER_H_
32#define _WDFCOMMONBUFFER_H_
36 #define WDF_EXTERN_C extern "C"
37 #define WDF_EXTERN_C_START extern "C" {
38 #define WDF_EXTERN_C_END }
41 #define WDF_EXTERN_C_START
42 #define WDF_EXTERN_C_END
50#if (NTDDI_VERSION >= NTDDI_WIN2K)
88(
STDCALL *PFN_WDFCOMMONBUFFERCREATE)(
106WdfCommonBufferCreate(
129(
STDCALL *PFN_WDFCOMMONBUFFERCREATEWITHCONFIG)(
149WdfCommonBufferCreateWithConfig(
173(
STDCALL *PFN_WDFCOMMONBUFFERGETALIGNEDVIRTUALADDRESS)(
183WdfCommonBufferGetAlignedVirtualAddress(
198(
STDCALL *PFN_WDFCOMMONBUFFERGETALIGNEDLOGICALADDRESS)(
208WdfCommonBufferGetAlignedLogicalAddress(
223(
STDCALL *PFN_WDFCOMMONBUFFERGETLENGTH)(
233WdfCommonBufferGetLength(
#define __drv_reportError(why)
#define _Must_inspect_result_
_In_ ULONG _In_ ULONG _In_ ULONG Length
ULONG AlignmentRequirement
#define RtlZeroMemory(Destination, Length)
_Must_inspect_result_ _In_ WDFDEVICE _In_ PWDF_CHILD_LIST_CONFIG Config
_Must_inspect_result_ _In_ WDFDMAENABLER _In_ _In_ PWDF_COMMON_BUFFER_CONFIG Config
_Must_inspect_result_ _In_ WDFDMAENABLER _In_ _In_opt_ PWDF_OBJECT_ATTRIBUTES Attributes
_Must_inspect_result_ _In_ WDFDMAENABLER DmaEnabler
#define WDF_EXTERN_C_START
WDF_EXTERN_C_START struct _WDF_COMMON_BUFFER_CONFIG WDF_COMMON_BUFFER_CONFIG
_Must_inspect_result_ _In_ WDFDMAENABLER _In_ _In_opt_ PWDF_OBJECT_ATTRIBUTES _Out_ WDFCOMMONBUFFER * CommonBuffer
WDF_EXTERN_C_START struct _WDF_COMMON_BUFFER_CONFIG * PWDF_COMMON_BUFFER_CONFIG
_Must_inspect_result_ _In_ WDFDMAENABLER _In_ _When_(Length==0, __drv_reportError(Length cannot be zero)) size_t Length
FORCEINLINE VOID WDF_COMMON_BUFFER_CONFIG_INIT(_Out_ PWDF_COMMON_BUFFER_CONFIG Config, _In_ ULONG AlignmentRequirement)
_Must_inspect_result_ _IRQL_requires_max_(PASSIVE_LEVEL) WDFAPI NTSTATUS(STDCALL *PFN_WDFCOMMONBUFFERCREATE)(_In_ PWDF_DRIVER_GLOBALS DriverGlobals
_In_ WDFDEVICE _In_ ULONG AlignmentRequirement
PWDF_DRIVER_GLOBALS WdfDriverGlobals
@ WdfCommonBufferCreateTableIndex
@ WdfCommonBufferGetAlignedLogicalAddressTableIndex
@ WdfCommonBufferCreateWithConfigTableIndex
@ WdfCommonBufferGetAlignedVirtualAddressTableIndex
@ WdfCommonBufferGetLengthTableIndex