C>S 0x05 SID_CLIENTID
0x05
SID_CLIENTID
(does not include protocol header)
(UINT32) Registration Version
(UINT32) Registration Authority
(UINT32) Account Number
(UINT32) Registration Token
(STRING) LAN Computer Name
(STRING) LAN Username
Remarks
This packet was used to ensure that the client's account number was valid. All but the last two fields in this message are now ignored, and may be set to zero.
The 'LAN Computer Name' field is the NetBIOS name of the computer. It can be retrieved using the GetComputerName API.
The 'Lan Username' field is the name of the currently logged on user, and may be retrieved using the GetUserName API.
The following information is historical:
The client would supply this data as issued by a Battle.net server. If the Registration Version, Registration Authority, and Client Token values equated to the account number supplied (Client ID), as determined by an unknown formula, the server would respond with the same values. If they were invalid, the server would assign new values. Registration Version was always 1, Authority was the IP address of the server that issued the account number. Thus, the Client Token was the secret value, used to prove that the client really owned the account in question.
Comments
no one has commented yet.