Update GetInMemoryModulePathA.c

This commit is contained in:
vxunderground 2021-06-04 16:19:30 -05:00 committed by GitHub
parent bc0238d3e1
commit 8c26657596
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -5,6 +5,13 @@ GetInMemoryModulePathA function
Summary:
Recreation of GetModuleFileName with the first parameter being set to NULL. Relevant for malware dev, eliminates the need to dynamically resolve GetModuleFileName from kernel32.dll
Parameters:
DWORD nBufferLength
The length of the buffer to receive the in memory module path
PWCHAR lpBuffer
A buffer which will receive the in memory module path
Remarks:
Incomplete recreation of GetModuleFileName
Upon failure GetLastError() will not work. This function does not set the error code.