|
本帖最后由 zhyzhsh 于 2012-9-7 18:03 编辑
- Private Declare Function LoadLibraryEx Lib "kernel32" Alias "LoadLibraryExA" (ByVal lpFileName As String, ByVal hFile As Long, ByVal dwFlags As Long) As Long
- Private Declare Function GetProcAddress Lib "kernel32" (ByVal hMODULE As Long, ByVal lpProcName As String) As Long
- Private Const DONT_RESOLVE_DLL_REFERENCES = &H1
- Private Sub test()
- Dim hMODULE As Long, hProc As Long, hThreadID As Long
- hMODULE = LoadLibraryEx("c:\MarkEzd.DLL", ByVal 0, DONT_RESOLVE_DLL_REFERENCES)
- hProc = GetProcAddress(hMODULE, "lmc1_LoadEzdFile")
- Debug.Print hMODULE, hProc
- End Sub
复制代码
得到地址以后怎样运行呢?
|
|