IDP8SimControl::Initialize Method

DirectPlay

 
Microsoft DirectX 9.0 SDK Update (Summer 2003)

IDP8SimControl::Initialize Method


Initializes the IDP8SimControl interface. This method must be called before calling any other methods of this interface.

Syntax

HRESULT Initialize(      
    const DWORD dwFlags );

Parameters

dwFlags
[in] Reserved. Must be 0.

Return Value

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

DP8SIMERR_ALREADYINITIALIZED The DP8Sim control object has already been initialized.
DP8SIMERR_INVALIDFLAGS The flags passed to this method are invalid.
DP8SIMERR_INVALIDOBJECT The DP8Sim control object specified is invalid.
DP8SIMERR_MISMATCHEDVERSION A different version of DP8Sim is already in use on this system.

Remarks

Call this method first after using CoCreateInstance to obtain the IDP8SimControl interface.



© 2003 Microsoft Corporation. All rights reserved.