Microsoft DirectX 8.1 (Visual Basic)

DirectPlayVoiceClient8.Initialize

Initializes the DirectPlayVoiceClient8 object by associating the DirectPlayVoiceClient8 object with a DirectPlay object.

This method must be called successfully before DirectPlayVoiceClient8.Connect method is called.

Initialize(DplayObj As Unknown, lFlags As Long)

Parts

DplayObj
Pointer to the IUnknown interface for the DirectPlay object that this DirectPlayVoiceClient8 object should use.
lFlags
Reserved. Must be 0.

Error Codes

If the method fails, Err.Number can be set to one of the following values.

DVERR_INVALIDPARAM
DVERR_ALREADYINITIALIZED
DVERR_INVALIDPOINTER
DVERR_TRANSPORTNOTINIT
DVERR_NOCALLBACK
DVERR_GENERIC