我正在使用RobertGiesecke的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但没有任何反应。有什么解决办法吗?