|
System Configuration
Several of the functions in the Win32 API are specifically intended to
describe or change the system configuration. At startup, for example, a computer is
assigned the name listed in the registry. An application can retrieve this name
by using the GetComputerName function and can change the name by using the SetComputerName function. SetComputerName changes the registry, not the current computer name. As a result, the new
name is not assigned until the computer is restarted. For more information about
the registry, see Registry.
The GetUserName function retrieves the name of the user currently logged onto the system. The
user name is either the logon name or the user's full name, if the latter is
included in the registry.
The GetSystemInfo function retrieves processor and memory information, such as the page size,
original equipment manufacturer (OEM) identifier, number and type of processors,
application address range, and so on. The GetVersionEx function retrieves the major and minor revision numbers of the installed
version of Microsoft Windows. The GetKeyboardType function retrieves such information as the type of keyboard and the number of
function keys on the current keyboard.
The SystemParametersInfo function retrieves or sets various system attributes, such as double-click
time, screen saver time-out, window border width, and desktop pattern. When an
application uses SystemParametersInfo to set a parameter, the change takes place immediately. This function also
enables applications to update the user profile, so changes to the system will be
preserved when the system is restarted.
The GetThreadDesktop function retrieves a handle of the desktop for a given thread. This handle
can be used in calls to functions that retrieve and set security attributes.
The Windows directory is the directory that contains Windows-based applications, initialization
files, and Help files. The GetWindowsDirectory function retrieves the path to this directory. Applications that create files
should do so in the Windows directory. This is the only directory guaranteed
to be private to a user running a shared version of Windows.
The system directory is the directory that contains Windows libraries, drivers, and font files.
The GetSystemDirectory function retrieves the path to this directory.
An environment variable is a symbolic variable that represents some element of the system, such as a
path, a filename, or other literal data. For example, the environment variable
PATH represents the directories in which to search for executable files. When a
user logs on, the system initializes environment variables based on the
environment section of the registry. The ExpandEnvironmentStrings function retrieves the values of specified environment variables.
System metrics are the dimensions of various Windows display elements. (Display elements are the parts of a window and the Windows display that appear on the system
display screen.) Typical system metrics include the window border width, icon
height, and so on. System metrics also describe other aspects of the system, such
as whether a mouse is installed, double-byte characters are supported, or a
debugging version of Windows is installed. The GetSystemMetrics function retrieves a specified system metric.
Applications can also retrieve and set the color of window elements such as
menus, scroll bars, and buttons by using the GetSysColor and SetSysColors functions, respectively.
| Last news from Greatis Software |
 |
|
Nostalgia .Net |
|
.Net is powerful, but not all-powerful, so sometimes we need to use Win32 API for our .Net applications. It's simple enough with Platform Invoke if you have Win32 skill, but we do not always have time to dig the ancient documentation, declare the special types that are compatible with Win32, find the values of the Win32's constants and so on. Nostalgia .Net offers several simple-to-use classes, and components that will allow you to forget about the headache of Win32 and just use the power of Win32 in your application the same way as you use the native. Net classes. More » |
| Recommended software for developers |
 |
|
Ultimate Pack |
|
Component pack for Delphi and C++ Builder that contains runtime form designer, runtime object inspector, print suite and much more for the very special price. More » |
 |
|
Form Designer .Net |
|
Unique runtime form design solution that allows to edit any form in .Net WinForms application at runtime with full source codes for only 300 euro! More » |
 |
|
Print Suite .Net |
|
Print Suite .Net is a set of components for easy printing texts, images and grids from your WinForms applications. Full C# source codes are available More » |
 |
|
Gradient Controls .Net |
|
Gradient Controls .Net offers controls with gradient background feature. Labels, panels and so on... Full C# source codes are available More » |
 |
|
Greatis iGrid |
|
iGrid plots drawing grid right over your desktop, so you can use it everywhere, with any drawing application without any special plugins for different graphic editors. More » |
All the contacts and projectsDmitry Vasiliev (just.dmitry)
Related LinksSoftware for Visual Studio .NET developers Software for Delphi and C++ Builder developers Software for Visual Basic 6 developers Delphi Tips&Tricks MegaDetailed.NET More Online Helps Win32 Programmer's Reference Win32 Multimedia Programmer's Reference OLE Programmer's Reference Microsoft Windows Pen API Programmer's Reference Microsoft Windows Sockets 2 Reference Microsoft Windows Telephony API (TAPI) Programmer's Reference Unix Manual Pages
|