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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user