Reference Library
LoginAccount Method (stream)
NamespacesMBNCSUtilNLSLoginAccount(Stream)
Adds the account login information (for SID_AUTH_ACCOUNTLOGON) to the specified stream at the current location.
Declaration Syntax
C#Visual BasicVisual C++
public int LoginAccount(
	Stream stream
)
Public Function LoginAccount ( _
	stream As Stream _
) As Integer
public:
int LoginAccount(
	Stream^ stream
)
Parameters
stream (Stream)
The stream to modify.
Return Value
The total number of bytes written to the stream.
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 stream does not have enough space to add the account creation information.
InvalidOperationExceptionThrown if the object has not yet been initialized.

Assembly: Asgard5Library (Module: Asgard5Library)