]> git.saurik.com Git - wxWidgets.git/commitdiff
wxGetFullHostName() implemented - it doesn't work though (and won't even
authorVadim Zeitlin <vadim@wxwidgets.org>
Mon, 14 Jun 1999 00:00:47 +0000 (00:00 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Mon, 14 Jun 1999 00:00:47 +0000 (00:00 +0000)
compile under Win16 I think - TODO)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2775 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/dc.h
src/msw/utilsexc.cpp

index 588fc2406869bdd01b84820508ac328e3f2c342c..1b60a8e4df003d2d6d4eef45a12fc9dfda03af4f 100644 (file)
@@ -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_
 
index bcb9faf6a3958becb4ffa2bf0910876f52b3f6a4..d33c8215e86850ef09ba6952aaf5ddc251499c04 100644 (file)
@@ -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;
+}