Sha256: 3d39430f629ae84e2b9bc747064bb8d56a1bb0515a3ad0fdd15af00d829f0e0a

Contents?: true

Size: 924 Bytes

Versions: 9

Compression:

Stored size: 924 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, 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, errorInfo, errorInfoLength);
    }
  }
}

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
uia-1.0 ext/UiaDll/UiaDll/ToggleMethods.cpp
uia-0.8 ext/UiaDll/UiaDll/ToggleMethods.cpp
uia-0.7 ext/UiaDll/UiaDll/ToggleMethods.cpp
uia-0.7.alpha.1 ext/UiaDll/UiaDll/ToggleMethods.cpp
uia-0.6 ext/UiaDll/UiaDll/ToggleMethods.cpp
uia-0.5 ext/UiaDll/UiaDll/ToggleMethods.cpp
uia-0.4.4 ext/UiaDll/UiaDll/ToggleMethods.cpp
uia-0.4.3 ext/UiaDll/UiaDll/ToggleMethods.cpp
uia-0.4.2 ext/UiaDll/UiaDll/ToggleMethods.cpp