|Microsoft DirectX 9.0|
The GetWindowFocus method retrieves the window that is handling sound playback.
HRESULT GetFocusWindow( HWND* hWnd, BOOL* bMixingOnOrOff );
[out] Pointer to a variable that receives a handle to the window. If sound playback is not associated with a window, the returned value is NULL.
Note Windows NT 4.0 does not support windowless sound playback.
[out] Pointer to a variable that receives one of the following values.
|TRUE||The sound is audible when the window loses focus.|
|FALSE||The sound is not audible when the windows loses focus.|
Returns an HRESULT value. Possible values include the following.
|E_POINTER||NULL pointer argument.|
|S_OK||The method succeeded.|