Microsoft DirectX 8.1 (Visual Basic)

DirectPlay8Address.SetUserData

Sets the user data in the address object. If there is user data in this address, it is overwritten by this call.

SetUserData(UserData As Long, lDataSize As Long)

Parts

UserData
Data to place in the user data section of the address. Set to 0 to clear the user data.
lDataSize
Size, in bytes, of the data in UserData. If UserData is 0, this must be 0.

Error Codes

If the method fails, Err.Number can be set to the following value.

DPNERR_NOTALLOWED