Reactos

[BTHCI] Add a bluetooth class installer stub.

Now we really need a tango-compatible bluetooth icon!

+100 -2
+1
dll/win32/CMakeLists.txt
··· 16 16 add_subdirectory(bcrypt) 17 17 add_subdirectory(beepmidi) 18 18 add_subdirectory(browseui) 19 + add_subdirectory(bthci) 19 20 add_subdirectory(cabinet) 20 21 add_subdirectory(cards) 21 22 add_subdirectory(cfgmgr32)
+11
dll/win32/bthci/CMakeLists.txt
··· 1 + 2 + spec2def(bthci.dll bthci.spec) 3 + 4 + add_library(bthci SHARED 5 + bthci.c 6 + bthci.rc 7 + ${CMAKE_CURRENT_BINARY_DIR}/bthci.def) 8 + 9 + set_module_type(bthci win32dll UNICODE) 10 + add_importlibs(bthci msvcrt kernel32 ntdll) 11 + add_cd_file(TARGET bthci DESTINATION reactos/system32 FOR all)
+56
dll/win32/bthci/bthci.c
··· 1 + /* 2 + * PROJECT: ReactOS system libraries 3 + * LICENSE: GPL-2.0+ (https://spdx.org/licenses/GPL-2.0+) 4 + * PURPOSE: Bluetooth Class installer 5 + * COPYRIGHT: Copyright 2018 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 <setupapi.h> 15 + 16 + #define NDEBUG 17 + #include <debug.h> 18 + 19 + 20 + DWORD 21 + WINAPI 22 + BluetoothClassInstaller( 23 + _In_ DI_FUNCTION InstallFunction, 24 + _In_ HDEVINFO DeviceInfoSet, 25 + _In_ PSP_DEVINFO_DATA DeviceInfoData OPTIONAL) 26 + { 27 + switch (InstallFunction) 28 + { 29 + default: 30 + DPRINT1("Install function %u\n", InstallFunction); 31 + return ERROR_DI_DO_DEFAULT; 32 + } 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 + break; 48 + 49 + case DLL_PROCESS_DETACH: 50 + break; 51 + } 52 + 53 + return TRUE; 54 + } 55 + 56 + /* EOF */
+23
dll/win32/bthci/bthci.rc
··· 1 + #include <windef.h> 2 + #include <winuser.h> 3 + 4 + //#include "resource.h" 5 + 6 + LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL 7 + 8 + #define REACTOS_VERSION_DLL 9 + #define REACTOS_STR_FILE_DESCRIPTION "Bluetooth Class Installer" 10 + #define REACTOS_STR_INTERNAL_NAME "bthci" 11 + #define REACTOS_STR_ORIGINAL_FILENAME "bthci.dll" 12 + 13 + #include <reactos/version.rc> 14 + #include <reactos/manifest_dll.rc> 15 + 16 + //IDI_BLUETOOTH ICON "resources/bluetooth.ico" 17 + 18 + /* UTF-8 */ 19 + #pragma code_page(65001) 20 + 21 + //#ifdef LANGUAGE_EN_US 22 + // #include "lang/en-US.rc" 23 + //#endif
+1
dll/win32/bthci/bthci.spec
··· 1 + 1 stdcall BluetoothClassInstaller(long ptr ptr)
+8 -2
media/inf/bth.inf
··· 6 6 DriverVer=03/27/2012,1.0.0 7 7 8 8 [DestinationDirs] 9 - DefaultDestDir = 12 9 + DefaultDestDir = 11 10 + BluetoothClass.NT.Files = 11 11 + FreeBT.Files = 12 10 12 11 13 [ClassInstall32.NT] 12 14 AddReg=BluetoothClass.NT.AddReg 15 + CopyFiles=BluetoothClass.NT.Files 13 16 14 17 [BluetoothClass.NT.AddReg] 15 18 HKR, , , 0, %BluetoothClassName% 16 19 HKR, , NoInstallClass, 0, 1 17 - ;HKR,,Installer32,,"bthci.dll,BluetoothClassInstaller" 20 + HKR, , Installer32, , "bthci.dll,BluetoothClassInstaller" 18 21 ;HKR, , Icon, 0, "201" 22 + 23 + [BluetoothClass.NT.Files] 24 + bthci.dll 19 25 20 26 [Manufacturer] 21 27 %ReactOS%=ReactOS