ReactOS  0.4.13-dev-1148-g9b75b67
unload.cpp File Reference
#include "udffs.h"
Include dependency graph for unload.cpp:

Go to the source code of this file.

Functions

VOID NTAPI UDFDriverUnload (IN PDRIVER_OBJECT DriverObject)
 

Function Documentation

◆ UDFDriverUnload()

VOID NTAPI UDFDriverUnload ( IN PDRIVER_OBJECT  DriverObject)

Definition at line 10 of file unload.cpp.

13 {
14 // UNICODE_STRING uniWin32NameString;
16 
17  //
18  // All *THIS* driver needs to do is to delete the device object and the
19  // symbolic link between our device name and the Win32 visible name.
20  //
21  // Almost every other driver ever written would need to do a
22  // significant amount of work here deallocating stuff.
23  //
24 
25  UDFPrint( ("UDF: Unloading!!\n") );
26 
27  // prevent mount oparations
29 
30  // wait for all volumes to be dismounted
31  delay.QuadPart = 10*1000*1000*10;
32  while(TRUE) {
33  UDFPrint(("Poll...\n"));
35  }
36 
37  // Create counted string version of our Win32 device name.
38 
39 
40 // RtlInitUnicodeString( &uniWin32NameString, DOS_DEVICE_NAME );
41 
42 
43  // Delete the link from our device name to a name in the Win32 namespace.
44 
45 
46 // IoDeleteSymbolicLink( &uniWin32NameString );
47 
48 
49  // Finally delete our device object
50 
51 
52 // IoDeleteDevice( DriverObject->DeviceObject );
53 }
#define UDFPrint(Args)
Definition: udffs.h:225
#define TRUE
Definition: types.h:120
#define UDF_DATA_FLAGS_BEING_UNLOADED
Definition: udf_common.h:636
NTSTATUS NTAPI KeDelayExecutionThread(IN KPROCESSOR_MODE WaitMode, IN BOOLEAN Alertable, IN PLARGE_INTEGER Interval OPTIONAL)
Definition: wait.c:283
void delay(unsigned msec)
Definition: i386rtl.c:32
UDFData UDFGlobalData
Definition: udfinit.cpp:25
uint32 UDFFlags
Definition: udf_common.h:627

Referenced by UDFInitializeFunctionPointers().