Inside Server-Based Applications (DV-MPS General) - page 2

Copyright 2000 by Douglas J. Reilly

Microsoft Press
A Division of Microsoft Corporation
One Microsoft Way
Redmond, Washington 98052-6399

Copyright 2000 by Douglas J. Reilly

All rights reserved. No part of the contents of this book may be reproduced or transmitted in any form or by any means without the written permission of the publisher.


Library of Congress Cataloging-in-Publication Data
Reilly, Douglas J.
Inside server-based applications / Douglas J. Reilly.
p. cm.
Includes index.
ISBN 1-57231-817-1
1. Client/server computing. 2. Microsoft Windows (Computer file) 3. Application
software--Development. I. Title.
QA76.9.C55 R448 1999
005.2'769--dc21 99-046394

Printed and bound in the United States of America.

1 2 3 4 5 6 7 8 9   MLML   4 3 2 1 0 9

Distributed in Canada by Penguin Books Canada Limited.>

A CIP catalogue record for this book is available from the British Library.

Microsoft Press books are available through booksellers and distributors worldwide. For further information about international editions, contact your local Microsoft Corporation office or contact Microsoft Press International directly at fax (425) 936-7329. Visit our Web site at

Active Directory, ActiveX, BackOffice, JScript, Microsoft, Microsoft Press, MSDN, MS-DOS, Outlook, PowerPoint, Visual Basic, Visual C++, Visual InterDev, Visual Studio, Win32, Windows, and Windows NT are either registered trademarks or trademarks of Microsoft Corporation in the United States and/or other countries . Other product and company names mentioned herein may be the trademarks of their respective owners .

The example companies, organizations, products, people, and events depicted herein are fictitious. No association with any real company, organization, product, person, or event is intended or should be inferred.

Acquisitions Editor: Ben Ryan
Project Editor: Mary Barnard, Molly Fulton
Technical Editor: Jim Fuchs

Dedicated to my brother Bobby.
We lost him while I was writing this book, far too soon.
I miss him very much.


Inside Server-Based Applications is designed to guide you from being a server-based applications novice to becoming a server-based applications expert. I start with some general background material about server-based applications and then move into the specifics of the APIs and technologies that allow you to create useful server-based applications for Microsoft Windows 2000.

Who Should Read This Book?

I wrote this book for the developer who wants to understand the underlying Win32 programming elements that make server-based development possible. In order to get the most from this book, you should be familiar with C++, especially the Microsoft Visual C++ programming environment. It is not essential that you have extensive experience with the Win32 API, but it won't hurt.

The Active Server Pages (ASP) and Internet Server API (ISAPI) examples in this book assume that you have some familiarity with Internet Information Server (IIS). The ASP examples also assume some familiarity with VBScript or Microsoft Visual Basic. Familiarity is not essential, however, because most of the VBScript used in the examples simply accesses methods of objects, something any C++ programmer will likely be comfortable doing. One of the examples uses JScript created on the server to be passed to the client. You'll also need to know JScript to understand the details of the example, but understanding the broader implications of creating client-side scripting and sending it to the client does not require knowledge of JScript.

Some examples use Microsoft SQL Server, both as a simple data source and as a sever-side development environment. Using SQL Server as a server-side development environment does require some understanding of SQL.