User32SystemParametersInfo(SystemParametersActionFlags, UInt32, StringBuilder, SystemParametersWinIniFlags) Method
Retrieves or sets the value of one of the system-wide parameters.
This function can also update the user profile while setting a parameter.
Namespace: DevCase.Win32.NativeMethodsAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[DllImportAttribute("User32.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)]
public static bool SystemParametersInfo(
SystemParametersActionFlags action,
uint uiParam,
StringBuilder pvParam,
SystemParametersWinIniFlags winIni
)
<DllImportAttribute("User32.dll", CharSet := CharSet.Auto, BestFitMapping := false,
ThrowOnUnmappableChar := true, SetLastError := true>]
Public Shared Function SystemParametersInfo (
action As SystemParametersActionFlags,
uiParam As UInteger,
<OutAttribute> pvParam As StringBuilder,
winIni As SystemParametersWinIniFlags
) As Boolean
Dim action As SystemParametersActionFlags
Dim uiParam As UInteger
Dim pvParam As StringBuilder
Dim winIni As SystemParametersWinIniFlags
Dim returnValue As Boolean
returnValue = User32.SystemParametersInfo(action,
uiParam, pvParam, winIni)
public:
[DllImportAttribute(L"User32.dll", CharSet = CharSet::Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)]
static bool SystemParametersInfo(
SystemParametersActionFlags action,
unsigned int uiParam,
[InAttribute] [OutAttribute] StringBuilder^ pvParam,
SystemParametersWinIniFlags winIni
)
[<DllImportAttribute("User32.dll", CharSet = CharSet.Auto, BestFitMapping = false,
ThrowOnUnmappableChar = true, SetLastError = true)>]
static member SystemParametersInfo :
action : SystemParametersActionFlags *
uiParam : uint32 *
pvParam : StringBuilder byref *
winIni : SystemParametersWinIniFlags -> bool
No code example is currently available or this language may not be supported.
- action SystemParametersActionFlags
-
The system-wide parameter to be retrieved or set.
- uiParam UInt32
-
A parameter whose usage and format depends on the system parameter being queried or set.
For more information about system-wide parameters, see the parameter.
If not otherwise indicated, you must specify '0' for this parameter.
- pvParam StringBuilder
-
A parameter whose usage and format depends on the system parameter being queried or set.
For more information about system-wide parameters, see the parameter.
If not otherwise indicated, you must specify for this parameter.
For information on the PVOID datatype, see Windows Data Types.
- winIni SystemParametersWinIniFlags
-
If a system parameter is being set, specifies whether the user profile is to be updated,
and if so, whether the WM_SettingChange message is to be broadcast to
all top-level windows to notify them of the change.
This parameter can be 0 if you do not want to update the user profile or broadcast the
WM_SettingChange message.
Boolean
If the function succeeds, the return value is
.
If the function fails, the return value is
.
To get extended error information, call
GetLastWin32Error.