Skip to content

Latest commit

 

History

History
55 lines (36 loc) · 1.18 KB

SetSearchPathMode.md

File metadata and controls

55 lines (36 loc) · 1.18 KB

Home

Function name : SetSearchPathMode

Group: File Management - Library: kernel32


Sets the per-process mode that the SearchPath function uses when locating files.


Declaration:

BOOL SetSearchPathMode(
	__in  DWORD Flags
);  

FoxPro declaration:

DECLARE INTEGER SetSearchPathMode IN kernel32;
	LONG nFlags  

Parameters:

Flags [in] The search mode to use -- a predefned value.


Return value:

Returns a nonzero value if the operation completes successfully.


Comments:

Minimum OS: Windows 7

BASE_SEARCH_PATH_ENABLE_SAFE_SEARCHMODE (0x00000001)
Enable safe process search mode for the process.

BASE_SEARCH_PATH_DISABLE_SAFE_SEARCHMODE (0x00010000)
Disable safe process search mode for the process.

BASE_SEARCH_PATH_PERMANENT (0x00008000)
Optional flag to use in combination with BASE_SEARCH_PATH_ENABLE_SAFE_SEARCHMODE to make this mode permanent for this process.

See also: SearchPath.