|
WindowsApiLookupAccountName Method
|
Win32 LookupAccountName function.
Namespace: GSF.InteropAssembly: GSF.Core (in GSF.Core.dll) Version: 2.4.248-beta+a497a19de709fd99e2448886199a2c8824265ddf
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 Boolean
public:
[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