xref: /reactos/dll/win32/storprop/storprop.c (revision 40462c92)
1 /*
2  * PROJECT:     ReactOS system libraries
3  * LICENSE:     GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
4  * PURPOSE:     Storage device properties
5  * COPYRIGHT:   2020 Eric Kohl (eric.kohl@reactos.org)
6  */
7 
8 #define WIN32_NO_STATUS
9 #include <stdarg.h>
10 #include <windef.h>
11 #include <winbase.h>
12 #include <winreg.h>
13 #include <winuser.h>
14 #include <commctrl.h>
15 #include <setupapi.h>
16 
17 #define NDEBUG
18 #include <debug.h>
19 
20 HINSTANCE hInstance = NULL;
21 
22 DWORD
23 WINAPI
24 DiskClassInstaller(
25     _In_ DI_FUNCTION InstallFunction,
26     _In_ HDEVINFO DeviceInfoSet,
27     _In_ PSP_DEVINFO_DATA DeviceInfoData OPTIONAL)
28 {
29     DPRINT("DiskClassInstaller(%u %p %p)\n",
30            InstallFunction, DeviceInfoSet, DeviceInfoData);
31 
32     return ERROR_DI_DO_DEFAULT;
33 }
34 
35 
36 BOOL
37 WINAPI
38 DllMain(
39     _In_ HINSTANCE hinstDll,
40     _In_ DWORD dwReason,
41     _In_ LPVOID reserved)
42 {
43     switch (dwReason)
44     {
45         case DLL_PROCESS_ATTACH:
46             DisableThreadLibraryCalls(hinstDll);
47             hInstance = hinstDll;
48             break;
49 
50         case DLL_PROCESS_DETACH:
51             hInstance = NULL;
52             break;
53     }
54 
55    return TRUE;
56 }
57 
58 /* EOF */
59