Common.h 605 B

123456789101112131415161718
  1. #pragma once
  2. #include <Windows.h>
  3. #include <string>
  4. bool AddFirewallRule(bool add, LPWSTR exeName, LPWSTR exeFile);
  5. bool QueryServiceStatusExW(LPCWSTR serviceName, SERVICE_STATUS_PROCESS* status);
  6. bool IsServiceRunningW(LPCWSTR serviceName);
  7. bool MyCreateServiceW(LPCWSTR serviceName, LPCWSTR displayName, LPCWSTR binaryPath);
  8. bool MyDeleteServiceW(LPCWSTR serviceName);
  9. bool MyStartServiceW(LPCWSTR serviceName);
  10. bool MyStopServiceW(LPCWSTR serviceName);
  11. std::wstring ReadConfig(const std::wstring& filename, const std::wstring& key);
  12. void UninstallDriver(LPCWSTR hardwareId, BOOL &rebootRequired);