Share via


SetWindowInfo (Industry 8.1)

7/8/2014

Review the use, syntax, parameters, and return values of the SetWindownInfo method of the IObjectInfoEx API in Windows Embedded 8.1 Industry (Industry 8.1).

This method initializes the values of an IObjectInfoEx instance.

Syntax

HRESULT SetWindowInfo(
    [in] ULONG ProcessId,
    [in] BSTR ProcessName,
    [in] FILTER_HWND Handle,
    [in] BSTR WindowClass,
    [in] BSTR WindowTitle,
    [in] LONG X,
    [in] LONG Y
);

Parameters

  • ProcessId
    The unique identifier of the window's process (also known as a PID) that can be seen in Task Manager.
  • ProcessName
    The name of the process.
  • Handle
    The handle (HWND) that the operating system assigned to the window.
  • WindowClass
    A string value used by the programming language and kernel to categorize and group windows by their purpose. It is never visible to the user but can be seen using tools such as Spy++.
  • WindowTitle
    The title of the window.
  • X
    Numeric expression that specifies, in twips, the horizontal distance of the left edge of the window from the left edge of the screen. This measurement refers to the position of the window before it is moved off the screen.
  • Y
    Numeric expression that specifies, in twips, the vertical distance of the upper edge of the window from the top of the screen. This measurement refers to the position of the window before it is moved off the screen.

Return Value

Returns the following:

Return value

Description

ERROR_SUCCESS

The operation completed successfully.

ERROR_INVALID_PARAMETER

If a parameter is NULL or of the wrong type.

See Also

Reference

IObjectInfoEx interface

Concepts

IObjectInfoEx interface methods
Dialog Filter