VixHandle
VixVM_CreateTempFileInGuest(VixHandle vmHandle,
int options,
VixHandle propertyListHandle,
VixEventProc *callbackProc,
void *clientData);
This function creates a temporary file in the guest operating system.
char *tempFilePath;
jobHandle = VixVM_CreateTempFileInGuest(vmHandle,
0,
VIX_INVALID_HANDLE,
NULL,
NULL);
err = VixJob_Wait(jobHandle,
VIX_PROPERTY_JOB_RESULT_ITEM_NAME,
&tempFilePath,
VIX_PROPERTY_NONE);
if (VIX_FAILED(err)) {
// Handle the error...
}
// Use the file.
Vix_FreeBuffer(tempFilePath);