/ src / modules / Workspaces / WorkspacesLib / WbemHelper.h
WbemHelper.h
 1  #pragma once
 2  
 3  struct IWbemLocator;
 4  struct IWbemServices;
 5  
 6  class WbemHelper
 7  {
 8  public:
 9      static std::unique_ptr<WbemHelper> Create();
10      ~WbemHelper();
11  
12      std::wstring GetCommandLineArgs(DWORD processID) const;
13      std::wstring GetExecutablePath(DWORD processID) const;
14  
15  private:
16      WbemHelper() = default;
17  
18      bool Initialize();
19  
20      std::wstring Query(const std::wstring& query, const std::wstring& propertyName) const;
21  
22      IWbemLocator* m_locator = NULL;
23      IWbemServices* m_services = NULL;
24  };