Skip to content
Olivier Chafik edited this page Nov 8, 2022 · 3 revisions

COM support in BridJ

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

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.

Clone this wiki locally