Sdílet prostřednictvím


EMULATOR_STATE

Aktualisiert: November 2007

Gibt den Zustand des Emulators an.

enum EMULATOR_STATE
{
    EMU_NOT_RUNNING = 0,
    EMU_RUNNING = 1,
    EMU_CRADLED = 2
}

Hinweise

Diese Enumeration wird von IDeviceEmulatorManagerVMID::get_State verwendet. Der Emulator kann den Zustand Wird nicht ausgeführt, Aktiv oder In Basisstation haben.

Beispiel

Dieses Beispiel zeigt die Verwendung dieser Methode. Das vollständige Beispiel finden Sie unter IDeviceEmulatorManagerVMID.

// Output the emulator's current state
EMULATOR_STATE deviceState = EMU_NOT_RUNNING;
hr = pDevice->get_State(&deviceState);
if (SUCCEEDED(hr))
{
    if (deviceState == EMU_CRADLED) wprintf_s(L"Emulator is Cradled\n");
    else if (deviceState == EMU_RUNNING) wprintf_s(L"Emulator is Running\n");
    else wprintf_s(L"Emulator is Not Running\n");
}

Anforderungen

DEMComInterface.tlb

Siehe auch

Weitere Ressourcen

Device Emulator samples