64 bit assembler > UASM Assembler Development

option win64:11

(1/1)

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?


--- Code: ---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

--- End code ---

TimoVJL:
MS link.exe supported entry points for dll:
--- Code: ---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
--- End code ---

Navigation

[0] Message Index

Go to full version