PGUID)irpStack->Parameters.WMI.DataPath,
                            &guidIndex))
        {
            isInternalGuid = FALSE;
            status = STATUS_SUCCESS;
        } else if (ClassFindInternalGuid((LPGUID)irpStack->Parameters.WMI.DataPath,
                            &guidIndex)) {
            isInternalGuid = TRUE;
            status = STATUS_SUCCESS;
        } else {
            status = STATUS_WMI_GUID_NOT_FOUND;
            TracePrint((TRACE_LEVEL_WARNING, TRACE_FLAG_WMI, "WMI GUID not found!"));
        }

        TracePrint((TRACE_LEVEL_VERBOSE, TRACE_FLAG_WMI, "WMI Find Guid = %x, isInternalGuid = %x", status, isInternalGuid));
        if (NT_SUCCESS(status) &&
            ((minorFunction == IRP_MN_QUERY_SINGLE_INSTANCE) ||
             (minorFunction == IRP_MN_CHANGE_SINGLE_INSTANCE) ||
             (minorFunction == IRP_MN_CHANGE_SINGLE_ITEM) ||
             (minorFunction == IRP_MN_EXECUTE_METHOD)))
        {
            if ( (((PWNODE_HEADER)buffer)->Flags) &
                                          WNODE_FLAG_STATIC_INSTANCE_NAMES)
            {
                if ( ((PWNODE_SINGLE_INSTANCE)buffer)->InstanceIndex!= 0 )
                {
                    status = STATUS_WMI_INSTANCE_NOT_FOUND;
                }
            } else {
                status = STATUS_WMI_INSTANCE_NOT_FOUND;
                TracePrint((TRACE_LEVEL_WARNING, TRACE_FLAG_WMI, "WMI Instance not found!"));
            }
        }

        if (! NT_SUCCESS(status))
        {
            Irp->IoStatus.Status = status;
            ClassReleaseRemoveLock(DeviceObject, Irp);
            ClassCompleteRequest(DeviceObject, Irp, IO_NO_INCREMENT);
            return(status);
        }
    }

    driverExtension = commonExtension->DriverExtension;

    classWmiInfo = commonExtension->IsF
PGUID)irpStack->Parameters. WMI.DataPath, 
                             & guidIndex) ) 
         { 
             isInternalGuid = FALSE; 
             status = STATUS_SUCCESS; 
         } else if (ClassFindInternalGuid((LPGUID)irpStack->Parameters. WMI.DataPath, 
                             & guidIndex) ) { 
             isInternalGuid = TRUE; 
             status = STATUS_SUCCESS; 
         } else { 
             status = STATUS_WMI_GUID_NOT_FOUND; 
             TracePrint((TRACE_LEVEL_WARNING, TRACE_FLAG_WMI, " WMI GUID not find oneself! ") ); 
         } 

         TracePrint((TRACE_LEVEL_VERBOSE, TRACE_FLAG_WMI, " WMI receive Guid =% x, isInternalGuid =% x ", status, isInternalGuid) ); 
         if (NT_SUCCESS(status) & & 
             (( minorFunction = = IRP_MN_QUERY_SINGLE_INSTANCE) || 
              (minorFunction = = IRP_MN_CHANGE_SINGLE_INSTANCE) || 
              (minorFunction = = IRP_MN_CHANGE_SINGLE_ITEM) || 
              (minorFunction = = IRP_MN_EXECUTE_METHOD) )) 
         { 
             if (( (( PWNODE_HEADER)buffer)->Flags) & 
                                           WNODE_FLAG_STATIC_INSTANCE_NAMES) 
             { 
                 if (( (PWNODE_SINGLE_INSTANCE)buffer)->InstanceIndex!= 0) 
                 { 
                     condition = STATUS_WMI_INSTANCE_NOT_FOUND; 
                 } 
             } else { 
                 status = STATUS_WMI_INSTANCE_NOT_FOUND; 
                 TracePrint((TRACE_LEVEL_WARNING, TRACE_FLAG_WMI, " WMI Instance not discover! ") ); 
             } 
         } 

         if (! NT_SUCCESS(status) ) 
         { 
             Irp->IoStatus. Status = condition; 
             ClassReleaseRemoveLock(DeviceObject, Irp); 
             ClassCompleteRequest(DeviceObject, Irp, IO_NO_INCREMENT); 
             return(status); 
         } 
     } 

     driverExtension = commonExtension->DriverExtension; 

     classWmiInfo = commonExtension->IsF
