diff --git a/drivers/RpiLanPropertyChange/bcm2836/RpiLanPropertyChange.inf b/drivers/RpiLanPropertyChange/bcm2836/RpiLanPropertyChange.inf new file mode 100644 index 0000000..cc7b2e2 --- /dev/null +++ b/drivers/RpiLanPropertyChange/bcm2836/RpiLanPropertyChange.inf @@ -0,0 +1,55 @@ +; +; RpiLanPropertyChange.inf +; +[Version] +Signature = "$WINDOWS NT$" +Class = SYSTEM +ClassGuid = {4d36e97d-e325-11ce-bfc1-08002be10318} +Provider = %ProviderString% +DriverVer = 04/27/2020,1.0.0.0000 +CatalogFile = RpiLanPropertyChange.cat + +[DestinationDirs] +RpiLanPropertyChange_Files = 11 ;System32 + +[SourceDisksNames] +0 = "Disk" + +[SourceDisksFiles] +RpiLanPropertyChange.dll = 0,, + +[DefaultInstall.NT] +CopyFiles = RpiLanPropertyChange_Files +AddReg = RpiLanPropertyChange_Reg + +[DefaultInstall.NT.Services] +AddService = ,2 + +[RpiLanPropertyChange_Files] +RpiLanPropertyChange.dll + +[RpiLanPropertyChange_Reg] +HKLM, System\ControlSet001\Services\RpiLanPropertyChange , DisplayName , %REG_SZ% , "%ServiceName%" +HKLM, System\ControlSet001\Services\RpiLanPropertyChange , Description , %REG_SZ% , "%ServiceDescription%" +HKLM, System\ControlSet001\Services\RpiLanPropertyChange , ImagePath , %REG_EXPAND_SZ% , "%%systemroot%%\system32\svchost.exe -k netsvcs -p" +HKLM, System\ControlSet001\Services\RpiLanPropertyChange , Type , %REG_DWORD% , 0x0020 +HKLM, System\ControlSet001\Services\RpiLanPropertyChange , Start , %REG_DWORD% , 0x0002 +HKLM, System\ControlSet001\Services\RpiLanPropertyChange , ErrorControl , %REG_DWORD% , 0x0001 +HKLM, System\ControlSet001\Services\RpiLanPropertyChange , ObjectName , %REG_SZ% , "LocalSystem" +HKLM, System\ControlSet001\Services\RpiLanPropertyChange , RequiredPrivileges , %REG_APPEND_MULTI_SZ% , "SeTcbPrivilege" +HKLM, System\ControlSet001\Services\RpiLanPropertyChange\Parameters , ServiceDll , %REG_EXPAND_SZ% , "%%SystemRoot%%\System32\RpiLanPropertyChange.dll" +HKLM, System\ControlSet001\Services\RpiLanPropertyChange\Parameters , ServiceDllUnloadOnStop, %REG_DWORD% , 0x0001 +HKLM, Software\Microsoft\Windows NT\CurrentVersion\Svchost , netsvcs , %REG_APPEND_MULTI_SZ% , "RpiLanPropertyChange" + +[Strings] +ProviderString = "MS-IOT" +MfgName="Microsoft" +ServiceName="Raspberry Pi Lan MAC Updater Service" +ServiceDescription="Update Lan MAC address according to registry setting" + +REG_SZ = 0x00000000 +REG_MULTI_SZ = 0x00010000 +REG_APPEND_MULTI_SZ = 0x00010008 +REG_EXPAND_SZ = 0x00020000 +REG_DWORD = 0x00010001 +REG_BINARY = 0x00000001 \ No newline at end of file diff --git a/drivers/RpiLanPropertyChange/bcm2836/RpiLanPropertyChange.vcxproj b/drivers/RpiLanPropertyChange/bcm2836/RpiLanPropertyChange.vcxproj index 46e5754..fe3db23 100644 --- a/drivers/RpiLanPropertyChange/bcm2836/RpiLanPropertyChange.vcxproj +++ b/drivers/RpiLanPropertyChange/bcm2836/RpiLanPropertyChange.vcxproj @@ -8,10 +8,18 @@ Debug ARM + + Debug + ARM64 + Release ARM + + Release + ARM64 + @@ -39,6 +47,13 @@ true DynamicLibrary + + Windows10 + true + v141 + Unicode + DynamicLibrary + Windows10 false @@ -48,6 +63,14 @@ true DynamicLibrary + + Windows10 + false + v141 + true + Unicode + DynamicLibrary + @@ -55,19 +78,35 @@ + + + + + + + + true - false + true false - false + true + + + true + true + + + false + true @@ -77,6 +116,7 @@ true WIN32;_DEBUG;RPILANPROPERTYCHANGE_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) true + MultiThreadedDebug Windows @@ -86,8 +126,32 @@ true + copy /y "$(ProjectDir)RpiLanPropertyChange.inf" "$(OutDir)" + + + + + + + Use + Level3 + Disabled + true + WIN32;_DEBUG;RPILANPROPERTYCHANGE_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) + true + MultiThreadedDebug + + + Windows + true + service.def + onecore.lib;kernel32.lib;user32.lib;%(AdditionalDependencies) + true + + + copy /y "$(ProjectDir)RpiLanPropertyChange.inf" "$(OutDir)" @@ -104,6 +168,7 @@ true WIN32;NDEBUG;RPILANPROPERTYCHANGE_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) true + MultiThreaded Windows @@ -115,8 +180,32 @@ true - - + copy /y "$(ProjectDir)RpiLanPropertyChange.inf" "$(OutDir)" + + + + + Use + Level3 + MaxSpeed + true + true + true + WIN32;NDEBUG;RPILANPROPERTYCHANGE_EXPORTS;_WINDOWS;_USRDLL;%(PreprocessorDefinitions) + true + MultiThreaded + + + Windows + true + true + true + service.def + onecore.lib;kernel32.lib;user32.lib;%(AdditionalDependencies) + true + + + copy /y "$(ProjectDir)RpiLanPropertyChange.inf" "$(OutDir)" @@ -133,6 +222,8 @@ Create Create + Create + Create