Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

Search Results for "GetPath" in [All]

gdi32

.
Summary
.

static extern int GetPath(IntPtr hdc, [Out] POINT [] lpPoints,

.
Documentation
[GetPath] on MSDN

ntdll

.

GetPathFromFileReference(UInt64 frn)

user32

.

    public static string GetPathOfWallpaper()

msi

.

static extern int MsiGetTargetPath(IntPtr hInstall, string szFolder,

.
Documentation
[MsiGetTargetPath] on MSDN
.

static extern int MsiSetTargetPath(IntPtr hInstall, string szFolder, string szFolderPath);

.
Documentation
[MsiSetTargetPath] on MSDN

Interfaces

.

            [In, MarshalAs ( UnmanagedType.LPWStr )] string pszTargetPath, [In] uint cFolders,

.

            [In, MarshalAs ( UnmanagedType.LPWStr )] string pszTargetPath, [In] uint cFolders,

.

    void GetPath([Out(), MarshalAs(UnmanagedType.LPStr)] StringBuilder pszFile, int cchMaxPath

.

    Sub GetPath(<Out(), MarshalAs(UnmanagedType.LPStr)> ByVal pszFile As StringBuilder, ByVal cchMaxPath As Integer, ByRef pfd As WIN32_FIND_DATAA, ByVal fFlags As UInteger)

.

    void GetPath([Out(), MarshalAs(UnmanagedType.LPWStr)] StringBuilder pszFile, int cchMaxPath, out UnsafeNativeMethods.WIN32_FIND_DATAW pfd, UnsafeNativeMethods.SLGP_FLAGS fFlags);

.

    <PreserveSig()> Function GetPath( _

10: IUri
.

        UInt32 GetPath([MarshalAs(UnmanagedType.BStr)][Out] out string sPath);

.

        UInt32 GetPathAndQuery([MarshalAs(UnmanagedType.BStr)][Out] out string sPathAndQuery);

Enums

.

/// <summary>IShellLink.GetPath fFlags: Flags that specify the type of path information to retrieve</summary>

difxapi

.
Summary
The DriverPackageGetPath function retrieves the fully qualified path of the driver store INF file for a preinstalled driver package.
.

public static extern Int32 DriverPackageGetPath([MarshalAs(UnmanagedType.LPTStr)] string DriverPackageInfPath, [MarshalAs(UnmanagedType.LPTStr)] string pDestInfPath, out Int32 pNumOfChars);

.

Public Declare Auto Function DriverPackageGetPath Lib "DIFxAPI.dll" (ByVal DriverPackageInfPath As String, ByVal pDestInfPath As String, ByRef pNumOfChars As Int32) As Int32

.

public static extern Int32 DriverPackageGetPath(

.

Int32 GetPathResult = DriverPackageGetPath(infFile, infDriverStorePath, out infDriverStorePathLength);

.

if (GetPathResult == ERROR_INSUFFICIENT_BUFFER)

.

     GetPathResult = DriverPackageGetPath(infFile, infDriverStorePath, out infDriverStorePathLength);

.

Dim GetPathResult As Int32 = DriverPackageGetPath(infFile, infDriverStorePath, infDriverStorePathLength)

.

If GetPathResult = ERROR_INSUFFICIENT_BUFFER Then

.

     GetPathResult = DriverPackageGetPath(infFile, infDriverStorePath, infDriverStorePathLength)

.
Documentation
[DriverPackageGetPath] on MSDN

shell32

.

        // static extern uint SHGetPathFromIDList(IntPtr pidl, [MarshalAs(UnmanagedType.LPWStr)]

.

        static extern bool SHGetPathFromIDList(IntPtr pidl, IntPtr pszPath);

.

                if (SHGetPathFromIDList(lp, pathPtr))

.

                if (true != SHGetPathFromIDList(pidl, bufferAddress))

.
Summary
SHGetPathFromIDList - Gets a path from a ID List
.

/// Converts an item identifier list to a file system path. (Note: SHGetPathFromIDList calls the ANSI version, must call SHGetPathFromIDListW for .NET)

.

public static extern bool SHGetPathFromIDListW(IntPtr pidl, [MarshalAs(UnmanagedType.LPTStr)] StringBuilder pszPath);

.

''' Converts an item identifier list to a file system path. (Note: SHGetPathFromIDList calls the ANSI version, must call SHGetPathFromIDListW for .NET)

.

<DllImport("shell32.dll", EntryPoint:="SHGetPathFromIDListW", SetLastError:=true, CharSet:=CharSet.Unicode)> _

.

Public Function SHGetPathFromIDList(pidl As IntPtr, _

.

Public Declare Function SHGetPathFromIDList Lib "shell32.dll" Alias "SHGetPathFromIDListA" _

.
Documentation
SHGetPathFromIDList @msdn on MSDN
.

            if (true == SHGetPathFromIDListW(ptrDirVideo, sbDirVideo))

.

        public static extern bool SHGetPathFromIDListW(IntPtr pidl, [MarshalAs(UnmanagedType.LPTStr)] StringBuilder pszPath);

advapi32

.

                retVal.connectionName = Path.GetPathRoot(localPath);

.

                retVal.remainingPath = localPath.Substring(Path.GetPathRoot(localPath).Length);

.

Public Sub GetPath()

.

                _connect = IO.Path.GetPathRoot(_origpath)

coredll

.

    private string getPath(int folderCSIDL)

netapi32

.

        static string NetShareGetPath(string serverName, string netName)

.

            Console.WriteLine("path=" + NetShareGetPath("\\\\remote_server", "share_name"));

kernel32

.

   string lpTargetPath);

.

    string lpTargetPath);

.

    string lpTargetPath,uint ucchMax);

.

      Dim sRootFolder As String = IO.Path.GetPathRoot(FolderPath)

.

static extern uint QueryDosDevice(string lpDeviceName, IntPtr lpTargetPath, uint ucchMax);

.

static extern uint QueryDosDevice(string lpDeviceName, StringBuilder lpTargetPath, int ucchMax);

.

Public Shared Function QueryDosDevice(lpDeviceName As String, lpTargetPath As System.Text.StringBuilder, ucchMax As Integer) As Integer

.

     string driveLetter = Path.GetPathRoot(path).Replace("\\", "");

.

       realPath = Path.Combine(realRoot, path.Replace(Path.GetPathRoot(path), ""));


 
Access PInvoke.net directly from VS: