network, user and os functionsthe functions in this section are used to retrieve information about the current computer and/or user characteristics.
::wxgetemailaddress
::wxgetemailaddresswxstring wxgetemailaddress() bool wxgetemailaddress(char * buf, int sz) copies the user's email address into the supplied buffer, by concatenating the values returned by wxgetfullhostname and wxgetuserid. returns true if successful, false otherwise. include files <wx/utils.h>
::wxgetfreememorywxmemorysize 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 files <wx/utils.h>
::wxgetfullhostnamewxstring wxgetfullhostname() returns the fqdn (fully qualified domain host name) or an empty string on error. see also include files <wx/utils.h>
::wxgethomedirwxstring wxgethomedir() return the (current) user's home directory. see also include files <wx/utils.h>
::wxgethostnamewxstring wxgethostname() bool wxgethostname(char * buf, int sz) 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. the first variant of this function returns the hostname if successful or an empty string otherwise. the second (deprecated) function returns true if successful, false otherwise. see also include files <wx/utils.h>
::wxgetosdescriptionwxstring 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. see also include files <wx/utils.h>
::wxgetosversionwxoperatingsystemid 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. see also ::wxgetosdescription, wxplatforminfo include files <wx/utils.h>
::wxisplatformlittleendianbool wxisplatformlittleendian() returns true if the current platform is little endian (instead of big endian). the check is performed at run-time. see also include files <wx/utils.h>
::wxisplatform64bitbool 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). very important: this function is not 100% reliable on some systems given the fact that there isn't always a standard way to do a reliable check on the os architecture. include files <wx/utils.h>
::wxgetuserhomeconst wxchar * wxgetuserhome(const wxstring& user = "") returns the home directory for the given user. if the username is empty (default value), this function behaves like wxgethomedir. include files <wx/utils.h>
::wxgetuseridwxstring wxgetuserid() bool wxgetuserid(char * buf, int sz) 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. the first variant of this function returns the login name if successful or an empty string otherwise. the second (deprecated) function returns true if successful, false otherwise. see also include files <wx/utils.h>
::wxgetusernamewxstring wxgetusername() bool wxgetusername(char * buf, int sz) 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. the first variant of this function returns the user name if successful or an empty string otherwise. the second (deprecated) function returns true if successful, false otherwise. see also include files <wx/utils.h>
|