mirror of
https://github.com/Ylianst/MeshAgent
synced 2025-12-22 11:13:21 +00:00
Updated 32 bit windows so SetClassLongPtrA and SetWindowLongPtrA maps to SetClassLongA and SetWindowLongA
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -56,10 +56,22 @@ function WindowsMessagePump(options)
|
|||||||
this._user32.CreateMethod('RegisterClassExW');
|
this._user32.CreateMethod('RegisterClassExW');
|
||||||
this._user32.CreateMethod('ReleaseCapture');
|
this._user32.CreateMethod('ReleaseCapture');
|
||||||
this._user32.CreateMethod('SendMessageW');
|
this._user32.CreateMethod('SendMessageW');
|
||||||
|
|
||||||
this._user32.CreateMethod('SetClassLongA');
|
this._user32.CreateMethod('SetClassLongA');
|
||||||
this._user32.CreateMethod('SetClassLongPtrA');
|
this._user32.CreateMethod('SetWindowLongA');
|
||||||
|
|
||||||
|
if (GM.PointerSize == 4)
|
||||||
|
{
|
||||||
|
this._user32.CreateMethod({ method: 'SetClassLongA', newName: 'SetClassLongPtrA' });
|
||||||
|
this._user32.CreateMethod({ method: 'SetWindowLongA', newName: 'SetWindowLongPtrA' });
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
this._user32.CreateMethod('SetClassLongPtrA');
|
||||||
|
this._user32.CreateMethod('SetWindowLongPtrA');
|
||||||
|
}
|
||||||
|
|
||||||
this._user32.CreateMethod('SetCursor');
|
this._user32.CreateMethod('SetCursor');
|
||||||
this._user32.CreateMethod('SetWindowLongPtrA');
|
|
||||||
this._user32.CreateMethod('SetWindowPos');
|
this._user32.CreateMethod('SetWindowPos');
|
||||||
this._user32.CreateMethod('SetWindowTextW');
|
this._user32.CreateMethod('SetWindowTextW');
|
||||||
this._user32.CreateMethod('ShowWindow');
|
this._user32.CreateMethod('ShowWindow');
|
||||||
|
|||||||
Reference in New Issue
Block a user