NetQueryServiceAccount function
Gets information about the specified managed service account.
Syntax
NTSTATUS WINAPI NetQueryServiceAccount( _In_opt_ LPWSTR ServerName, _In_ LPWSTR AccountName, _In_ DWORD InfoLevel, _Out_ PBYTE *Buffer );
Parameters
- ServerName [in, optional]
-
The value of this parameter must be NULL.
- AccountName [in]
-
The name of the account to be created.
- InfoLevel [in]
-
Specifies the format of the data returned in the Buffer parameter. This can be the following value.
Value Meaning - 0
The Buffer parameter contains an MSA_INFO_0 structure.
- Buffer [out]
-
Information about the specified service account.
When you have finished using this buffer, free it by calling the NetApiBufferFree function.
Return value
If the function succeeds, it returns STATUS_SUCCESS.
If the function fails, it returns an error code.
Requirements
|
Minimum supported client |
Windows 7 [desktop apps only] |
|---|---|
|
Minimum supported server |
Windows Server 2008 R2 [desktop apps only] |
|
Header |
|
|
DLL |
|
See also