Reference Library
LoginProof Method (stream, salt, serverKey)
NamespacesMBNCSUtilNLSLoginProof(Stream, array<Byte>[]()[][], array<Byte>[]()[][])
Adds the account login proof (for SID_AUTH_ACCOUNTLOGONPROOF) to the specified stream at the current location.
Declaration Syntax
C#Visual BasicVisual C++
public int LoginProof(
	Stream stream,
	byte[] salt,
	byte[] serverKey
)
Public Function LoginProof ( _
	stream As Stream, _
	salt As Byte(), _
	serverKey As Byte() _
) As Integer
public:
int LoginProof(
	Stream^ stream, 
	array<unsigned char>^ salt, 
	array<unsigned char>^ serverKey
)
Parameters
stream (Stream)
The stream to modify.
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 stream 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)