IAPI::EnableTopmostWindow

method EnableTopmostWindow.

Makes or unmakes a target window as topmost (always visible)

 

HRESULT EnableTopmostWindow(
  long hWnd,
  long enable_or_disable
);

Parameters

hWnd

[in] .   Handle of the target window.

         -1 for console window (DOS)

enable_or_disable

[in,defaultvalue(1)] . 0 or 1

Return Values

S_OK

The operation was successfull.

E_UNEXPECTED

An unexpected error occoured.

E_FAIL

A general error occoured.

See Also

IAPI