
EnumWnd v1.01 An ATL DLL to demonstrate COM Enumerators and Collections
Welcome to EnumWnd, a tutorial ATL COM
dll which I developed while studying the Collections and Enumerator support
provided by ATL. While reading the "ATL Internals" book by Brent
Rector and Chris Sells, I was struggling with Chapter 7 which explains COM
Enumerators. To improve my understanding of this, I decided to develop a real
world example. The simplest collection I could think of was Top Level Windows
which is what is returned by the Win32 SDK call "EnumWindows".
The enclosed zip file contains the EnumWnd source code, and release binary and a sample VB app to
test all the methods of the classes.
Copyright
- You are allowed to include the source code in
any product (commercial, shareware, freeware or otherwise) when your product
is released in binary form.
- You are allowed to modify the source code in
any way you want except you cannot modify the copyright details at the top
of each module.
- If you want to distribute source code with
your application, then you are only allowed to distribute versions released
by the author. This is to maintain a single distribution point for the
source code.
Updates
V1.0 (20 January 2002)
V1.01 (6 April 2002)
- Fixed a problem with the registration of the coclass
EnumWindow.
- Updated the sample app to use a Reference from the
registry rather than from a location.
- Add the restricted IDL attribute to the _NewEnum
methods to hide that method from scripting type library browsers.