|
![]() |
#1 |
MCTS
|
X++: DLL _winApiDLL = new DLL('USER32'); DLLFunction GetWindowPlacement = new DLLFunction(_winApiDLL, 'GetWindowPlacement'); Binary wps; int ret; ; super(); GetWindowPlacement.returns(ExtTypes::DWord); GetWindowPlacement.arg( ExtTypes::DWord, ExtTypes::Pointer); wps = new Binary(44); wps.dword(0, 44); wps.dword(4); wps.dword(8); wps.double(12); wps.double(20); wps.double(28); wps.double(36); GetWindowPlacement.call(element.hWnd(), wps); ret = wps.dWord(8); if (ret == 3) info('max'); if (ret == 1) info('normal'); |
|