Сейчас на форуме: ==DJ==[ZLO], kris_sexy, Wenzel, r0lka (+5 невидимых) |
eXeL@B —› Крэки, обсуждения —› DLL injection |
Посл.ответ | Сообщение |
|
Создано: 12 января 2006 21:36 · Личное сообщение · #1 У меня следующая проблема возникла: Перехватываю я значит API одну. Подвесив DLL к процесу мне надо кусок памяти прочитать и сохранить. Так вот мне надо как-то узнать имя процесса (имя exe) как мне это сделать? Для меня возможны варианты: как-то передать из программы лоадера этот путь или как-то апями (лучше). Предложите решения плз. ----- Crack your mind, save the planet |
|
Создано: 12 января 2006 22:11 · Личное сообщение · #2 DWORD GetModuleFileName( HMODULE hModule, // handle to module to find filename for LPTSTR lpFilename, // pointer to buffer for module path DWORD nSize // size of buffer, in characters ); Parameters hModule Identifies the module whose executable filename is being requested. If this parameter is NULL, GetModuleFileName returns the path for the file used to create the calling process. lpFilename Points to a buffer that is filled in with the path and filename of the given module. nSize Specifies the length, in characters, of the lpFilename buffer. If the length of the path and filename exceeds this limit, the string is truncated. |
|
Создано: 12 января 2006 23:30 · Личное сообщение · #3 |
|
Создано: 12 января 2006 23:45 · Личное сообщение · #4 |
eXeL@B —› Крэки, обсуждения —› DLL injection |