Share via


Device.SetCooperativeLevel(IntPtr,CooperativeLevelFlags) Method (Microsoft.DirectX.DirectInput)

Establishes the cooperative level for this instance of the device. The cooperative level determines how this instance of the device interacts with other instances of the device and the rest of the system.

Definition

Visual Basic Public Sub SetCooperativeLevel( _
    ByVal hwnd As IntPtrLeave Site, _
    ByVal flags As CooperativeLevelFlags _
)
C# public void SetCooperativeLevel(
    IntPtrLeave Site hwnd,
    CooperativeLevelFlags flags
);
C++ public:
void SetCooperativeLevel(
    IntPtrLeave Site hwnd,
    CooperativeLevelFlags flags
);
JScript public function SetCooperativeLevel(
    hwnd : IntPtrLeave Site,
    flags : CooperativeLevelFlags
);

Parameters

hwnd System.IntPtr
flags Microsoft.DirectX.DirectInput.CooperativeLevelFlags