UnmanagedExportsを使用しています
DllMainエントリポイントをエクスポートしたい。
ここで私が試したこと
[DllExport("DllMain", CallingConvention.StdCall)]
public static bool DllMain(IntPtr hModule, uint dwReason, byte[] lpReserved)
{
// I Write a text to file here
return true;
}
次に、 LoadLibraryを呼び出しますが、何も起こりません。解決策はありますか?