virtual int Get(LPWSTR lpBuffer, int size) = 0;
virtual int Get(LPWSTR lpBuffer, int size, __int64 &rTime) = 0;
virtual int Get(LPWSTR lpBuffer, int size, BYTE &rAttribute) = 0;
virtual int Get(LPWSTR lpBuffer, int size, __int64 &rTime, BYTE &rAttribute) = 0;
For Each p As Process In ps
If String.Compare(p.ProcessName, "pol", True) = 0 Then
pol = p
For i As Integer = 0 To p.Modules.Count - 1
If p.Modules.Item(i).ModuleName = "FFXiMain.dll" Then
BaseAddr = p.Modules.Item(i).BaseAddress.ToInt32
Exit For
End If
Next
Exit For
End If
Next
'FFXIMain.dllのベースアドレスを取得
For Each p As Process In ps
'大文字・小文字を区別しないで比較
If String.Compare(p.ProcessName, "pol", True) = 0 Then
pol = p
For i As Integer = 0 To p.Modules.Count - 1
If p.Modules.Item(i).ModuleName = "FFXiMain.dll" Then
BaseAddr = p.Modules.Item(i).BaseAddress.ToInt32
Exit For
End If
Next
Exit For
End If
Next
Public Class Hooks
Public Declare Auto Function FFXiHookLog_Interface Lib "ffxihook_log.dll" () As Hooks.IFFXiHooks
'↓意味が分かって書いているわけではない
<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Ansi)> _
Public Class IFFXiHooks
'ここのコメント部分のようにやっても同じエラー
' <DllImport("FFXihook_log.dll", _
' EntryPoint:="Open", _
' ExactSpelling:=True)> _
' Public Shared Function Open() As Integer
' End Function
Public Declare Auto Function Open Lib "ffxihook_log.dll" Alias "Open" () As Integer
End Class