Microsoft DirectX 8.1 (C++) |
Registers an entry point in the client's code that receives the messages from the IDirectPlay8Client interface and from the server. This method must be called before calling any other methods of this interface.
HRESULT Initialize( PVOID const pvUserContext, const PFNDPNMESSAGEHANDLER pfn, const DWORD dwFlags );
Returns S_OK if successful, or one of the following error values.
DPNERR_INVALIDFLAGS |
DPNERR_INVALIDPARAM |
This is the first method you should call after using CoCreateInstance to obtain the IDirectPlay8Client interface.
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 Dplay8.h.