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 kernel32, prefix the name with the module name and a period.
StringBuilder nameBuffer = new StringBuilder((int)MAX_DEEP_PATH + 3);
//I need 3 extra '\x0' chartacters at the end of the buffer
//You need to be able to hold up to 32767 chars if you plan to recurse deep folder structures
//when you use FindFirstFileW, FindNextFileW and DeleteFileW
int lastError = Marshal.GetLastWin32Error();
Console.WriteLine("Failed to get initial working directory; error = '{0}'", lastError);
return;
}
if (folderNameLength > MAX_DEEP_PATH)
{
Console.WriteLine("Failed to get initial working directory; allocated buffer is shorter than required: '{0}'<'{1}'", MAX_DEEP_PATH, folderNameLength);
return;
}
Alternative Managed API:
Directory.GetCurrentDirectory
The GetCurrentDirectory API
4/5/2011 4:46:47 PM - -131.107.0.76
Click to read this page
4/6/2008 7:23:14 AM - anonymous
Click to read this page
4/6/2008 7:23:14 AM - anonymous
The SetLastError API
1/26/2016 3:27:33 AM - -124.148.167.58
Click to read this page
10/2/2011 2:35:57 AM - txzhgh-89.110.151.174
Click to read this page
10/2/2011 2:35:57 AM - txzhgh-89.110.151.174
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).