Skip to content

Commit

Permalink
Remove registry code from Ext.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaimecbernardo committed Oct 28, 2022
1 parent 743dd85 commit e0baf30
Show file tree
Hide file tree
Showing 5 changed files with 1 addition and 137 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,6 @@
<ClInclude Include="ExplorerCommand.h" />
<ClInclude Include="IPC.h" />
<ClInclude Include="pch.h" />
<ClInclude Include="Registry.h" />
<ClInclude Include="Settings.h" />
<ClInclude Include="Trace.h" />
<None Include="packages.config" />
Expand Down Expand Up @@ -268,7 +267,6 @@
<PrecompiledHeader Condition="'$(Configuration)|$(Platform)'=='Release|ARM64'">Create</PrecompiledHeader>
</ClCompile>
<ClCompile Include="PowerToysModule.cpp" />
<ClCompile Include="Registry.cpp" />
<ClCompile Include="Settings.cpp" />
<ClCompile Include="Trace.cpp" />
</ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,6 @@
<ClInclude Include="ClassFactory.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="Registry.h">
<Filter>Header Files</Filter>
</ClInclude>
<ClInclude Include="dllmain.h">
<Filter>Header Files</Filter>
</ClInclude>
Expand Down Expand Up @@ -59,9 +56,6 @@
<ClCompile Include="ClassFactory.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="Registry.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="PowerToysModule.cpp">
<Filter>Source Files</Filter>
</ClCompile>
Expand Down
114 changes: 0 additions & 114 deletions src/modules/FileLocksmith/FileLocksmithExt/Registry.cpp

This file was deleted.

6 changes: 0 additions & 6 deletions src/modules/FileLocksmith/FileLocksmithExt/Registry.h

This file was deleted.

10 changes: 1 addition & 9 deletions src/modules/FileLocksmith/FileLocksmithExt/dllmain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// Additional libraries to link
#pragma comment(lib, "shlwapi")

#include "Registry.h"
#include "ClassFactory.h"
#include "Trace.h"

Expand Down Expand Up @@ -35,19 +34,12 @@ BOOL APIENTRY DllMain( HMODULE hModule,

STDAPI DllRegisterServer()
{
if (!add_registry_keys())
{
// Best effort here
delete_registry_keys();
return E_FAIL;
}

return S_OK;
}

STDAPI DllUnregisterServer()
{
return delete_registry_keys() ? S_OK : E_FAIL;
return S_OK;
}

STDAPI DllGetClassObject(REFCLSID clsid, REFIID riid, void** ppv)
Expand Down

0 comments on commit e0baf30

Please sign in to comment.