Files
PowerToys/src/modules/FileLocksmith/FileLocksmithExt/PowerToysModule.cpp
2026-02-13 19:07:27 +01:00

20 lines
494 B
C++

#include "pch.h"
#include "../FileLocksmithExt/RuntimeRegistration.h"
// Update registration based on enabled state
EXTERN_C __declspec(dllexport) void UpdateFileLocksmithRegistrationWin10(bool enabled)
{
if (enabled)
{
#if defined(ENABLE_REGISTRATION) || defined(NDEBUG)
FileLocksmithRuntimeRegistration::EnsureRegistered();
#endif
}
else
{
#if defined(ENABLE_REGISTRATION) || defined(NDEBUG)
FileLocksmithRuntimeRegistration::Unregister();
#endif
}
}