Reference Library
LoginAccount Method (buffer, startIndex, totalLength)
NamespacesMBNCSUtilNLSLoginAccount(array<Byte>[]()[][], Int32, Int32)
Adds the account login information (for SID_AUTH_ACCOUNTLOGON) to the specified buffer at the specified location.
Declaration Syntax
C#Visual BasicVisual C++
public int LoginAccount(
	byte[] buffer,
	int startIndex,
	int totalLength
)
Public Function LoginAccount ( _
	buffer As Byte(), _
	startIndex As Integer, _
	totalLength As Integer _
) As Integer
public:
int LoginAccount(
	array<unsigned char>^ buffer, 
	int startIndex, 
	int totalLength
)
Parameters
buffer (array<Byte>[]()[][])
The buffer to modify.
startIndex (Int32)
The starting index at which to modify the buffer.
totalLength (Int32)
The total number of bytes from the starting index of the buffer that may be modified.
Return Value
The total number of bytes written to the buffer.
Remarks

The writeable length of the stream must be at least 33 bytes plus the length of the username.

This method may be called first after creating the instance, or after the CreateAccount method.

Exceptions
ExceptionCondition
IOExceptionThrown if the buffer does not have enough space to add the account creation information.
InvalidOperationExceptionThrown if the object has not yet been initialized.

Assembly: Asgard5Library (Module: Asgard5Library)