COMQueryInterface

DFCOM Subroutine: Passes an interface identifier and returns a pointer to an object's interface.

Modules: USE DFCOM, USE DFWINTY

Syntax

CALL COMQueryInterface (iunknown, iid, interface, status)

iunknown
An IUnknown interface pointer. Must be of type INTEGER(4) on ia32 processors; INTEGER(8) on ia64 processors.


iid
The interface identifier of the interface being requested. Must be of type GUID, which is defined in the DFWINTY module.


interface
An output argument that returns the object's interface pointer. Must be of type INTEGER(4) on ia32 processors; INTEGER(8) on ia64 processors.


status
The status of the operation. It can be any status returned by the IUnknown method QueryInterface. Must be of type INTEGER(4).

See Also:

IUnknown::QueryInterface in the Win32 SDK