Sha256: 8a19102c63bb6d95fda134cfc9474d3cbc935315638aba7a2ade79a8438a229c

Contents?: true

Size: 988 Bytes

Versions: 16

Compression:

Stored size: 988 Bytes

Contents

#include "Stdafx.h"

extern "C" {
  __declspec(dllexport) void Value_Release(ValuePatternInformationPtr valueInformation) {
    delete valueInformation;
  }

  __declspec(dllexport) void Value_Set(ElementInformationPtr element, const char* value, char* errorInfo, const int errorInfoLength) {
    try {
      Find(element)->As<ValuePattern^>(ValuePattern::Pattern)->SetValue(gcnew String(value));
    } catch(Exception^ e) {
      StringHelper::CopyToUnmanagedString(e->Message, errorInfo, errorInfoLength);
    }
  }

  __declspec(dllexport) ValuePatternInformationPtr Value_Information(ElementInformationPtr element, char* errorInfo, const int errorInfoLength) {
    try {
      auto valuePattern = Find(element)->As<ValuePattern^>(ValuePattern::Pattern);
      return new ValuePatternInformation(valuePattern->Current);
    } catch(Exception^ e) {
      StringHelper::CopyToUnmanagedString(e->Message, errorInfo, errorInfoLength);
      return NULL;
    }
  }
}

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
uia-0.1.3.1 ext/UiaDll/UiaDll/ValuePatternMethods.cpp
uia-0.1.3 ext/UiaDll/UiaDll/ValuePatternMethods.cpp
uia-0.1.2.3 ext/UiaDll/UiaDll/ValuePatternMethods.cpp
uia-0.1.2.2 ext/UiaDll/UiaDll/ValuePatternMethods.cpp
uia-0.1.2.1 ext/UiaDll/UiaDll/ValuePatternMethods.cpp
uia-0.1.2 ext/UiaDll/UiaDll/ValuePatternMethods.cpp
uia-0.1.1 ext/UiaDll/UiaDll/ValuePatternMethods.cpp
uia-0.1 ext/UiaDll/UiaDll/ValuePatternMethods.cpp
uia-0.0.9 ext/UiaDll/UiaDll/ValuePatternMethods.cpp
uia-0.0.8 ext/UiaDll/UiaDll/ValuePatternMethods.cpp
uia-0.0.7.3 ext/UiaDll/UiaDll/ValuePatternMethods.cpp
uia-0.0.7.2 ext/UiaDll/UiaDll/ValuePatternMethods.cpp
uia-0.0.7.1 ext/UiaDll/UiaDll/ValuePatternMethods.cpp
uia-0.0.7 ext/UiaDll/UiaDll/ValuePatternMethods.cpp
uia-0.0.6.1 ext/UiaDll/UiaDll/ValuePatternMethods.cpp
uia-0.0.6 ext/UiaDll/UiaDll/ValuePatternMethods.cpp