@ahmic/autoit-js
Version:
Node.js bindings for AutoItX3.dll
42 lines (39 loc) • 968 B
JavaScript
import koffi from 'koffi';
import { RECT } from './rect.js';
import { LPVOID, LPARAM, LPWSTR, HINSTANCE, UINT_PTR, HWND, UINT } from './win32.js';
class ToolInfoW {
cbSize;
uFlags;
hwnd;
uId;
rect;
hinst;
lpszText;
lParam;
lpReserved;
constructor(options) {
this.cbSize = 40;
this.uFlags = options?.uFlags;
this.hwnd = options?.hwnd;
this.uId = options?.uId;
this.rect = options?.rect;
this.hinst = options?.hinst;
this.lpszText = options?.lpszText ?? '';
this.lParam = options?.lParam;
this.lpReserved = null;
}
}
const TOOLINFOW = koffi.pack('TOOLINFOW', {
cbSize: UINT,
uFlags: UINT,
hwnd: HWND,
uId: UINT_PTR,
rect: RECT,
hinst: HINSTANCE,
lpszText: LPWSTR,
lParam: LPARAM,
lpReserved: LPVOID,
});
koffi.pointer('LPTOOLINFOW', TOOLINFOW);
export { TOOLINFOW, ToolInfoW };
//# sourceMappingURL=tool-info.js.map