cutting@microsoft.com Download the code (7KB) |
Dino Esposito |
New Features in Windows 98
Not all the features of Windows 98 have been previously released. There are some minor user interface enhancements such as animated menus and windows. There are also a number of system improvements, such as memory management optimization, that result in faster startup for executables. The problems experienced under Windows 95 with system file and registry maintenance and version conflicts prompted the introduction of an updated Microsoft System Information utility (see Figure 1). The Accessories folder in the Start | Programs menu is filled with a bunch of new tools, too. Figure 2 summarizes the new features in Windows 98. Let's examine them in a bit more detail.
Microsoft Office 97, Visual Studio 97, and Internet Explorer 4.0 each present an attractive menu whose main
Figure 3: 3D Borders |
The Accessories folder is full of new or improved tools. Of these, Paint and Imaging are worthy of special mention. Paint now supports JPEG and GIF formats, and Imaging offers additional tools for manipulating and storing images (see Figure 5).
One of the most revolutionary improvements in Windows 98 is FAT32, a 32-bit version of the system file allocation table. With its ability to store data more efficiently, you
can potentially save several hundred megabytes of disk space. Also, programs will run faster because they require less memory and fewer resources to load. A specialized tool can convert your system from FAT16, the previous standard.
There is a drawback to converting to FAT32: you will not be able to run any operating system older than Windows 98 or Windows NT® 5.0 (the exception being some OEM installations of Windows 95 OSR2). If you have set up your machine for multibooting between Windows 98 and Windows NT 4.0, you should not convert to FAT32. For more details, see the online help file.
Disk maintenance is now easier thanks to three utilities: Disk Cleanup, Registry Checker, and a new version of Dr. Watson. All can be run from the System Information applet shown in Figure 1. Disk Cleanup attempts to identify and remove unneeded files. The Registry Checker lets you back up the registry files on demand.
Architectural Changes
Plug and play was a key feature of Windows 95. This functionality has been improved in Windows 98 with enhanced support for infrared devices and new hardware standards such as Universal Serial Bus (USB), IEEE 1394, and Digital Video Disc (DVD).
There is also built-in support for Advanced Configuration and Power Interface (ACPI), which as an open industry standard hopefully will make PCs as easy to use as televisions. And speaking of television, the new Microsoft Broadcast Architecture in Windows 98 will let you receive selected multimedia Internet content via a television cable, provided that you have a television tuner board.
Multimonitor support, MMX technology, and enhanced display change capability complete the list of system-related features. The new display features, first introduced with Windows 95b (OSR2), let you change your color depth or screen size on the fly. Since some programs do not display correctly when you make changes on the fly, Windows 98 gives you the option to reboot.
One of the coolest innovations in Windows 98 is the Win32® Driver Model (WDM). This is a platform-independent format for device drivers that lets hardware manufacturers write a single driver for Windows 98, Windows NT 5.0, and all future Windows operating systems. For details on WDM, check Walter Oney's articles, "Surveying the new Win32 Driver Model for Windows NT 5.0 and Windows 98," in the November and December 1997 issues of MIND's sister magazine, Microsoft Systems Journal (MSJ).
True Web Integration
The expression "True Web Integration" means using the same method for browsing the local hard
disk and the Web. In the past, you navigated local directories using Windows Explorer and the Web using Internet Explorer, Netscape Navigator, or some other browser. You had to switch programs to visit folders on your local network versus the Internet. The new Active Desktop blurs the distinction between local and remote folders, making both accessible via the same tool and following the same metaphor.
I already covered Active Desktop and True Web Integration in a previous Cutting Edge column (MIND, March 1998), so I won't delve into details such as folder customization, channels, or desktop items. Instead, I'll focus on the integrated Internet shell found in Windows 98.
Figure 6: Explorer Web Page View |
Figure 6 shows the Web Page view in the new Windows Explorer. There are some slight changes from the Internet Explorer 4.0 user interface. The standard Web view makes better use of space, but functionally it is much the same. If you type the name of an ActiveX® document on the address bar, it will open in Explorer's right panel. Explorer itself is capable of displaying GIF, JPEG, text, and HTML files as preview thumbnails (see Figure 7). If you've installed Office 97, you can view Microsoft Excel, Word, or PowerPoint® documents in Explorer as well.
The Internet appears as a folder on your desktop, and the system switches seamlessly back and forth between Internet Explorer and File Explorer as you access local and remote files. If the HTML page is a frameset, then the individual HTML pages are listed in the left-hand tree view under the Internet Explorer node. Another feature of the integrated shell is Back and Forward buttons that work for local files as well as Web pages. There is also an autocompletion feature for the address field, a better Favorites utility, and improved printing capabilities. |
Figure 7: Explorer File Preview |
The inclusion of the Internet Explorer 4.0 WebBrowser control brings the power of scriptlets, Dynamic HTML, ActiveX, and Java applets to Windows shell folders. As discussed in a previous installment of Cutting Edge (see MIND, March 1998), you can customize a given folder and make a real application of it through scripting. The Windows Scripting Host, featured in the June 1998 Cutting Edge, turns any ActiveX scripting-compliant language (like VBScript or JScript) into an MS-DOS®-like batch language for communicating with the system's shell.
Offline Browsing
|
|
A user should be able to browse any content, whether it is remote or local, cached or not. Windows 98 will warn you with a cursor change when you need to go online to view requested content. The CoInternetQueryInfo function in the UrlMon library lets you know in advance whether a certain page or document has been cached and is available offline: |
|
First you check the network for a given URL, and then you verify whether it's been cached.
Other Internet Features
Windows 98 also improves upon a handful of wizards and small utilities that were part of previous releases of Internet Explorer. Among these are the Internet Connection and Web Publishing wizards, the Chat and Wallet controls, the VRML viewer, and the RealAudio player. The Windows 98 Internet kit includes an Online Services Folder with ready-to-run setup programs for registering with some of the major ISPs. A more interesting addition is the client module for the Virtual Private Networking (VPN) service. This lets users securely access private corporate networks through open public networks such as the Internet. VPN makes use of the Point-To-Point Tunneling protocol (PPTP). Companies like Microsoft have already converted many of their RAS servers into PPTP hosts, giving authorized users the ability to dial in from anywhere by way of a local host. After installing Windows 98, a new item called Windows Update is added to your Start menu (see Figure 8). This is an Internet shortcut that points to the following URL: http://windowsupdate.microsoft.com/default.htm This Web site contains updated drivers, libraries, and files, and is available only to registered users of Windows 98. It provides easy-to-install patches, FAQs, and troubleshooting wizards that make it simple to keep your system up to date. You can't access this site if you're running Windows 95 or Windows NT 4.0, but access will be extended to registered users of Windows NT 5.0.
Personal Web Server
|
Figure 9: Updated Personal Web Server |
This new PWS is far superior to previous versions. For example, it now includes Microsoft Transaction Server 2.0, Message Queue Server, Data Access components, and most importantly, full support for ASP and RDS, features previously only available to installations of Internet Information Server under Windows NT 4.0. Its user interface has also been improved, and now boasts a home page wizard, facilities for publishing, an automatic guest book, and the console shown in Figure 9.
Programming for Windows 98
|
Figure 10: Gradient Fill Support |
The effects that Windows 98 provides by default for menus and comboboxes are available for your own windows through the AnimateWindow function. Here's an example of how to code a window that zooms up to its desired size rather than just appearing all at once.
|
|
The sample dialog-based application shown in Figure 10 calls this code while responding to the WM_INITDIALOG message (see Figure 11). Note that I used LoadLibrary and FreeLibrary to avoid using .h and .lib files that were subject to change at the time of this writing. This method can also be used to write wrapper functions that work well (or degrade gracefully) under previous versions of Windows.
There are many other new programming features in Windows 98, mostly related to shell programming. There are also a host of new COM interfaces and system objects, and I'll be covering some of these in future Cutting Edge columns. Before completing this article, however, I'd like to discuss the new task-scheduling features in Windows 98, including new scheduling agent COM interfaces and the Task Scheduler.
Scheduling Tasks for Execution
|
Figure 12: Task Scheduler |
If your goal, however, is simply to perform a task at a regularly scheduled time, your best choice is to launch the Windows 98 Task Scheduler. The main window is a custom folder like the one used to add a new printer or dial-up networking connection. Selecting the Add Scheduled Task item launches a wizard that lets you enter the information needed to set up a scheduled job (see Figure 12). First you pick an executable from a dropdown list, and then you indicate the frequency and the scheduled time.
Summary
|
From the July 1998 issue of Microsoft Interactive Developer.