Microsoft DirectX 8.0 (C++)

IDirectPlay8Address::SetUserData

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

HRESULT SetUserData(
const void *const pvUserData,
const DWORD dwDataSize
);

Parameters

pvUserData
Pointer to a buffer that contains the data to place in the user data section of the address. Set to NULL to clear the user data.
dwDataSize
Size, in bytes, of the data in pvUserData. If pvUserData is NULL, this must be 0.

Return Values

Returns S_OK if successful, or one of the following error values.

DPNERR_INVALIDPOINTER
DPNERR_NOTALLOWED

Requirements

  Windows NT/2000: Available as a redistributable for Windows 2000 and later.
  Windows 95/98: Available as a redistributable for Windows 95 and later.
  Header: Declared in Dpaddr.h.