Sha256: 7d483db84686a755a518d86854c45bf6b76526e0fcc2fb548f64c70816d8b139
Contents?: true
Size: 1.64 KB
Versions: 1
Compression:
Stored size: 1.64 KB
Contents
#include "stdafx.h" #include "AutomatedSelectList.h" extern "C" { __declspec ( dllexport ) int SelectList_Count(const FindInformation& findInformation) { auto autoSelectList = gcnew AutomatedSelectList(findInformation); return autoSelectList->Count; } __declspec ( dllexport ) int SelectList_SelectedIndex(const HWND windowHandle) { auto autoSelectList = gcnew AutomatedSelectList(windowHandle); return autoSelectList->SelectedIndex; } __declspec ( dllexport ) void SelectList_Selection(const FindInformation& findInformation, char* selection, const int selectionLength) { auto selectList = gcnew AutomatedSelectList(findInformation); auto currentSelections = selectList->Selection; auto firstSelection = currentSelections.Length == 0 ? "" : currentSelections[0]; StringHelper::CopyToUnmanagedString(firstSelection, selection, selectionLength); } __declspec ( dllexport ) bool SelectList_ValueAt(const HWND windowHandle, const int whichItem, char* comboValue, const int comboValueSize) { auto autoSelectList = gcnew AutomatedSelectList(windowHandle); return autoSelectList->GetValueByIndex(whichItem, comboValue, comboValueSize); } __declspec ( dllexport ) bool SelectList_SelectIndex(const FindInformation& findInformation, const int whichItem) { auto autoSelectList = gcnew AutomatedSelectList(findInformation); return autoSelectList->SelectByIndex(whichItem); } __declspec ( dllexport ) int SelectList_SelectValue(const FindInformation& findInformation, char *pValue) { auto autoSelectList = gcnew AutomatedSelectList(findInformation); return autoSelectList->SelectByValue(pValue); } }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rautomation-0.9.0 | ext/UiaDll/UiaDll/SelectListMethods.cpp |