Posts
 
Reputation
Joined
Last Seen
0 Reputation Points
Unknown Quality Score

No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.

0 Endorsements
~556 People Reached
Favorite Forums
Favorite Tags
c++ x 6
Member Avatar for R3AL

my code: [CODE] ... DWORD WINAPI myGWTHPID(HWND hWnd, LPDWORD lpdwProcessId){ __asm { MOV EDI,EDI PUSH EBP MOV EBP,ESP JMP [DLLFunc] } } int main(){ hInst = LoadLibraryA("user32.dll"); DLLFunc = (DWORD)GetProcAddress(hInst, "GetWindowThreadProcessId" + 5); HWND hwn= FindWindowA(NULL,"Untitled - Notepad"); cout<<"Window handle: "<<hwn<<"\n"; DWORD pID; myGWTHPID(hwn,&pID); cout<<"Process id: "<<pID; getch(); return 0; …

Member Avatar for R3AL
0
142
Member Avatar for R3AL

I have the following code: [CODE]HWND hwn= FindWindow(NULL,"CABAL"); HDC hdc = GetDC(hwn); COLORREF x; POINT m; m.x=50; m.y=50; ScreenToClient(hwn,&m); x=gp(hdc,m.x,m.y); if(x==CLR_INVALID) cout<<"CLR_INVALID\n"; cout<<"Red: "<<(int)GetRValue(x)<<"\n"<<"Green: "<<(int)GetGValue(x)<<"\n"<<"Blue: "<<(int)GetBValue(x)<<"\n"; [/CODE] The problem is gp( GetPixel ) always returns CLR_INVALID and white (255,255,255). Also, I find it strange that SetPixel works with any coordonates. …

Member Avatar for R3AL
0
171
Member Avatar for R3AL

I have the following 2 files: RPM.dll [CODE=C]#include "stdafx.h" #include <windows.h> #include <iostream> #include <stdio.h> char name[70]; HINSTANCE hInst; DWORD DLLFunc,DLLFunc2; HWND hWnd; extern "C" __declspec(dllexport) void myRPM(HANDLE hProcess,LPCVOID lpBaseAddress,LPVOID lpBuffer,SIZE_T nSize,SIZE_T *lpNumberOfBytesRead) { __asm { mov edi, edi push ebp mov ebp, esp jmp [DLLFunc] } } extern "C" …

Member Avatar for raptr_dflo
0
243