function searches for the specified file.
| 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
Points to a null-terminated string that specifies the path to be searched for
the file. If this parameter 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.
- Windows 95: The Windows system directory. Use the GetSystemDirectory function to get the path of this directory.
The 32-bit Windows system directory. Use the GetSystemDirectory
function to get the path of this directory. The name of this directory is
- Windows NT: The 16-bit Windows system directory. There is no Win32 function that obtains
the path of this directory, but it is searched. The name of this directory is
- The Windows directory. Use the GetWindowsDirectory function to get the path of this directory.
- The directories that are listed in the PATH environment variable.
Points to a null-terminated string that specifies the name of the file to
Points to a null-terminated string that specifies an extension to be added to
the filename when searching for the file. The first character of the filename
extension must be a period (.). The extension is added only if the specified
filename does not end with an extension.
If a filename extension is not required or if the filename contains an
extension, this parameter can be NULL.
Specifies the length, in characters, of the buffer that receives the valid
path and filename.
Points to the buffer for the valid path and filename of the file found.
Points to the address (within lpBuffer
) of the last component of the valid path and filename, 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 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
- Software for developers
Software for Android Developers
- More information resources
Unix Manual Pages
- Databases for Amazon shops developers
Amazon Categories Database
Browse Nodes Database