From 1b6a04ca5504955c571d1c97504fb45ea0befee4 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Mon, 8 Jan 2024 01:21:28 +0400 Subject: Initial vendor packages Signed-off-by: Valentin Popov --- .../MobileDeviceManagementRegistration/mod.rs | 121 +++++++++++++++++++++ 1 file changed, 121 insertions(+) create mode 100644 vendor/windows-sys/src/Windows/Win32/Management/MobileDeviceManagementRegistration/mod.rs (limited to 'vendor/windows-sys/src/Windows/Win32/Management/MobileDeviceManagementRegistration/mod.rs') diff --git a/vendor/windows-sys/src/Windows/Win32/Management/MobileDeviceManagementRegistration/mod.rs b/vendor/windows-sys/src/Windows/Win32/Management/MobileDeviceManagementRegistration/mod.rs new file mode 100644 index 0000000..c66954b --- /dev/null +++ b/vendor/windows-sys/src/Windows/Win32/Management/MobileDeviceManagementRegistration/mod.rs @@ -0,0 +1,121 @@ +::windows_targets::link!("mdmlocalmanagement.dll" "system" fn ApplyLocalManagementSyncML(syncmlrequest : ::windows_sys::core::PCWSTR, syncmlresult : *mut ::windows_sys::core::PWSTR) -> ::windows_sys::core::HRESULT); +::windows_targets::link!("mdmregistration.dll" "system" fn DiscoverManagementService(pszupn : ::windows_sys::core::PCWSTR, ppmgmtinfo : *mut *mut MANAGEMENT_SERVICE_INFO) -> ::windows_sys::core::HRESULT); +::windows_targets::link!("mdmregistration.dll" "system" fn DiscoverManagementServiceEx(pszupn : ::windows_sys::core::PCWSTR, pszdiscoveryservicecandidate : ::windows_sys::core::PCWSTR, ppmgmtinfo : *mut *mut MANAGEMENT_SERVICE_INFO) -> ::windows_sys::core::HRESULT); +::windows_targets::link!("mdmregistration.dll" "system" fn GetDeviceManagementConfigInfo(providerid : ::windows_sys::core::PCWSTR, configstringbufferlength : *mut u32, configstring : ::windows_sys::core::PWSTR) -> ::windows_sys::core::HRESULT); +::windows_targets::link!("mdmregistration.dll" "system" fn GetDeviceRegistrationInfo(deviceinformationclass : REGISTRATION_INFORMATION_CLASS, ppdeviceregistrationinfo : *mut *mut ::core::ffi::c_void) -> ::windows_sys::core::HRESULT); +::windows_targets::link!("mdmregistration.dll" "system" fn GetManagementAppHyperlink(cchhyperlink : u32, pszhyperlink : ::windows_sys::core::PWSTR) -> ::windows_sys::core::HRESULT); +#[cfg(feature = "Win32_Foundation")] +::windows_targets::link!("mdmregistration.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn IsDeviceRegisteredWithManagement(pfisdeviceregisteredwithmanagement : *mut super::super::Foundation:: BOOL, cchupn : u32, pszupn : ::windows_sys::core::PWSTR) -> ::windows_sys::core::HRESULT); +#[cfg(feature = "Win32_Foundation")] +::windows_targets::link!("mdmregistration.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn IsManagementRegistrationAllowed(pfismanagementregistrationallowed : *mut super::super::Foundation:: BOOL) -> ::windows_sys::core::HRESULT); +#[cfg(feature = "Win32_Foundation")] +::windows_targets::link!("mdmregistration.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn IsMdmUxWithoutAadAllowed(isenrollmentallowed : *mut super::super::Foundation:: BOOL) -> ::windows_sys::core::HRESULT); +::windows_targets::link!("mdmregistration.dll" "system" fn RegisterDeviceDualEnrollMmpcUsingAADDeviceCredentials(cchenrollmentid : u32, pszenrollmentid : ::windows_sys::core::PWSTR) -> ::windows_sys::core::HRESULT); +#[cfg(feature = "Win32_Foundation")] +::windows_targets::link!("mdmlocalmanagement.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn RegisterDeviceWithLocalManagement(alreadyregistered : *mut super::super::Foundation:: BOOL) -> ::windows_sys::core::HRESULT); +::windows_targets::link!("mdmregistration.dll" "system" fn RegisterDeviceWithManagement(pszupn : ::windows_sys::core::PCWSTR, ppszmdmserviceuri : ::windows_sys::core::PCWSTR, ppzsaccesstoken : ::windows_sys::core::PCWSTR) -> ::windows_sys::core::HRESULT); +#[cfg(feature = "Win32_Foundation")] +::windows_targets::link!("mdmregistration.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn RegisterDeviceWithManagementUsingAADCredentials(usertoken : super::super::Foundation:: HANDLE) -> ::windows_sys::core::HRESULT); +::windows_targets::link!("mdmregistration.dll" "system" fn RegisterDeviceWithManagementUsingAADDeviceCredentials() -> ::windows_sys::core::HRESULT); +::windows_targets::link!("mdmregistration.dll" "system" fn RegisterDeviceWithManagementUsingAADDeviceCredentials2(mdmapplicationid : ::windows_sys::core::PCWSTR) -> ::windows_sys::core::HRESULT); +::windows_targets::link!("mdmregistration.dll" "system" fn SetDeviceManagementConfigInfo(providerid : ::windows_sys::core::PCWSTR, configstring : ::windows_sys::core::PCWSTR) -> ::windows_sys::core::HRESULT); +#[cfg(feature = "Win32_Foundation")] +::windows_targets::link!("mdmregistration.dll" "system" #[doc = "Required features: `\"Win32_Foundation\"`"] fn SetManagedExternally(ismanagedexternally : super::super::Foundation:: BOOL) -> ::windows_sys::core::HRESULT); +::windows_targets::link!("mdmlocalmanagement.dll" "system" fn UnregisterDeviceWithLocalManagement() -> ::windows_sys::core::HRESULT); +::windows_targets::link!("mdmregistration.dll" "system" fn UnregisterDeviceWithManagement(enrollmentid : ::windows_sys::core::PCWSTR) -> ::windows_sys::core::HRESULT); +pub const DEVICEREGISTRATIONTYPE_MAM: u32 = 5u32; +pub const DEVICEREGISTRATIONTYPE_MDM_DEVICEWIDE_WITH_AAD: u32 = 6u32; +pub const DEVICEREGISTRATIONTYPE_MDM_ONLY: u32 = 0u32; +pub const DEVICEREGISTRATIONTYPE_MDM_USERSPECIFIC_WITH_AAD: u32 = 13u32; +pub const DEVICE_ENROLLER_FACILITY_CODE: u32 = 24u32; +pub const DeviceRegistrationBasicInfo: REGISTRATION_INFORMATION_CLASS = 1i32; +pub const MDM_REGISTRATION_FACILITY_CODE: u32 = 25u32; +pub const MENROLL_E_CERTAUTH_FAILED_TO_FIND_CERT: ::windows_sys::core::HRESULT = -2145910744i32; +pub const MENROLL_E_CERTPOLICY_PRIVATEKEYCREATION_FAILED: ::windows_sys::core::HRESULT = -2145910745i32; +pub const MENROLL_E_CONNECTIVITY: ::windows_sys::core::HRESULT = -2145910768i32; +pub const MENROLL_E_DEVICECAPREACHED: ::windows_sys::core::HRESULT = -2145910765i32; +pub const MENROLL_E_DEVICENOTSUPPORTED: ::windows_sys::core::HRESULT = -2145910764i32; +pub const MENROLL_E_DEVICE_ALREADY_ENROLLED: ::windows_sys::core::HRESULT = -2145910774i32; +pub const MENROLL_E_DEVICE_AUTHENTICATION_ERROR: ::windows_sys::core::HRESULT = -2145910782i32; +pub const MENROLL_E_DEVICE_AUTHORIZATION_ERROR: ::windows_sys::core::HRESULT = -2145910781i32; +pub const MENROLL_E_DEVICE_CERTIFCATEREQUEST_ERROR: ::windows_sys::core::HRESULT = -2145910780i32; +pub const MENROLL_E_DEVICE_CERTIFICATEREQUEST_ERROR: ::windows_sys::core::HRESULT = -2145910780i32; +pub const MENROLL_E_DEVICE_CONFIGMGRSERVER_ERROR: ::windows_sys::core::HRESULT = -2145910779i32; +pub const MENROLL_E_DEVICE_INTERNALSERVICE_ERROR: ::windows_sys::core::HRESULT = -2145910778i32; +pub const MENROLL_E_DEVICE_INVALIDSECURITY_ERROR: ::windows_sys::core::HRESULT = -2145910777i32; +pub const MENROLL_E_DEVICE_MANAGEMENT_BLOCKED: ::windows_sys::core::HRESULT = -2145910746i32; +pub const MENROLL_E_DEVICE_MESSAGE_FORMAT_ERROR: ::windows_sys::core::HRESULT = -2145910783i32; +pub const MENROLL_E_DEVICE_NOT_ENROLLED: ::windows_sys::core::HRESULT = -2145910773i32; +pub const MENROLL_E_DEVICE_UNKNOWN_ERROR: ::windows_sys::core::HRESULT = -2145910776i32; +pub const MENROLL_E_DISCOVERY_SEC_CERT_DATE_INVALID: ::windows_sys::core::HRESULT = -2145910771i32; +pub const MENROLL_E_EMPTY_MESSAGE: ::windows_sys::core::HRESULT = -2145910743i32; +pub const MENROLL_E_ENROLLMENTDATAINVALID: ::windows_sys::core::HRESULT = -2145910759i32; +pub const MENROLL_E_ENROLLMENT_IN_PROGRESS: ::windows_sys::core::HRESULT = -2145910775i32; +pub const MENROLL_E_INMAINTENANCE: ::windows_sys::core::HRESULT = -2145910761i32; +pub const MENROLL_E_INSECUREREDIRECT: ::windows_sys::core::HRESULT = -2145910758i32; +pub const MENROLL_E_INVALIDSSLCERT: ::windows_sys::core::HRESULT = -2145910766i32; +pub const MENROLL_E_MDM_NOT_CONFIGURED: ::windows_sys::core::HRESULT = -2145910735i32; +pub const MENROLL_E_NOTELIGIBLETORENEW: ::windows_sys::core::HRESULT = -2145910762i32; +pub const MENROLL_E_NOTSUPPORTED: ::windows_sys::core::HRESULT = -2145910763i32; +pub const MENROLL_E_NOT_SUPPORTED: ::windows_sys::core::HRESULT = -2145910763i32; +pub const MENROLL_E_PASSWORD_NEEDED: ::windows_sys::core::HRESULT = -2145910770i32; +pub const MENROLL_E_PLATFORM_LICENSE_ERROR: ::windows_sys::core::HRESULT = -2145910756i32; +pub const MENROLL_E_PLATFORM_UNKNOWN_ERROR: ::windows_sys::core::HRESULT = -2145910755i32; +pub const MENROLL_E_PLATFORM_WRONG_STATE: ::windows_sys::core::HRESULT = -2145910757i32; +pub const MENROLL_E_PROV_CSP_APPMGMT: ::windows_sys::core::HRESULT = -2145910747i32; +pub const MENROLL_E_PROV_CSP_CERTSTORE: ::windows_sys::core::HRESULT = -2145910754i32; +pub const MENROLL_E_PROV_CSP_DMCLIENT: ::windows_sys::core::HRESULT = -2145910752i32; +pub const MENROLL_E_PROV_CSP_MISC: ::windows_sys::core::HRESULT = -2145910750i32; +pub const MENROLL_E_PROV_CSP_PFW: ::windows_sys::core::HRESULT = -2145910751i32; +pub const MENROLL_E_PROV_CSP_W7: ::windows_sys::core::HRESULT = -2145910753i32; +pub const MENROLL_E_PROV_SSLCERTNOTFOUND: ::windows_sys::core::HRESULT = -2145910748i32; +pub const MENROLL_E_PROV_UNKNOWN: ::windows_sys::core::HRESULT = -2145910749i32; +pub const MENROLL_E_USERLICENSE: ::windows_sys::core::HRESULT = -2145910760i32; +pub const MENROLL_E_USER_CANCELED: ::windows_sys::core::HRESULT = -2145910742i32; +pub const MENROLL_E_USER_CANCELLED: ::windows_sys::core::HRESULT = -2145910736i32; +pub const MENROLL_E_USER_LICENSE: ::windows_sys::core::HRESULT = -2145910760i32; +pub const MENROLL_E_WAB_ERROR: ::windows_sys::core::HRESULT = -2145910769i32; +pub const MREGISTER_E_DEVICE_ALREADY_REGISTERED: ::windows_sys::core::HRESULT = -2145845238i32; +pub const MREGISTER_E_DEVICE_AUTHENTICATION_ERROR: ::windows_sys::core::HRESULT = -2145845246i32; +pub const MREGISTER_E_DEVICE_AUTHORIZATION_ERROR: ::windows_sys::core::HRESULT = -2145845245i32; +pub const MREGISTER_E_DEVICE_CERTIFCATEREQUEST_ERROR: ::windows_sys::core::HRESULT = -2145845244i32; +pub const MREGISTER_E_DEVICE_CONFIGMGRSERVER_ERROR: ::windows_sys::core::HRESULT = -2145845243i32; +pub const MREGISTER_E_DEVICE_INTERNALSERVICE_ERROR: ::windows_sys::core::HRESULT = -2145845242i32; +pub const MREGISTER_E_DEVICE_INVALIDSECURITY_ERROR: ::windows_sys::core::HRESULT = -2145845241i32; +pub const MREGISTER_E_DEVICE_MESSAGE_FORMAT_ERROR: ::windows_sys::core::HRESULT = -2145845247i32; +pub const MREGISTER_E_DEVICE_NOT_AD_REGISTERED_ERROR: ::windows_sys::core::HRESULT = -2145845235i32; +pub const MREGISTER_E_DEVICE_NOT_REGISTERED: ::windows_sys::core::HRESULT = -2145845237i32; +pub const MREGISTER_E_DEVICE_UNKNOWN_ERROR: ::windows_sys::core::HRESULT = -2145845240i32; +pub const MREGISTER_E_DISCOVERY_FAILED: ::windows_sys::core::HRESULT = -2145845234i32; +pub const MREGISTER_E_DISCOVERY_REDIRECTED: ::windows_sys::core::HRESULT = -2145845236i32; +pub const MREGISTER_E_REGISTRATION_IN_PROGRESS: ::windows_sys::core::HRESULT = -2145845239i32; +pub const MaxDeviceInfoClass: REGISTRATION_INFORMATION_CLASS = 2i32; +pub type REGISTRATION_INFORMATION_CLASS = i32; +#[repr(C)] +#[doc = "Required features: `\"Win32_Foundation\"`"] +#[cfg(feature = "Win32_Foundation")] +pub struct MANAGEMENT_REGISTRATION_INFO { + pub fDeviceRegisteredWithManagement: super::super::Foundation::BOOL, + pub dwDeviceRegistionKind: u32, + pub pszUPN: ::windows_sys::core::PWSTR, + pub pszMDMServiceUri: ::windows_sys::core::PWSTR, +} +#[cfg(feature = "Win32_Foundation")] +impl ::core::marker::Copy for MANAGEMENT_REGISTRATION_INFO {} +#[cfg(feature = "Win32_Foundation")] +impl ::core::clone::Clone for MANAGEMENT_REGISTRATION_INFO { + fn clone(&self) -> Self { + *self + } +} +#[repr(C)] +pub struct MANAGEMENT_SERVICE_INFO { + pub pszMDMServiceUri: ::windows_sys::core::PWSTR, + pub pszAuthenticationUri: ::windows_sys::core::PWSTR, +} +impl ::core::marker::Copy for MANAGEMENT_SERVICE_INFO {} +impl ::core::clone::Clone for MANAGEMENT_SERVICE_INFO { + fn clone(&self) -> Self { + *self + } +} -- cgit v1.2.3