IVMGuestOS::Logoff method
[Windows Virtual PC is no longer available for use as of Windows 8. Instead, use the Hyper-V WMI provider (V2).]
Logs off all users from the guest operating system.
Syntax
HRESULT Logoff(
[out, retval] IVMTask **outLogoffTask
);
Parameters
-
outLogoffTask [out, retval]
-
An IVMTask object that is used to track the completion progress of the logoff sequence.
Return value
This method can return one of these values.
Return code/value | Description |
---|---|
|
The operation was successful. |
|
An unexpected error has occurred. |
|
The parameter is NULL. |
|
The caller must have execute access permissions for this VM. |
|
The operation did not complete in a timely manner. |
|
The integration components feature is not installed in this virtual machine. |
|
The virtual machine (VM) must be running for this operation. |
|
The configuration is unknown. |
Remarks
HRESULT_FROM_WIN32(ERROR_NO_SUCH_LOGON_SESSION)
(0x80070520) is returned through the Error property of the returned IVMTask object there are no logon sessions in the guest operating system.
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows 7 [desktop apps only] |
Minimum supported server |
None supported |
End of client support |
Windows 7 |
Product |
Windows Virtual PC |
Header |
|
IID |
IID_IVMGuestOS is defined as 99fea0db-4880-499a-b6d8-73dff9bc91be |
See also
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για