Contents Index Topic Contents | ||
Previous Topic: IShellLink::SetShowCmd Next Topic: IShellPropSheetExt |
IShellLink::SetWorkingDirectory
HRESULT STDMETHODCALLTYPE SetWorkingDirectory( LPCSTR pszDir );Sets the name of the working directory for a shell link object.
- Returns NOERROR if successful, or an OLE-defined error value otherwise.
- pszDir
- Address of a buffer that contains the name of the new working directory.
The working directory is optional unless the target requires a working directory. For example, if an application creates a shell link to a Microsoft® Word document that uses a template residing in a different directory, the application would use this method to set the working directory.
See also IShellLink
Top of Page
© 1997 Microsoft Corporation. All rights reserved. Terms of Use.