]>
Commit | Line | Data |
---|---|---|
5e7ed085 FG |
1 | #[link(name = "windows")] |
2 | extern "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 | 10 | pub type LicenseProtectionStatus = i32; |
04454e1e | 11 | #[doc = "*Required features: `\"Win32_Security_LicenseProtection\"`*"] |
5e7ed085 | 12 | pub const Success: LicenseProtectionStatus = 0i32; |
04454e1e | 13 | #[doc = "*Required features: `\"Win32_Security_LicenseProtection\"`*"] |
5e7ed085 | 14 | pub const LicenseKeyNotFound: LicenseProtectionStatus = 1i32; |
04454e1e | 15 | #[doc = "*Required features: `\"Win32_Security_LicenseProtection\"`*"] |
5e7ed085 | 16 | pub const LicenseKeyUnprotected: LicenseProtectionStatus = 2i32; |
04454e1e | 17 | #[doc = "*Required features: `\"Win32_Security_LicenseProtection\"`*"] |
5e7ed085 | 18 | pub const LicenseKeyCorrupted: LicenseProtectionStatus = 3i32; |
04454e1e | 19 | #[doc = "*Required features: `\"Win32_Security_LicenseProtection\"`*"] |
5e7ed085 | 20 | pub const LicenseKeyAlreadyExists: LicenseProtectionStatus = 4i32; |