| 
            
              WindowsApiLookupAccountName Method
             | 
          
        
        
            Win32 LookupAccountName function.
            
        
        Namespace: GSF.InteropAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.258-beta+f8b6aa3dbfe0b4cc2b0b0760dd5d2a3dd4f59d09
Syntax[DllImportAttribute("advapi32.dll", CharSet = CharSet.Auto, SetLastError = true)]
public static bool LookupAccountName(
	string lpSystemName,
	string lpAccountName,
	IntPtr psid,
	ref int cbsid,
	StringBuilder domainName,
	ref int cbdomainLength,
	ref int use
)<DllImportAttribute("advapi32.dll", CharSet := CharSet.Auto, SetLastError := true>]
Public Shared Function LookupAccountName ( 
	lpSystemName As String,
	lpAccountName As String,
	psid As IntPtr,
	ByRef cbsid As Integer,
	domainName As StringBuilder,
	ByRef cbdomainLength As Integer,
	ByRef use As Integer
) As Booleanpublic:
[DllImportAttribute(L"advapi32.dll", CharSet = CharSet::Auto, SetLastError = true)]
static bool LookupAccountName(
	String^ lpSystemName, 
	String^ lpAccountName, 
	IntPtr psid, 
	int% cbsid, 
	StringBuilder^ domainName, 
	int% cbdomainLength, 
	int% use
)
[<DllImportAttribute("advapi32.dll", CharSet = CharSet.Auto, SetLastError = true)>]
static member LookupAccountName : 
        lpSystemName : string * 
        lpAccountName : string * 
        psid : IntPtr * 
        cbsid : int byref * 
        domainName : StringBuilder * 
        cbdomainLength : int byref * 
        use : int byref -> bool GSF.Interop.WindowsApi.LookupAccountName = function(lpSystemName, lpAccountName, psid, cbsid, domainName, cbdomainLength, use);
 View SourceParameters
- lpSystemName  String
 -  
 - lpAccountName  String
 -  
 - psid  IntPtr
 -  
 - cbsid  Int32
 -  
 - domainName  StringBuilder
 -  
 - cbdomainLength  Int32
 -  
 - use  Int32
 -  
 
Return Value
Boolean
See Also