INFO: Window Handles of Global Objects

ID: Q10213


The information in this article applies to:
  • Microsoft Windows Software Development Kit (SDK) versions 3.0, 3.1


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.

Additional query words:

Keywords : kb16bitonly kbSDKPlatform kbGrpUser kbWndw
Version : WINDOWS:3.0,3.1
Platform : WINDOWS
Issue type : kbinfo


Last Reviewed: November 4, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.