Disk

Summary

The Disk sample is used with Classpnp.sys as disk driver. The sample supports Plug and Play, Power Management, WMI, and failure prediction (S.M.A.R.T.), and it is 64-bit compliant.

Building the Sample

To build the sample, run the build command. Once built, this sample will create one binary: Disk.sys.

CODE TOUR

File Manifest

File			Description

Data.c		List of workarounds for some drives (no code)
Disk.c		Main code base
Disk.h		Private header files
Disk.rc		Resource file
Diskwmi.c		S.M.A.R.T. WMI implementation
Drivesup.c		No longer used
Drivesup.h		No longer used
Enum.c		Enumeration routines for disk drives
Makefile		Makefile
Pnp.c		Start/add/pnp code
Sources		Sources


Top of page

© 1999 Microsoft Corporation