[DllImport("shell32.dll", SetLastError = true)]
static extern int SHGetSpecialFolderLocation(IntPtr hwndOwner, CSIDL nFolder,
ref IntPtr ppidl);
CSIDL
None.
Please add some!
Please add some!
Do you know one? Please contribute it!
'In Visual Basic.Net
Dim fileP As String
fileP = My.Computer.FileSystem.SpecialDirectories.MyDocuments
MsgBox(fileP.ToString)
// In C# after adding a Reference to the Microsoft.VisualBasic.dll
using Microsoft.VisualBasic.Devices;
// and in the Code
Computer c = new Computer();
MessageBox.Show(c.FileSystem.SpecialDirectories.MyDocuments);