]> git.proxmox.com Git - rustc.git/blame - vendor/windows-sys/src/Windows/Win32/Security/LicenseProtection/mod.rs
New upstream version 1.63.0+dfsg1
[rustc.git] / vendor / windows-sys / src / Windows / Win32 / Security / LicenseProtection / mod.rs
CommitLineData
5e7ed085
FG
1#[link(name = "windows")]
2extern "system" {
04454e1e
FG
3 #[doc = "*Required features: `\"Win32_Security_LicenseProtection\"`*"]
4 pub fn RegisterLicenseKeyWithExpiration(licensekey: ::windows_sys::core::PCWSTR, validityindays: u32, status: *mut LicenseProtectionStatus) -> ::windows_sys::core::HRESULT;
5 #[doc = "*Required features: `\"Win32_Security_LicenseProtection\"`, `\"Win32_Foundation\"`*"]
5e7ed085 6 #[cfg(feature = "Win32_Foundation")]
04454e1e 7 pub 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;
5e7ed085 8}
04454e1e 9#[doc = "*Required features: `\"Win32_Security_LicenseProtection\"`*"]
5e7ed085 10pub type LicenseProtectionStatus = i32;
04454e1e 11#[doc = "*Required features: `\"Win32_Security_LicenseProtection\"`*"]
5e7ed085 12pub const Success: LicenseProtectionStatus = 0i32;
04454e1e 13#[doc = "*Required features: `\"Win32_Security_LicenseProtection\"`*"]
5e7ed085 14pub const LicenseKeyNotFound: LicenseProtectionStatus = 1i32;
04454e1e 15#[doc = "*Required features: `\"Win32_Security_LicenseProtection\"`*"]
5e7ed085 16pub const LicenseKeyUnprotected: LicenseProtectionStatus = 2i32;
04454e1e 17#[doc = "*Required features: `\"Win32_Security_LicenseProtection\"`*"]
5e7ed085 18pub const LicenseKeyCorrupted: LicenseProtectionStatus = 3i32;
04454e1e 19#[doc = "*Required features: `\"Win32_Security_LicenseProtection\"`*"]
5e7ed085 20pub const LicenseKeyAlreadyExists: LicenseProtectionStatus = 4i32;