Share via


PHGetAppWindow (Windows Embedded CE 6.0)

1/6/2010

This function retrieves a handle to a window for the requested application, in order to send inter-process communication requests to the window.

Syntax

HWND  PHGetAppWindow(
    PH_APPLICATION Id,
    BOOL SleepRetry
);

Parameters

  • Id
    [in] The application to get. It must be one of the applications in the PH_APPLICATION enumeration.
  • SleepRetry
    [in] Tells the function whether it should retry to get the window handle, if it fails to find the window the first time. If set to TRUE, the function will sleep a specified time and then make another attempt to find the window. It will repeat the attempt up to ten times. If set to FALSE, the function will only attempt the first initial try and then fail if it doesn't succeed.

Return Value

The function returns either the window handle or NULL, depending on whether the call succeeded or failed.

Remarks

Note

This documentation applies to functionality implemented in sample code for PhCommon. For more information, see PhCommon Reference.

Requirements

Header commandapi.hpp
Library PhCommon.dll
Windows Embedded CE Windows Embedded CE 6.0 and later

See Also

Reference

PhCommon Command APIs
PhCommon Reference