Group: File Management - Library: kernel32
BOOL SetSearchPathMode(
__in DWORD Flags
);
DECLARE INTEGER SetSearchPathMode IN kernel32;
LONG nFlags
Flags [in] The search mode to use -- a predefned value.
Returns a nonzero value if the operation completes successfully.
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.