NetQueryServiceAccount function (lmaccess.h)
Gets information about the specified managed service account.
Syntax
NTSTATUS NetQueryServiceAccount(
[in, optional] LPWSTR ServerName,
[in] LPWSTR AccountName,
[in] DWORD InfoLevel,
[out] PBYTE *Buffer
);
Parameters
[in, optional] ServerName
The value of this parameter must be NULL.
[in] AccountName
The name of the account to be created.
[in] InfoLevel
Specifies the format of the data returned in the Buffer parameter. This can be the following value.
Value | Meaning |
---|---|
|
The Buffer parameter contains an MSA_INFO_0 structure. |
[out] Buffer
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
Requirement | Value |
---|---|
Minimum supported client | Windows 7 [desktop apps only] |
Minimum supported server | Windows Server 2008 R2 [desktop apps only] |
Target Platform | Windows |
Header | lmaccess.h |
DLL | Netapi32.dll |