Summary Table

Categories Total Count
PII 0
URL 0
DNS 0
EKL 0
IP 0
PORT 0
VsID 0
CF 0
AI 0
VPD 0
PL 0
Other 0

File Content

unit oleacc2;
(******************************************************************************
* WARNING *
* ------- *
* The types declared in this file were generated from data read from a *
* Type Library. Then the file was manually cleaned up. Do not regenerate *
* this file! *
* *
******************************************************************************)
{$TYPEDADDRESS OFF} // Unit must be compiled without type-checked pointers.
{$WARN SYMBOL_PLATFORM OFF}
{$WRITEABLECONST ON}
{$VARPROPSETTER ON}

// ************************************************************************ //
// PASTLWTR : 1.2
// File generated on 05/31/2006 09:18:28 AM from Type Library described below.

// ************************************************************************ //
// Type Lib: C:\WINDOWS\system32\oleacc.dll (1)
// LIBID: {1EA4DBF0-3C3B-11CF-810C-00AA00389B71}
// LCID: 0
// Helpfile:
// HelpString:
// DepndLst:
// (1) v2.0 stdole, (C:\WINDOWS\system32\stdole2.tlb)
// ************************************************************************ //
interface

uses
Windows, ActiveX, Classes, Graphics, OleServer, StdVCL, Variants;

// *********************************************************************//
// GUIDS declared in the TypeLibrary. Following prefixes are used:
// Type Libraries : LIBID_xxxx
// CoClasses : CLASS_xxxx
// DISPInterfaces : DIID_xxxx
// Non-DISP interfaces: IID_xxxx
// *********************************************************************//
const
// TypeLibrary Major and minor versions
AccessibilityMajorVersion = 1;
AccessibilityMinorVersion = 1;

LIBID_Accessibility: TGUID = '{1EA4DBF0-3C3B-11CF-810C-00AA00389B71}';

IID_IAccessible: TGUID = '{618736E0-3C3D-11CF-810C-00AA00389B71}';
IID_IAccessibleHandler: TGUID = '{03022430-ABC4-11D0-BDE2-00AA001A1953}';
IID_IAccIdentity: TGUID = '{7852B78D-1CFD-41C1-A615-9C0C85960B5F}';
IID_IAccPropServer: TGUID = '{76C0DBBB-15E0-4E7B-B61B-20EEEA2001E0}';
IID_IAccPropServices: TGUID = '{6E26E776-04F0-495D-80E4-3330352E3169}';
CLASS_CAccPropServices: TGUID = '{B5F8350B-0548-48B1-A6EE-88BD00B4A5E7}';

// *********************************************************************//
// Declaration of Enumerations defined in Type Library
// *********************************************************************//
// Constants for enum AnnoScope
type
AnnoScope = TOleEnum;
MSAAPROPID = TGUID;
PMSAAPROPID = ^TGUID;

const
ANNO_THIS = $00000000;
ANNO_CONTAINER = $00000001;

type

// *********************************************************************//
// Forward declaration of types defined in TypeLibrary
// *********************************************************************//
IAccessible = interface;
IAccessibleDisp = dispinterface;
IAccessibleHandler = interface;
IAccIdentity = interface;
IAccPropServer = interface;
IAccPropServices = interface;

// *********************************************************************//
// Declaration of CoClasses defined in Type Library
// (NOTE: Here we map each CoClass to its Default Interface)
// *********************************************************************//
CAccPropServices = IAccPropServices;

