Example #1
0
            public static LUID FromName(string name, string systemName = null)
            {
                LUID val;

                if (!NativeMethods.LookupPrivilegeValue(systemName, name, out val))
                {
                    throw new System.ComponentModel.Win32Exception();
                }
                return(val);
            }