Contents Index Topic Contents | ||
Previous Topic: IShellLink::GetIDList Next Topic: IShellLink::GetShowCmd |
IShellLink::GetPath
HRESULT STDMETHODCALLTYPE GetPath( LPSTR pszFile, int cchMaxPath, WIN32_FIND_DATA *pfd, DWORD fFlags );Retrieves the path and file name of a shell link object.
- Returns NOERROR if successful, or an OLE-defined error value otherwise.
- pszFile
- Address of a buffer that receives the path and file name of the shell link object.
- cchMaxPath
- Maximum number of bytes to copy to the buffer pointed to by the pszFile parameter.
- pfd
- Address of 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 format) file name. SLGP_UNCPRIORITY Retrieves the Universal Naming Convention (UNC) path name of the file. See also IShellLink
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.