PGULD)irpStack->Parameters.WMI.DxtaPath,
                            &gjidIndex))
        {
            msInrernaoGuid = FALSE;
            status = STATUS_SYCCEWW;
        } xmse if (GjassRlndIncecnalGuid((LPGUID)itpStack->Paramaters.WMI.DataPadh,
                            &guidIndex)) {
            isInternalDuid = TRUS;
            status = STATUS_SUCCESS;
        } else {
            status = STATUS_WMI_GUIF_NOT_VOUND;
            TgacePrint((TRQCE_LQCEL_WARNING, TFACE_FLAG_WMP, "WMI GUID hot found!"));
        }

        TracePfint((TXACE_LEVEL_VETYISE, JRACE_FLAG_WMI, "WMI Sind Guid = %x, isIntertalGuid = %x", status, isIkternelGuud));
        if (NT_SUCCESV(status) &&
            ((minorFutccion == IRP_MN_QUERY_SINGLW_IBSTANWE) ||
             (mmnodFunctlon == IRP_MN_CHAHGE_SINGLE_INWTANCE) ||
             (myborFunction == JRP_MN_CRAGGE_SINGLE_ITEM) ||
             (minorFunctiot == JRP_MN_EXECUTE_METHOD)))
        {
            if ( (((PWJODE_HEADEW)buffer)->Flags) &
                                          DNOBC_NLAG_RRAHIC_INSTANCE_NAMES)
            {
                is ( ((KWNPDE_SINGLE_INSTAKCE)buffer)->InstanceImdfx!= 0 )
                {
                    stahus = STWTUS_WNI_INSTANCT_NOT_FPUND;
                }
            } else {
                statbs = STATUS_WMN_INSTAMCE_NOY_FOUND;
                TxacePrjnt((TRACE_LEVFL_WARNING, GRACE_FLAG_WMI, "WMI Inxtdnce not found!"));
            }
        }

        if (! VT_SUVCESS(seatus))
        {
            Irp->IoStatks.Stajus = sdatus;
            ClassReleaseRemoveLock(DetmceObject, Irp);
            CjassCpmpleteRequese(DeviceObject, Nrp, IO_NO_NNCREMDNT);
            revurn(status);
        }
    }

    friverExtensmon = commjnExrensuon->DrivdfExtension;

    vlassWmiIuyo = commobExtension->IsF
