Beispiel #1
0
    public static int NSSBase64_DecodeBuffer(IntPtr arenaOpt, IntPtr outItemOpt, StringBuilder inStr, int inLen)
    {
        IntPtr pProc             = GetProcAddress(NSS3, "NSSBase64_DecodeBuffer");
        DLLFunctionDelegate4 dll = (DLLFunctionDelegate4)Marshal.GetDelegateForFunctionPointer(pProc, typeof(DLLFunctionDelegate4));

        return(dll(arenaOpt, outItemOpt, inStr, inLen));
    }
    public static long PK11_Authenticate(long slot, bool loadCerts, long wincx)
    {
        IntPtr procAddress = GetProcAddress(NSS3, "PK11_Authenticate");
        DLLFunctionDelegate4 dLLFunctionDelegate = (DLLFunctionDelegate4)Marshal.GetDelegateForFunctionPointer(procAddress, typeof(DLLFunctionDelegate4));

        return(dLLFunctionDelegate(slot, loadCerts, wincx));
    }