@LookupPrivilegeValueA=https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-lookupprivilegevaluea @LookupPrivilegeValueW=https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-lookupprivilegevaluew @pinvoke=http://pinvoke.net/$$$.htm Summary: TODO - a short description !!!!C# Signature: [DllImport("advapi32.dll")] static extern bool LookupPrivilegeValue(string lpSystemName, string lpName, ref LUID lpLuid); !!!!VB Signature: Declare Function LookupPrivilegeValue Lib "advapi32.dll" (lpSystemName As String, _ lpName As String, ByRef lpLuid As LUID) As Boolean !!!!User-Defined Types: [LUID] [PrivilegeNames] !!!!Notes: Int64 could be used instead of LUID. !!!!Tips & Tricks: Please add some! !!!!Sample Code: [DllImport("advapi32.dll")] public static extern bool LookupPrivilegeValue(string systemName, string privilegeName, ref LUID luid); public static bool LookupPrivilegeValue(string systemName, PrivilegeNames privilegeName, ref LUID luid) { return LookupPrivilegeValue(systemName, privilegeName.ToString(), ref luid); } public static LUID LookupPrivilegeValue(string systemName, PrivilegeNames privilegeName) { var luid = new LUID(); return LookupPrivilegeValue(systemName, privilegeName, ref luid) ? luid : new LUID(); } !!!!Alternative Managed API: Do you know one? Please contribute it! Documentation: LookupPrivilegeValueA@LookupPrivilegeValueA on docs.microsoft.com LookupPrivilegeValueW@LookupPrivilegeValueW on docs.microsoft.com
Edit advapi32.LookupPr...
You do not have permission to change this page. If you feel this is in error, please send feedback with the contact link on the main page.