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/14 13:13,
44.211.24.175: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://www.piclist.com/techref/os/win/api/win32/func/src/f75_7.htm"> SearchPath</A> |
Did you find what you needed? |
PICList 2024 contributors:
o List host: MIT, Site host massmind.org, Top posters @none found - Page Editors: James Newton, David Cary, and YOU! * Roman Black of Black Robotics donates from sales of Linistep stepper controller kits. * Ashley Roll of Digital Nemesis donates from sales of RCL-1 RS232 to TTL converters. * Monthly Subscribers: Gregg Rew. on-going support is MOST appreciated! * Contributors: Richard Seriani, Sr. |
Welcome to www.piclist.com! |
.