IAPI::CenterWindow

method CenterWindow.

Centers a target window with the desktop area.

 

HRESULT CenterWindow(
  long hWnd
);

Parameters

hWnd

[in,defaultvalue(-1)] . Handle of the target window or the console window (DOS)

Return Values

S_OK

The operation was successfull.

E_UNEXPECTED

An unexpected error occoured.

E_FAIL

A general error occoured.

See Also

IAPI