Export to GitHub

bridj - COM.wiki


Introduction

COM defines interfaces and registers implementations of these interfaceS.

Interfaces are identified by their IID, and implementations are registered in the COM runtime using their CLSID.

In most cases with BridJ you don't need to know more about COM internals.

Example

``` @IID("56FDF342-FD6D-11D0-958A-006097C9A090") public class ITaskbarList extends IUnknown {

    @Virtual(0) public native void HrInit();
    @Virtual(1) public native void AddTab(Pointer<Integer> hWnd);
    @Virtual(2) public native void DeleteTab(Pointer<Integer> hWnd);
    @Virtual(3) public native void ActivateTab(Pointer<Integer> hWnd);
    @Virtual(4) public native void SetActiveAlt(Pointer<Integer> hWnd);

} ```

ITaskbarList3 interface

See a complete example here.