// d3dumddi.h
PFND3DDDI_GETCAPTUREALLOCATIONHANDLE Pfnd3dddiGetcaptureallocationhandle;
HRESULT Pfnd3dddiGetcaptureallocationhandle(
HANDLE hDevice,
D3DDDIARG_GETCAPTUREALLOCATIONHANDLE *unnamedParam2
)
{...}
View the official Windows Driver Kit DDI referenceNo description available.
The GetCaptureAllocationHandle function maps the given capture resource handle to a kernel-mode allocation handle.
hDeviceA handle to the display device (graphics context).
unnamedParam2pData [in, out]
A pointer to a D3DDDIARG_GETCAPTUREALLOCATIONHANDLE structure that describes parameters for retrieving an allocation handle from a capture resource handle.
GetCaptureAllocationHandle returns one of the following values:
| Return code | Description |
|---|---|
| S_OK | The given resource is in GPU-accessible memory. |
| E_OUTOFMEMORY | GetCaptureAllocationHandle could not allocate the required memory for it to complete. |
D3DDDIARG_GETCAPTUREALLOCATIONHANDLE