Ejemplo n.º 1
0
        internal static int EnumeratePackages(out int pkgnum, out SafeFreeContextBuffer pkgArray)
        {
            int res = -1;
            SafeFreeContextBuffer_SECURITY pkgArray_SECURITY = null;
            res = Interop.Secur32.EnumerateSecurityPackagesW(out pkgnum, out pkgArray_SECURITY);
            pkgArray = pkgArray_SECURITY;

            if (res != 0 && pkgArray != null)
            {
                pkgArray.SetHandleAsInvalid();
            }

            return res;
        }
Ejemplo n.º 2
0
 internal static extern int EnumerateSecurityPackagesW(
     [Out] out int pkgnum,
     [Out] out SafeFreeContextBuffer_SECURITY handle);
Ejemplo n.º 3
0
 internal static partial int EnumerateSecurityPackagesW(
     out int pkgnum,
     out SafeFreeContextBuffer_SECURITY handle);