I am trying to get 'TEMP' Guest environment variable using VIX API VixVM_ReadVariable but it returns invalid path which does not even exits. THe value of 'TEMP' i am geting is "C:\Windows\system32\config\systemprofile\AppData\Local\Temp" and this path does not exists on the system.
Code snippet:
job_handle = VixVM_ReadVariable(*vm_handle, VIX_GUEST_ENVIRONMENT_VARIABLE,
"TEMP", 0, NULL, NULL);
err = VixJob_Wait(job_handle, VIX_PROPERTY_JOB_RESULT_VM_VARIABLE_STRING,
&rd, VIX_PROPERTY_NONE);
Is there something wrong i am doing or something i am missing.
Thanks.