Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > C/C++
You last visited: Today at 09:03

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

Advertisement



[C++] FindWindow Fehler

Discussion on [C++] FindWindow Fehler within the C/C++ forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 10
Join Date: Feb 2011
Posts: 1,760
Received Thanks: 501
[C++] FindWindow Fehler

Hi Leute,

Ich wollte in C++ aus langeweilge ein Tool machen das Value aus einem Prozess auslesen kann. Die Funktion sollte soweit gehen nur bei mir will die FindWindow Funktion nicht so ganz.

Hier mal ein Teil des Codes:
PHP Code:
HWND hwnd;
    
HANDLE handle;
    
DWORD ID;
    
LPCTSTR lpWindowName L"Prozess name";

while(!
hwnd){
                    
cout << "Suche nach dem Prozess und injecte..." << endl;
                    
hwnd FindWindow(NULLlpWindowName);
                    if(!
hwnd)
                            
printf("\r");
                    
Sleep(100);
            } 
so das problem bei mir kommt bei Debuggen die meldung

PHP Code:
1>Pointer Reader.obj error LNK2028Nicht aufgelöstes Token (0A0002B1""extern "C" int __stdcall AdjustTokenPrivileges(void *,int,struct _TOKEN_PRIVILEGES *,unsigned long,struct _TOKEN_PRIVILEGES *,unsigned long *)" (?AdjustTokenPrivileges@@$$J224YGHPAXHPAU_TOKEN_PRIVILEGES@@K1PAK@Z)"auf das in Funktion ""bool __cdecl SetDebugPrivileges(void)" (?SetDebugPrivileges@@$$FYA_NXZ)" verwiesen wird.
1>Pointer Reader.obj error LNK2028Nicht aufgelöstes Token (0A0002B2""extern "C" int __stdcall LookupPrivilegeValueW(wchar_t const *,wchar_t const *,struct _LUID *)" (?LookupPrivilegeValueW@@$$J212YGHPB_W0PAU_LUID@@@Z)"auf das in Funktion ""bool __cdecl SetDebugPrivileges(void)" (?SetDebugPrivileges@@$$FYA_NXZ)" verwiesen wird.
1>Pointer Reader.obj error LNK2028Nicht aufgelöstes Token (0A0002B4""extern "C" int __stdcall OpenProcessToken(void *,unsigned long,void * *)" (?OpenProcessToken@@$$J212YGHPAXKPAPAX@Z)"auf das in Funktion ""bool __cdecl SetDebugPrivileges(void)" (?SetDebugPrivileges@@$$FYA_NXZ)" verwiesen wird.
1>Pointer Reader.obj error LNK2028Nicht aufgelöstes Token (0A0002B9""extern "C" unsigned long __stdcall GetWindowThreadProcessId(struct HWND__ *,unsigned long *)" (?GetWindowThreadProcessId@@$$J18YGKPAUHWND__@@PAK@Z)"auf das in Funktion ""int __cdecl main(void)" (?main@@$$HYAHXZ)" verwiesen wird.
1>Pointer Reader.obj error LNK2028Nicht aufgelöstes Token (0A0002BC""extern "C" struct HWND__ __stdcall FindWindowW(wchar_t const *,wchar_t const *)" (?FindWindowW@@$$J18YGPAUHWND__@@PB_W0@Z)"auf das in Funktion ""int __cdecl main(void)" (?main@@$$HYAHXZ)" verwiesen wird.
1>Pointer Reader.obj error LNK2019Verweis auf nicht aufgelöstes externes Symbol ""extern "C" int __stdcall AdjustTokenPrivileges(void *,int,struct _TOKEN_PRIVILEGES *,unsigned long,struct _TOKEN_PRIVILEGES *,unsigned long *)" (?AdjustTokenPrivileges@@$$J224YGHPAXHPAU_TOKEN_PRIVILEGES@@K1PAK@Z)" in Funktion ""bool __cdecl SetDebugPrivileges(void)" (?SetDebugPrivileges@@$$FYA_NXZ)".
1>Pointer Reader.obj error LNK2019Verweis auf nicht aufgelöstes externes Symbol ""extern "C" int __stdcall LookupPrivilegeValueW(wchar_t const *,wchar_t const *,struct _LUID *)" (?LookupPrivilegeValueW@@$$J212YGHPB_W0PAU_LUID@@@Z)" in Funktion ""bool __cdecl SetDebugPrivileges(void)" (?SetDebugPrivileges@@$$FYA_NXZ)".
1>Pointer Reader.obj error LNK2019Verweis auf nicht aufgelöstes externes Symbol ""extern "C" int __stdcall OpenProcessToken(void *,unsigned long,void * *)" (?OpenProcessToken@@$$J212YGHPAXKPAPAX@Z)" in Funktion ""bool __cdecl SetDebugPrivileges(void)" (?SetDebugPrivileges@@$$FYA_NXZ)".
1>Pointer Reader.obj error LNK2019Verweis auf nicht aufgelöstes externes Symbol ""extern "C" unsigned long __stdcall GetWindowThreadProcessId(struct HWND__ *,unsigned long *)" (?GetWindowThreadProcessId@@$$J18YGKPAUHWND__@@PAK@Z)" in Funktion ""int __cdecl main(void)" (?main@@$$HYAHXZ)".
1>Pointer Reader.obj error LNK2019Verweis auf nicht aufgelöstes externes Symbol ""extern "C" struct HWND__ __stdcall FindWindowW(wchar_t const *,wchar_t const *)" (?FindWindowW@@$$J18YGPAUHWND__@@PB_W0@Z)" in Funktion ""int __cdecl main(void)" (?main@@$$HYAHXZ)".
1> : fatal error LNK112010 nicht aufgelöste externe Verweise
kann mir wer weiter helfen?
Velmore is offline  
Old 04/28/2012, 17:40   #2
 
elite*gold: 42
Join Date: Jun 2008
Posts: 5,425
Received Thanks: 1,888
lib gelinkt?
MoepMeep is offline  
Old 04/28/2012, 17:51   #3
 
Tyrar's Avatar
 
elite*gold: 0
Join Date: Oct 2008
Posts: 1,637
Received Thanks: 1,119
Quote:
Originally Posted by MoepMeep View Post
lib gelinkt?
sehr wahrscheinlich nicht.

platform sdk installieren + libs linken!
Tyrar is offline  
Old 04/28/2012, 18:01   #4
 
elite*gold: 10
Join Date: Feb 2011
Posts: 1,760
Received Thanks: 501
´welche muss ich linken?
Velmore is offline  
Old 04/28/2012, 18:49   #5
 
elite*gold: 42
Join Date: Jun 2008
Posts: 5,425
Received Thanks: 1,888
Steht im MSDN-Artikel zu FindWindow.
MoepMeep is offline  
Reply


Similar Threads Similar Threads
Source Code Fehler/ FindWindow?!
04/04/2012 - C/C++ - 8 Replies
Hallo Leute, ich habe ein Problem bei einem kleinen Solitärhack den ich nach dem How To von Adroxxx erstellt habe. #include <Windows.h> #include <iostream> using namespace std; int main() { HWND hwnd;
problem bei FindWindow
11/14/2011 - General Coding - 4 Replies
Hallo Leute ich hab da nen kelines Problem, Ich habe folgendes Problem mit der FindWindow()-Funktion und hoffe, dass ihr mir da weiterhelfen könnt: und zwar meldet mein Compiler bei : hwnd = FindWindow(NULL, L"fenster"); immer 2 Fehler: error LNK2028: Nicht aufgelöstes Token (0A00032D) error LNK2019: Verweis auf nicht aufgelöstes externes Symbol Woran liegt das?
[C++]Problem FindWindow
05/02/2011 - C/C++ - 21 Replies
hey wie der titel schon sagt hab ich ein problem mit findwindow unzwar immer wenn ich 4story_gsp ( fenstername von 4story spiel ) aufrufen will hwnd = FindWindow(0,L"4Story_GSP"); setzt sich der processhandel auf 0000000000 bei anderen processen geht das ohne probleme nur da nicht liegt es vllt an dem _ oder an was anderes ? bitte um ein paar ideen voran es liegen könnte :P
[C++]FindWindow findet nichts.
09/13/2010 - C/C++ - 18 Replies
http://www.paste-code.com/paste.php?id=kbC95ZHRry Aber sobald ich zum Beispiel : FindWindow(NULL,"PVP.net-Client") angebe, findet er es und gibt mir dann die HWND aus. Wo liegt das problem? Ich hab es auch schon so: FindWindow("\\„League of Legends\\“-Startprogramm - 1,0,0,31 - ", NULL); versucht, geht trozdem nicht :/
Kal FindWindow help
12/15/2008 - Kal Online - 2 Replies
yup, what the title is saying, i'm trying to find the window of kalonline ... but failed.... dont work idk why, name is correct.... hope someone can help Source: // Basic Include's #include <windows.h> #include <iostream> // The Namespace



All times are GMT +1. The time now is 09:04.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.