Home > Back-end >  Scanner hardware failure
Scanner hardware failure

Time:09-29

DEVINST DEVINST;
CONFIGRET status;
For (int I=0; i <(int) g_vcTemp. The size (); + + I)
{
Status=CM_Locate_DevNode (& amp; DevInst, g_vcTemp [I] AllocSysString (), CM_LOCATE_DEVNODE_NORMAL);
If (status==CR_SUCCESS)
{
Status=CM_Reenumerate_DevNode (devInst, 0);
}
}

The status () function returns the 51 CR_ACCESS_DENIED, refused to enter,
Don't know why will be refused entry to, tried three machine, can have a refresh, other two refresh failed, for help!!!!!!

CodePudding user response:

CodePudding user response:

come on

CodePudding user response:

I said the status is the corresponding status=CM_Reenumerate_DevNode (devInst, 0); The return value, refresh the failure,
  • Related