IAPI::WindowHandleToProcessId

property WindowHandleToProcessId.

Retrieves the identifier of the process (PID) that created the window.

 

HRESULT WindowHandleToProcessId(
  long hwnd,
  long *pVal
);

Parameters

hwnd

[in] . Handle to the window

pVal

[out, retval]

. The returned value is the identifier of the process (PID)

  or 1 if no process is found.

Return Values

S_OK

The operation was successfull.

E_POINTER

A NULL pointer was supplied as an argument.

E_UNEXPECTED

An unexpected error occoured.

See Also

IAPI