Create sonic.button.cpp

This commit is contained in:
The Ghost of FOSS' Future 2024-09-14 12:25:43 -05:00 committed by GitHub
commit 1714792aac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

8
sonic.button.cpp Normal file
View file

@ -0,0 +1,8 @@
#include <windows.h>
// hwnd = window handle of button provider. can be found at ButtonStatus.dll! 0x1070
// msg = 0x8004 is WM_REDBUTTON
// waram = 0 = OnRedButtonReleased, 1 = OnRedButtonPressed, 2 = Detected?, 3 =
Removed?
// Param = unused
SendMessage ( (HWND) 0x1000b02c8, 0x8004, 2, 0);