Reference Library
CreateAccount Method (stream)
NamespacesMBNCSUtilNLSCreateAccount(Stream)
Adds the account creation information (for SID_AUTH_ACCOUNTCREATE) to the specified stream at the current location.
Declaration Syntax
C#Visual BasicVisual C++
public int CreateAccount(
	Stream stream
)
Public Function CreateAccount ( _
	stream As Stream _
) As Integer
public:
int CreateAccount(
	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 65 bytes plus the length of the user name.

This method must be called first if you are creating a new account.

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)