IShellLinkA::SetWorkingDirectory method (shobjidl_core.h)
Sets the name of the working directory for a Shell link object.
HRESULT SetWorkingDirectory( LPCSTR pszDir );
The address of a buffer that contains the name of the new working directory.
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
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.
|Minimum supported client||Windows XP [desktop apps only]|
|Minimum supported server||Windows 2000 Server [desktop apps only]|
|DLL||Shell32.dll (version 4.0 or later)|