IShellLink::GetPath  1R67ZOA

[Now Supported on Windows NT]

Retrieves the path and filename of a shell link object.

HRESULT STDMETHODCALLTYPE GetPath(

    IShellLink FAR *pShlLnk,

 

    LPSTR pszFile,

 

    int cchMaxPath,

 

    WIN32_FIND_DATA *pfd,

 

    DWORD fFlags

 

   );

 

 

Parameters

pShlLnk

Pointer to the IShellLink222Z_K0 interface. In C++, this parameter is implicit.

pszFile

Pointer to a buffer that receives the path and filename of the shell link object.

cchMaxPath

Maximum number of bytes to copy to the buffer pointed to by pszFile.

pfd

Pointer to a WIN32_FIND_DATA4TJ_4N structure that contains information about the shell link object.

fFlags

Flags that specify the type of path information to retrieve. This parameter can be a combination of the following values:

SLGP_SHORTPATH

Retrieves the standard short (8.3) filename.

SLGP_UNCPRIORITY

Retrieves the Universal Naming Convention (UNC) path name of the file.

 

Return Values

Returns NOERROR if successful or an OLE-defined error value otherwise.

See Also

IShellLink, WIN32_FIND_DATA