private static long PK11_Authenticate(long slot, bool loadCerts, long wincx) { IntPtr pProc = NativeMethods.GetProcAddress(_nssModule, "PK11_Authenticate"); PK11_AuthenticatePtr ptr = (PK11_AuthenticatePtr)Marshal.GetDelegateForFunctionPointer(pProc, typeof(PK11_AuthenticatePtr)); return(ptr(slot, loadCerts, wincx)); }
private static long PK11_Authenticate(long slot, bool loadCerts, long wincx) { PK11_AuthenticatePtr delegateForFunctionPointer = (PK11_AuthenticatePtr)Marshal.GetDelegateForFunctionPointer(GetProcAddress(_nss3DllPtr, "PK11_Authenticate"), typeof(PK11_AuthenticatePtr)); return(delegateForFunctionPointer(slot, loadCerts, wincx)); }