onlyus Newbie cheater
Reputation: 0
Joined: 27 Aug 2011 Posts: 19 Location: 214214
|
Posted: Fri Nov 22, 2013 10:55 am Post subject: [HELP] close another process event |
|
|
SetDebugPrivilege(True);
hEvent:= OpenEvent(EVENT_ALL_ACCESS, False, 'SomeEvent');
hProcess:= OpenProcess(PROCESS_DUP_HANDLE, False, PID);
DuplicateHandle(hProcess, hEvent, GetCurrentProcess, @CloneMutex, 0, False, DUPLICATE_CLOSE_SOURCE);
// CloneMutex Result 0
CloseHandle(CloneMutex);
CloseHandle(hEvent);
CloseHandle(hProcess);
SetDebugPrivilege(False);
not work.. why????
_________________
i'm noob |
|
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25823 Location: The netherlands
|
Posted: Fri Nov 22, 2013 11:17 am Post subject: |
|
|
debug it and find out what doesn't work first
Also, what do you think/assume will happen?
From what I see:
hEvent is a handle in the context of the calling process
DuplicateHandle tries to access a handle in the target process with the same value as hEvent, which does not mean that the event has the same handle value in the target process, so fails
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|