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
This commit is contained in:
@@ -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_
|
#ifndef _WX_DC_H_BASE_
|
||||||
#define _WX_DC_H_BASE_
|
#define _WX_DC_H_BASE_
|
||||||
|
|
||||||
|
@@ -338,3 +338,16 @@ long wxExecute(char **argv, bool sync, wxProcess *handler)
|
|||||||
|
|
||||||
return wxExecute(command, sync, 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;
|
||||||
|
}
|
||||||
|
Reference in New Issue
Block a user