Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 20:36

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Hwnd check fail :o?

Discussion on Hwnd check fail :o? within the C/C++ forum part of the Coders Den category.

Reply
 
Old   #1
 
Terrat's Avatar
 
elite*gold: 130
Join Date: Apr 2012
Posts: 1,173
Received Thanks: 670
Question Hwnd check fail :o?

Warum funktioniert dei Abfrage nicht ob das Fenster exestiert ?
Code:
wstring LPCWSTR_Windowname;
	HWND	HWND_Windowhwnd;
	bool	HWND_GetSucces=true;

	
	while(HWND_GetSucces)
	{
		cout << "Type in Window Name:";
		wcin >> LPCWSTR_Windowname;
		HWND_Windowhwnd = FindWindow(NULL,LPCWSTR_Windowname.c_str());
		HWND_Windowhwnd = GetWindow(HWND_Windowhwnd, GW_CHILD);

		if (HWND_Windowhwnd != INVALID_HANDLE_VALUE)
		{
			HWND_GetSucces=false;
		}
		else
		{
			wcout << "Error:Window '"<< LPCWSTR_Windowname <<"'could not found!" << endl;
			Sleep(500);
		}
	}
Terrat is offline  
Old 08/05/2014, 17:33   #2


 
elite*gold: 1091
Join Date: Jun 2007
Posts: 19,836
Received Thanks: 7,180
Code:
#define INVALID_HANDLE_VALUE ((HANDLE)(LONG_PTR)-1)
ist 0xffffffff void * auf meiner Plattform.

Quote:
Originally Posted by FindWindow aus MSDN
If the function fails, the return value is NULL. To get extended error information, call GetLastError.
Check einfach ob HWND_Windowhwnd NULL ist.
Mostey is offline  
Thanks
1 User
Reply


Similar Threads Similar Threads
Swash crit fail ! :P check
09/16/2012 - Archlord - 3 Replies
Enjoy Xfire Video - el inmortal que dijo que nunca moria uno a uno que jamas muere 1 vs 1 Xfire Video - Vath Narnia vs Blackfail Round 2 Swash vs berseker?
My First Fail , CHeck it out!
08/17/2010 - CO2 Weapon, Armor, Effects & Interface edits - 2 Replies
http://i802.photobucket.com/albums/yy305/randi_050 /Edits/6543389.jpg :handsdown: :D watch the tricolorefect cool eh : http://i802.photobucket.com/albums/yy305/randi_05 0/Edits/6766908.jpg
PREMIUM, Fail [?] Check it out
12/15/2009 - Silkroad Online - 17 Replies
Hallo guyz. Anyway... thats the first time it ever happens to me. I was botting my char, on Saturn server... Powerleveling a friend, and, I wanted to relog, since I have a Premium Plus/Pet/SP Scroll... I don't mind when it comes to login/re-login. I wans't even using a Clientless bot, I'm using normal iSROBOT... WHAT THE FUCK IS THAT THATS THE FIRST TIME _EVER_ that... I see by my own eyes, a Legit-Silk-Buyer char getting banned... ...



All times are GMT +1. The time now is 20:38.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.