* Properly mark some unreferenced parameters as such.
svn path=/trunk/; revision=59609
{
PMOUNTDEV_UNIQUE_ID UniqueId = Context;
+ UNREFERENCED_PARAMETER(ValueType);
+ UNREFERENCED_PARAMETER(EntryContext);
+
/* Ensure it matches, and delete */
if ((UniqueId->UniqueIdLength == ValueLength) &&
(RtlCompareMemory(UniqueId->UniqueId, ValueData, ValueLength) ==
NTAPI
ReconcileThisDatabaseWithMasterWorker(IN PVOID Parameter)
{
+ UNREFERENCED_PARAMETER(Parameter);
return;
}
PDEVICE_EXTENSION DeviceExtension;
OBJECT_ATTRIBUTES ObjectAttributes;
+ UNREFERENCED_PARAMETER(DeviceObject);
+
InitializeObjectAttributes(&ObjectAttributes,
&SafeVolumes,
OBJ_CASE_INSENSITIVE | OBJ_KERNEL_HANDLE,
PFILE_NAME_INFORMATION FileNameInfo;
PREPARSE_DATA_BUFFER ReparseDataBuffer;
+ UNREFERENCED_PARAMETER(ReparsePointInformation);
+
if (!FileName)
{
InitializeObjectAttributes(&ObjectAttributes,
OBJECT_ATTRIBUTES ObjectAttributes, MigrateAttributes;
#define TEMP_BUFFER_SIZE 0x200
+ UNREFERENCED_PARAMETER(DeviceObject);
+
/* Extract context */
WorkItem = Context;
DeviceInformation = WorkItem->DeviceInformation;
PMOUNTDEV_UNIQUE_ID IntUniqueId;
PMOUNTDEV_UNIQUE_ID * UniqueId;
+ UNREFERENCED_PARAMETER(ValueName);
+ UNREFERENCED_PARAMETER(ValueType);
+ UNREFERENCED_PARAMETER(EntryContext);
+
/* Sanity check */
if (ValueLength >= 0x10000)
{
PMOUNTDEV_UNIQUE_ID UniqueId;
UNICODE_STRING RegistryEntry;
+ UNREFERENCED_PARAMETER(EntryContext);
+
if (ValueType != REG_BINARY)
{
return STATUS_SUCCESS;
{
PMOUNTDEV_UNIQUE_ID UniqueId = Context;
+ UNREFERENCED_PARAMETER(EntryContext);
+
/* Ensure we have correct input */
if (ValueName[0] != L'#' || ValueType != REG_BINARY ||
UniqueId->UniqueIdLength != ValueLength)
PDEVICE_INFORMATION DeviceInformation;
NTSTATUS ArrivalStatus, Status = STATUS_SUCCESS;
+ UNREFERENCED_PARAMETER(Irp);
+
/* No offline volumes, nothing more to do */
if (IsListEmpty(&(DeviceExtension->OfflineDeviceListHead)))
{
UNICODE_STRING ValueString;
PUNICODE_STRING SystemVolumeName;
+ UNREFERENCED_PARAMETER(ValueName);
+ UNREFERENCED_PARAMETER(ValueLength);
+ UNREFERENCED_PARAMETER(EntryContext);
+
if (ValueType != REG_SZ)
{
return STATUS_SUCCESS;
MountMgrQueryDosVolumePath(IN PDEVICE_EXTENSION DeviceExtension,
IN PIRP Irp)
{
+ UNREFERENCED_PARAMETER(DeviceExtension);
+ UNREFERENCED_PARAMETER(Irp);
return STATUS_NOT_IMPLEMENTED;
}
MountMgrQueryDosVolumePaths(IN PDEVICE_EXTENSION DeviceExtension,
IN PIRP Irp)
{
+ UNREFERENCED_PARAMETER(DeviceExtension);
+ UNREFERENCED_PARAMETER(Irp);
return STATUS_NOT_IMPLEMENTED;
}
IN PIRP Irp,
IN NTSTATUS LockStatus)
{
+ UNREFERENCED_PARAMETER(DeviceExtension);
+ UNREFERENCED_PARAMETER(Irp);
+ UNREFERENCED_PARAMETER(LockStatus);
return STATUS_NOT_IMPLEMENTED;
}
IN PIRP Irp,
IN NTSTATUS LockStatus)
{
+ UNREFERENCED_PARAMETER(DeviceExtension);
+ UNREFERENCED_PARAMETER(Irp);
+ UNREFERENCED_PARAMETER(LockStatus);
return STATUS_NOT_IMPLEMENTED;
}
PDEVICE_INFORMATION DeviceInformation;
PSAVED_LINK_INFORMATION SavedLinkInformation;
+ UNREFERENCED_PARAMETER(DriverObject);
+
/* Don't get notification any longer */
IoUnregisterShutdownNotification(gdeviceObject);
PIO_STACK_LOCATION Stack;
NTSTATUS Status = STATUS_SUCCESS;
+ UNREFERENCED_PARAMETER(DeviceObject);
+
Stack = IoGetCurrentIrpStackLocation(Irp);
/* Allow driver opening for communication
MountMgrCancel(IN PDEVICE_OBJECT DeviceObject,
IN PIRP Irp)
{
+ UNREFERENCED_PARAMETER(DeviceObject);
+
RemoveEntryList(&(Irp->Tail.Overlay.ListEntry));
IoReleaseCancelSpinLock(Irp->CancelIrql);
PMOUNTDEV_UNIQUE_ID OldUniqueId, NewUniqueId;
PMOUNTDEV_UNIQUE_ID_CHANGE_NOTIFY_OUTPUT UniqueIdChange;
+ UNREFERENCED_PARAMETER(DeviceObject);
+
/* Validate worker */
if (!NT_SUCCESS(WorkItem->Irp->IoStatus.Status))
{
{
PUNIQUE_ID_WORK_ITEM WorkItem = Context;
+ UNREFERENCED_PARAMETER(DeviceObject);
+ UNREFERENCED_PARAMETER(Irp);
+
/* Simply queue the work item */
IoQueueWorkItem(WorkItem->WorkItem,
UniqueIdChangeNotifyWorker,
NTSTATUS Status;
UNICODE_STRING GlobalName;
+ UNREFERENCED_PARAMETER(DeviceName);
+
/* First create the global string */
Status = CreateStringWithGlobal(DosName, &GlobalName);
if (!NT_SUCCESS(Status))
BOOLEAN WriteNew;
RTL_QUERY_REGISTRY_TABLE QueryTable[2];
+ UNREFERENCED_PARAMETER(DeviceExtension);
+
/* First of all, count links */
RtlZeroMemory(QueryTable, sizeof(QueryTable));
QueryTable[0].QueryRoutine = SymbolicLinkNamesFromUniqueIdCount;