..msdn Add comment W32 Constants Translate this page
The SearchPath function searches for the specified file. |
LPCTSTR lpPath, // search path
LPCTSTR lpFileName, // file name
LPCTSTR lpExtension, // file extension
DWORD nBufferLength, // size of buffer
LPTSTR lpBuffer, // found file name buffer
LPTSTR *lpFilePart // file component
DECLARE INTEGER SearchPath IN kernel32;
STRING @ lpBuffer,;
INTEGER @ lpFilePart
[in] Pointer to a null-terminated string that specifies the path to be searched for the file.
[in] Pointer to a null-terminated string that specifies the name of the file to search for.
[in] Pointer to a null-terminated string that specifies an extension to be added to the file name when searching for the file.
[in] Specifies the length, in TCHARs, of the buffer that receives the valid path and file name.
[out] Pointer to the buffer that receives the path and file name of the file found.
[out] Pointer to the variable that receives the address (within lpBuffer) of the last component of the valid path and file name, which is the address of the character immediately following the final backslash (\) in the path.
|If the function succeeds, the value returned is the length, in TCHARs, of the string copied to the buffer, not including the terminating null character. |
|If the path to be searched for the file is NULL, the function searches for a matching file in the following directories in the following sequence: |
- The directory from which the application loaded.
- The current directory.
- The Windows system directory.
- The Windows directory.
- The directories that are listed in the PATH environment variable.
|Word Index links for the SearchPath :|
|Translate this page:|
Visited in last 7 days: 11
|Created: ||2002-01-14 19:13:36|
|Modified: ||2002-01-14 19:29:38|