Name
CreateDirectoryInGuest
Description
HRESULT
CreateDirectoryInGuest([in] BSTR pathName,
[in] IVixHandle* propertyList,
[in] ICallback* jobDoneCallback,
[out,retval] IJob** createJob);
This function creates a directory in the guest operating system.
Parameters
- pathName
-
The path to the directory to be created.
- propertyListHandle
-
Must be NULL (C++), null (C#), or Nothing (VB).
- jobDoneCallback
-
An ICallback instance that will be called when the
operation is complete.
- copyJob
-
Returns an IJob object that describes the state of this
asynchronous operation.
Return Value
HRESULT
Remarks
- You must call VM::LoginInGuest() before calling this function.
- If the parent directories for the specified path do not exist, this function
will create them.
- If the directory already exists, the error associated with the IJob object
will be set to VIX_E_FILE_ALREADY_EXISTS.
- Only absolute paths should be used for files in the guest; the resolution of
relative paths is not specified.
Side Effects
None.
Requirements
VixCOM.h, since VMware Workstation 6.0