The SearchPath function searches for the specified file.
DWORD SearchPath(
LPCTSTR lpPath, |
// address of search path |
LPCTSTR lpFileName, |
// address of filename |
LPCTSTR lpExtension, |
// address of extension |
DWORD nBufferLength, |
// size, in characters, of buffer |
LPTSTR lpBuffer, |
// address of buffer for found filename |
LPTSTR *lpFilePart |
// address of pointer to file component |
); |
Windows NT: The 32-bit Windows system directory. Use the GetSystemDirectory function to get the path of this directory. The name of this directory is SYSTEM32.
If a filename extension is not required or if the filename contains an
extension, this parameter can be NULL.
If the function succeeds, the value returned is the length, in characters, of the string copied to the buffer, not including the terminating null character. If the return value is greater than nBufferLength, the value returned is the size of the buffer required to hold the path.
If the function fails, the return value is zero. To get extended error information, call GetLastError.
FindFirstFile, FindNextFile, GetSystemDirectory, GetWindowsDirectory
file: /Techref/os/win/api/win32/func/src/f75_7.htm, 5KB, , updated: 2001/6/24 02:00, local time: 2024/11/8 11:32,
18.224.73.207:LOG IN ©2024 PLEASE DON'T RIP! THIS SITE CLOSES OCT 28, 2024 SO LONG AND THANKS FOR ALL THE FISH!
|
©2024 These pages are served without commercial sponsorship. (No popup ads, etc...).Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE. Questions? <A HREF="http://techref.massmind.org/techref/os/win/api/win32/func/src/f75_7.htm"> SearchPath</A> |
Did you find what you needed? |
Welcome to massmind.org! |
Welcome to techref.massmind.org! |
.