FSOUND_SetHWND

##### [API function]

## FSOUND_SetHWND

This is an optional function to set the window handle of the application
you are writing, so Directsound can tell if it is in focus or not.

signed char F_API FSOUND_SetHWND(
void *hwnd
);

### Parameters

hwnd | Pointer to a HWND windows handle of your application. NULL means it will pick the foreground application window.

### Return Value

On success, TRUE is returned.
On failure, FALSE is returned.

### Remarks

This function cannot be called after FMOD is already activated with FSOUND_Init.
It must be called before FSOUND_Init, or after FSOUND_Close.
---------
FMOD uses GetForegroundWindow if this function is not called.
___________________
Supported on the following platforms : Win32, WinCE

### See Also

FSOUND_Close , FSOUND_Init

This document copyright ©Firelight Technologies, Pty, Ltd, 1999-2002. All rights reserved.
Generated Thu Dec 15 17:31:33 2005 by SourceDoc v0.10, the automated source code documenter.