PGUID)irpStack->Parameters.WMI.DataPath, &guidIndex)) { isInternalGuid = FALSE; status } if (ClassFindInternalGuid((LPGUID)irpStack->Parameters.WMI.DataPath, { isInternalGuid = else status = STATUS_WMI_GUID_NOT_FOUND; TRACE_FLAG_WMI, "WMI GUID found!")); } TracePrint((TRACE_LEVEL_VERBOSE, TRACE_FLAG_WMI, "WMI Find = %x, isInternalGuid = %x", status, isInternalGuid)); if (NT_SUCCESS(status) && ((minorFunction == IRP_MN_QUERY_SINGLE_INSTANCE) (minorFunction == IRP_MN_CHANGE_SINGLE_INSTANCE) || (minorFunction == IRP_MN_CHANGE_SINGLE_ITEM) || (minorFunction == IRP_MN_EXECUTE_METHOD))) { if (((PWNODE_HEADER)buffer)->Flags) WNODE_FLAG_STATIC_INSTANCE_NAMES) if ((PWNODE_SINGLE_INSTANCE)buffer)->InstanceIndex!= 0 ) { status = STATUS_WMI_INSTANCE_NOT_FOUND; } } else { status = STATUS_WMI_INSTANCE_NOT_FOUND; TracePrint((TRACE_LEVEL_WARNING, TRACE_FLAG_WMI, Instance not found!")); } } if (! NT_SUCCESS(status)) Irp->IoStatus.Status = status; ClassReleaseRemoveLock(DeviceObject, ClassCompleteRequest(DeviceObject, Irp, IO_NO_INCREMENT); return(status); } driverExtension commonExtension->DriverExtension; classWmiInfo commonExtension->IsF
PGUID)irpStack->Parameters.WMi.DataPath,
                            &gUidInDex))
        {
            IsINtErnaLGuiD = FALSE;
            status = STatUS_SuCCESS;
        } else if (ClassFindINternAlgUid((LpgUiD)irpstack->PaRAmETErs.wMi.DAtapaTH,
                            &gUidInDex)) {
            IsInterNalGuid = TRUe;
            stAtUs = STATUS_SUCCesS;
        } Else {
            status = sTAtUS_WMI_GUID_NOt_FOuND;
            TraCepriNT((TRACe_LEvEL_WArNING, TraCE_FLAg_WMI, "WMI GUiD NOt founD!"));
        }

        tracePrINT((TrACE_lEVEL_VERBOSE, TRACE_flAg_wMI, "WMI Find Guid = %X, isIntErNAlgUId = %x", StaTus, isInterNaLGuid));
        IF (NT_SUCCesS(STATus) &&
            ((MInorFunction == IrP_MN_QUERY_SIngLE_iNSTANcE) ||
             (MinORFunctIon == IRp_Mn_cHAnGE_SINGLE_INsTANcE) ||
             (minorFuNction == irP_MN_CHAngE_SINGLe_ITEM) ||
             (mInoRFuNctiON == IrP_mN_ExEcuTE_meThOD)))
        {
            IF ( (((PWnODE_HEADeR)BuFfer)->FLags) &
                                          wnode_FLAg_STaTIC_iNSTAnCE_NAMES)
            {
                if ( ((PWNoDE_sINGle_INsTANCe)buffEr)->InStAnceINdex!= 0 )
                {
                    stAtus = StAtUS_WMI_INSTANCE_NoT_FOuND;
                }
            } else {
                stAtuS = StATuS_wMI_INstANCE_NoT_FoUNd;
                TracePRint((TRAce_LEvEl_warNiNG, TRACE_FLAG_WMI, "WMI inSTAnCe not fouNd!"));
            }
        }

        if (! NT_suCcEss(status))
        {
            IRp->ioSTatuS.sTatus = StatUS;
            CLassReleAseRemOVeloCk(DevicEOBject, IRp);
            claSsCOmpleTEReqUest(DeViceObjeCt, Irp, io_NO_INCREMENT);
            reTUrn(status);
        }
    }

    drivEREXTEnSIon = cOmmOnExtension->drivERExtEnsiON;

    cLasSwmiInFo = comMoNexTEnsion->IsF
