Sha256: 5188dd85062db016854ebd01d562589958c871d8faeaed30bffd193c5e463597

Contents?: true

Size: 981 Bytes

Versions: 8

Compression:

Stored size: 981 Bytes

Contents

#include "Stdafx.h"

extern "C" {
  __declspec(dllexport) void RangeValue_Release(RangeValueInformationPtr rangeValueInfo) {
    delete rangeValueInfo;
  }

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

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