22.214.171.124.8.9 MONITOR_CONTAINER Parameters
pMonitorContainer: This parameter is a pointer to a MONITOR_CONTAINER (section 126.96.36.199.6) structure that specifies monitor information. The individual method sections include the following parameter validation steps by reference:
If the pMonitorContainer parameter is declared with the "unique" IDL attribute, and its value is NULL, skip the validation steps and assume validation success.
Verify that pMonitorContainer points to a MONITOR_CONTAINER that specifies an appropriate level as defined in the referring method definition. If that verification fails, return ERROR_INVALID_LEVEL.
If the value of the Level member specifies a MONITOR_INFO structure that contains a pEnvironment member, verify that the string that is referenced by pEnvironment identifies an environment name that is supported on this server; and if that verification fails, return ERROR_INVALID_ENVIRONMENT.
If the value of the Level member specifies a MONITOR_INFO structure that contains a pEnvironment member, the environment name referenced by pEnvironment is "Windows ARM", and this server doesn’t support that environment name (section 188.8.131.52), return ERROR_NOT_SUPPORTED. Print servers can optionally be configured to not perform this validation step.<246>
Verify that all members of the MONITOR_CONTAINER structure comply with the constraints defined in 184.108.40.206.
Unless noted otherwise, if any of the preceding validation steps fail, return ERROR_INVALID_PARAMETER.