RegisterDeviceWithManagementUsingAADDeviceCredentials function (mdmregistration.h)

Registers a device with a MDM service, using Azure Active Directory (AAD) device credentials.

Syntax

HRESULT RegisterDeviceWithManagementUsingAADDeviceCredentials();

Return value

If the function succeeds, the return value is ERROR_SUCCESS. If the function fails, the returned value describes the error. Possible values include those listed at MDM Registration Error Values.

Requirements

Requirement Value
Minimum supported client Windows 8.1 [desktop apps only]
Minimum supported server None supported
Header mdmregistration.h
Library MDMRegistration.lib
DLL MDMRegistration.dll