⏩ OldSchoolKO ✅ | " VALHALLA " 2.000.000 TL ÖDÜL ⭐ 3 YIL ARADAN SONRA ✅ v.1098 MYKO EFSANESİ ⚔ OFFICIAL 17.05.2024 - 21:00 ⏪
Cuceko

C# Ebenezer açık ise titlesini almak

  •         

            

            

            

            

  • HyperFilter | DoS Protection | DDoS Protection | DoS Mitigation | DDoS Mitigation | AntiDoS | AntiDDoS | Proxy Shielding
G Çevrimdışı

Galatasaray

Kayıtlı Üye
6 Nisan 2012
152
0
16
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ı
 
bigahega Çevrimdışı

bigahega

Administrator
Yönetici
KoCuce.Com
7 Mart 2012
12,842
384
83
ebenezerdeki textboxa yazı yazdırmakla(komut yollamakla) alakası yok bu kodların 1000 ile 1111 arasındaki sayıları (ebenezer versiyonları, yıl/ay/gün 2004/11/11 olan 20041111 olarak geçer) açık olan programların titlelerinde arattırmış, kısacası ebenezer açıkmı değilmi kontrolü gibi birşey



başlığı düzelttim, paylasım icin teşekkürler.
 
S Çevrimdışı

saintx

Kayıtlı Üye
12 Mart 2012
250
0
18
28
Merhabalar,



Yeni projemde kullandığım metotumu paylaşayım belki işinize yarar :)



Kod:
        public bool checkProcess(string processTitle)

        {

            bool isOpened = false;

            foreach (Process myProcess in Process.GetProcesses())

            {

                if (myProcess.MainWindowTitle.Length > 0)

                {

                    if (myProcess.MainWindowTitle.ToString() == processTitle)

                    {

                        isOpened = true;

                    }

                    else

                    {

                        isOpened = false;

                    }

                }

            }

            if (isOpened == true)

            {

                return true;

            }

            else

            {

                return false;

            }

        }



eğer processTitle bulunursa true, bulunamazsa false döndürür.bunu kontrol deyimlerinde kullanabilirsiniz.



- ~ saintx