sonic-spoofer-project/sonic.button.cpp
The Ghost of FOSS' Future a881f7aef9
Update sonic.button.cpp
2024-09-14 12:29:05 -05:00

11 lines
320 B
C++

#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
int main() {
SendMessage ( (HWND) 0x1000b02c8, 0x8004, 2, 0);
return 0;
}