DLL エクスポート ビューアーを使用して、この DLL に含まれる関数を見つけようとしました。関数のリストを見つけました。次のとおりです。
public: int __thiscall CSTVdsDisk::GetPartitionCount(void);
質問はC#にあります。次のいずれかを使用して関数を呼び出すことができません。
[DllImport("Some.dll",
ExactSpelling = true,
EntryPoint = "GetPartitionCount",
CallingConvention = CallingConvention.StdCall,
SetLastError = true)]
また:
[DllImport("Some.dll",
ExactSpelling = true,
EntryPoint = "CSTVdsDisk::GetPartitionCount",
CallingConvention = CallingConvention.StdCall,
SetLastError = true)]
private static extern int GetPartitionSize();
それらはすべて失敗します。私が間違っていることはありますか?誰でも助けることができますか?ありがとう!