2017-12-19 00:04:06 +00:00
|
|
|
/**
|
2016-09-08 01:04:33 +00:00
|
|
|
* Copyright (c) 2014-present, Facebook, Inc.
|
|
|
|
* All rights reserved.
|
|
|
|
*
|
2019-02-19 18:52:19 +00:00
|
|
|
* This source code is licensed in accordance with the terms specified in
|
|
|
|
* the LICENSE file found in the root directory of this source tree.
|
2016-09-08 01:04:33 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
2020-01-01 00:09:47 +00:00
|
|
|
#include <functional>
|
2016-09-08 01:04:33 +00:00
|
|
|
#include <iostream>
|
core/windows/wmi: Refactor to use smart pointers (#5492)
Summary:
Hi!
This PR refactors the WmiRequest and WmiResultItem classes to use smart pointers to manage their WMI objects. Previously, this code used raw pointers for these objects. The destructors needed to ensure to free these objects, and the move constructors needed to manually transfer the pointer, and set the src pointer to `nullptr`.
Now, `unique_ptr`s are used for most of the objects. `shared_ptr` is used for the `IWbemServices` pointer in preparation for a future PR which will add an identical shared services pointer to the `WmiResultItem` class, for implementing some new functionality there. For reference, you can see that future PR here at https://github.com/trailofbits/osquery-pr/pull/8/.
Conversion to smart pointers for these types requires a custom deleter, so there are some extra `using` statements and custom deletion functions that you'll find. With smart pointers in place, the destructors can be simplified to completely remove the free'ing logic, and the move constructor can be simplified to simply use `std::move`.
Apart from these, the only other part of this PR is adjusting some of the logic in the `WmiRequest` constructor to adjust to these new smart pointers. Specifically, we introduce some locals which are use for the winapi calls, and then `reset` the smart pointers using those locals.
Thanks!
Pull Request resolved: https://github.com/facebook/osquery/pull/5492
Differential Revision: D14368418
Pulled By: akindyakov
fbshipit-source-id: 5a6755aada6ee937f4b6b7cfef6dfd4863bc40fb
2019-03-08 17:24:46 +00:00
|
|
|
#include <memory>
|
2016-09-08 01:04:33 +00:00
|
|
|
#include <string>
|
2020-01-01 00:09:47 +00:00
|
|
|
#include <unordered_map>
|
2016-09-08 01:04:33 +00:00
|
|
|
#include <vector>
|
|
|
|
|
2018-09-21 18:54:31 +00:00
|
|
|
#include <osquery/utils/system/system.h>
|
2018-01-07 04:26:36 +00:00
|
|
|
|
2016-09-08 01:04:33 +00:00
|
|
|
#include <WbemIdl.h>
|
|
|
|
|
2020-08-11 15:54:54 +00:00
|
|
|
#include <osquery/core/tables.h>
|
2016-09-08 01:04:33 +00:00
|
|
|
|
|
|
|
namespace osquery {
|
|
|
|
|
2020-01-01 00:09:47 +00:00
|
|
|
using WmiMethodArgsMap = std::unordered_map<std::string, VARIANT>;
|
core/windows/wmi: Refactor to use smart pointers (#5492)
Summary:
Hi!
This PR refactors the WmiRequest and WmiResultItem classes to use smart pointers to manage their WMI objects. Previously, this code used raw pointers for these objects. The destructors needed to ensure to free these objects, and the move constructors needed to manually transfer the pointer, and set the src pointer to `nullptr`.
Now, `unique_ptr`s are used for most of the objects. `shared_ptr` is used for the `IWbemServices` pointer in preparation for a future PR which will add an identical shared services pointer to the `WmiResultItem` class, for implementing some new functionality there. For reference, you can see that future PR here at https://github.com/trailofbits/osquery-pr/pull/8/.
Conversion to smart pointers for these types requires a custom deleter, so there are some extra `using` statements and custom deletion functions that you'll find. With smart pointers in place, the destructors can be simplified to completely remove the free'ing logic, and the move constructor can be simplified to simply use `std::move`.
Apart from these, the only other part of this PR is adjusting some of the logic in the `WmiRequest` constructor to adjust to these new smart pointers. Specifically, we introduce some locals which are use for the winapi calls, and then `reset` the smart pointers using those locals.
Thanks!
Pull Request resolved: https://github.com/facebook/osquery/pull/5492
Differential Revision: D14368418
Pulled By: akindyakov
fbshipit-source-id: 5a6755aada6ee937f4b6b7cfef6dfd4863bc40fb
2019-03-08 17:24:46 +00:00
|
|
|
|
2020-01-01 00:09:47 +00:00
|
|
|
namespace impl {
|
|
|
|
|
|
|
|
struct WmiObjectDeleter {
|
|
|
|
void operator()(IUnknown* ptr) {
|
|
|
|
if (ptr != nullptr) {
|
|
|
|
ptr->Release();
|
|
|
|
}
|
|
|
|
}
|
core/windows/wmi: Refactor to use smart pointers (#5492)
Summary:
Hi!
This PR refactors the WmiRequest and WmiResultItem classes to use smart pointers to manage their WMI objects. Previously, this code used raw pointers for these objects. The destructors needed to ensure to free these objects, and the move constructors needed to manually transfer the pointer, and set the src pointer to `nullptr`.
Now, `unique_ptr`s are used for most of the objects. `shared_ptr` is used for the `IWbemServices` pointer in preparation for a future PR which will add an identical shared services pointer to the `WmiResultItem` class, for implementing some new functionality there. For reference, you can see that future PR here at https://github.com/trailofbits/osquery-pr/pull/8/.
Conversion to smart pointers for these types requires a custom deleter, so there are some extra `using` statements and custom deletion functions that you'll find. With smart pointers in place, the destructors can be simplified to completely remove the free'ing logic, and the move constructor can be simplified to simply use `std::move`.
Apart from these, the only other part of this PR is adjusting some of the logic in the `WmiRequest` constructor to adjust to these new smart pointers. Specifically, we introduce some locals which are use for the winapi calls, and then `reset` the smart pointers using those locals.
Thanks!
Pull Request resolved: https://github.com/facebook/osquery/pull/5492
Differential Revision: D14368418
Pulled By: akindyakov
fbshipit-source-id: 5a6755aada6ee937f4b6b7cfef6dfd4863bc40fb
2019-03-08 17:24:46 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
} // namespace impl
|
|
|
|
|
2020-01-01 00:09:47 +00:00
|
|
|
/**
|
|
|
|
* @brief Helper class to construct and hold the arguments of a WMI method call
|
|
|
|
*
|
|
|
|
* This class is used somewhat exclusively with WmiResultItem::ExecMethod. It
|
|
|
|
* simplifies the construction of a WMI method argument
|
|
|
|
*/
|
|
|
|
class WmiMethodArgs {
|
|
|
|
public:
|
|
|
|
WmiMethodArgs() {}
|
|
|
|
|
|
|
|
WmiMethodArgs(WmiMethodArgs&& src);
|
|
|
|
WmiMethodArgs(WmiMethodArgs&) = delete;
|
|
|
|
|
|
|
|
~WmiMethodArgs();
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Helper function to add items to the arguments of a WMI method call
|
|
|
|
*
|
|
|
|
* @returns Status indicating the success of the query
|
|
|
|
*/
|
|
|
|
template <typename T>
|
|
|
|
Status Put(const std::string& name, const T& value);
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Getter method for argument dictionary
|
|
|
|
*
|
|
|
|
* @returns Map containing name, value pairs of the arguments
|
|
|
|
*/
|
|
|
|
const WmiMethodArgsMap& GetArguments() const {
|
|
|
|
return arguments;
|
|
|
|
}
|
|
|
|
|
|
|
|
private:
|
|
|
|
WmiMethodArgsMap arguments{};
|
|
|
|
};
|
core/windows/wmi: Refactor to use smart pointers (#5492)
Summary:
Hi!
This PR refactors the WmiRequest and WmiResultItem classes to use smart pointers to manage their WMI objects. Previously, this code used raw pointers for these objects. The destructors needed to ensure to free these objects, and the move constructors needed to manually transfer the pointer, and set the src pointer to `nullptr`.
Now, `unique_ptr`s are used for most of the objects. `shared_ptr` is used for the `IWbemServices` pointer in preparation for a future PR which will add an identical shared services pointer to the `WmiResultItem` class, for implementing some new functionality there. For reference, you can see that future PR here at https://github.com/trailofbits/osquery-pr/pull/8/.
Conversion to smart pointers for these types requires a custom deleter, so there are some extra `using` statements and custom deletion functions that you'll find. With smart pointers in place, the destructors can be simplified to completely remove the free'ing logic, and the move constructor can be simplified to simply use `std::move`.
Apart from these, the only other part of this PR is adjusting some of the logic in the `WmiRequest` constructor to adjust to these new smart pointers. Specifically, we introduce some locals which are use for the winapi calls, and then `reset` the smart pointers using those locals.
Thanks!
Pull Request resolved: https://github.com/facebook/osquery/pull/5492
Differential Revision: D14368418
Pulled By: akindyakov
fbshipit-source-id: 5a6755aada6ee937f4b6b7cfef6dfd4863bc40fb
2019-03-08 17:24:46 +00:00
|
|
|
|
2016-09-08 01:04:33 +00:00
|
|
|
/**
|
2020-01-01 00:09:47 +00:00
|
|
|
* @brief Helper class to hold 1 result object from a WMI request
|
|
|
|
*
|
|
|
|
* This class is used to return to the user just the base type
|
|
|
|
* and value requested from WMI. The class is largely used by
|
|
|
|
* the WmiRequest class defined below
|
|
|
|
*/
|
2016-09-08 01:04:33 +00:00
|
|
|
class WmiResultItem {
|
|
|
|
public:
|
core/windows/wmi: Refactor to use smart pointers (#5492)
Summary:
Hi!
This PR refactors the WmiRequest and WmiResultItem classes to use smart pointers to manage their WMI objects. Previously, this code used raw pointers for these objects. The destructors needed to ensure to free these objects, and the move constructors needed to manually transfer the pointer, and set the src pointer to `nullptr`.
Now, `unique_ptr`s are used for most of the objects. `shared_ptr` is used for the `IWbemServices` pointer in preparation for a future PR which will add an identical shared services pointer to the `WmiResultItem` class, for implementing some new functionality there. For reference, you can see that future PR here at https://github.com/trailofbits/osquery-pr/pull/8/.
Conversion to smart pointers for these types requires a custom deleter, so there are some extra `using` statements and custom deletion functions that you'll find. With smart pointers in place, the destructors can be simplified to completely remove the free'ing logic, and the move constructor can be simplified to simply use `std::move`.
Apart from these, the only other part of this PR is adjusting some of the logic in the `WmiRequest` constructor to adjust to these new smart pointers. Specifically, we introduce some locals which are use for the winapi calls, and then `reset` the smart pointers using those locals.
Thanks!
Pull Request resolved: https://github.com/facebook/osquery/pull/5492
Differential Revision: D14368418
Pulled By: akindyakov
fbshipit-source-id: 5a6755aada6ee937f4b6b7cfef6dfd4863bc40fb
2019-03-08 17:24:46 +00:00
|
|
|
explicit WmiResultItem() {}
|
2016-09-08 01:04:33 +00:00
|
|
|
|
core/windows/wmi: Refactor to use smart pointers (#5492)
Summary:
Hi!
This PR refactors the WmiRequest and WmiResultItem classes to use smart pointers to manage their WMI objects. Previously, this code used raw pointers for these objects. The destructors needed to ensure to free these objects, and the move constructors needed to manually transfer the pointer, and set the src pointer to `nullptr`.
Now, `unique_ptr`s are used for most of the objects. `shared_ptr` is used for the `IWbemServices` pointer in preparation for a future PR which will add an identical shared services pointer to the `WmiResultItem` class, for implementing some new functionality there. For reference, you can see that future PR here at https://github.com/trailofbits/osquery-pr/pull/8/.
Conversion to smart pointers for these types requires a custom deleter, so there are some extra `using` statements and custom deletion functions that you'll find. With smart pointers in place, the destructors can be simplified to completely remove the free'ing logic, and the move constructor can be simplified to simply use `std::move`.
Apart from these, the only other part of this PR is adjusting some of the logic in the `WmiRequest` constructor to adjust to these new smart pointers. Specifically, we introduce some locals which are use for the winapi calls, and then `reset` the smart pointers using those locals.
Thanks!
Pull Request resolved: https://github.com/facebook/osquery/pull/5492
Differential Revision: D14368418
Pulled By: akindyakov
fbshipit-source-id: 5a6755aada6ee937f4b6b7cfef6dfd4863bc40fb
2019-03-08 17:24:46 +00:00
|
|
|
explicit WmiResultItem(IWbemClassObject* result) {
|
|
|
|
result_.reset(result);
|
|
|
|
}
|
|
|
|
|
|
|
|
WmiResultItem(WmiResultItem&& src) = default;
|
2016-09-08 01:04:33 +00:00
|
|
|
|
2020-01-01 00:09:47 +00:00
|
|
|
WmiResultItem& operator=(WmiResultItem&& src) {
|
|
|
|
result_ = std::move(src.result_);
|
|
|
|
return *this;
|
|
|
|
}
|
|
|
|
|
2016-09-08 01:04:33 +00:00
|
|
|
/**
|
2020-01-01 00:09:47 +00:00
|
|
|
* @brief Windows WMI Helper function to print the type associated with
|
|
|
|
* results
|
|
|
|
*
|
|
|
|
* @returns None.
|
|
|
|
*/
|
2016-09-08 01:04:33 +00:00
|
|
|
void PrintType(const std::string& name) const;
|
|
|
|
|
|
|
|
/**
|
2020-01-01 00:09:47 +00:00
|
|
|
* @brief Windows WMI Helper function to retrieve a bool result from a WMI
|
|
|
|
* query
|
|
|
|
*
|
|
|
|
* @returns Status indicating the success of the query
|
|
|
|
*/
|
2016-09-08 01:04:33 +00:00
|
|
|
Status GetBool(const std::string& name, bool& ret) const;
|
|
|
|
|
2016-10-12 16:01:32 +00:00
|
|
|
/**
|
2018-09-11 00:05:44 +00:00
|
|
|
* @brief Windows WMI Helper function to retrieve a local/non-local FILETIME
|
|
|
|
* from WMI query.
|
|
|
|
*
|
|
|
|
* @returns Status indiciating the success of the query
|
|
|
|
*/
|
|
|
|
Status GetDateTime(const std::string& name,
|
|
|
|
bool is_local,
|
|
|
|
FILETIME& ft) const;
|
|
|
|
|
|
|
|
/**
|
|
|
|
* @brief Windows WMI Helper function to retrieve an unsigned Char from WMI
|
|
|
|
* query
|
|
|
|
*
|
|
|
|
* @returns Status indiciating the success of the query
|
|
|
|
*/
|
2016-10-12 16:01:32 +00:00
|
|
|
Status GetUChar(const std::string& name, unsigned char& ret) const;
|
|
|
|
|
2017-01-11 03:09:46 +00:00
|
|
|
/**
|
2020-01-01 00:09:47 +00:00
|
|
|
* @brief Windows WMI Helper function to retrieve an unsigned Short from WMI
|
|
|
|
* query
|
|
|
|
*
|
|
|
|
* @returns Status indiciating the success of the query
|
|
|
|
*/
|
2017-01-11 03:09:46 +00:00
|
|
|
Status GetUnsignedShort(const std::string& name, unsigned short& ret) const;
|
|
|
|
|
|
|
|
/**
|
2020-01-01 00:09:47 +00:00
|
|
|
* @brief Windows WMI Helper function to retrieve an unsigned 32 bit integer
|
|
|
|
* from a WMI query
|
|
|
|
*
|
|
|
|
* @returns Status indicating the success of the query
|
|
|
|
*/
|
2017-01-11 03:09:46 +00:00
|
|
|
Status GetUnsignedInt32(const std::string& name, unsigned int& ret) const;
|
|
|
|
|
2016-09-08 01:04:33 +00:00
|
|
|
/**
|
2020-01-01 00:09:47 +00:00
|
|
|
* @brief Windows WMI Helper function to retrieve a Long result from a WMI
|
|
|
|
* query
|
|
|
|
*
|
|
|
|
* @returns Status indicating the success of the query
|
|
|
|
*/
|
2016-09-08 01:04:33 +00:00
|
|
|
Status GetLong(const std::string& name, long& ret) const;
|
|
|
|
|
|
|
|
/**
|
2020-01-01 00:09:47 +00:00
|
|
|
* @brief Windows WMI Helper function to retrieve an unsigned Long result from
|
|
|
|
* a WMI query
|
|
|
|
*
|
|
|
|
* @returns Status indicating the success of the query
|
|
|
|
*/
|
2016-09-08 01:04:33 +00:00
|
|
|
Status GetUnsignedLong(const std::string& name, unsigned long& ret) const;
|
|
|
|
|
|
|
|
/**
|
2020-01-01 00:09:47 +00:00
|
|
|
* @brief Windows WMI Helper function to retrieve a Long Long result from a
|
|
|
|
* WMI query
|
|
|
|
*
|
|
|
|
* @returns Status indicating the success of the query
|
|
|
|
*/
|
2016-09-08 01:04:33 +00:00
|
|
|
Status GetLongLong(const std::string& name, long long& ret) const;
|
|
|
|
|
|
|
|
/**
|
2020-01-01 00:09:47 +00:00
|
|
|
* @brief Windows WMI Helper function to retrieve an Unsigned Long Long result
|
|
|
|
* from a WMI query
|
|
|
|
*
|
|
|
|
* @returns Status indicating the success of the query
|
|
|
|
*/
|
2016-09-08 01:04:33 +00:00
|
|
|
Status GetUnsignedLongLong(const std::string& name,
|
|
|
|
unsigned long long& ret) const;
|
|
|
|
|
|
|
|
/**
|
2020-01-01 00:09:47 +00:00
|
|
|
* @brief Windows WMI Helper function to retrieve a String result from a WMI
|
|
|
|
* query
|
|
|
|
*
|
|
|
|
* @returns Status indicating the success of the query
|
|
|
|
*/
|
2016-09-08 01:04:33 +00:00
|
|
|
Status GetString(const std::string& name, std::string& ret) const;
|
|
|
|
|
2020-07-24 01:23:23 +00:00
|
|
|
/**
|
|
|
|
* @brief Windows WMI Helper function to retrieve a String result from a WMI
|
|
|
|
* query
|
|
|
|
*
|
|
|
|
* @returns Status indicating the success of the query
|
|
|
|
*/
|
|
|
|
Status GetString(const std::wstring& name, std::wstring& ret) const;
|
|
|
|
|
2016-09-08 01:04:33 +00:00
|
|
|
/**
|
2020-01-01 00:09:47 +00:00
|
|
|
* @brief Windows WMI Helper function to retrieve a vector of String result
|
|
|
|
* from
|
|
|
|
* a WMI query
|
|
|
|
*
|
|
|
|
* @returns Status indicating the success of the query
|
|
|
|
*/
|
2016-09-08 01:04:33 +00:00
|
|
|
Status GetVectorOfStrings(const std::string& name,
|
|
|
|
std::vector<std::string>& ret) const;
|
|
|
|
|
|
|
|
private:
|
2020-01-01 00:09:47 +00:00
|
|
|
std::unique_ptr<IWbemClassObject, impl::WmiObjectDeleter> result_{nullptr};
|
2016-09-08 01:04:33 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
2020-01-01 00:09:47 +00:00
|
|
|
* @brief Windows wrapper class for querying WMI
|
|
|
|
*
|
|
|
|
* This class abstracts away the WMI querying logic and
|
|
|
|
* will return WMI results given a query string.
|
|
|
|
*/
|
2016-09-08 01:04:33 +00:00
|
|
|
class WmiRequest {
|
|
|
|
public:
|
2016-12-12 08:23:08 +00:00
|
|
|
explicit WmiRequest(const std::string& query,
|
2020-01-17 04:05:16 +00:00
|
|
|
std::wstring nspace = L"ROOT\\CIMV2");
|
core/windows/wmi: Refactor to use smart pointers (#5492)
Summary:
Hi!
This PR refactors the WmiRequest and WmiResultItem classes to use smart pointers to manage their WMI objects. Previously, this code used raw pointers for these objects. The destructors needed to ensure to free these objects, and the move constructors needed to manually transfer the pointer, and set the src pointer to `nullptr`.
Now, `unique_ptr`s are used for most of the objects. `shared_ptr` is used for the `IWbemServices` pointer in preparation for a future PR which will add an identical shared services pointer to the `WmiResultItem` class, for implementing some new functionality there. For reference, you can see that future PR here at https://github.com/trailofbits/osquery-pr/pull/8/.
Conversion to smart pointers for these types requires a custom deleter, so there are some extra `using` statements and custom deletion functions that you'll find. With smart pointers in place, the destructors can be simplified to completely remove the free'ing logic, and the move constructor can be simplified to simply use `std::move`.
Apart from these, the only other part of this PR is adjusting some of the logic in the `WmiRequest` constructor to adjust to these new smart pointers. Specifically, we introduce some locals which are use for the winapi calls, and then `reset` the smart pointers using those locals.
Thanks!
Pull Request resolved: https://github.com/facebook/osquery/pull/5492
Differential Revision: D14368418
Pulled By: akindyakov
fbshipit-source-id: 5a6755aada6ee937f4b6b7cfef6dfd4863bc40fb
2019-03-08 17:24:46 +00:00
|
|
|
WmiRequest(WmiRequest&& src) = default;
|
2016-09-08 01:04:33 +00:00
|
|
|
|
2018-08-09 09:16:49 +00:00
|
|
|
const std::vector<WmiResultItem>& results() const {
|
2016-09-08 01:04:33 +00:00
|
|
|
return results_;
|
|
|
|
}
|
|
|
|
|
|
|
|
/**
|
2020-01-01 00:09:47 +00:00
|
|
|
* @brief Getter for retrieving the status of a WMI Request
|
|
|
|
*
|
|
|
|
* @returns the status of the WMI request.
|
|
|
|
*/
|
2018-08-09 09:16:49 +00:00
|
|
|
Status getStatus() const {
|
2016-09-08 01:04:33 +00:00
|
|
|
return status_;
|
|
|
|
}
|
|
|
|
|
2020-01-01 00:09:47 +00:00
|
|
|
/**
|
|
|
|
* @brief Windows WMI Helper function to execute a WMI method call on
|
|
|
|
* the given object (wrapped in a result)
|
|
|
|
*
|
|
|
|
* @returns Status indicating the success of the query
|
|
|
|
*/
|
|
|
|
Status ExecMethod(const WmiResultItem& object,
|
|
|
|
const std::string& method,
|
|
|
|
const WmiMethodArgs& args,
|
|
|
|
WmiResultItem& out_result) const;
|
|
|
|
|
2016-09-08 01:04:33 +00:00
|
|
|
private:
|
|
|
|
Status status_;
|
|
|
|
std::vector<WmiResultItem> results_;
|
core/windows/wmi: Refactor to use smart pointers (#5492)
Summary:
Hi!
This PR refactors the WmiRequest and WmiResultItem classes to use smart pointers to manage their WMI objects. Previously, this code used raw pointers for these objects. The destructors needed to ensure to free these objects, and the move constructors needed to manually transfer the pointer, and set the src pointer to `nullptr`.
Now, `unique_ptr`s are used for most of the objects. `shared_ptr` is used for the `IWbemServices` pointer in preparation for a future PR which will add an identical shared services pointer to the `WmiResultItem` class, for implementing some new functionality there. For reference, you can see that future PR here at https://github.com/trailofbits/osquery-pr/pull/8/.
Conversion to smart pointers for these types requires a custom deleter, so there are some extra `using` statements and custom deletion functions that you'll find. With smart pointers in place, the destructors can be simplified to completely remove the free'ing logic, and the move constructor can be simplified to simply use `std::move`.
Apart from these, the only other part of this PR is adjusting some of the logic in the `WmiRequest` constructor to adjust to these new smart pointers. Specifically, we introduce some locals which are use for the winapi calls, and then `reset` the smart pointers using those locals.
Thanks!
Pull Request resolved: https://github.com/facebook/osquery/pull/5492
Differential Revision: D14368418
Pulled By: akindyakov
fbshipit-source-id: 5a6755aada6ee937f4b6b7cfef6dfd4863bc40fb
2019-03-08 17:24:46 +00:00
|
|
|
|
2020-01-01 00:09:47 +00:00
|
|
|
std::unique_ptr<IEnumWbemClassObject, impl::WmiObjectDeleter> enum_{nullptr};
|
|
|
|
std::unique_ptr<IWbemLocator, impl::WmiObjectDeleter> locator_{nullptr};
|
|
|
|
std::unique_ptr<IWbemServices, impl::WmiObjectDeleter> services_{nullptr};
|
2016-09-08 01:04:33 +00:00
|
|
|
};
|
2020-01-01 00:09:47 +00:00
|
|
|
} // namespace osquery
|