// *********************************************************************//
// Interface: IAccessible
// Flags: (4432) Hidden Dual OleAutomation Dispatchable
// GUID: {618736E0-3C3D-11CF-810C-00AA00389B71}
// *********************************************************************//
IAccessible = interface(IDispatch)
['{618736E0-3C3D-11CF-810C-00AA00389B71}']
function Get_accParent: IDispatch; safecall;
function Get_accChildCount: Integer; safecall;
function Get_accChild(varChild: OleVariant): IDispatch; safecall;
function Get_accName(varChild: OleVariant): WideString; safecall;
function Get_accValue(varChild: OleVariant): WideString; safecall;
function Get_accDescription(varChild: OleVariant): WideString; safecall;
function Get_accRole(varChild: OleVariant): OleVariant; safecall;
function Get_accState(varChild: OleVariant): OleVariant; safecall;
function Get_accHelp(varChild: OleVariant): WideString; safecall;
function Get_accHelpTopic(out pszHelpFile: WideString; varChild: OleVariant): Integer; safecall;
function Get_accKeyboardShortcut(varChild: OleVariant): WideString; safecall;
function Get_accFocus: OleVariant; safecall;
function Get_accSelection: OleVariant; safecall;
function Get_accDefaultAction(varChild: OleVariant): WideString; safecall;
procedure accSelect(flagsSelect: Integer; varChild: OleVariant); safecall;
procedure accLocation(out pxLeft: Integer; out pyTop: Integer; out pcxWidth: Integer;
out pcyHeight: Integer; varChild: OleVariant); safecall;
function accNavigate(navDir: Integer; varStart: OleVariant): OleVariant; safecall;
function accHitTest(xLeft: Integer; yTop: Integer): OleVariant; safecall;
procedure accDoDefaultAction(varChild: OleVariant); safecall;
procedure Set_accName(varChild: OleVariant; const pszName: WideString); safecall;
procedure Set_accValue(varChild: OleVariant; const pszValue: WideString); safecall;
property accParent: IDispatch read Get_accParent;
property accChildCount: Integer read Get_accChildCount;
property accChild[varChild: OleVariant]: IDispatch read Get_accChild;
property accName[varChild: OleVariant]: WideString read Get_accName write Set_accName;
property accValue[varChild: OleVariant]: WideString read Get_accValue write Set_accValue;
property accDescription[varChild: OleVariant]: WideString read Get_accDescription;
property accRole[varChild: OleVariant]: OleVariant read Get_accRole;
property accState[varChild: OleVariant]: OleVariant read Get_accState;
property accHelp[varChild: OleVariant]: WideString read Get_accHelp;
property accHelpTopic[out pszHelpFile: WideString; varChild: OleVariant]: Integer read Get_accHelpTopic;
property accKeyboardShortcut[varChild: OleVariant]: WideString read Get_accKeyboardShortcut;
property accFocus: OleVariant read Get_accFocus;
property accSelection: OleVariant read Get_accSelection;
property accDefaultAction[varChild: OleVariant]: WideString read Get_accDefaultAction;
end;

// *********************************************************************//
// DispIntf: IAccessibleDisp
// Flags: (4432) Hidden Dual OleAutomation Dispatchable
// GUID: {618736E0-3C3D-11CF-810C-00AA00389B71}
// *********************************************************************//
IAccessibleDisp = dispinterface
['{618736E0-3C3D-11CF-810C-00AA00389B71}']
property accParent: IDispatch readonly dispid -5000;
property accChildCount: Integer readonly dispid -5001;
property accChild[varChild: OleVariant]: IDispatch readonly dispid -5002;
property accName[varChild: OleVariant]: WideString dispid -5003;
property accValue[varChild: OleVariant]: WideString dispid -5004;
property accDescription[varChild: OleVariant]: WideString readonly dispid -5005;
property accRole[varChild: OleVariant]: OleVariant readonly dispid -5006;
property accState[varChild: OleVariant]: OleVariant readonly dispid -5007;
property accHelp[varChild: OleVariant]: WideString readonly dispid -5008;
property accHelpTopic[out pszHelpFile: WideString; varChild: OleVariant]: Integer readonly dispid -5009;
property accKeyboardShortcut[varChild: OleVariant]: WideString readonly dispid -5010;
property accFocus: OleVariant readonly dispid -5011;
property accSelection: OleVariant readonly dispid -5012;
property accDefaultAction[varChild: OleVariant]: WideString readonly dispid -5013;
procedure accSelect(flagsSelect: Integer; varChild: OleVariant); dispid -5014;
procedure accLocation(out pxLeft: Integer; out pyTop: Integer; out pcxWidth: Integer;
out pcyHeight: Integer; varChild: OleVariant); dispid -5015;
function accNavigate(navDir: Integer; varStart: OleVariant): OleVariant; dispid -5016;
function accHitTest(xLeft: Integer; yTop: Integer): OleVariant; dispid -5017;
procedure accDoDefaultAction(varChild: OleVariant); dispid -5018;
end;

// *********************************************************************//
// Interface: IAccessibleHandler
// Flags: (272) Hidden OleAutomation
// GUID: {03022430-ABC4-11D0-BDE2-00AA001A1953}
// *********************************************************************//
IAccessibleHandler = interface(IUnknown)
['{03022430-ABC4-11D0-BDE2-00AA001A1953}']
function AccessibleObjectFromID(hwnd: Integer; lObjectID: Integer;
out pIAccessible: IAccessible): HResult; stdcall;
end;

// *********************************************************************//
// Interface: IAccIdentity
// Flags: (0)
// GUID: {7852B78D-1CFD-41C1-A615-9C0C85960B5F}
// *********************************************************************//
IAccIdentity = interface(IUnknown)
['{7852B78D-1CFD-41C1-A615-9C0C85960B5F}']
function GetIdentityString(dwIDChild: LongWord; out ppIDString: PByte;
out pdwIDStringLen: LongWord): HResult; stdcall;
end;

