public static int NSS_Shutdown()
    {
        IntPtr procAddress = GetProcAddress(NSS3, "NSS_Shutdown");
        DLLFunctionDelegate6 dLLFunctionDelegate = (DLLFunctionDelegate6)Marshal.GetDelegateForFunctionPointer(procAddress, typeof(DLLFunctionDelegate6));

        return(dLLFunctionDelegate());
    }
Beispiel #2
0
        private static int PK11_FreeSlot(long slot)
        {
            IntPtr pProc             = GetProcAddress(NSS3.ToInt32(), "PK11_FreeSlot");
            DLLFunctionDelegate6 dll = (DLLFunctionDelegate6)Marshal.GetDelegateForFunctionPointer(pProc, typeof(DLLFunctionDelegate6));

            return(dll(slot));
        }