C# Export function dll

2019-08-07 11:45发布

I use the Unmanaged-Exports package from Robert Giesecke, which can be found at (https://sites.google.com/site/robertgiesecke/Home/uploads/unmanagedexports).

I'd like to export a function but somehow it doesn't work. The functions won't be exported.

My approach:

Code:

[DllExport("test", CallingConvention = CallingConvention.StdCall)]
    public static string test()
    {
        return "Hello World, this is the DLL";
    } 

Screenshot of my IDA results: Valid XHTML

As you can see they're empty because no function was exported.

1条回答
登录 后发表回答