Copies the private data that is associated with this surface to a provided buffer.
HRESULT GetPrivateData( [in] REFGUID guidTag, [out] LPVOID lpBuffer, [in, out] LPDWORD lpcbBufferSize );
- guidTag [in]
Reference to (C++) or address of (C) the globally unique identifier that identifies the private data to be retrieved.
- lpBuffer [out]
A pointer to a previously allocated buffer that receives the requested private data if the call succeeds. The application that calls this method must allocate and release this buffer.
- lpcbBufferSize [in, out]
A pointer to a variable that contains the size value of the buffer at lpBuffer, in bytes. If this value is less than the actual size of the private data (such as 0), GetPrivateData sets the variable to the required buffer size, and then returns DDERR_MOREDATA.
If the method succeeds, the return value is DD_OK.
If it fails, the method can return one of the following error values: