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
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
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