May 20th, 2012
Never
Not a member of Pastebin yet?Sign Up, it unlocks many cool features!
- #include <windows.h>
- LRESULT CALLBACK NewWndProc(HWND Hwnd, UINT Message, WPARAM wParam, LPARAM lParam)
- switch(Message)
- case WM_COMMAND:
- {
- case 65: // what happens if the trigger ID is 65?
- MessageBox(HWND_DESKTOP, L'You pressed our new menu button!', L'Yay!', MB_OK); // our button has been pressed!
- }
- return CallWindowProc((WNDPROC)OldWndProc, Hwnd, Message, wParam, lParam);
- {
- HMENU hCurrent = GetMenu(hWnd); //Get the CURRENT menu of the window
- HMENU hPopup1 = CreatePopupMenu();
- // above this line finds the window and checks to see if a current menu exists (hCurrent) creates a new horizontal menu (hNew) and a new vertical menu (HPopup1)
- // the below if statement checks to see if a current menu exists, if no it will be NULL so we create one!
- AppendMenu(hPopup1, MF_STRING | MF_POPUP, (unsigned int)hNew, L'Test');
- AppendMenu(hNew, MF_STRING, 65, L'Button'); //2000 is the ID of the button
- OldWndProc = SetWindowLong(hWnd, GWL_WNDPROC, (long)NewWndProc); //subclass the original window procedure so that we don't break it
- SetMenu (hWnd, LoadMenu (hInstance, MAKEINTRESOURCE (128)));
- MessageBox(HWND_DESKTOP, L'Omg free dll hack!', L'Yay!', MB_OK); // our button has been pressed!
- }
- else // if it is not NULL and a menu exists then lets simply add to it! :D
- AppendMenu(hCurrent, MF_STRING | MF_POPUP, (unsigned int)hPopup1, L'File');
- AppendMenu(hPopup1, MF_STRING | MF_POPUP, (unsigned int)hNew, L'Test');
- AppendMenu(hNew, MF_STRING, 65, L'Button'); //2000 is the ID of the button lets cheat and mimic existing buttons :D
- OldWndProc = SetWindowLong(hWnd, GWL_WNDPROC, (long)NewWndProc); //subclass the original window procedure so that we don't break it
- //So now all messages sent to the notepad window, are sent to OUR window proc..See above!
- // this will allow us to capture all Messages sent to the main window, we can use this with peekmessage to filter out any interesting messages like destroying toolbars and block them
- // we can also potentially find the calls to the LUA interperator and run lua scripts directly through it at max level :D
- }
- BOOL APIENTRY DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
- if(fdwReason DLL_PROCESS_ATTACH){
- CreateThread(0, NULL, (LPTHREAD_START_ROUTINE)&Creation, NULL, NULL, NULL);
- return TRUE;
Roblox Admin Hacks Download Dll 10
RAW Paste Data
Roblox Admin Hacks Download Dll Windows 7
Lumber Tycoon 2 New Hack Glitch 2018 Roblox Working Free lumber tycoon 2 new hack glitch 2018 roblox working free Download Dll Free Download Dll Files Com download.
Comments are closed.