ValidateConfiguration method of the Control class
Validate a configuration text for correctness without setting it active. Returns 1 on success, 0 on error.
Syntax
Uint32 ValidateConfiguration(
[in] string Config,
[out] string ErrorString,
[out] string WarningString,
[out] string InfoString,
[out] uint32 ErrorType
);
Parameters
-
Config [in]
-
The configuration to check.
-
ErrorString [out]
-
When this method returns, if there was a error, this parameter contains a description of the validation error for the operation.
-
WarningString [out]
-
When this method returns, this parameter contains a description of any validation warnings for the operation.
The text string with warnings.
-
InfoString [out]
-
When this method returns, this parameter contains a set of information about the configuration.
-
ErrorType [out]
-
When this method returns, if there was a validation error, this parameter indicates the error type.
The possible values are:
-
0
-
The argument is missing.
-
1
-
The argument format is invalid.
-
2
-
A configuration argument is invalid.
Return value
-
0
Failure
-
1
Success
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows 10 [desktop apps only] |
Minimum supported server |
Windows Server 2016 |
Namespace |
Root\Microsoft\Windows\BootEventCollector |
MOF |
|
DLL |
|