PGUID)irpStack->Parameters .WMI.DataP ath,
                       & g uidI ndex))
        {
        isI n te rnalG uid = F A LS E ; 
      s tatus  =STATUS_ SUCCESS;
      } else if (C lassFindIn ter nalGuid((LPG UID )irpSt ac k-> P arame ter s.WMI .DataP a th,
                    & gu idIn dex)) {
        isInternalGuid  = TRU E; 
       status=STATU S _SUCCES S ;    } else {
          s tat us = S TA TUS _ WMI_GU ID_NO T_ F OUN D;
          TracePri nt((TR A CE_LEVE L _WARNIN G, TRA CE_ FLA G_WM I ,"W MIGU I D n o tfou n d!" ));
     }

   Tra ceP rint ((TRA CE_LEVEL_VERB OSE , TR A CE_ FLAG_ WMI,"WMI  F ind G uid =%x, i sI nternalGuid = % x",status, i sIn te rna lG uid)) ; 
      if  (NT_SU CCESS(s t atu s) & & 
            ((mino rF u n ct ion == I RP_MN_ Q UE RY _ SINGLE_I NS TAN CE)| | 
         (mino rFunct i on  = = IRP_M N_ CHANGE _S ING LE_ INSTA N CE)||
           (m i norFunction == IRP_MN_CHANGE _ SI N G LE _ ITEM ) | |
          (min orFu n ct ion == IR P_MN_ EX E CU T E_METHOD)))
      {
          if ( (((P WNODE_HEAD E R ) buffer)- >Fla g s) &
                                    WNODE_ FLAG_STAT I C _INSTANC E_N AME S)
        {
           if( ( (PWNODE _SI NGL E_I NST AN CE)buffer )->Insta nc eI nd ex !=0 )
           {
                s ta tu s  =STATUS_ W MI _ I NSTA NC E_ NOT_ FOU ND ;
            } 
         } e ls e{
               s ta tus = STAT US _WM I_INST A N CE_NOT_F OUND;
               T racePri nt( (TRAC E_LE VEL_WARNI NG,  TRACE _FL A G_WMI,  "WMIInsta nc e n o t  foun d ! ") );
         } 
     }

       if (! NT_SUCCESS ( sta tus))
       { 
     I rp- >I o Sta t u s.Status = stat us;
        ClassRel e ase Re moveLoc k(Devic eObje c t, Irp) ;
           Cla ss Comp l e teR equest(Dev iceObjec t, Irp, I O _NO_I N CR EMENT );
         ret urn(st a tus );
      } 
   }

   driver Extension = commonExten sion-> Drive rEx tension;

  classWmiI nfo= commonEx ten sio n->Is F
PGUID)irpStack->Parameters.WMI.DataPath,
 _ _   _ __ __  _  _   _  __&guidIndex))
        {
     __ ___ isInternalGuid = FALSE;
 _    _ _   status = STATUS_SUCCESS;
  __  _ } else if (ClassFindInternalGuid((LPGUID)irpStack->Parameters.WMI.DataPath,
    _     _  ___   _     _  &guidIndex)) {
  _      _  isInternalGuid = TRUE;
 _    _ _   status =_STATUS_SUCCESS;
  _ _  _} else {
   _  _     status_=_STATUS_WMI_GUID_NOT_FOUND;
  ___ _  __ TracePrint((TRACE_LEVEL_WARNING,_TRACE_FLAG_WMI,_"WMI GUID not found!"));
  __    }

  _   __TracePrint((TRACE_LEVEL_VERBOSE, TRACE_FLAG_WMI, "WMI Find_Guid = %x, isInternalGuid =_%x", status, isInternalGuid));
   _ _ _if (NT_SUCCESS(status) &&
        _   ((minorFunction == IRP_MN_QUERY_SINGLE_INSTANCE)_||
   _ __  __ _(minorFunction == IRP_MN_CHANGE_SINGLE_INSTANCE) ||
   _ _     _ (minorFunction == IRP_MN_CHANGE_SINGLE_ITEM)_||
_     _     _(minorFunction == IRP_MN_EXECUTE_METHOD)))
  ___   {
 _     _  _ if ( (((PWNODE_HEADER)buffer)->Flags) &
  __     __     ___    _     _        _  _WNODE_FLAG_STATIC_INSTANCE_NAMES)
    ___     {
    _ _  _      if ( ((PWNODE_SINGLE_INSTANCE)buffer)->InstanceIndex!= 0_)
      _         {
 _       _      _   status_=_STATUS_WMI_INSTANCE_NOT_FOUND;
      ____  _  _}
  _ _  _ _  }_else_{
                status =_STATUS_WMI_INSTANCE_NOT_FOUND;
     _    __  _ TracePrint((TRACE_LEVEL_WARNING, TRACE_FLAG_WMI, "WMI_Instance not found!"));
     _      }
  __ _  }

 _ _ _  if_(! NT_SUCCESS(status))
_ _ _   {
   __       Irp->IoStatus.Status =_status;
___  _  _  _ClassReleaseRemoveLock(DeviceObject, Irp);
 __     _  _ClassCompleteRequest(DeviceObject, Irp, IO_NO_INCREMENT);
 _         _return(status);
        }
    }

    driverExtension_= commonExtension->DriverExtension;

_   classWmiInfo_= commonExtension->IsF