1
0
mirror of https://github.com/Ylianst/MeshAgent synced 2026-01-20 09:23:33 +00:00

Updated Windows, so GetHostNameW is dynamically bound, so that it can fallback to gethostname on platforms that lack support, such as Windows Server 2008 R2

This commit is contained in:
Bryan Roe
2019-08-29 09:56:12 -07:00
parent 48590a7dff
commit dabeb6e2ba
2 changed files with 27 additions and 3 deletions

View File

@@ -141,6 +141,7 @@ extern char* MeshAgentHost_BatteryInfo_STRINGS[];
#ifdef WIN32
typedef HRESULT (__stdcall *DpiAwarenessFunc)(PROCESS_DPI_AWARENESS);
typedef int (WSAAPI *GetHostNameWFunc)(PWSTR name, int namelen);
#endif
typedef struct MeshAgentHostContainer