#If VBA7 Then Private Declare PtrSafe Function 関数名 Lib "DLL名" Alias "API名" (引数 As LongPtr) As LongPtr #Else Private Declare Function 関数名 Lib "DLL名" Alias "API名" (引数 As Long) As Long #End If ...