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

publicclassITaskbarListextendsIUnknown {
@Virtual(0) publicnativevoidHrInit();
@Virtual(1) publicnativevoidAddTab(Pointer<Integer> hWnd);
@Virtual(2) publicnativevoidDeleteTab(Pointer<Integer> hWnd);
@Virtual(3) publicnativevoidActivateTab(Pointer<Integer> hWnd);
@Virtual(4) publicnativevoidSetActiveAlt(Pointer<Integer> hWnd);
}

ITaskbarList3 interface

See a complete example here.

Clone this wiki locally