Commit bfa51c34 authored by captainwong's avatar captainwong

fix

parent b2230dc6
#pragma once #pragma once
#include "wmi.h" #include "wmi.h"
#include <winioctl.h>
#include <ntddndis.h> // OID_802_3_PERMANENT_ADDRESS ... #include <ntddndis.h> // OID_802_3_PERMANENT_ADDRESS ...
#include <strsafe.h> // StringCch #include <strsafe.h> // StringCch
#include <unordered_map> #include <unordered_map>
......
...@@ -11,6 +11,7 @@ ...@@ -11,6 +11,7 @@
#include <comdef.h> #include <comdef.h>
#include <string> #include <string>
#include <functional> #include <functional>
#include <assert.h>
#pragma comment (lib, "comsuppw.lib") #pragma comment (lib, "comsuppw.lib")
#pragma comment (lib, "wbemuuid.lib") #pragma comment (lib, "wbemuuid.lib")
......
...@@ -21,7 +21,7 @@ int main() ...@@ -21,7 +21,7 @@ int main()
for (auto iter = results.begin(); iter != results.end(); iter++) { for (auto iter = results.begin(); iter != results.end(); iter++) {
printf("%ls: %ls\n", queryTypeString(iter->first), iter->second.data()); printf("%ls: %ls\n", queryTypeString(iter->first), iter->second.data());
} }
//IOCTL_NDIS_QUERY_GLOBAL_STATS
printf("\nJoined results:\n%ls\n", join_result(results, L",").data()); printf("\nJoined results:\n%ls\n", join_result(results, L",").data());
system("pause"); system("pause");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment