Leaked source code of windows server 2003
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
#include <windows.h>
#include <ntverp.h>
#define VER_FILETYPE VFT_DLL #define VER_FILESUBTYPE VFT2_UNKNOWN #define VER_FILEDESCRIPTION_STR "Cyclades-Z Enumerator Driver" #define VER_INTERNALNAME_STR "cyclad-z.sys" #define VER_ORIGINALFILENAME_STR "cyclad-z.sys" #define VER_LEGALCOPYRIGHT_YEARS "1997-2001" #define VER_LEGALCOPYRIGHT_STR "Copyright (C) Cyclades Corp. " VER_LEGALCOPYRIGHT_YEARS #define VER_FILEVERSION 1,0,18,0 #define VER_FILEVERSION_STR "1.0.18.0"
#include "common.ver"
#include "log.rc"
// History // // 1.0.18.0 07/06/01 Fix from DDK RC1: IoMarkIrpPending called when // Irp->PendingReturned set in the IoCompletion routine of Device // Power Irp. // 1.0.14.0 04/27/01 _WIN64 code removed. UINumber is always set to 0xFFFFFFFF // when IoGetDeviceProperty fails. // 1.0.13.0 04/25/01 Delete #defines for VER_COMPANYNAME_STR, // VER_PRODUCTNAME_STR, VER_PRODUCTVERSION and // VER_PRODUCTVERSION_STR to fix compilation // warnings. // Fix for Driver Verifier: dispatch handler was returning a // status that was inconsistent with the Irp's // IoStatus.Status field (IoStatus.Status = 00000002, // returned = 00000000) in IRP_MN_REMOVE_DEVICE. // Cycladz_KdPrint in AddDevice replaced by // Cycladz_KdPrint_Def. // Error status logged in CyzLogError in AddDevice. // 1.0.12.0 04/18/01 UINumber hardcoded to 0xFFFFFFFF for _WIN64 // because IoGetDeviceProperty to get UINumber // is failing in 64-bit. // 1.0.11.0 04/16/01 Fix for Driver Verifier: IoMarkIrpPending required // when STATUS_PENDING returned. // 1.0.10.0 04/02/01 Just version change. // 1.0.9.0 03/19/01 Just version change. // 1.0.8.0 03/14/01 Changes for serenum from DDK 2416 (Whistler pre-Beta2) // to DDK 2446 (Whistler pre-Beta2) applied. // 1.0.7.0 03/12/01 Changes for serenum from DDK 2195 (Windows 2000) to DDK // 2416 (Whistler pre-Beta2) applied. // PdoData->HardwareIDs and PdoData->CompIDs freed using // CyclomyFreeUnicodeString instead RtlFreeUnicodeString. // PdoData->InstanceIDs and PdoData->DevDesc were not being // freed, so this was fixed. // Messages logged in case of AddDevice failure. // 1.0.6.0 03/12/01 Just version change. // 1.0.5.0 03/02/01 Child PDO BusNumber was changed from 0 to PCI UINumber // (slot number). This BusNumber is used by cyzport AddDevice. // 1.0.4.0 02/26/01 Just version change. // 1.0.3.0 02/21/01 Fix for mismatch configuration error when returning // from Standby: Z firmware load done only in the // work thread scheduled in the IoCompletion for Device // power Irp. // DDK 2416 serenum power.c changes applied to power.c. // pnp.c: Ze CPU stopped before IRP_MN_REMOVE_DEVICE is sent // to lower drivers; RemoveEvent waited before IoCallDriver. // 1.0.2.0 01/25/01 Driver built with Whistler DDK 2416. // 1.0.1.0 12/06/00 Driver built with Whistler DDK (Beta1). // 1.0.0.11 10/09/00 Added support to interrupt mode when POLL is not defined // during compilation time (in the sources file). // 1.0.0.10 09/20/00 Set DeviceState for PowerSystemSleeping1, PowerSystemSleeping2 // and PowerSystemSleeping3 to PowerDeviceD3 to fix hang in // Standby. // 1.0.0.9 - None. // 1.0.0.8 08/15/00 Fix FDO IRP_MN_CANCEL_REMOVE_DEVICE to have a "return" in the // end instead of "break". This will avoid Fatal System Error // 0x000000d5 (DRIVER_PAGE_FAULT_IN_FREED_SPECIAL_POOL). // 1.0.0.7 - None. // 1.0.0.6 08/05/00 Save firmware version to the Registry, so that it can be // retrieved by cyyport. // 1.0.0.5 07/18/00 Apply all changes that were done in cyclom-y from version // 1.0.0.12 (y033100) to 1.0.0.27 (y071700). // Attached flag in PDO Extension set to FALSE during // PDO IRP_MN_SURPRISE_REMOVAL instead of FDO IRP_MN_REMOVE_DEVICE. // Add error log messages. // 1.0.0.4 03/29/00 Cycladz_ReenumerateDevices fixed to indicate that devices // are not Attached when actual numPorts < FdoData->NumPDOs. // Cycladz_PnPRemove() doesn't need to reset PdoData->Attached // because PdoData will be deleted. // 03/03/00 Add changes from serenum build 1946 to 2000: // - DeviceData->SystemWake and DeviceWake initialized to // PowerSystemUnspecified and PowerDeviceUnspecified in // Cycladz_AddDevice. // - nameLength returned by IoGetDeviceProperty checked for // non zero before returned status is checked. // - Call IoCompleteRequest in case status is // STATUS_UNSUCCESSFUL in FDO IRP_MN_QUERY_STOP_DEVICE. // - FDO IRP_MN_QUERY_DEVICE_RELATIONS calls IoCompleteRequest // in case of failure to allocate buffer for relations. // - Handle FDO IRP_MN_QUERY_CAPABILITIES to get SystemWake // and DeviceWake from lower drivers. // - Create SystemWake and DeviceWake fields in FDO_DEVICE_DATA. // - PDO IRP_MN_QUERY_CAPABILITIES sets SystemWake and // DeviceWake with values returned from FDO // IRP_MN_QUERY_CAPABILITIES. // - PDO IRP_MN_QUERY_ID sets status in each case of switch // instead of before switch. // - Cycladz_InternIoCtl just passes to lower drivers any // non recognized IoControlCode instead of returning // STATUS_INVALID_PARAMETER. // 1.0.0.3 03/01/00 Comment change. // 1.0.0.2 02/29/00 Use "event" local variable instead of allocating // pResFiltEvent from NonPagedPool during. // IRP_MN_FILTER_RESOURCE_REQUIREMENTS. // Comment change. // 1.0.0.1 02/28/00 Fix FDO IRP_MN_CANCEL_STOP_DEVICE: wait for lower drivers // to process this IRP before returning status. // Fix FDO IRP_MN_REMOVE_DEVICE: set Irp->IoStatus.Status // before calling lower drivers. // 1.0.0.0 02/11/00 Initial release.
|