Skip to content

Latest commit

 

History

History
64 lines (45 loc) · 1.69 KB

File metadata and controls

64 lines (45 loc) · 1.69 KB

Home

Function name : SystemParametersInfo

Group: System Information - Library: user32


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:

Using the SystemParametersInfo function
Displaying the associated icons and descriptions for files and folders
How to find which fonts Windows uses for drawing captions, menus and message boxes

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.


Comments:

See also: GetSystemMetrics.