News:

Masm32 SDK description, downloads and other helpful links
Message to All Guests
NB: Posting URL's See here: Posted URL Change

Main Menu

option win64:11

Started by 2B||!2B, July 12, 2021, 01:42:33 PM

Previous topic - Next topic

2B||!2B

If i remove this option "option win64:11", no parameters saving is done and the dll will not load properly.
Can i have the parameters saving only without generating an exception record in the Exception Directory?

DllMain PROC  hInst:HINSTANCE, fdwReason:DWORD, lpvReserved:LPVOID
    .IF fdwReason == DLL_PROCESS_ATTACH
        mov rax, hInst
        mov hInstance, rax
    .ENDIF
    mov rax,TRUE
    ret
DllMain Endp

TimoVJL

MS link.exe supported entry points for dll:BOOL WINAPI DllMain(HANDLE hInstDLL, DWORD dwReason, LPVOID lpvReserved)
{

BOOL WINAPI _DllMainCRTStartup(HANDLE hInstDLL, DWORD dwReason, LPVOID lpvReserved)
{
// x32
BOOL WINAPI DllMainCRTStartup(HANDLE hInstDLL, DWORD dwReason, LPVOID lpvReserved)
{
// x64
May the source be with you