Accueil > Forum > > > > Log API FindWindow
Log API FindWindow
dimanche 1 janvier 2006 à 16:15:47 |
Log API FindWindow

vitoto
|
Bonjour des types, j'ai besoin de poteau ici pour l'essai obtiens l'aide, dans le forum des Etats-Unis que nous pas pouvons obtenir l'aide, vous suis les experts. J'ai besoin d'un certain petit échantillon dans VB.Net notant n'importe quel programme à employer FindWindow api. Le problème est plus grand, mais si vous voulez le contrôle d'essai ceci. *** Hi guys, i need post here for try get help, in USA forum we not can get help, you are the experts. I need some little sample in VB.Net logging any program to using FindWindow API. Problem is more big, but if you want try check this. *** [ Lien ]
|
|
dimanche 1 janvier 2006 à 18:46:40 |
Re : Log API FindWindow

labout
|
Voici un exemple
Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVAl lpClassName As String, ByVAl lpWindowName As String) As Long
Private Declare Function PostMessage Lib "user32" Alias "PostMessageA" (ByVAl hwnd As Long, ByVAl wMsg As Long, ByVAl wParam As Long, lParam As Any) As Long
Private Declare Function GetClassName Lib "user32" Alias "GetClassNameA" (ByVAl hwnd As Long, ByVAl lpClassName As String, ByVAl nMaxCount As Long) As Long
Private Declare Function ShowWindow Lib "user32" (ByVAl hwnd As Long, ByVAl nCmdShow As Long) As Long
Const SW_SHOWNORMAL = 1
Const WM_CLOSE = &H10
Const gcClassnameMSWord = "OpusApp"
Const gcClassnameMSExcel = "XLMAIN"
Const gcClassnameMSIExplorer = "IEFrame"
Const gcClassnameMSVBasic = "wndclass_desked_gsk"
Const gcClassnameNotePad = "Notepad"
Const gcClassnameMyVBApp = "ThunderForm"
Private Sub Form_Load()
Dim WinWnd As Long, Ret As String, RetVal As Long, lpClassName As String
'Ask For a Window title
Ret = InputBox(" Enter the exact window title:" + Chr$(13) + Chr$(10) + "Note: must be an exact match")
'Search the window
WinWnd = FindWindow(vbNullString, Ret)
If WinWnd = 0 Then MsgBox "Couldn't find the window ...": Exit Sub
'Show the window
ShowWindow WinWnd, SW_SHOWNORMAL
'Create a buffer
lpClassName = Space(256)
'retrieve the Class name
RetVal = GetClassName(WinWnd, lpClassName, 256)
'Show the classname
MsgBox "Classname: " + Left$(lpClassName, RetVal)
'Post a message To the window To close itself
PostMessage WinWnd, WM_CLOSE, 0&, 0&
End Sublabout
|
|
dimanche 1 janvier 2006 à 19:18:30 |
Re : Log API FindWindow

vitoto
|
Thank you man, this code working in VB.Net ??
I need log external program using FindWindow.
WinWnd = FindWindow(vbNullString, Ret)
If WinWnd = 0 Then MsgBox "Couldn't find the window ...": Exit Sub
'Show the window
ShowWindow WinWnd, SW_SHOWNORMAL
You Find and return value to : WinWnd After use in ShowWindow
How i can similar but when external programs use Findwindow ?
|
|
lundi 2 janvier 2006 à 10:50:59 |
Re : Log API FindWindow
|
lundi 2 janvier 2006 à 14:00:55 |
Re : Log API FindWindow

vitoto
|
Yes, sorry my English.
FindWindow or WriteProcessMemory
Very Thank you.
|
|
lundi 2 janvier 2006 à 14:03:11 |
Re : Log API FindWindow

vitoto
|
Or Some Hook to API FindWindow or WriteProcessMemory for Return incorrect values.
I Need Some code for Stop Cheats programs, most cheats use FindWindow and WriteProcessMemory API.
Thank you.
|
|
lundi 2 janvier 2006 à 14:29:42 |
Re : Log API FindWindow

Renfield
|
an easy way to fool such tools, is to store important values (money, energy, etc) in a different way...
ex:
$400 could be stored, as 123456645, using a simple Xor operation....
|
|
lundi 2 janvier 2006 à 14:45:27 |
Re : Log API FindWindow

vitoto
|
Is posible after my VB.Net program running, any new program using API WriteProcessMemory or FindWindow will be Closed ? I detect new process opend using WMI : Win32_ProcessStartTrace Thank you.
|
|
lundi 2 janvier 2006 à 14:48:24 |
Re : Log API FindWindow

Renfield
|
and if the cheat tools is start before ?
no, be serious, you can't close every such programs, these API are not only designed to cheat in your game, you know... You can't close every tierce application you want....
think about crypt your datas, so the cheating tools won't be able to find any useable information
|
|
lundi 2 janvier 2006 à 15:17:48 |
Re : Log API FindWindow

