IsManagementRegistrationAllowed function (mdmregistration.h)

Checks whether MDM registration is allowed by local policy.

Syntax

HRESULT IsManagementRegistrationAllowed(
  [out] BOOL *pfIsManagementRegistrationAllowed
);

Parameters

[out] pfIsManagementRegistrationAllowed

Address of a BOOL that receives a value indication whether registration is allowed.

Return value

If the function succeeds, the return value is ERROR_SUCCESS and the BOOL pointed to by the pfIsManagementRegistrationAllowed parameter contains TRUE or FALSE. If the function fails, the returned value describes the error. Possible values include those listed at MDM Registration Error Values.

Remarks

The caller of this function must be running as an elevated process.

Requirements

Requirement Value
Minimum supported client Windows 8.1
Minimum supported server None supported
Target Platform Windows
Header mdmregistration.h
Library MDMRegistration.lib
DLL MDMRegistration.dll

See also

MDM Registration Error Values

MDM Registration Functions

SetManagedExternally