The IDirect3DDevice::GetPickRecords method retrieves the pick records for a device.
HRESULT GetPickRecords(
LPDWORD lpCount,
LPD3DPICKRECORD lpD3DPickRec
);
If the method succeeds, the return value is D3D_OK.
If the method fails, the return value is an error.
An application typically calls this method twice. In the first call, the second parameter is set to NULL, and the first parameter retrieves a count of all relevant D3DPICKRECORD structures. The application then allocates sufficient memory for those structures and calls the method again, specifying the newly allocated memory for the second parameter.
Windows NT: Use version 4.0 or later.
Windows: Use Windows 95 or later. Available as a redistributable for Windows 95.
Windows CE: Unsupported.
Header: Declared in ddraw.h.
Import Library: Use ddraw.lib.