 |
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: |
 |
|
|
 |
 |
| 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: |
 |
|
 |
 |
| • |
 |
| Created: | 2002-02-26 00:47:04 | | Modified: | 2010-01-15 16:02:49 | Visited in last 7 days: 31 |