Related class group: Networking.
Functions | |
wxString | wxGetEmailAddress () |
Copies the user's email address into the supplied buffer, by concatenating the values returned by wxGetFullHostName() and wxGetUserId(). | |
bool | wxGetEmailAddress (char *buf, int sz) |
wxMemorySize | wxGetFreeMemory () |
Returns the amount of free memory in bytes under environments which support it, and -1 if not supported or failed to perform measurement. | |
wxString | wxGetHomeDir () |
Return the (current) user's home directory. | |
wxString | wxGetHostName () |
Copies the current host machine's name into the supplied buffer. | |
bool | wxGetHostName (char *buf, int sz) |
wxString | wxGetFullHostName () |
Returns the FQDN (fully qualified domain host name) or an empty string on error. | |
wxString | wxGetUserHome (const wxString &user=wxEmptyString) |
Returns the home directory for the given user. | |
wxString | wxGetUserId () |
This function returns the "user id" also known as "login name" under Unix (i.e. | |
bool | wxGetUserId (char *buf, int sz) |
wxString | wxGetUserName () |
This function returns the full user name (something like "Mr. John Smith"). | |
bool | wxGetUserName (char *buf, int sz) |
wxString | wxGetOsDescription () |
Returns the string containing the description of the current platform in a user-readable form. | |
wxOperatingSystemId | wxGetOsVersion (int *major=NULL, int *minor=NULL) |
Gets the version and the operating system ID for currently running OS. | |
bool | wxIsPlatform64Bit () |
Returns true if the operating system the program is running under is 64 bit. | |
bool | wxIsPlatformLittleEndian () |
Returns true if the current platform is little endian (instead of big endian). |
bool wxGetEmailAddress | ( | char * | buf, | |
int | sz | |||
) |
buf | Buffer to store the email address in. | |
sz | Size of the buffer. |
#include <wx/utils.h>
wxString wxGetEmailAddress | ( | ) |
Copies the user's email address into the supplied buffer, by concatenating the values returned by wxGetFullHostName() and wxGetUserId().
#include <wx/utils.h>
wxMemorySize wxGetFreeMemory | ( | ) |
Returns the amount of free memory in bytes under environments which support it, and -1 if not supported or failed to perform measurement.
Include file:
#include <wx/utils.h>
wxString wxGetFullHostName | ( | ) |
Returns the FQDN (fully qualified domain host name) or an empty string on error.
#include <wx/utils.h>
wxString wxGetHomeDir | ( | ) |
Return the (current) user's home directory.
#include <wx/utils.h>
bool wxGetHostName | ( | char * | buf, | |
int | sz | |||
) |
buf | Buffer to store the host name in. | |
sz | Size of the buffer. |
#include <wx/utils.h>
wxString wxGetHostName | ( | ) |
Copies the current host machine's name into the supplied buffer.
Please note that the returned name is not fully qualified, i.e. it does not include the domain name.
Under Windows or NT, this function first looks in the environment variable SYSTEM_NAME; if this is not found, the entry HostName in the wxWidgets section of the WIN.INI file is tried.
#include <wx/utils.h>
wxString wxGetOsDescription | ( | ) |
Returns the string containing the description of the current platform in a user-readable form.
For example, this function may return strings like "Windows NT Version 4.0" or "Linux 2.2.2 i386".
#include <wx/utils.h>
wxOperatingSystemId wxGetOsVersion | ( | int * | major = NULL , |
|
int * | minor = NULL | |||
) |
Gets the version and the operating system ID for currently running OS.
See wxPlatformInfo for more details about wxOperatingSystemId.
#include <wx/utils.h>
wxString wxGetUserHome | ( | const wxString & | user = wxEmptyString |
) |
Returns the home directory for the given user.
If the user is empty (default value), this function behaves like wxGetHomeDir() (i.e. returns the current user home directory).
If the home directory couldn't be determined, an empty string is returned.
Include file:
#include <wx/utils.h>
bool wxGetUserId | ( | char * | buf, | |
int | sz | |||
) |
buf | Buffer to store the login name in. | |
sz | Size of the buffer. |
#include <wx/utils.h>
wxString wxGetUserId | ( | ) |
This function returns the "user id" also known as "login name" under Unix (i.e.
something like "jsmith"). It uniquely identifies the current user (on this system). Under Windows or NT, this function first looks in the environment variables USER and LOGNAME; if neither of these is found, the entry UserId in the wxWidgets section of the WIN.INI file is tried.
#include <wx/utils.h>
bool wxGetUserName | ( | char * | buf, | |
int | sz | |||
) |
buf | Buffer to store the full user name in. | |
sz | Size of the buffer. |
#include <wx/utils.h>
wxString wxGetUserName | ( | ) |
This function returns the full user name (something like "Mr. John Smith").
Under Windows or NT, this function looks for the entry UserName in the wxWidgets section of the WIN.INI file. If PenWindows is running, the entry Current in the section User of the PENWIN.INI file is used.
#include <wx/utils.h>
bool wxIsPlatform64Bit | ( | ) |
Returns true if the operating system the program is running under is 64 bit.
The check is performed at run-time and may differ from the value available at compile-time (at compile-time you can just check if sizeof(void*) == 8
) since the program could be running in emulation mode or in a mixed 32/64 bit system (bi-architecture operating system).
#include <wx/utils.h>
bool wxIsPlatformLittleEndian | ( | ) |
Returns true if the current platform is little endian (instead of big endian).
The check is performed at run-time.
#include <wx/utils.h>
![]() |
[ top ] |