sonic-spoofer-project/sonic.button.cpp

19 lines
529 B
C++
Raw Normal View History

2024-09-14 17:25:43 +00:00
#include <windows.h>
// hwnd = window handle of button provider. can be found at ButtonStatus.dll! 0x1070
// msg = 0x8004 is WM_REDBUTTON
2024-09-14 17:29:05 +00:00
// waram = 0 = OnRedButtonReleased, 1 = OnRedButtonPressed, 2 = Detected?, 3 = Removed?
2024-09-14 17:25:43 +00:00
// Param = unused
2024-09-14 17:29:05 +00:00
2024-09-14 17:32:03 +00:00
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;
2024-09-14 17:29:05 +00:00
}