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

18 lines
529 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
extern "C" __declspec(dllexport) void HelloWorld()
{
MessageBox(NULL, "Red Button Pressed!", "DLL Message", MB_OK);
SendMessage ( (HWND) 0x1000b02c8, 0x8004, 2, 0);
}
BOOL APIENTRY DllMain(HMODULE hModule, DWORD ul_reason_for_call, LPVOID lpReserved)
{
return TRUE;
}