mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-02-24 04:00:02 +01:00
20 lines
494 B
C++
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
|
|
}
|
|
}
|