Desktop Functions: Smart Device Functions:
|
SHGetSpecialFolderPath (shell32)
C# Signature:
[DllImport("shell32.dll")] VB Signature:
<DllImport("shell32.dll")> Shared Function SHGetSpecialFolderPath(ByVal hwndOwner As IntPtr, User-Defined Types:None. Notes:lpszPath must be at least MAX_PATH (260) characters in size. Tips & Tricks:Please add some! Sample Code:
const int CSIDL_PROGRAMS = 2; // \Windows\Start Menu\Programs Alternative Managed API:Environment.GetFolderPath(Environment.SpecialFolder.xxx) probably calls this internally - it does the same thing. However not all of the enums are available (e.g. CSIDL_COMMON_DOCUMENTS missing on .NET 1.1) therefore this is needed sometimes. Please edit this page!Do you have...
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). |
|