3.2.4.2.9.7 WorkingDirectory (get) (Opnum 18)

The WorkingDirectory (get) method returns the working directory property of the action. The executable for this action will be run with this working directory if the action runs.

 [propget, id(FSRM_PROPERTY(FSRM_DISPID_ACTION_COMMAND | 0x04))] HRESULT WorkingDirectory(
   [out, retval] BSTR* workingDirectory
 );

workingDirectory: Pointer to a variable that upon completion contains the working directory of the action.

Return Values: The method MUST return zero on success, or a nonzero error code on failure.

Return value/code

Description

0x80070057

E_INVALIDARG

The workingDirectory parameter is NULL.

Upon receiving this message, the server MUST validate parameters:

  • Verify that workingDirectory is not NULL.

If any validation fails, the server MUST terminate processing and return a nonzero error code.

The server MUST set workingDirectory to the working directory property of the action.