Sha256: bc7a1e42ea2caa809c4ba06f3ccc6531cbd5b265b7120fea69ccf62c3f04c89e

Contents?: true

Size: 1.36 KB

Versions: 8

Compression:

Stored size: 1.36 KB

Contents

#include "Stdafx.h"

extern "C" {
  __declspec(dllexport) void Window_Release(WindowInformationPtr windowInformation) {
    delete windowInformation;
  }

  __declspec(dllexport) WindowInformationPtr Window_Information(ElementInformationPtr element, char* errorInfo, const int errorInfoLength) {
    try {
      return new WindowInformation(ElementFrom(element)->As<WindowPattern^>(WindowPattern::Pattern)->Current);
    } catch(Exception^ e) {
      StringHelper::CopyToUnmanagedString(e->Message, errorInfo, errorInfoLength);
      return NULL;
    }
  }

  __declspec(dllexport) void Window_SetVisualState(ElementInformationPtr element, const char* visualState, char* errorInfo, const int errorInfoLength) {
    try {
      ElementFrom(element)->As<WindowPattern^>(WindowPattern::Pattern)->SetWindowVisualState((WindowVisualState) Enum::Parse(WindowVisualState::typeid, gcnew String(visualState), false));
    } catch(Exception^ e) {
      StringHelper::CopyToUnmanagedString(e->Message, errorInfo, errorInfoLength);
    }
  }

  __declspec(dllexport) void Window_Close(ElementInformationPtr element, char* errorInfo, const int errorInfoLength) {
    try {
      ElementFrom(element)->As<WindowPattern^>(WindowPattern::Pattern)->Close();
    } 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/WindowMethods.cpp
uia-0.4 ext/UiaDll/UiaDll/WindowMethods.cpp
uia-0.3.3 ext/UiaDll/UiaDll/WindowMethods.cpp
uia-0.3.2 ext/UiaDll/UiaDll/WindowMethods.cpp
uia-0.3.1 ext/UiaDll/UiaDll/WindowMethods.cpp
uia-0.3 ext/UiaDll/UiaDll/WindowMethods.cpp
uia-0.2.1 ext/UiaDll/UiaDll/WindowMethods.cpp
uia-0.2 ext/UiaDll/UiaDll/WindowMethods.cpp