PFND3DDDI_GETCAPTUREALLOCATIONHANDLE callback function (d3dumddi.h)
The GetCaptureAllocationHandle function maps the given capture resource handle to a kernel-mode allocation handle.
Syntax
PFND3DDDI_GETCAPTUREALLOCATIONHANDLE Pfnd3dddiGetcaptureallocationhandle;
HRESULT Pfnd3dddiGetcaptureallocationhandle(
HANDLE hDevice,
D3DDDIARG_GETCAPTUREALLOCATIONHANDLE *unnamedParam2
)
{...}
Parameters
hDevice
A handle to the display device (graphics context).
unnamedParam2
pData [in, out]
A pointer to a D3DDDIARG_GETCAPTUREALLOCATIONHANDLE structure that describes parameters for retrieving an allocation handle from a capture resource handle.
Return value
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. |
Requirements
Requirement | Value |
---|---|
Minimum supported client | Available in Windows Vista and later versions of the Windows operating systems. |
Target Platform | Desktop |
Header | d3dumddi.h (include D3dumddi.h) |