Reference Library
CreateAccount Method (buffer, startIndex, totalLength)
NamespacesMBNCSUtilNLSCreateAccount(array<Byte>[]()[][], Int32, Int32)
Adds the account creation information (for SID_AUTH_ACCOUNTCREATE) to the specified buffer at the specified location.
Declaration Syntax
C#Visual BasicVisual C++
public int CreateAccount(
	byte[] buffer,
	int startIndex,
	int totalLength
)
Public Function CreateAccount ( _
	buffer As Byte(), _
	startIndex As Integer, _
	totalLength As Integer _
) As Integer
public:
int CreateAccount(
	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 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 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)