Closed rortan134 closed 2 years ago
I managed to do it extending the user32 using ffi with this code and some structs, an implementation using this lib would be nicer though
const winuser32 = ffi.Library('user32.dll', {
MonitorFromWindow: [HWND, [HANDLE, DWORD]],
GetMonitorInfoA: ['bool', [HANDLE, ref.refType(MONITORINFO)]],
});
will add it later
MonitorFromWindow() added
More specifically, i'm interested in using this, is it possible?