IShellLink::SetPath

[Now Supported on Windows NT]

Sets the path and filename of a shell link object.

HRESULT STDMETHODCALLTYPE SetPath(

ISHELLLINK FAR *pShlLnk,  
LPCSTR pszFile  
);  

Parameters

pShlLnk

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

pszFile

Pointer to a buffer that contains the new path.

Return Values

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

See Also

IShellLink