mirror of
https://github.com/stasenso/SHA256.git
synced 2026-06-26 21:32:43 +03:00
Перешёл на masm
This commit is contained in:
+35
@@ -0,0 +1,35 @@
|
||||
.386
|
||||
.model flat,stdcall
|
||||
option casemap:none
|
||||
include include\windows.inc
|
||||
include include\user32.inc
|
||||
include include\kernel32.inc
|
||||
includelib user32
|
||||
includelib kernel32
|
||||
|
||||
.data
|
||||
AppName db "DLL Skeleton",0
|
||||
HelloMsg db "Hello, you're calling a function in this DLL",0
|
||||
LoadMsg db "The DLL is loaded",0
|
||||
UnloadMsg db "The DLL is unloaded",0
|
||||
ThreadCreated db "A thread is created in this process",0
|
||||
ThreadDestroyed db "A thread is destroyed in this process",0
|
||||
.code
|
||||
DllEntry proc hInstance:HINSTANCE, reason:DWORD, reserved1:DWORD
|
||||
.if reason==DLL_PROCESS_ATTACH
|
||||
invoke MessageBox,NULL,addr LoadMsg,addr AppName,MB_OK
|
||||
.elseif reason==DLL_PROCESS_DETACH
|
||||
invoke MessageBox,NULL,addr UnloadMsg,addr AppName,MB_OK
|
||||
.elseif reason==DLL_THREAD_ATTACH
|
||||
invoke MessageBox,NULL,addr ThreadCreated,addr AppName,MB_OK
|
||||
.else ; DLL_THREAD_DETACH
|
||||
invoke MessageBox,NULL,addr ThreadDestroyed,addr AppName,MB_OK
|
||||
.endif
|
||||
mov eax,TRUE
|
||||
ret
|
||||
DllEntry Endp
|
||||
TestHello proc
|
||||
invoke MessageBox,NULL,addr HelloMsg,addr AppName,MB_OK
|
||||
ret
|
||||
TestHello endp
|
||||
End DllEntry
|
||||
Reference in New Issue
Block a user