win-pvdrivers

changeset 498:e1663de619d3

Tidyup to xenhide
author James Harper <james.harper@bendigoit.com.au>
date Fri Dec 19 22:08:53 2008 +1100 (2008-12-19)
parents 312a41f82b8f
children 31740cd55fb9
files xenhide/xenhide.c
line diff
     1.1 --- a/xenhide/xenhide.c	Fri Dec 19 22:08:17 2008 +1100
     1.2 +++ b/xenhide/xenhide.c	Fri Dec 19 22:08:53 2008 +1100
     1.3 @@ -274,41 +274,13 @@ XenHide_SendAndWaitForIrp(PDEVICE_OBJECT
     1.4  XenHide_Pnp_StartDevice(PDEVICE_OBJECT device_object, PIRP irp)
     1.5  {
     1.6    NTSTATUS status;
     1.7 -#if 0
     1.8 -  PIO_STACK_LOCATION stack;
     1.9 -  PCM_RESOURCE_LIST crl;
    1.10 -  PCM_PARTIAL_RESOURCE_LIST prl;
    1.11 -#endif
    1.12  
    1.13    UNREFERENCED_PARAMETER(device_object);
    1.14  
    1.15    FUNCTION_ENTER();
    1.16  
    1.17 -#if 0
    1.18 -  stack = IoGetCurrentIrpStackLocation(irp);
    1.19 -
    1.20 -  crl = stack->Parameters.StartDevice.AllocatedResourcesTranslated;
    1.21 -  prl = &crl->List[0].PartialResourceList;
    1.22 -  KdPrint((__DRIVER_NAME "     AllocatedResourcesTranslated count old value = %d\n", prl->Count));
    1.23 -  prl->Count = 0;
    1.24 -  crl = stack->Parameters.StartDevice.AllocatedResources;
    1.25 -  prl = &crl->List[0].PartialResourceList;
    1.26 -  KdPrint((__DRIVER_NAME "     AllocatedResources count old value = %d\n", prl->Count));
    1.27 -  prl->Count = 0;
    1.28 -#endif
    1.29 -
    1.30    IoMarkIrpPending(irp);
    1.31    status = XenHide_SendAndWaitForIrp(device_object, irp);
    1.32 -
    1.33 -#if 0
    1.34 -  crl = stack->Parameters.StartDevice.AllocatedResourcesTranslated;
    1.35 -  prl = &crl->List[0].PartialResourceList;
    1.36 -  KdPrint((__DRIVER_NAME "     AllocatedResourcesTranslated count value = %d\n", prl->Count));
    1.37 -  crl = stack->Parameters.StartDevice.AllocatedResources;
    1.38 -  prl = &crl->List[0].PartialResourceList;
    1.39 -  KdPrint((__DRIVER_NAME "     AllocatedResources count value = %d\n", prl->Count));
    1.40 -#endif
    1.41 -
    1.42    XenHide_QueueWorkItem(device_object, XenHide_Pnp_StartDeviceCallback, irp);
    1.43  
    1.44    FUNCTION_EXIT();