This is experimental documentation.
Adds the account login proof (for SID_AUTH_ACCOUNTLOGONPROOF)
to the specified buffer at the specified location.

C# | Visual Basic | Visual 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 )

- 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.

The total number of bytes written to the buffer.

The writeable length of the buffer must be at least 20 bytes.
This method should be called after the LoginAccount method.

Exception | Condition |
---|---|
ArgumentOutOfRangeException | Thrown if
the salt or server key values are not exactly 32 bytes. |
IOException | Thrown if the buffer does
not have enough space to add the account creation information. |
InvalidOperationException | Thrown if the object has not
yet been initialized. |
Assembly: Asgard5Library (Module: Asgard5Library)