RegisterDeviceWithManagementUsingAADCredentials function (mdmregistration.h)
Registers a device with a MDM service, using Azure Active Directory (AAD) credentials.
Syntax
HRESULT RegisterDeviceWithManagementUsingAADCredentials(
[in] HANDLE UserToken
);
Parameters
[in] UserToken
The User to impersonate when attempting to get AAD token
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.
Remarks
The caller of this function must be running as an elevated process.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8.1 [desktop apps only] |
Minimum supported server | None supported |
Target Platform | Windows |
Header | mdmregistration.h |
Library | MDMRegistration.lib |
DLL | MDMRegistration.dll |
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for