IShellLink::SetArguments  II9ZMQ

[Now Supported on Windows NT]

Sets the command-line arguments for a shell link object.

HRESULT STDMETHODCALLTYPE SetArguments(

    ISHELLLINK FAR *pShlLnk,

 

    LPCSTR pszArgs

 

   );

 

 

Parameters

pShlLnk

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

pszArgs

Pointer to a buffer that contains the new command-line arguments.

 

Return Values

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

This method is useful when creating a link to an application that takes special flags as arguments, such as a compiler.

See Also

IShellLink