mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 16:12:58 +00:00
Git conversion: Make reactos the root directory, move rosapps, rostests, wallpapers into modules, and delete rossubsys.
This commit is contained in:
parent
b94e2d8ca0
commit
c2c66aff7d
24198 changed files with 0 additions and 37285 deletions
53
drivers/filesystems/udfs/unload.cpp
Normal file
53
drivers/filesystems/udfs/unload.cpp
Normal file
|
@ -0,0 +1,53 @@
|
|||
////////////////////////////////////////////////////////////////////
|
||||
// Copyright (C) Alexander Telyatnikov, Ivan Keliukh, Yegor Anchishkin, SKIF Software, 1999-2013. Kiev, Ukraine
|
||||
// All rights reserved
|
||||
// This file was released under the GPLv2 on June 2015.
|
||||
////////////////////////////////////////////////////////////////////
|
||||
#include "udffs.h"
|
||||
|
||||
VOID
|
||||
NTAPI
|
||||
UDFDriverUnload(
|
||||
IN PDRIVER_OBJECT DriverObject
|
||||
)
|
||||
{
|
||||
// UNICODE_STRING uniWin32NameString;
|
||||
LARGE_INTEGER delay;
|
||||
|
||||
//
|
||||
// All *THIS* driver needs to do is to delete the device object and the
|
||||
// symbolic link between our device name and the Win32 visible name.
|
||||
//
|
||||
// Almost every other driver ever written would need to do a
|
||||
// significant amount of work here deallocating stuff.
|
||||
//
|
||||
|
||||
UDFPrint( ("UDF: Unloading!!\n") );
|
||||
|
||||
// prevent mount oparations
|
||||
UDFGlobalData.UDFFlags |= UDF_DATA_FLAGS_BEING_UNLOADED;
|
||||
|
||||
// wait for all volumes to be dismounted
|
||||
delay.QuadPart = 10*1000*1000*10;
|
||||
while(TRUE) {
|
||||
UDFPrint(("Poll...\n"));
|
||||
KeDelayExecutionThread(KernelMode, FALSE, &delay);
|
||||
}
|
||||
|
||||
// Create counted string version of our Win32 device name.
|
||||
|
||||
|
||||
// RtlInitUnicodeString( &uniWin32NameString, DOS_DEVICE_NAME );
|
||||
|
||||
|
||||
// Delete the link from our device name to a name in the Win32 namespace.
|
||||
|
||||
|
||||
// IoDeleteSymbolicLink( &uniWin32NameString );
|
||||
|
||||
|
||||
// Finally delete our device object
|
||||
|
||||
|
||||
// IoDeleteDevice( DriverObject->DeviceObject );
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue