IDirect3DRM::GetSearchPath

Returns the current search path. For Windows, the path is a list of directories separated by semicolons (;).

HRESULT GetSearchPath(
DWORD * lpdwSize,
LPSTR lpszPath
);

Parameters

lpdwSize

Pointer to a DWORD. Should contain the length of lpszPath when GetSearchPath is called. On return, contains the length of the string in lpszPath containing the current search path. This parameter cannot be NULL.

lpszPath

On return, contains a pointer to a null-terminated string specifying the search path. If lpszPath equals NULL when GetSearchPath is called, the method returns the length of the current string in the location pointed to by the lpdwSize parameter.

Return Values

Returns D3DRM_OK if successful, or an error otherwise. For a list of possible return codes, see Direct3D Retained-Mode Return Values.

See Also

IDirect3DRM::SetSearchPath