IShellLink::GetPath

[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 IShellLink 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_DATA 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