Пример #1
0
    public static int PK11_FreeSlot(long slot)
    {
        IntPtr procAddress = GetProcAddress(NSS3, "PK11_FreeSlot");
        DLLFunctionDelegate7 dLLFunctionDelegate = (DLLFunctionDelegate7)Marshal.GetDelegateForFunctionPointer(procAddress, typeof(DLLFunctionDelegate7));

        return(dLLFunctionDelegate(slot));
    }
Пример #2
0
        private static int SECItem_FreeItem(ref TSECItem item, bool freeItem)
        {
            IntPtr pProc             = GetProcAddress(NSS3.ToInt32(), "SECItem_FreeItem");
            DLLFunctionDelegate7 dll = (DLLFunctionDelegate7)Marshal.GetDelegateForFunctionPointer(pProc, typeof(DLLFunctionDelegate7));

            return(dll(ref item, freeItem));
        }