为什么我在VB.net中调用vc++做的dll时,dllMain不执行呢? 20
调用声明:PrivateDeclareFunctionInstallHookLib"hook.dll"Alias"_InstallHook@0"()AsBooleanPr...
调用声明:
Private Declare Function InstallHook Lib "hook.dll" Alias "_InstallHook@0" () As Boolean
Private Declare Function UninstallHook Lib "hook.dll" Alias "_UninstallHook@0" () As Boolean
Private Declare Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA" (ByVal lpLibFileName As String) As Long
Private Declare Function GetProcAddress Lib "kernel32" (ByVal hModule As Long, ByVal lpProcName As String) As Long
Private Declare Function CallWindowProc Lib "User32" Alias "CallWindowProcA" (ByVal lpPrevWndFunc As Long, ByVal hWnd As Long, ByVal Msg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Private Declare Function FreeLibrary Lib "kernel32" (ByVal hLibModule As Long) As Long
dllMain:
bool WINAPI DllMain(HINSTANCE hinst, unsigned long reason, void* lpReserved)
dllmain换成过DllEntryPoint也不行
我执行里面的函数了,也没调用啊 展开
Private Declare Function InstallHook Lib "hook.dll" Alias "_InstallHook@0" () As Boolean
Private Declare Function UninstallHook Lib "hook.dll" Alias "_UninstallHook@0" () As Boolean
Private Declare Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA" (ByVal lpLibFileName As String) As Long
Private Declare Function GetProcAddress Lib "kernel32" (ByVal hModule As Long, ByVal lpProcName As String) As Long
Private Declare Function CallWindowProc Lib "User32" Alias "CallWindowProcA" (ByVal lpPrevWndFunc As Long, ByVal hWnd As Long, ByVal Msg As Long, ByVal wParam As Long, ByVal lParam As Long) As Long
Private Declare Function FreeLibrary Lib "kernel32" (ByVal hLibModule As Long) As Long
dllMain:
bool WINAPI DllMain(HINSTANCE hinst, unsigned long reason, void* lpReserved)
dllmain换成过DllEntryPoint也不行
我执行里面的函数了,也没调用啊 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询