Microsoft DirectX 8.1 (C++) |
Registers an entry point in the lobby client's code that receives notifications on changes of state for any launched applications. The message handler also receives messages from the lobbied application. This method must be called before calling any other methods of this interface.
HRESULT Initialize( const PVOID pvUserContext, const PFNDPNMESSAGEHANDLER pfn, const DWORD dwFlags );
Returns S_OK if successful, or one of the following error values.
DPNERR_ALREADYINITIALIZED |
DPNERR_INVALIDFLAGS |
DPNERR_INVALIDPARAM |
DPNERR_NOTALLOWED |
Call this is method first after using CoCreateInstance to obtain the IDirectPlay8LobbyClient interface.
Note Only one instance of IDirectPlay8LobbyClient and IDirectPlay8LobbiedApplication is allowed to be running for each process.
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 Dplobby8.h.