Getting HWND by ProcessID

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Donator
Katılım
27 Tem 2021
Mesajlar
58
Çözümler
1
Tepki puanı
80
Ödüller
6
Yaş
27
4 HİZMET YILI
Example Code :
C++:
HWND hwnd;
DWORD processID;
BOOL CALLBACK EnumWindowsProcMy(HWND inputhwnd, LPARAM lParam)
{
    DWORD lpdwProcessId;
    GetWindowThreadProcessId(inputhwnd, &lpdwProcessId);
    if (lpdwProcessId == lParam)
    {
        hwnd = inputhwnd;
        return FALSE;
    }
    return TRUE;
}
int main()
{
    processID = GetProcessIdByName("ModernWarfare.exe");
   
    EnumWindows(EnumWindowsProcMy, processID);
    printf("hwnd : %p\n", hwnd);
    return 0;
}
If you need any help dm me on Discord : KennyxD#0001
 
Onaylı Üye
Katılım
16 Şub 2020
Mesajlar
85
Çözümler
1
Tepki puanı
6
Ödüller
3
Yaş
27
6 HİZMET YILI
Damn thats really cool, Thanks for the share dude
 
a simple Russian man who helps people
Uzman Üye
Katılım
16 Ağu 2020
Mesajlar
195
Çözümler
2
Tepki puanı
8
Ödüller
5
Yaş
26
5 HİZMET YILI
and this is a spoofer, the code is very similar to it
 
Onaylı Üye
Katılım
5 Kas 2021
Mesajlar
70
Çözümler
1
Tepki puanı
4
Ödüller
1
Yaş
27
4 HİZMET YILI
What a clearly code!:winkwink:
 
Onaylı Üye
Katılım
7 Kas 2020
Mesajlar
75
Tepki puanı
3
Ödüller
3
Yaş
25
5 HİZMET YILI
What is a game process id bro , can u elaborate.
i think he meant handle id,
handle id's are used to target a certain window of a process, that means, from the hwnd, you get all the info that is displayed in the window.
it's used for injecting dlls, etc
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Üst