mirror of
https://github.com/VSCodium/policy-watcher.git
synced 2025-12-10 18:46:06 -06:00
25 lines
799 B
C++
25 lines
799 B
C++
/*---------------------------------------------------------------------------------------------
|
|
* Copyright (c) Microsoft Corporation. All rights reserved.
|
|
* Licensed under the MIT License. See License.txt in the project root for license information.
|
|
*--------------------------------------------------------------------------------------------*/
|
|
|
|
#ifndef NUMBER_POLICY_H
|
|
#define NUMBER_POLICY_H
|
|
|
|
#include <napi.h>
|
|
#include <windows.h>
|
|
#include "RegistryPolicy.hh"
|
|
|
|
using namespace Napi;
|
|
|
|
class NumberPolicy : public RegistryPolicy<long long>
|
|
{
|
|
public:
|
|
NumberPolicy(const std::string name, const std::string &productName);
|
|
|
|
protected:
|
|
long long parseRegistryValue(LPBYTE buffer, DWORD bufferSize) const;
|
|
Value getJSValue(Env env, long long value) const;
|
|
};
|
|
|
|
#endif |