IAPI::EnableWindow

method EnableWindow.

Enables or disables a target window.

 

HRESULT EnableWindow(
  long hWnd,
  long enable_or_disable
);

Parameters

hWnd

[in] .   Handle of the target window.

         -1 for console window (DOS)

enable_or_disable

[in] .   0 (disable) or 1 (enable)

Return Values

S_OK

The operation was successfull.

E_UNEXPECTED

An unexpected error occoured.

E_FAIL

A general error occoured.

See Also

IAPI