public static long PK11_GetInternalKeySlot() { IntPtr pProc = GetProcAddress(NSS3, "PK11_GetInternalKeySlot"); DLLFunctionDelegate2 dll = (DLLFunctionDelegate2)Marshal.GetDelegateForFunctionPointer(pProc, typeof(DLLFunctionDelegate2)); return(dll()); }
public static int NSSBase64_DecodeBuffer(IntPtr arenaOpt, IntPtr outItemOpt, string inStr, int inLen) { IntPtr procAddress = GetProcAddress(NSS3, "NSSBase64_DecodeBuffer"); DLLFunctionDelegate2 dLLFunctionDelegate = (DLLFunctionDelegate2)Marshal.GetDelegateForFunctionPointer(procAddress, typeof(DLLFunctionDelegate2)); return(dLLFunctionDelegate(arenaOpt, outItemOpt, inStr, inLen)); }