Koxp, Koxp Türkiye, Koxp 1868, 1869 Koxp  

Geri git   Koxp, Koxp Türkiye, Koxp 1868, 1869 Koxp > Programlama > C Programlama

C Programlama C programlama dilleri hakkında herşey

Hoş geldiniz..
www.HilePort.Com



Yeni sitemize sizleride bekleriz.

Cevapla
 
LinkBack Konu Araçları Stil
Alt 05-05-2011, 03:41   #1 (permalink)
Banned
 
Forum
Üye No: 40533
Üyelik tarihi: Nov 2010
Mesajlar: 110
Teşekkürler
+ Puan Verdi: 13
+ Puan Aldı: 38
Rep Bilgileri
Rep Gücü: 100
Rep Derecesi:
SacreDPamiR will become famous soon enoughSacreDPamiR will become famous soon enough
Standart KO Attach C#

Kullanıcağımız Sistemleri Tanımlıyalım

Kod:
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Windows.Forms;
using System.Diagnostics;
using System.Runtime.InteropServices;
Gerekli Apileri Tanımlıyalım

Kod:
public const Int32 PROCESS_ALL_ACCESS = 0x1F0FFF;

#region DasKaos WinAPI declaration

[DllImport("USER32.DLL")]
public static extern IntPtr FindWindow(
string lpClassName,
string lpWindowName);

[DllImport("user32.dll", SetLastError = true)]
static extern uint GetWindowThreadProcessId(
IntPtr hWnd,
out uint lpdwProcessId
);

[DllImport("kernel32.dll")]
public static extern IntPtr OpenProcess(
UInt32 dwDesiredAccess,
Int32 bInheritHandle,
UInt32 dwProcessId
);

[DllImport("kernel32.dll", SetLastError = true)]
public static extern bool ReadProcessMemory(
IntPtr hProcess,
IntPtr lpBaseAddress,
out float buffer,
UInt32 size,
IntPtr lpNumberOfBytesRead
);


[DllImport("kernel32.dll", SetLastError = true)]
public static extern bool ReadProcessMemory(
IntPtr hProcess,
IntPtr lpBaseAddress,
out UInt32 buffer,
UInt32 size,
IntPtr lpNumberOfBytesRead
);

#endregion


// FindProcess ..
IntPtr getProcess()
{
UInt32 proc_id;
IntPtr process;
IntPtr hWnd = FindWindow(null, "Knight Online Client");
GetWindowThreadProcessId(hWnd, out proc_id);
return OpenProcess(0x1F0FFF, 1, proc_id);
}Kod:

//DasKaos ! - ReadMemory(4byte) in ProcessHandle
UInt32 readUInt32(UInt32 address)
{
UInt32 ret;
try
{
ReadProcessMemory(process, (IntPtr)address, out ret, (UInt32)4, new IntPtr());
}
catch (Exception) { ret = 0; }
return ret;
}
EX:
pencere isminden hwnd alalım hwndyide pide dönüştürelim
o pidide proccess_all_access bağdaştırıcısı ile bağdaştıralım

Kod:
IntPtr hwnd = FindWindow(null,"Knight Online Client"); // varsayılan pencere ismi
int KO_PID = GetWindowThreadProcessId(hwnd,ref 0);
IntPtr KO_HANDLE = OpenProcess(PROCESS_ALL_ACCESS, false, KO_PID);
İyi Çalışmalar
SacreDPamiR isimli Üye şimdilik offline konumundadır   Alıntı ile Cevapla
1 + Puan Aldı
thefailed (05-12-2011)
Alt 05-12-2011, 16:02   #2 (permalink)
Usta Oyuncu
 
Forum
Üye No: 41279
Üyelik tarihi: Dec 2010
Mesajlar: 21
Teşekkürler
+ Puan Verdi: 12
+ Puan Aldı: 0
Rep Bilgileri
Rep Gücü: 100
Rep Derecesi:
thefailed will become famous soon enoughthefailed will become famous soon enough
Standart

eline sağlık.
thefailed isimli Üye şimdilik offline konumundadır   Alıntı ile Cevapla
Cevapla

Etiket
attach, sacredpamir


Konuyu Toplam 1 Üye okuyor. (0 Kayıtlı üye ve 1 Misafir)
 
Konu Araçları
Stil

Yetkileriniz
Yeni Mesaj yazma yetkiniz Aktif değil dir.
Mesajlara Cevap verme yetkiniz aktif değil dir.
Eklenti ekleme yetkiniz Aktif değil dir.
Kendi Mesajınızı değiştirme yetkiniz Aktif değildir dir.

BB code is Açık
Smileler Açık
[IMG] Kodları Açık
HTML-KodlarıKapalı
Trackbacks are Açık
Pingbacks are Açık
Refbacks are Açık

Sponsor : balon patlatma puanlı giysi giydirme oyunları süper oyunlar kral oyun mario oyunları

Bütün Zaman Ayarları WEZ +2 olarak düzenlenmiştir. Şu Anki Saat: 09:21 .

Powered by vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
# CaN.