Reference Library
LoginProof Method (buffer, startIndex, totalLength, salt, serverKey)
NamespacesMBNCSUtilNLSLoginProof(array<Byte>[]()[][], Int32, Int32, array<Byte>[]()[][], array<Byte>[]()[][])
Adds the account login proof (for SID_AUTH_ACCOUNTLOGONPROOF) to the specified buffer at the specified location.
Declaration Syntax
C#Visual BasicVisual C++
public int LoginProof(
	byte[] buffer,
	int startIndex,
	int totalLength,
	byte[] salt,
	byte[] serverKey
)
Public Function LoginProof ( _
	buffer As Byte(), _
	startIndex As Integer, _
	totalLength As Integer, _
	salt As Byte(), _
	serverKey As Byte() _
) As Integer
public:
int LoginProof(
	array<unsigned char>^ buffer, 
	int startIndex, 
	int totalLength, 
	array<unsigned char>^ salt, 
	array<unsigned char>^ serverKey
)
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.
salt (array<Byte>[]()[][])
The salt value, sent from the server in SID_AUTH_ACCOUNTLOGON.
serverKey (array<Byte>[]()[][])
The server key, sent from the server in SID_AUTH_ACCOUNTLOGON.
Return Value
The total number of bytes written to the buffer.
Remarks

The writeable length of the buffer must be at least 20 bytes.

This method should be called after the LoginAccount method.

Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionThrown if the salt or server key values are not exactly 32 bytes.
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)