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/28 12:55,
18.188.219.131:LOG IN
|
©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://sxlist.com/TECHREF/os/win/api/win32/func/src/f75_7.htm"> SearchPath</A> |
Did you find what you needed? |
Welcome to sxlist.com!sales, advertizing, & kind contributors just like you! Please don't rip/copy (here's why Copies of the site on CD are available at minimal cost. |
Welcome to sxlist.com! |
.