ReactOS 0.4.15-dev-8614-gbc76250
|
Go to the source code of this file.
Macros | |
#define | GESN_TIMEOUT_VALUE (0x4) |
#define | GESN_BUFFER_SIZE (0x8) |
#define | GESN_DEVICE_BUSY_LOWER_THRESHOLD_100_MS (2) |
#define | MAXIMUM_IMMEDIATE_MCN_RETRIES (0x20) |
#define | MCN_REG_SUBKEY_NAME (L"MediaChangeNotification") |
#define | MCN_REG_AUTORUN_DISABLE_INSTANCE_NAME (L"AlwaysDisableMCN") |
#define | MCN_REG_AUTORUN_ENABLE_INSTANCE_NAME (L"AlwaysEnableMCN") |
#define | TICK_TIMER_PERIOD_IN_MSEC 1000 |
#define | TICK_TIMER_DELAY_IN_MSEC 1000 |
Variables | |
const GUID | StoragePredictFailureEventGuid = WMI_STORAGE_PREDICT_FAILURE_EVENT_GUID |
RTL_QUERY_REGISTRY_ROUTINE | ClasspMediaChangeRegistryCallBack |
IO_WORKITEM_ROUTINE | ClasspFailurePredict |
IO_WORKITEM_ROUTINE | ClasspDisableGesn |
IO_COMPLETION_ROUTINE | ClasspMediaChangeDetectionCompletion |
KDEFERRED_ROUTINE | ClasspTimerTick |
EXT_CALLBACK | ClasspTimerTickEx |
BOOLEAN | ClasspScreenOff = FALSE |
ULONG | BreakOnMcnDisable = FALSE |
#define MCN_REG_AUTORUN_DISABLE_INSTANCE_NAME (L"AlwaysDisableMCN") |
#define MCN_REG_AUTORUN_ENABLE_INSTANCE_NAME (L"AlwaysEnableMCN") |
_Function_class_ | ( | KDEFERRED_ROUTINE | ) |
Definition at line 3496 of file autorun.c.
_Function_class_ | ( | RTL_QUERY_REGISTRY_ROUTINE | ) |
Definition at line 3380 of file autorun.c.
_IRQL_requires_max_ | ( | DISPATCH_LEVEL | ) |
Definition at line 188 of file autorun.c.
_IRQL_requires_max_ | ( | PASSIVE_LEVEL | ) |
Definition at line 1012 of file autorun.c.
VOID NTAPI ClassCheckMediaState | ( | _In_ PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension | ) |
Definition at line 1752 of file autorun.c.
Referenced by _Function_class_(), and ClasspStorageEventNotification().
|
static |
Definition at line 61 of file autorun.c.
Referenced by _Function_class_(), and ClasspFailurePredict().
VOID ClasspDeleteTimer | ( | _In_ PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension | ) |
Definition at line 3798 of file autorun.c.
Referenced by ClassPnpStartDevice().
Definition at line 2373 of file autorun.c.
VOID ClasspDisableTimer | ( | _In_ PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension | ) |
Definition at line 3956 of file autorun.c.
Referenced by ClassDispatchPnp(), and ClasspPowerHandler().
VOID ClasspEnableTimer | ( | _In_ PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension | ) |
Definition at line 3857 of file autorun.c.
Referenced by ClasspDeviceLockFailurePowerIrpCompletion(), and ClasspPowerUpCompletion().
Definition at line 4017 of file autorun.c.
BOOLEAN ClasspFailurePredictionPeriodMissed | ( | _In_ PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension | ) |
Definition at line 4391 of file autorun.c.
Referenced by _Function_class_(), ClasspDeviceLockFailurePowerIrpCompletion(), and ClasspPowerUpCompletion().
NTSTATUS ClasspInitializeGesn | ( | IN PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension, |
IN PMEDIA_CHANGE_DETECTION_INFO | Info | ||
) |
Definition at line 1990 of file autorun.c.
Referenced by ClasspInitializePolling().
NTSTATUS ClasspInitializePolling | ( | IN PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension, |
IN BOOLEAN | AllowDriveToSleep | ||
) |
Definition at line 1834 of file autorun.c.
NTSTATUS ClasspInitializeTimer | ( | _In_ PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension | ) |
Definition at line 3737 of file autorun.c.
Referenced by ClasspEnableTimer(), and ClassPnpStartDevice().
VOID ClasspInternalSetMediaChangeState | ( | IN PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension, |
IN MEDIA_CHANGE_DETECTION_STATE | NewState, | ||
IN BOOLEAN | KnownStateChange | ||
) |
Definition at line 798 of file autorun.c.
Referenced by ClasspSetMediaChangeStateEx().
NTSTATUS ClasspInterpretGesnData | ( | IN PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension, |
IN PNOTIFICATION_EVENT_STATUS_HEADER | Header, | ||
OUT PBOOLEAN | ResendImmediately | ||
) |
Definition at line 251 of file autorun.c.
Referenced by ClasspInitializeGesn(), and ClasspMediaChangeDetectionCompletion().
BOOLEAN ClasspIsMediaChangeDisabledDueToHardwareLimitation | ( | IN PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension, |
IN PUNICODE_STRING | RegistryPath | ||
) |
Definition at line 2727 of file autorun.c.
BOOLEAN ClasspIsMediaChangeDisabledForClass | ( | IN PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension, |
IN PUNICODE_STRING | RegistryPath | ||
) |
Definition at line 2956 of file autorun.c.
NTSTATUS ClasspMcnControl | ( | IN PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension, |
IN PIRP | Irp, | ||
IN PSCSI_REQUEST_BLOCK | Srb | ||
) |
Definition at line 3276 of file autorun.c.
Referenced by ClassDeviceControl().
NTSTATUS NTAPI ClasspMediaChangeDetectionCompletion | ( | PDEVICE_OBJECT | DeviceObject, |
PIRP | Irp, | ||
PVOID | Context | ||
) |
Definition at line 1049 of file autorun.c.
NTSTATUS ClasspMediaChangeDeviceInstanceOverride | ( | IN PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension, |
OUT PBOOLEAN | Enabled | ||
) |
Definition at line 2563 of file autorun.c.
PIRP ClasspPrepareMcnIrp | ( | IN PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension, |
IN PMEDIA_CHANGE_DETECTION_INFO | Info, | ||
IN BOOLEAN | UseGesn | ||
) |
Definition at line 1310 of file autorun.c.
Referenced by ClasspInitializeGesn(), and ClasspSendMediaStateIrp().
VOID ClasspSendMediaStateIrp | ( | IN PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension, |
IN PMEDIA_CHANGE_DETECTION_INFO | Info, | ||
IN ULONG | CountDown | ||
) |
Definition at line 1559 of file autorun.c.
Referenced by ClassCheckMediaState(), and ClasspMediaChangeDetectionCompletion().
VOID ClasspSetMediaChangeStateEx | ( | IN PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension, |
IN MEDIA_CHANGE_DETECTION_STATE | NewState, | ||
IN BOOLEAN | Wait, | ||
IN BOOLEAN | KnownStateChange | ||
) |
Definition at line 950 of file autorun.c.
Referenced by _IRQL_requires_max_(), and ClasspInterpretGesnData().
Definition at line 3462 of file autorun.c.
BOOLEAN ClasspUpdateTimerNoWakeTolerance | ( | _In_ PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension | ) |
Definition at line 3653 of file autorun.c.
Referenced by _Function_class_().
VOID NTAPI ClassResetMediaChangeTimer | ( | _In_ PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension | ) |
Definition at line 1804 of file autorun.c.
Referenced by ClasspMediaChangeDetectionCompletion().
VOID ClassSendEjectionNotification | ( | IN PFUNCTIONAL_DEVICE_EXTENSION | FdoExtension | ) |
Definition at line 155 of file autorun.c.
Referenced by ClassInterpretSenseInfo(), and ClasspInterpretGesnData().
IO_WORKITEM_ROUTINE ClasspDisableGesn |
Definition at line 114 of file autorun.c.
Referenced by ClasspMediaChangeDetectionCompletion().
IO_WORKITEM_ROUTINE ClasspFailurePredict |
Definition at line 105 of file autorun.c.
Referenced by _Function_class_().
IO_COMPLETION_ROUTINE ClasspMediaChangeDetectionCompletion |
Definition at line 116 of file autorun.c.
Referenced by ClasspPrepareMcnIrp().
RTL_QUERY_REGISTRY_ROUTINE ClasspMediaChangeRegistryCallBack |
Definition at line 96 of file autorun.c.
Referenced by ClasspIsMediaChangeDisabledDueToHardwareLimitation().
Definition at line 124 of file autorun.c.
Referenced by _Function_class_(), ClasspCanSendPollingIrp(), ClasspEnableTimer(), ClasspPrepareMcnIrp(), and ClasspUpdateTimerNoWakeTolerance().
KDEFERRED_ROUTINE ClasspTimerTick |
Definition at line 118 of file autorun.c.
Referenced by _Function_class_(), ClasspInitializeTimer(), and ClasspTimerTickEx().
EXT_CALLBACK ClasspTimerTickEx |
Definition at line 121 of file autorun.c.
Referenced by ClasspInitializeTimer().
const GUID StoragePredictFailureEventGuid = WMI_STORAGE_PREDICT_FAILURE_EVENT_GUID |