INF: Window Handles of Global Objects

ID Number: Q10213

2.00 2.03 2.10 3.00

WINDOWS

Summary:

A handle is a unique, fixed identifier for a global object. Handles

exist to allow easy, indirect access to an object that may move in

memory.

Handles are unique only among the objects to which they refer. A

handle to a window will always be different from all other handles to

windows, but it could have the same value as a handle to a brush (or

to any other object).

It is safe to hold onto a window handle (or any handle) of a global

object. As long as that object exists, its handle will not change.