Type a page name and press Enter. You'll jump to the page if it exists, or you can create it if it doesn't.
To create a page in a module other than shlwapi, prefix the name with the module name and a period.
Declare Function PathFindOnPath Lib "shlwapi.dll" (TODO) As TODO
Notes:
Make sure pszFile has enough space for MAX_PATH characters.
ppszOtherDirs is a list of specific directories to search first. It can be null if you want to search only the PATH.
This function does not include the current dir or the application launch dir in its search.
Tips & Tricks:
None.
Sample Code:
int MAX_PATH=260;
StringBuilder sb = new StringBuilder("somefile.dll", MAX_PATH);
bool found = PathFindOnPath(sb, new String [] {"c:\\test", "c:\\junk"} );
if (found)
{
Console.WriteLine("File was found at: " + sb.ToString());
}
else
{
Console.WriteLine("File was not found");
}
Alternative Managed API:
None that I could find.
The maximum length of a filename
5/15/2017 5:40:17 AM - 10.181.105.3
Please edit this page!
Do you have...
helpful tips or sample code to share for using this API in managed code?
corrections to the existing content?
variations of the signature you want to share?
additional languages you want to include?
Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing supporting types needed for this API (structures, delegates, and more).