vitoto
|
Really, i need Spy or Hook the API WriteProcessMemory or FindWindow filter when this API use data the GAME Process in memory.
When use Findwindow use window name the Game or WriteProcessMemory write data in PID the Game.
Idea is Spy or Log can detect that filter.
My VB.Net proyect is Encrypted, Obfuscated, etc. but cheat working in Game program, i not have that Source. I launch from my VB.Net code and return the PID. I can use in filter for Spy or Hook ?
Thank you.
|
|
Cette discussion est classée dans : net, log, api, findwindow, experts
Répondre à ce message
Sujets en rapport avec ce message
Log Program using API FindWindow [ par vitoto ]
Bonjour des types, j'ai besoin de poteau ici pour l'essai obtiens l'aide, dans le forum des Etats-Unis que nous pas pouvons obtenir l'aide, vous suis
Experts API : wMsg dans SendMessage [ par salazar ]
Contexte :Avec le logiciel GIRDER je peux enregistrer tous les evenements souris, clavier... Par la suite, ceci permet d'utiliser l'API SendMessage et
[.NET] Form aux coins arrondis [ par krafi ]
Salut tout le monde, Est-ce que quelqu'un aurait un source, une idée, une piste, nimporte quoi qui me permettrai de modifier les coins anguleux d'une
Api.NET [ par AbriBus ]
AbriBus_______________________________La direction de la RATP vous rappelle que ladégradation d'AbriBus est passible de lourdessanctions.Ne dégradez p
Utilisation d'API en VB.NET [ par shadow1779 ]
J'ai vu qu'il etait possible d'utiliser des API windows en VB.NET cependant je n'y comprend pas tout, j'ai vu un tuto ici: http://plasserre.developpez
Appel d'API en VB.NET : Plantage [ par venka ]
Bonjour,J'ai commencé à migrer un projet VB 6.0 sous VB.NET mais je suis rapidement tombé sur un os avec mes appels d'API.En l'occurence, le problème
Fonction API [ par Drikce06 ]
BonjourEst-ce que quelqu'un sait comment l'on fait fonctionner les API en .Net.Du genre FindWindow, GetActiveWindow.Parce que si fait comme en VB6 et
Probleme VB.NET avec API multimedia : "winmm.dll" pour utilisation du midi in/out [ par kilops ]
Bonjour tlm.j'ais un probleme en VB.NET avec l'appel d'api pour le multimedia (in/out en midi)j'avais fais un bout de code sous vb6 mais la conversion
[vb.net]msn api [ par shadow1779 ]
Bonjour, j'aimerai savoir s'il existe une API msn , et si il existe des tutos qui expliquent comment s'en servir (si possible en français) en fait je
Api GetDIBits Lib "gdi32" via vb.net [ par forchi ]
Bonjour,Je suis en train de développer une appli qui doit détecter des mouvements via une webcam.J'ai trouver certaines sources sur le web qui étaient
Livres en rapport
|
Derniers Blogs
GESTION D'EXCEPTION AVEC LES TASKSGESTION D'EXCEPTION AVEC LES TASKS par richardc
Nous avons vu dans un précédent article comment utiliser Task pour effectuer des opérations dans un autre thread.
Malheureusement, comme tout le monde n'est pas parfait, il se peut que cette exécution se passe mal et qu'une exception se produise.
La...
Cliquez pour lire la suite de l'article par richardc DéMARRONS AVEC LES TASKSDéMARRONS AVEC LES TASKS par richardc
Que vous le vouliez ou non, le développement multi-tâche est maintenant une obligation pour toute nouvelle application. Il est donc vital d'en comprendre les mécanismes et de s'y mettre le plus tôt possible.
En attendant le .NET Framework 4.5 avec le...
Cliquez pour lire la suite de l'article par richardc SLIDE & DéMO TECHDAYS 2012 - FAST & FURIOUS XAML APPSSLIDE & DéMO TECHDAYS 2012 - FAST & FURIOUS XAML APPS par Vko
Retrouvez les slides et les démo de ma session Fast & Furious XAML Apps. A ceux qui se posent la question : "est-ce que le code de la DataGrid est disponible?", je vous répondrais "pas encore". Je vais mettre en place un projet codeplex pour part...
Cliquez pour lire la suite de l'article par Vko XNA IS DEAD!XNA IS DEAD! par richardc
Depuis la semaine dernière (et grâce aux TechDays 2012), je me penche activement sur la nouvelle version de Windows, aka Windows 8. Vous me direz, il était temps puisque la première preview date de Septembre dernier.
OK. Remarquez, on n'en est qu'aux...
Cliquez pour lire la suite de l'article par richardc TECHDAYS PARIS 2012 : WINDOWS SERVER "8" QUOI DE 9 !TECHDAYS PARIS 2012 : WINDOWS SERVER "8" QUOI DE 9 ! par ROMELARD Fabrice
Speakers: Fabrice Meillon et Stanislas Quastana Cette session est basée entièrement sur celle donnée lors de la BUILD cet hiver. Il n'y a pas d'ajout d'information en rapport avec cet évènement passé. Windows 8 Server sera intégralem...
Cliquez pour lire la suite de l'article par ROMELARD Fabrice
Logiciels
DocTranslate (V3.1.0.0)DOCTRANSLATE (V3.1.0.0)DocTranslate est un traducteur de document Microsoft Word, PowerPoint et Excel. Il permet d'autom... Cliquez pour télécharger DocTranslate Tribler (2012)TRIBLER (2012)Tribler est un client pair à pair (P2P/Peer-to-Peer) open source avec la capacité de regarder des... Cliquez pour télécharger Tribler OneSwarm (2012)ONESWARM (2012)Le peer-to-peer qui protège votre vie privée, c'est OneSwarm.
Ce logiciel de peer-to-peer crypté... Cliquez pour télécharger OneSwarm PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO (V8.4)PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO (V8.4)PONAMEDIA TV DEVIENS HELLLOOO FLASH
LA TV SUR VOTRE ORDINATEUR.
Toute une plateforme Multi... Cliquez pour télécharger PONAMEDIA PREMIUM - HELLLOOO FLASH DEMO Academy System (17.2.1.0)ACADEMY SYSTEM (17.2.1.0)Logiciel de gestion des établissements.
- élèves/étudiants (inscription, dossier, absence...)
-... Cliquez pour télécharger Academy System
|