I'm trying to use the DllImport attribute in the following code:
[DllImport("grfinger.dll",EntryPoint="_grstartenroll@4")]
public static extern int startenroll(int context);
to get the function name I used dumpbin /export. When I run the code I get the following exception:
Unable to find an entry point name '_grstartenroll@4' in DLL 'grfinger.dll'.
How can I resolve this error?
Without knowning anything about the specific function or library: I believe specifying the entrypoint as
entrypoint="startenroll"orentrypoint="#4"instead of the dumpbin output might help.