]>
git.proxmox.com Git - rustc.git/blob - vendor/windows-sys/src/Windows/Win32/Security/LicenseProtection/mod.rs
50febc2555cafd1a0b068a4e73e08f5f78390c48
1 ::windows_sys
::core
::link
! ( "licenseprotection.dll""system" #[doc = "*Required features: `\"Win32_Security_LicenseProtection\"`*"] fn RegisterLicenseKeyWithExpiration ( licensekey : :: windows_sys::core::PCWSTR , validityindays : u32 , status : *mut LicenseProtectionStatus ) -> :: windows_sys::core::HRESULT );
2 #[cfg(feature = "Win32_Foundation")]
3 ::windows_sys
::core
::link
! ( "licenseprotection.dll""system" #[doc = "*Required features: `\"Win32_Security_LicenseProtection\"`, `\"Win32_Foundation\"`*"] fn ValidateLicenseKeyProtection ( licensekey : :: windows_sys::core::PCWSTR , notvalidbefore : *mut super::super::Foundation:: FILETIME , notvalidafter : *mut super::super::Foundation:: FILETIME , status : *mut LicenseProtectionStatus ) -> :: windows_sys::core::HRESULT );
4 #[doc = "*Required features: `\"Win32_Security_LicenseProtection\"`*"]
5 pub type LicenseProtectionStatus
= i32;
6 #[doc = "*Required features: `\"Win32_Security_LicenseProtection\"`*"]
7 pub const Success
: LicenseProtectionStatus
= 0i32;
8 #[doc = "*Required features: `\"Win32_Security_LicenseProtection\"`*"]
9 pub const LicenseKeyNotFound
: LicenseProtectionStatus
= 1i32;
10 #[doc = "*Required features: `\"Win32_Security_LicenseProtection\"`*"]
11 pub const LicenseKeyUnprotected
: LicenseProtectionStatus
= 2i32;
12 #[doc = "*Required features: `\"Win32_Security_LicenseProtection\"`*"]
13 pub const LicenseKeyCorrupted
: LicenseProtectionStatus
= 3i32;
14 #[doc = "*Required features: `\"Win32_Security_LicenseProtection\"`*"]
15 pub const LicenseKeyAlreadyExists
: LicenseProtectionStatus
= 4i32;