Freigeben über


IAMDirectSound::GetFocusWindow

 
Microsoft DirectShow 9.0

IAMDirectSound::GetFocusWindow

The GetFocusWindow method retrieves the window that is handling sound playback.

Syntax

  HRESULT GetFocusWindow(
  HWND* hWnd,
  BOOL* bMixingOnOrOff
);

Parameters

hWnd

[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.

bMixingOnOrOff

[out]  Pointer to a variable that receives one of the following values.

Value Description
TRUE The sound is audible when the window loses focus.
FALSE The sound is not audible when the windows loses focus.

Return Values

Returns an HRESULT value. Possible values include the following.

Return code Description
E_FAIL Failure.
E_POINTER NULL pointer argument.
S_OK The method succeeded.

Requirements

Header: Include Amaudio.h.

Library: Use Strmiids.lib.

See Also