Sha256: 2492a719b6cb7a38bb334576bfbe92a5867a50457b9ad487f139bf42cac22b8a

Contents?: true

Size: 1.02 KB

Versions: 4

Compression:

Stored size: 1.02 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(Find(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 {
      Find(element)->As<WindowPattern^>(WindowPattern::Pattern)->SetWindowVisualState((WindowVisualState) Enum::Parse(WindowVisualState::typeid, gcnew String(visualState), false));
    } catch(Exception^ e) {
      StringHelper::CopyToUnmanagedString(e->Message, errorInfo, errorInfoLength);
    }
  }
}

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
uia-0.0.7.3 ext/UiaDll/UiaDll/WindowMethods.cpp
uia-0.0.7.2 ext/UiaDll/UiaDll/WindowMethods.cpp
uia-0.0.7.1 ext/UiaDll/UiaDll/WindowMethods.cpp
uia-0.0.7 ext/UiaDll/UiaDll/WindowMethods.cpp