mirror of
https://github.com/qtkite/defender-control.git
synced 2024-11-13 19:10:32 +00:00
com fails
This commit is contained in:
parent
d361ef7dee
commit
fe47653a3c
@ -6,6 +6,7 @@
|
||||
|
||||
namespace wmic
|
||||
{
|
||||
|
||||
helper::helper(std::string wnamespace, std::string wclass, std::string wmethod)
|
||||
{
|
||||
// Initialize
|
||||
@ -29,7 +30,7 @@ namespace wmic
|
||||
|
||||
if (FAILED(hres))
|
||||
{
|
||||
last_error = 1;
|
||||
last_error = ERR_COM_FAIL;
|
||||
return;
|
||||
}
|
||||
|
||||
@ -62,7 +63,7 @@ namespace wmic
|
||||
|
||||
if (FAILED(hres))
|
||||
{
|
||||
last_error = 3;
|
||||
last_error = ERR_COM_SEC_FAIL;
|
||||
CoUninitialize();
|
||||
return;
|
||||
}
|
||||
|
@ -12,6 +12,9 @@
|
||||
|
||||
namespace wmic
|
||||
{
|
||||
constexpr int ERR_COM_FAIL = 1;
|
||||
constexpr int ERR_COM_SEC_FAIL = 2;
|
||||
|
||||
enum class variant_type : int
|
||||
{
|
||||
t_bool,
|
||||
|
Loading…
Reference in New Issue
Block a user