Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ GetKnownFolderPath()

static string System.Environment.GetKnownFolderPath ( string folderGuid,
SpecialFolderOption option )
inlinestaticprivate

Definition at line 801 of file Environment.cs.

802 {
803 Guid rfid = new Guid(folderGuid);
804 if (Interop.Shell32.SHGetKnownFolderPath(rfid, (uint)option, IntPtr.Zero, out var ppszPath) != 0)
805 {
806 return string.Empty;
807 }
808 return ppszPath;
809 }
static int SHGetKnownFolderPath([MarshalAs(UnmanagedType.LPStruct)] Guid rfid, uint dwFlags, IntPtr hToken, out string ppszPath)

References Interop.Shell32.SHGetKnownFolderPath(), and System.IntPtr.Zero.

Referenced by System.Environment.GetFolderPathCore().