Sha256: 46777ba818547fb3462bbcaf4d1e55b38bee6fc301e2f3e2e07f288aaf85621e

Contents?: true

Size: 845 Bytes

Versions: 25

Compression:

Stored size: 845 Bytes

Contents

// IAccessibleDLL.cpp : Defines the exported functions for the DLL application.
//

#include "stdafx.h"

extern "C"
__declspec( dllexport ) long get_button_state(HWND buttonHwnd) {
	IAccessible		*pIAccessible ;
	VARIANT			varState;
	VARIANT			varChildId;
	BOOL			checked = FALSE ;
	HRESULT hr ;
	HMODULE hModule ;
	LPFNACCESSIBLEOBJECTFROMWINDOW lpfnAccessibleObjectFromWindow ;

	hModule = LoadLibraryA("oleacc.dll");
	lpfnAccessibleObjectFromWindow = (LPFNACCESSIBLEOBJECTFROMWINDOW)GetProcAddress(hModule, "AccessibleObjectFromWindow");

	hr = lpfnAccessibleObjectFromWindow(buttonHwnd, OBJID_CLIENT, IID_IAccessible, (void**)&pIAccessible) ;

	VariantInit(&varChildId);
	varChildId.vt = VT_I4;
	varChildId.lVal = CHILDID_SELF ;

	pIAccessible->get_accState(varChildId, &varState);
	
	return varState.lVal ;
}


Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
rautomation-1.1.0 ext/IAccessibleDLL/IAccessibleDLL/IAccessibleDLL.cpp
rautomation-1.0.0 ext/IAccessibleDLL/IAccessibleDLL/IAccessibleDLL.cpp
rautomation-0.17.0 ext/IAccessibleDLL/IAccessibleDLL/IAccessibleDLL.cpp
rautomation-0.16.0 ext/IAccessibleDLL/IAccessibleDLL/IAccessibleDLL.cpp
rautomation-0.15.0 ext/IAccessibleDLL/IAccessibleDLL/IAccessibleDLL.cpp
rautomation-0.14.1 ext/IAccessibleDLL/IAccessibleDLL/IAccessibleDLL.cpp
rautomation-0.14.0 ext/IAccessibleDLL/IAccessibleDLL/IAccessibleDLL.cpp
rautomation-0.13.0 ext/IAccessibleDLL/IAccessibleDLL/IAccessibleDLL.cpp
rautomation-0.12.0 ext/IAccessibleDLL/IAccessibleDLL/IAccessibleDLL.cpp
rautomation-0.11.0 ext/IAccessibleDLL/IAccessibleDLL/IAccessibleDLL.cpp
rautomation-0.10.0 ext/IAccessibleDLL/IAccessibleDLL/IAccessibleDLL.cpp
rautomation-0.9.4 ext/IAccessibleDLL/IAccessibleDLL/IAccessibleDLL.cpp
rautomation-0.9.3 ext/IAccessibleDLL/IAccessibleDLL/IAccessibleDLL.cpp
rautomation-0.9.2 ext/IAccessibleDLL/IAccessibleDLL/IAccessibleDLL.cpp
rautomation-0.9.1 ext/IAccessibleDLL/IAccessibleDLL/IAccessibleDLL.cpp
rautomation-0.9.0 ext/IAccessibleDLL/IAccessibleDLL/IAccessibleDLL.cpp
rautomation-0.8.0 ext/IAccessibleDLL/IAccessibleDLL/IAccessibleDLL.cpp
rautomation-0.7.3 ext/IAccessibleDLL/IAccessibleDLL/IAccessibleDLL.cpp
rautomation-0.7.2 ext/IAccessibleDLL/IAccessibleDLL/IAccessibleDLL.cpp
rautomation-0.7.1 ext/IAccessibleDLL/IAccessibleDLL/IAccessibleDLL.cpp