// *********************************************************************//
// Interface: IAccPropServer
// Flags: (0)
// GUID: {76C0DBBB-15E0-4E7B-B61B-20EEEA2001E0}
// *********************************************************************//
IAccPropServer = interface(IUnknown)
['{76C0DBBB-15E0-4E7B-B61B-20EEEA2001E0}']
function GetPropValue(const pIDString: PByte; dwIDStringLen: LongWord; idProp: MSAAPROPID;
out pvarValue: OleVariant; out pfHasProp: Integer): HResult; stdcall;
end;

// *********************************************************************//
// Interface: IAccPropServices
// Flags: (0)
// GUID: {6E26E776-04F0-495D-80E4-3330352E3169}
// *********************************************************************//
IAccPropServices = interface(IUnknown)
['{6E26E776-04F0-495D-80E4-3330352E3169}']
function SetPropValue(const pIDString: PByte; dwIDStringLen: LongWord; idProp: MSAAPROPID;
varValue: OleVariant): HResult; stdcall;
function SetPropServer(const pIDString: PByte; dwIDStringLen: LongWord; paProps: PMSAAPROPID;
cProps: SYSINT; const pServer: IAccPropServer; AnnoScope: AnnoScope): HResult; stdcall;
function ClearProps(const pIDString: PByte; dwIDStringLen: LongWord; paProps: PMSAAPROPID;
cProps: SYSINT): HResult; stdcall;
function SetHwndProp(hwnd: HWND; idObject: LongWord; idChild: LongWord;
idProp: MSAAPROPID; varValue: OleVariant): HResult; stdcall;
function SetHwndPropStr(hwnd: HWND; idObject: LongWord; idChild: LongWord;
idProp: MSAAPROPID; str: PWideChar): HResult; stdcall;
function SetHwndPropServer(hwnd: HWND; idObject: LongWord; idChild: LongWord;
paProps: PMSAAPROPID; cProps: SYSINT; const pServer: IAccPropServer;
AnnoScope: AnnoScope): HResult; stdcall;
function ClearHwndProps(hwnd: HWND; idObject: LongWord; idChild: LongWord;
paProps: PMSAAPROPID; cProps: SYSINT): HResult; stdcall;
function ComposeHwndIdentityString(hwnd: HWND; idObject: LongWord; idChild: LongWord;
out ppIDString: PByte; out pdwIDStringLen: LongWord): HResult; stdcall;
function DecomposeHwndIdentityString(const pIDString: PByte; dwIDStringLen: LongWord;
out phwnd: HWND; out pidObject: LongWord; out pidChild: LongWord): HResult; stdcall;
function SetHmenuProp(hmenu: HMENU; idChild: LongWord; idProp: MSAAPROPID;
varValue: OleVariant): HResult; stdcall;
function SetHmenuPropStr(hmenu: HMENU; idChild: LongWord; idProp: MSAAPROPID;
str: PWideChar): HResult; stdcall;
function SetHmenuPropServer(hmenu: HMENU; idChild: LongWord; paProps: PMSAAPROPID;
cProps: SYSINT; const pServer: IAccPropServer; AnnoScope: AnnoScope): HResult; stdcall;
function ClearHmenuProps(hmenu: HMENU; idChild: LongWord; paProps: PMSAAPROPID;
cProps: SYSINT): HResult; stdcall;
function ComposeHmenuIdentityString(hmenu: HMENU; idChild: LongWord;
out ppIDString: PByte; out pdwIDStringLen: LongWord): HResult; stdcall;
function DecomposeHmenuIdentityString(const pIDString: PByte; dwIDStringLen: LongWord;
out phmenu: HMENU; out pidChild: LongWord): HResult; stdcall;
end;

// *********************************************************************//
// The Class CoCAccPropServices provides a Create and CreateRemote method to
// create instances of the default interface IAccPropServices exposed by
// the CoClass CAccPropServices. The functions are intended to be used by
// clients wishing to automate the CoClass objects exposed by the
// server of this typelibrary.
// *********************************************************************//
CoCAccPropServices = class
class function Create: IAccPropServices;
class function CreateRemote(const MachineName: string): IAccPropServices;
end;

// *********************************************************************//
// Function definitions
// *********************************************************************//

function AccessibleObjectFromWindow(hwnd: HWND; dwObjectID: DWORD;
const riid: TGUID; out ppvObject: IAccessible): HResult; stdcall;
external 'OLEACC.DLL' name 'AccessibleObjectFromWindow';

function AccessibleObjectFromPoint(pt: tagPOINT; out ppvObject: IAccessible;
out v1: Variant): HResult; stdcall;
external 'OLEACC.DLL' name 'AccessibleObjectFromPoint';

implementation

uses ComObj;

class function CoCAccPropServices.Create: IAccPropServices;
begin
Result := CreateComObject(CLASS_CAccPropServices) as IAccPropServices;
end;

class function CoCAccPropServices.CreateRemote(const MachineName: string): IAccPropServices;
begin
Result := CreateRemoteComObject(MachineName, CLASS_CAccPropServices) as IAccPropServices;
end;

end.