Sha256: f2242e3777bb6f6f82e79afac8bf2397083b707f9d23bbad6515cb8af1100681
Contents?: true
Size: 1.71 KB
Versions: 14
Compression:
Stored size: 1.71 KB
Contents
#include "Stdafx.h" extern "C" { __declspec(dllexport) void SelectionItem_Release(SelectionItemInformationPtr selectionItemInfo) { delete selectionItemInfo; } __declspec(dllexport) SelectionItemInformationPtr SelectionItem_Information(ElementInformationPtr element, char* errorInfo, const int errorInfoLength) { try { auto info = Find(element)->As<SelectionItemPattern^>(SelectionItemPattern::Pattern)->Current; return new SelectionItemInformation(info); } catch(Exception^ e) { StringHelper::CopyToUnmanagedString(e->Message, errorInfo, errorInfoLength); return NULL; } } __declspec(dllexport) void SelectionItem_Select(ElementInformationPtr element, char* errorInfo, const int errorInfoLength) { try { Find(element)->As<SelectionItemPattern^>(SelectionItemPattern::Pattern)->Select(); } catch(Exception^ e) { StringHelper::CopyToUnmanagedString(e->Message, errorInfo, errorInfoLength); } } __declspec(dllexport) void SelectionItem_AddToSelection(ElementInformationPtr element, char* errorInfo, const int errorInfoLength) { try { Find(element)->As<SelectionItemPattern^>(SelectionItemPattern::Pattern)->AddToSelection(); } catch(Exception^ e) { StringHelper::CopyToUnmanagedString(e->Message, errorInfo, errorInfoLength); } } __declspec(dllexport) void SelectionItem_RemoveFromSelection(ElementInformationPtr element, char* errorInfo, const int errorInfoLength) { try { Find(element)->As<SelectionItemPattern^>(SelectionItemPattern::Pattern)->RemoveFromSelection(); } catch(Exception^ e) { StringHelper::CopyToUnmanagedString(e->Message, errorInfo, errorInfoLength); } } }
Version data entries
14 entries across 14 versions & 1 rubygems