|
Trouver une ressource
Vous ne trouvez pas de réponse à votre problème ? Alors posez la question dans le forum. Souvenez-vous qu'il n'y a jamais de question bête, mais rester dans l'ignorance parce que l'on n'ose pas poser une question, ça c'est une erreur !
Sujet : Log API FindWindow [ Archives Visual Basic / API ] (vitoto)
Informations & options pour cette discussion
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é 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
|
Téléchargements
Logiciels à télécharger sur le même thème :
Comparez les prix Nouvelle version
|