Delen via


IDeviceEmulatorManagerVMID::Shutdown

Shuts down the emulator and, optionally, saves the emulator's state.

HRESULT Shutdown([in] BOOL bSaveState);

Parameters

  • [in] bSaveState
    Indicates whether to save emulator state before exiting. If true, the device emulator saves the emulator's current state in a .dess file before exiting.

Return Value

An HRESULT value that indicates the outcome of the method call.

Remarks

Device Emulator save state files are located in drive:\Users\(user)\AppData\Roaming\Microsoft\Device Emulator.

This is the equivalent of selecting Shutdown from the Actions menu in the Device Emulator Manager window.

Example

This example demonstrates the usage of this method. For the complete example, see IDeviceEmulatorManagerVMID.

Requirements

DEMComInterface.tlb