|
@@ -1528,21 +1528,17 @@ type
|
|
|
csTransient);
|
|
|
TGetChildProc = procedure (Child: TComponent) of object;
|
|
|
|
|
|
- {
|
|
|
- TComponentName = type string;
|
|
|
-
|
|
|
IVCLComObject = interface
|
|
|
- function GetTypeInfoCount(out Count: Integer): Integer; stdcall;
|
|
|
- function GetTypeInfo(Index, LocaleID: Integer; out TypeInfo): Integer; stdcall;
|
|
|
+ ['{E07892A0-F52F-11CF-BD2F-0020AF0E5B81}']
|
|
|
+ function GetTypeInfoCount(out Count: Integer): HResult; stdcall;
|
|
|
+ function GetTypeInfo(Index, LocaleID: Integer; out TypeInfo): HResult; stdcall;
|
|
|
function GetIDsOfNames(const IID: TGUID; Names: Pointer;
|
|
|
- NameCount, LocaleID: Integer; DispIDs: Pointer): Integer; stdcall;
|
|
|
+ NameCount, LocaleID: Integer; DispIDs: Pointer): HResult; stdcall;
|
|
|
function Invoke(DispID: Integer; const IID: TGUID; LocaleID: Integer;
|
|
|
- Flags: Word; var Params; VarResult, ExcepInfo, ArgErr: Pointer): Integer; stdcall;
|
|
|
- function SafeCallException(ExceptObject: TObject;
|
|
|
- ExceptAddr: Pointer): Integer;
|
|
|
+ Flags: Word; var Params; VarResult, ExcepInfo, ArgErr: Pointer): HResult; stdcall;
|
|
|
+ function SafeCallException(ExceptObject: TObject; ExceptAddr: Pointer): HResult;
|
|
|
procedure FreeOnRelease;
|
|
|
end;
|
|
|
- }
|
|
|
|
|
|
IInterfaceComponentReference = interface
|
|
|
['{3FEEC8E1-E400-4A24-BCAC-1F01476439B1}']
|
|
@@ -1580,7 +1576,7 @@ type
|
|
|
FDesignInfo: Longint;
|
|
|
FVCLComObject: Pointer;
|
|
|
FComponentState: TComponentState;
|
|
|
- // function GetComObject: IUnknown;
|
|
|
+ function GetComObject: IUnknown;
|
|
|
function GetComponent(AIndex: Integer): TComponent;
|
|
|
function GetComponentCount: Integer;
|
|
|
function GetComponentIndex: Integer;
|
|
@@ -1627,12 +1623,12 @@ type
|
|
|
function _Release: Integer; stdcall;
|
|
|
function iicrGetComponent: TComponent;
|
|
|
{ IDispatch }
|
|
|
- //!!!! function GetTypeInfoCount(out Count: Integer): Integer; stdcall;
|
|
|
- //!!!! function GetTypeInfo(Index, LocaleID: Integer; out TypeInfo): Integer; stdcall;
|
|
|
- //!!!! function GetIDsOfNames(const IID: TGUID; Names: Pointer;
|
|
|
- //!!!! NameCount, LocaleID: Integer; DispIDs: Pointer): Integer; stdcall;
|
|
|
- //!!!! function Invoke(DispID: Integer; const IID: TGUID; LocaleID: Integer;
|
|
|
- //!!!! Flags: Word; var Params; VarResult, ExcepInfo, ArgErr: Pointer): Integer; stdcall;
|
|
|
+ function GetTypeInfoCount(out Count: Integer): HResult; stdcall;
|
|
|
+ function GetTypeInfo(Index, LocaleID: Integer; out TypeInfo): HResult; stdcall;
|
|
|
+ function GetIDsOfNames(const IID: TGUID; Names: Pointer;
|
|
|
+ NameCount, LocaleID: Integer; DispIDs: Pointer): HResult; stdcall;
|
|
|
+ function Invoke(DispID: Integer; const IID: TGUID; LocaleID: Integer;
|
|
|
+ Flags: Word; var Params; VarResult, ExcepInfo, ArgErr: Pointer): HResult; stdcall;
|
|
|
public
|
|
|
//!! Moved temporary
|
|
|
// fpdoc doesn't handle this yet :(
|
|
@@ -1660,7 +1656,7 @@ type
|
|
|
ExceptAddr: Pointer): HResult; override;
|
|
|
procedure SetSubComponent(ASubComponent: Boolean);
|
|
|
function UpdateAction(Action: TBasicAction): Boolean; dynamic;
|
|
|
- // property ComObject: IUnknown read GetComObject;
|
|
|
+ property ComObject: IUnknown read GetComObject;
|
|
|
function IsImplementorOf (const Intf:IInterface):boolean;
|
|
|
procedure ReferenceInterface(const intf:IInterface;op:TOperation);
|
|
|
property Components[Index: Integer]: TComponent read GetComponent;
|