From: Vadim Zeitlin Date: Mon, 14 Jun 1999 00:00:47 +0000 (+0000) Subject: wxGetFullHostName() implemented - it doesn't work though (and won't even X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/006162a9e9312a07bb118db7e16d42ffeb110c87 wxGetFullHostName() implemented - it doesn't work though (and won't even compile under Win16 I think - TODO) git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2775 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/include/wx/dc.h b/include/wx/dc.h index 588fc24068..1b60a8e4df 100644 --- a/include/wx/dc.h +++ b/include/wx/dc.h @@ -1,3 +1,14 @@ +///////////////////////////////////////////////////////////////////////////// +// Name: dc.h +// Purpose: wxDC class +// Author: Vadim Zeitlin +// Modified by: +// Created: 05/25/99 +// RCS-ID: $Id$ +// Copyright: (c) wxWindows team +// Licence: wxWindows licence +///////////////////////////////////////////////////////////////////////////// + #ifndef _WX_DC_H_BASE_ #define _WX_DC_H_BASE_ diff --git a/src/msw/utilsexc.cpp b/src/msw/utilsexc.cpp index bcb9faf6a3..d33c8215e8 100644 --- a/src/msw/utilsexc.cpp +++ b/src/msw/utilsexc.cpp @@ -338,3 +338,16 @@ long wxExecute(char **argv, bool sync, wxProcess *handler) return wxExecute(command, sync, handler); } + +bool wxGetFullHostName(wxChar *buf, int maxSize) +{ + DWORD nSize = maxSize; + if ( !::GetComputerName(buf, &nSize) ) + { + wxLogLastError("GetComputerName"); + + return FALSE; + } + + return TRUE; +}