Sha256: 600d7bb57ba89b4d15931b4ae612dc77f70008cca3a861b57a50e9df25e9c3c0

Contents?: true

Size: 942 Bytes

Versions: 8

Compression:

Stored size: 942 Bytes

Contents

#include "Stdafx.h"

extern "C" {
  __declspec(dllexport) void Toggle_Release(ToggleInformationPtr toggleInfo) {
    delete toggleInfo;
  }

  __declspec(dllexport) ToggleInformationPtr Toggle_Information(ElementInformationPtr element, char* errorInfo, const int errorInfoLength) {
    try {
      auto info = ElementFrom(element)->As<TogglePattern^>(TogglePattern::Pattern)->Current;
      return new ToggleInformation(info.ToggleState.ToString());
    } catch(Exception^ e) {
      StringHelper::CopyToUnmanagedString(e->Message, errorInfo, errorInfoLength);
      return NULL;
    }
  }

  __declspec(dllexport) void Toggle(ElementInformationPtr element, char* errorInfo, const int errorInfoLength) {
    try {
      ElementFrom(element)->As<TogglePattern^>(TogglePattern::Pattern)->Toggle();
    } catch(Exception^ e) {
      StringHelper::CopyToUnmanagedString(e->Message, errorInfo, errorInfoLength);
    }
  }
}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
uia-0.4.1 ext/UiaDll/UiaDll/ToggleMethods.cpp
uia-0.4 ext/UiaDll/UiaDll/ToggleMethods.cpp
uia-0.3.3 ext/UiaDll/UiaDll/ToggleMethods.cpp
uia-0.3.2 ext/UiaDll/UiaDll/ToggleMethods.cpp
uia-0.3.1 ext/UiaDll/UiaDll/ToggleMethods.cpp
uia-0.3 ext/UiaDll/UiaDll/ToggleMethods.cpp
uia-0.2.1 ext/UiaDll/UiaDll/ToggleMethods.cpp
uia-0.2 ext/UiaDll/UiaDll/ToggleMethods.cpp