Microsoft DirectX 8.1 (C++) |
Adds a component to the address. If the component is part of the address, it is replaced by the new value in this call.
Values are specified in native formats when making this call. Therefore, the lpvData parameter should be a recast pointer to a variable that holds the data in the native format. For example, if the component is a GUID, the lpvData parameter should be a recast pointer to a GUID.
This method validates that the predefined component types are the right format.
HRESULT AddComponent( const WCHAR *const pwszName, const void *const lpvData, const DWORD dwDataSize, const DWORD dwDataType );
Returns S_OK if successful, or one of the following error values.
DPNERR_INVALIDPARAM |
DPNERR_INVALIDPOINTER |
DPNERR_NOTALLOWED |
See DirectPlay Addressing for a discussion of various address components and their keys.
Windows NT/2000/XP: Available as a redistributable for Windows 2000 and later.
Windows 98/Me: Available as a redistributable for Windows 98 and later.
Header: Declared in Dpaddr.h.