How to Write a Windows XP Driver
Source: Microsoft Corporation July 2001
Summary: This document describes the steps you should take to create a Microsoft® Windows® XP driver for your device. To create a Windows XP device driver:
-
Install the current Windows DDK. Read the system requirements and installation instructions in the stand-alone Getting Started HTML file supplied with the DDK.
-
Read Getting Started with Windows Drivers. This document guides you through the planning and decision-making process involved in making a Windows device driver from design through distribution. You should also look through the DDK documentation for device-type-specific information.
The DDK documentation set has the following device-type-specific nodes:
-
Battery Devices
-
Display and Print Devices
-
IEEE 1284.4 Devices
-
Interactive Input Devices
-
Modem Devices
-
Multifunction Devices
-
Network Devices and Protocols
-
Parallel Ports and Devices
-
Serial Ports and Devices
-
Smart Card Devices
-
Still Image Devices
-
Storage Devices
-
Streaming Devices (Video and Audio)
-
Devices Requiring VDDs
-
IDE bus are described in System Support for Buses. Driver development for most device types also requires a strong understanding of Windows operating system fundamentals, which are described in Kernel-Mode Driver Architecture.
-
Look through the driver source code provided with the DDK for a sample that represents your device type. Use the sample code where possible, modifying it for your device's specifics.
-
The sample code can enhance your understanding of Windows XP driver implementation requirements and speed your development time.
-
Compile and build your driver. This should be done using the Build utility and not some other compiler, because the Build utility has certain features that are necessary for driver development.
-
Obtain a checked build of Windows XP, so that you can test and debug your driver using free and checked system builds.
-
The checked build of Windows XP provides extensive kernel-mode debugging capabilities not available in the free build.
-
Create an INF file so that you can install and test your driver.
-
Test and debug your driver. You should use Driver Verifier, a program that puts your driver through a variety of tests, stresses, and deliberate failures in order to test its response and reliability in many extreme situations. You should also use a debugger. Microsoft provides several powerful debuggers that can monitor and debug kernel-mode and user-mode drivers.
Using Driver Verifier in conjunction with these debuggers, on both the checked and free versions of the operating system, can be a powerful way to test your driver. -
Provide an installation package so that customers can install devices that use your driver.
-
Submit your driver and installation package to Microsoft so that it can be digitally signed.
There are many resources available to you while developing your driver. The following sites describe some of the support available to you:
-
http://www.microsoft.com/ddk describes how to obtain the current DDK and provides other information, such as a driver development reading list.
-
http://www.microsoft.com/hwdev provides information, such as device-type-specific white papers and late-breaking news, and a list of resources available to driver developers.
-
http://support.microsoft.com/support/ddk contains DDK product support information.
How to create a boot disk
This is quite simple.
1: Go into MY COMPUTER
2: Have a floppy disk in your drive and then RIGHT click on on the floppy drive and then click on FORMAT
3: You will be greeted with a number of options. The one you need to select is "Create an MS-DOS start up disk".
4: Click ok
Note: This requires up to 5 floppy disks and DOES NOT contain ANY CD-ROM drivers to boot from. A proper CD-ROM boot up disk is going to be release by Microsoft after the Windows XP public release. You can however use you old Windows Me start-up disk if you would prefer, as long as you have not upgraded to an NTFS drive.
Music and Audio with XP
Great Digital Media with Windows XP includes everything you need to know to play digital music stored on your PC, on audio CDs, Internet radio stations, and through Web-based streaming audio. But it doesn't end there: With Windows XP, you can almost endlessly configure Microsoft Media Player for Windows XP (MPXP), manage digital music directly from the Windows shell and through MPXP, copy music from audio CDs to your PC, and create your own audio "mix" CDs and data CD backups. And best of all, these capabilities are all built into Windows XP... for free!
Here are some tips for working with digital music and audio in Windows XP.
Copy CD Audio in MP3 format with an MP3 Encoding Add-on Pack
Microsoft Media Player for Windows XP (MPXP) can record CD audio in Windows Media Audio (WMA) 8 format natively, but if you want to use the more common MP3 format, you will need one of several MP3 Encoding Add-on Packs, which will be available for download by the time Windows XP is widely released on October 25. The add-on packs will cost less than $10, and will be available from Cyberlink, InterVideo, and Ravisent.
Use transcoding to save space on portable audio devices.
When copying music from an audio CD to your hard drive, you will probably want to use a decent encoding rate (128 Kbps WMA or 160 Kbps MP3 format) to ensure that the resulting files are as close to CD-quality as possible. But such files are pretty large, and if you're going to be copying them to a portable audio device--such as an Iomega HipZip or a Pocket PC--you won't be able to bring very many songs with you on the road. To overcome this problem, Media Player for Windows XP (MPXP) supports a feature called transcoding, which will let you downsize files on the file as you copy them to a portable device. So you might transcode 128 Kbps WMA files down to 64 Kbps, for example, to fit twice as many songs in the same amount of space, with only a small loss in sound quality. To configure this feature, open MPXP and navigate to Tools, Options, Devices. Then, choose the appropriate device and click Properties. This dialog will allow you to set a custom quality level for music copied to that device.
Use audio CD artwork in your digital media folders.
One of the coolest new features in Windows XP is its album thumbnail generator, which automatically places the appropriate album cover art on the folder to which you are copying music (WMA 8 format by default). But what about those people that have already copied their CDs to the hard drive using MP3 format? You can download album cover art from sites such as cdnow.com or amguide.com, and then use the new Windows XP folder customize feature to display the proper image for each folder. But this takes time--you have to manually edit the folder properties for every single folder--and you will lose customizations if you have to reinstall the OS. There's an excellent fix, however. When you download the album cover art from the Web, just save the images as folder.jpg each time and place them in the appropriate folder. Then, Windows XP will automatically use that image as the thumbnail for that folder and, best of all, will use that image in Windows Media Player for Windows XP (MPXP) if you choose to display album cover art instead of a visualization. And the folder customization is automatic, so it survives an OS reinstallation as well. Your music folders never looked so good! Also, you can save a smaller-sized image albumartsmall.jpg if you'd like: This file is used to store the album art thumbnails you see in folder icons.
How to make My Computer' open in Explore mode with folder list
In My Computer click Tools menu, and then click Options.
Click the File Types tab.In the list of file types, highlight "(NONE) Folders"
Click Advanced button, In the Actions box, highlight "Explore" Click "Set Default"
XP to directly access WebDAV "internet disks"
Windows XP can directly access WebDAV "internet disks" such as Apple's iDisk.
In Internet Explorer, use the "Open..." command, type the name of the WebDAV server you want to access (e.g., http://idisk.mac.com/username) and select the "Open as Web Folder" checkbox. Enter the password when prompted and you're in!
This trick also works on Windows Me and Windows 2000. Interestingly, Windows XP doesn't seem to support iDisk via the "Add a Network Place" command, possible with these other operating systems.
Once set up using the "Open" command, however, the idisk can be accessed by simply double-clicking its icon in the Network Places folder.
Get rid of Windows Messenger
Start->Run->"gpedit.msc""
-Computer Configuration
-Administrative Templates
-Windows Components
-Windows Messenger
Here you can enable
"Do not allow Windows Messenger to be run"
and
"Do not automatically start Windows Messenger initially"
Remove Shared Documents
Open Regedit(Start- Run- Regedit) and navigate to HKEY_LOCAL_MACHINE SOFTWARE Microsoft Windows CurrentVersion Explorer My Computer NameSpace DelegateFolders
There will see a sub-key named {59031a47-3f72-44a7-89c5-5595fe6b30ee}. By Deleting this you can remove the 'Other Files stored on This Computer' group.
Change the text in Internet Explorers title bar to anything you want
In regedit navigate to this key:
HKEY_CURRENT_USERSoftwareMicrosoftInternet ExplorerMain
change the value of the string "Window Title" to whatever you want on the title bar of Internet Explorer - to have no title except the title of the web pages you are browsing do not enter anything for a value.
Reduce Temporary Internet F ile Space
The temporary internet files clutter your hard drive with copies of each page visited. These can build up over time and take up disk space. Even more bothersome is that instead of getting new pages each time IE often takes the page out the temp internet files. This can be a problem if you are viewing a website that is updated all the time. If you are on a slow connection such as a 56K or lower then this can be good but if you are on a fast broadband connection, like me, then you can get away with decreasing the size of your temp internet files to just one meg without any performance decrease.
Launch Internet Explorer.
Select the Tools from the menu bar.
Then select Internet Options... from the drop down menu.
Once the internet options has loaded click on the general tab.
Under the temporary internet files section click the settings button.
A settings window will load. Slide the slider all the way to the left so the size indicated in the text box on the right is one.
Click OK
Click Ok
Enable / Disable Firewall
Open Control Panel and double click on Network Connections. In the new box that appears right click on the Connection and click on the Advanced tab. Check or uncheck the box according to your desire.
Win XP Won’t Completely Shutdown
- Goto Control Panel, then goto Power Options.
- Click on the APM Tab, then check the "Enable Advanced Power Management support."
- Shut down your PC. It should now successfully complete the Shut Down process.
WinXP Clear Page file on shutdown
Go to Control panel Administrative tools, local security policy. then goto local policies ---> security options.
Then change the option for "Shutdown: Clear Virtual Memory Pagefile"
Adjust various visual effects
1. Open up the control panel
2. Go under system and click on the advanced tab
3. Click settings under Performance options
4. You can now change various graphical effects (mainly animations and shadows)
Disable Error Reporting
1. Open Control Panel
2. Click on Performance and Maintenance.
3. Click on System.
4. Then click on the Advanced tab
5. Click on the error-reporting button on the bottom of the windows.
6. Select Disable error reporting.
7. Click OK
8. Click OK
Remove shortcut arrow from desktop icons
Here's how you can remove those shortcut arrows from your desktop icons in Windows XP.
1. Start regedit.
2. Navigate to HKEY_CLASSES_ROOTlnkfile
3. Delete the IsShortcut registry value.
No comments:
Post a Comment