Nevron.Interop.Win32 Namespace / NShell32 Class / SHGetFolderPath Method


In This Topic
    SHGetFolderPath Method
    In This Topic
    Syntax
    'Declaration
     
    
    Public Shared Function SHGetFolderPath( _
       ByVal hwndOwner As System.IntPtr, _
       ByVal nFolder As System.Integer, _
       ByVal hToken As System.IntPtr, _
       ByVal dwFlags As System.UInteger, _
       ByVal pszPath As System.Text.StringBuilder _
    ) As System.Integer
    'Usage
     
    
    Dim hwndOwner As System.IntPtr
    Dim nFolder As System.Integer
    Dim hToken As System.IntPtr
    Dim dwFlags As System.UInteger
    Dim pszPath As System.Text.StringBuilder
    Dim value As System.Integer
     
    value = NShell32.SHGetFolderPath(hwndOwner, nFolder, hToken, dwFlags, pszPath)
    public static System.int SHGetFolderPath( 
       System.IntPtr hwndOwner,
       System.int nFolder,
       System.IntPtr hToken,
       System.uint dwFlags,
       out System.Text.StringBuilder pszPath
    )

    Parameters

    hwndOwner
    nFolder
    hToken
    dwFlags
    pszPath
    Requirements

    Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also