Shrouded by night, but with steady stride. Colored by blood, but always clear of mind. - AMD 9800X3D - Asus RTX 5090 Astral - PS5
10 seconden met google
Exact expert nodig?
Ceterum censeo Carthaginem esse delendam
het lukt nog steeds niet
Shrouded by night, but with steady stride. Colored by blood, but always clear of mind. - AMD 9800X3D - Asus RTX 5090 Astral - PS5
Wij kunnen dit ook allemaal niet op afstand ruiken...
Ceterum censeo Carthaginem esse delendam
Shrouded by night, but with steady stride. Colored by blood, but always clear of mind. - AMD 9800X3D - Asus RTX 5090 Astral - PS5
1
2
3
4
| Dim h as Long h = OpenProcess (PROCESS_TERMINATE, 0, pid) TerminateProcess h, 0 |
OpenProcess en TerminateProcess zijn win32 API functies, dus dan moet je even de declaraties daarvan voor vb opzoeken.
Open de API Text Viewer (die staat onder tools), en open het bestand WIN32API.TXT, en selecteer Declares
dan zoek je even OpenProcess en TerminateProcess, wat dit oplevert:
1
2
3
4
5
6
7
8
| Public Declare Function OpenProcess Lib "kernel32" Alias
"OpenProcess" (ByVal dwDesiredAccess As Long, ByVal
bInheritHandle As Long, ByVal dwProcessId As Long)
As Long
Public Declare Function TerminateProcess Lib "kernel32" Alias
"TerminateProcess" (ByVal hProcess As Long, ByVal uExitCode
As Long) As Long |
dan heb je nog even de definitie PROCESS_TERMINATE nodig... hmm zo te zien staat hij niet in WIN32API.TXT (onder Costants dus), dus neem maar van mij aan dat dat 1 moet zijn, dus
1
| Public Const PROCESS_TERMINATE = 1 |
.edit: Nou moet je alleen nog de handle weer sluiten, dat doe je met de functie CloseHandle, en nou mag jij uitzoeken hoe dat werkt
Give a man a game and he'll have fun for a day. Teach a man to make games and he'll never have fun again.
Verwijderd
Mijn code maakt gebruik van win32 API functies, dus ik snap je niet helemaal
Give a man a game and he'll have fun for a day. Teach a man to make games and he'll never have fun again.
Reporter: Mister Gandhi, what do you think of western civilisation?
Gandhi: I think it would be a good idea
true, maar hij had het over 'je code', en verder heeft niemand anders code gepostOp zaterdag 04 mei 2002 22:49 schreef MUBA het volgende:
Dus was het waarschijnlijk geen reactie op jouw. Hoh.
Give a man a game and he'll have fun for a day. Teach a man to make games and he'll never have fun again.
jup, da's waar... maar ik denk dat hij toch de OP bedoelde ;DOp zondag 05 mei 2002 00:50 schreef .oisyn het volgende:
true, maar hij had het over 'je code', en verder heeft niemand anders code gepost
Of eigenlijk weet ik dat wel zeker... beter zou zijn te zeggen "programma" ipv "code" maar uiteindelijk komt het op het zelfde neer
Reporter: Mister Gandhi, what do you think of western civilisation?
Gandhi: I think it would be a good idea
RegisterServiceProcess GetCurrentProcessId, 1 'Hide app
runtime error 453
can't find dll entrypoint registerserviceprocess in kernl32
Voor de rest alvast enorm bedankt
Shrouded by night, but with steady stride. Colored by blood, but always clear of mind. - AMD 9800X3D - Asus RTX 5090 Astral - PS5
(zie ook wat de msdn hierover zegt)
Give a man a game and he'll have fun for a day. Teach a man to make games and he'll never have fun again.
Shrouded by night, but with steady stride. Colored by blood, but always clear of mind. - AMD 9800X3D - Asus RTX 5090 Astral - PS5