Im Debugger schaun an welcher Stelle das Problem auftaucht (bzw. die Rückgabewerte nicht passen).

Online-Hilfe benutzen...

Zitat von
Online-Hilfe zu OpenProcess:
To open a
handle to another another local process and obtain full
access rights, you must enable the SeDebugPrivilege privilege

Suche nach "SeDebugPrivilege" im Forum:
http://www.delphipraxis.net/147361-f...ram-laden.html
EnableProcessPrivilege(true, 'SeDebugPrivilege')