flag (ULONG) - input
This parameter contains the following bit fields:
Bit
For example, Implied Current bit = 0 and path = ".\;a;b" is equivalent to Implied Current bit = 1 and path = "a;b".
pszPathOrName (PSZ) - input
If the Path Source bit of flag is 0, pszPathOrName is the search path that may be anywhere in the caller's address space.
If the Path Source bit of flag is 1, pszPathOrName is the name of an environment variable that contains the search path.
A search path consists of a sequence of paths separated by a semicolon ( ; ). It is a single ASCIIZ string. The directories are searched in the order they appear in the path. Paths that contain semicolons should be quoted. For example:
"c:&this is ; one directory path";thisisanotherEnvironment variable names are simply strings that match name strings in the environment. The equal ( = ) sign is not part of the name.
pszFilename (PSZ) - input
It may contain global file-name characters. If pszFilename does contain global file-name characters, they remain in the result path returned in pBuf. This allows applications like CMD.EXE to pass the output directly to DosFindFirst. If there are no global file-name characters in pszFilename, the resulting path returned in pBuf is a fully qualified name, and may be passed directly to DosOpen, or any other system function.
pBuf (PBYTE) - output
If pszFilename is found in one of the directories along the path, its full path name is returned in pBuf (with global file-name characters from pszFilename left in place). The contents of pBuf are not meaningful if DosSearchPath returns a nonzero return code.
cbBuf (ULONG) - input
ulrc (APIRET) - returns
DosSearchPath returns one of the following values: