BOOL FreeDevPropSheets : 1;
BOOL CanDisable : 1;
- BOOL DeviceEnabled : 1;
+ BOOL DeviceStarted : 1;
BOOL DeviceUsageChanged : 1;
BOOL CloseDevInst : 1;
BOOL IsAdmin : 1;
switch (Actions[i])
{
case IDS_ENABLEDEVICE:
- if (dap->DeviceEnabled)
+ if (dap->DeviceStarted)
{
SendMessage(hComboBox,
CB_SETCURSEL,
break;
case IDS_DISABLEDEVICE:
- if (!dap->DeviceEnabled)
+ if (!dap->DeviceStarted)
{
SendMessage(hComboBox,
CB_SETCURSEL,
switch (SelectedUsageAction)
{
case IDS_ENABLEDEVICE:
- if (!dap->DeviceEnabled)
+ if (!dap->DeviceStarted)
{
Ret = EnableDevice(dap->DeviceInfoSet,
&dap->DeviceInfoData,
break;
case IDS_DISABLEDEVICE:
- if (dap->DeviceEnabled)
+ if (dap->DeviceStarted)
{
Ret = EnableDevice(dap->DeviceInfoSet,
&dap->DeviceInfoData,
IDC_DEVUSAGE);
dap->CanDisable = FALSE;
- dap->DeviceEnabled = FALSE;
+ dap->DeviceStarted = FALSE;
if (CanDisableDevice(DeviceInfoData->DevInst,
dap->hMachine,
dap->CanDisable = bFlag;
}
- if (IsDeviceEnabled(DeviceInfoData->DevInst,
+ if (IsDeviceStarted(DeviceInfoData->DevInst,
dap->hMachine,
&bFlag))
{
- dap->DeviceEnabled = bFlag;
+ dap->DeviceStarted = bFlag;
}
/* enable/disable the device usage controls */
BOOL
-IsDeviceEnabled(IN DEVINST DevInst,
+IsDeviceStarted(IN DEVINST DevInst,
IN HMACHINE hMachine,
- OUT BOOL *IsEnabled)
+ OUT BOOL *IsStarted)
{
CONFIGRET cr;
ULONG Status, ProblemNumber;
hMachine);
if (cr == CR_SUCCESS)
{
- *IsEnabled = ((Status & DN_STARTED) != 0);
+ *IsStarted = ((Status & DN_STARTED) != 0);
Ret = TRUE;
}
OUT BOOL *CanDisable);
BOOL
-IsDeviceEnabled(IN DEVINST DevInst,
+IsDeviceStarted(IN DEVINST DevInst,
IN HMACHINE hMachine,
- OUT BOOL *IsEnabled);
+ OUT BOOL *IsStarted);
BOOL
EnableDevice(IN HDEVINFO DeviceInfoSet,