IDirect3DRM::SetSearchPath

HRESULT SetSearchPath(LPCSTR lpPath);

Sets the current file search path from a list of directories.

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

lpPath

Address of a null-terminated string specifying the path to set as the current search path.

The default search path is taken from the value of the D3DPATH environment variable. If this is not set, the search path will be empty. When opening a file, the system first looks for the file in the current working directory and then checks every directory in the search path.