Sets the current file search path from a list of directories. For Windows, the path should be a list of directories separated by semicolons (;).
HRESULT SetSearchPath(
LPCSTR lpPath
);
Parameters
lpPath
Address of a null-terminated string specifying the path to set as the current search path.
Return Values
Returns D3DRM_OK if successful, or an error otherwise. For a list of possible return codes, see Direct3D Retained-Mode Return Values.
Remarks
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.
D3DPATH is an environment variable that sets the default search path.
See Also