Skip to content

Instantly share code, notes, and snippets.

@rmdavy
Created November 28, 2020 11:46
Show Gist options
  • Save rmdavy/ea410348cad74783ab2a16931ff163c1 to your computer and use it in GitHub Desktop.
Save rmdavy/ea410348cad74783ab2a16931ff163c1 to your computer and use it in GitHub Desktop.
Function Declaration Examples
Declare PtrSafe Function DispCallFunc Lib "OleAut32.dll" (ByVal pvInstance As Long, ByVal offsetinVft As Long, ByVal CallConv As Long, ByVal retTYP As Integer, ByVal paCNT As Long, ByRef paTypes As Integer, ByRef paValues As Long, ByRef retVAR As Variant) As Long
Declare PtrSafe Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA" (ByVal lpLibFileName As String) As Long
Declare PtrSafe Function GetProcAddress Lib "kernel32" (ByVal hModule As Long, ByVal lpProcName As String) As Long
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment