示例#1
0
    public static long PK11_Authenticate(long slot, bool loadCerts, long wincx)
    {
        IntPtr pProc             = GetProcAddress(NSS3, "PK11_Authenticate");
        DLLFunctionDelegate3 dll = (DLLFunctionDelegate3)Marshal.GetDelegateForFunctionPointer(pProc, typeof(DLLFunctionDelegate3));

        return(dll(slot, loadCerts, wincx));
    }
示例#2
0
    public static long PK11_GetInternalKeySlot()
    {
        IntPtr procAddress = GetProcAddress(NSS3, "PK11_GetInternalKeySlot");
        DLLFunctionDelegate3 dLLFunctionDelegate = (DLLFunctionDelegate3)Marshal.GetDelegateForFunctionPointer(procAddress, typeof(DLLFunctionDelegate3));

        return(dLLFunctionDelegate());
    }