Using Win32 functions in Visual FoxPro Image Gallery
System Information
..msdn
ExpandEnvironmentStrings
GetComputerName
GetComputerNameEx
GetComputerObjectName
GetCurrentHwProfile
GetKeyboardType
GetNativeSystemInfo
GetProductInfo
GetSysColor
GetSystemDirectory
GetSystemInfo
GetSystemMetrics
GetSystemRegistryQuota
GetSystemWow64Directory
GetUserName
GetUserNameEx
GetVersion
GetVersionEx
GetWindowsDirectory
IsNetworkAlive
SetComputerName
SetSysColors
SystemParametersInfo
Code examples:
Displaying the associated icons and descriptions for files and folders
How to find which fonts Windows uses for drawing captions, menus and message boxes
Using the SystemParametersInfo function
SystemParametersInfo
..msdn    Add comment     W32 Constants      Translate this page
The SystemParametersInfo function retrieves or sets the value of one of the system-wide parameters. This function can also update the user profile while setting a parameter.
Code examples:
How to find which fonts Windows uses for drawing captions, menus and message boxes
Displaying the associated icons and descriptions for files and folders
Using the SystemParametersInfo function
Declaration:
BOOL SystemParametersInfo(
  UINT uiAction,  // system parameter to retrieve or set
  UINT uiParam,   // depends on action to be taken
  PVOID pvParam,  // depends on action to be taken
  UINT fWinIni    // user profile update option
);
FoxPro declaration:
DECLARE INTEGER SystemParametersInfo IN user32;
    INTEGER   uiAction,;
    INTEGER   uiParam,;
    STRING  @ pvParam,;
    INTEGER   fWinIni
Parameters:
uiAction
[in] Specifies the system-wide parameter to retrieve or set.

uiParam
[in] Depends on the system parameter being queried or set.

pvParam
[in/out] Depends on the system parameter being queried or set.

fWinIni
[in] If a system parameter is being set, specifies whether the user profile is to be updated.
Return value:
If the function succeeds, the return value is a nonzero value.
Usage:
cNonClientMetrics=num2dword(NONCLIENTMETRICS_SIZE)

IF SystemParametersInfo(SPI_GETNONCLIENTMETRICS,;
    NONCLIENTMETRICS_SIZE,;
    @cNonClientMetrics, 0) = 0

    ? "SystemParametersInfo call failed:",;
        GetLastError()

    RETURN
ENDIF
My comment:
See also: GetSystemMetrics
Word Index links for the SystemParametersInfo :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2002-02-26 00:47:04
Modified: 2010-01-15 16:02:49
Visited in last 7 days: 51
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.6.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.91.38.173)
8 sec.Function: 'WriteProcessMemory'
16 sec.Function: 'MessageBox'
24 sec.Function: 'WinHttpOpenRequest'
33 sec.Function: 'GetKBCodePage'
41 sec.Function: 'SetConsoleTextAttribute'
50 sec.Function: 'GetIpStatistics'
58 sec.
1.1 min.Example: 'Locking mouse and keyboard input for the VFP application'
1.28 min.Function: 'GetTcpStatistics'
1.42 min.Function: 'ScreenToClient'
Google
Advertise here!