Galatasaray
Kayıtlı Üye
- Katılım
- 6 Nisan 2012
- Mesajlar
- 152
Kod:
[DllImport("user32.dll")]
private static extern IntPtr GetDlgItem(IntPtr hDlg, int nIDDlgItem);
[DllImport("user32.dll", SetLastError = true)]
private static extern IntPtr FindWindow(string lpClassName, string lpWindowName);
public static void EbenezerFindTitle()
{
Process[] processlist = Process.GetProcesses();
foreach (Process theprocess in processlist)
{
int Text = 0;
Int32[] Faruk = { 0x3F7, 0x3F6, 0x3F5, 0x3F4, 0x3F3, 0x3F2, 0x3F1, 0x3EF, 0x3EA, 0x3E8 };
for (int i = 0; i < Faruk.LongLength; i++)
{
IntPtr Find = GetDlgItem(FindWindow(null, theprocess.MainWindowTitle), Faruk[i]);
if (Find != IntPtr.Zero) { Text += 1; }
if (Text == 10) { EbenezerTitle = theprocess.MainWindowTitle; }
}
}
}
EveryBodyFooL'dan alıntı