windows_link::link!("fhsvcctl.dll" "system" fn FhServiceBlockBackup(pipe : FH_SERVICE_PIPE_HANDLE) -> windows_sys::core::HRESULT);
windows_link::link!("fhsvcctl.dll" "system" fn FhServiceClosePipe(pipe : FH_SERVICE_PIPE_HANDLE) -> windows_sys::core::HRESULT);
windows_link::link!("fhsvcctl.dll" "system" fn FhServiceOpenPipe(startserviceifstopped : windows_sys::core::BOOL, pipe : *mut FH_SERVICE_PIPE_HANDLE) -> windows_sys::core::HRESULT);
windows_link::link!("fhsvcctl.dll" "system" fn FhServiceReloadConfiguration(pipe : FH_SERVICE_PIPE_HANDLE) -> windows_sys::core::HRESULT);
windows_link::link!("fhsvcctl.dll" "system" fn FhServiceStartBackup(pipe : FH_SERVICE_PIPE_HANDLE, lowpriorityio : windows_sys::core::BOOL) -> windows_sys::core::HRESULT);
windows_link::link!("fhsvcctl.dll" "system" fn FhServiceStopBackup(pipe : FH_SERVICE_PIPE_HANDLE, stoptracking : windows_sys::core::BOOL) -> windows_sys::core::HRESULT);
windows_link::link!("fhsvcctl.dll" "system" fn FhServiceUnblockBackup(pipe : FH_SERVICE_PIPE_HANDLE) -> windows_sys::core::HRESULT);
pub const BackupCancelled: FhBackupStopReason = 4i32;
pub const BackupInvalidStopReason: FhBackupStopReason = 0i32;
pub const BackupLimitUserBusyMachineOnAC: FhBackupStopReason = 1i32;
pub const BackupLimitUserBusyMachineOnDC: FhBackupStopReason = 3i32;
pub const BackupLimitUserIdleMachineOnDC: FhBackupStopReason = 2i32;
pub const FHCFG_E_CONFIGURATION_PREVIOUSLY_LOADED: windows_sys::core::HRESULT = 0x80040305_u32 as _;
pub const FHCFG_E_CONFIG_ALREADY_EXISTS: windows_sys::core::HRESULT = 0x80040302_u32 as _;
pub const FHCFG_E_CONFIG_FILE_NOT_FOUND: windows_sys::core::HRESULT = 0x80040301_u32 as _;
pub const FHCFG_E_CORRUPT_CONFIG_FILE: windows_sys::core::HRESULT = 0x80040300_u32 as _;
pub const FHCFG_E_INVALID_REHYDRATION_STATE: windows_sys::core::HRESULT = 0x8004030A_u32 as _;
pub const FHCFG_E_LEGACY_BACKUP_NOT_FOUND: windows_sys::core::HRESULT = 0x80040315_u32 as _;
pub const FHCFG_E_LEGACY_BACKUP_USER_EXCLUDED: windows_sys::core::HRESULT = 0x80040314_u32 as _;
pub const FHCFG_E_LEGACY_TARGET_UNSUPPORTED: windows_sys::core::HRESULT = 0x80040312_u32 as _;
pub const FHCFG_E_LEGACY_TARGET_VALIDATION_UNSUPPORTED: windows_sys::core::HRESULT = 0x80040313_u32 as _;
pub const FHCFG_E_NO_VALID_CONFIGURATION_LOADED: windows_sys::core::HRESULT = 0x80040303_u32 as _;
pub const FHCFG_E_RECOMMENDATION_CHANGE_NOT_ALLOWED: windows_sys::core::HRESULT = 0x80040310_u32 as _;
pub const FHCFG_E_TARGET_CANNOT_BE_USED: windows_sys::core::HRESULT = 0x80040309_u32 as _;
pub const FHCFG_E_TARGET_NOT_CONFIGURED: windows_sys::core::HRESULT = 0x80040307_u32 as _;
pub const FHCFG_E_TARGET_NOT_CONNECTED: windows_sys::core::HRESULT = 0x80040304_u32 as _;
pub const FHCFG_E_TARGET_NOT_ENOUGH_FREE_SPACE: windows_sys::core::HRESULT = 0x80040308_u32 as _;
pub const FHCFG_E_TARGET_REHYDRATED_ELSEWHERE: windows_sys::core::HRESULT = 0x80040311_u32 as _;
pub const FHCFG_E_TARGET_VERIFICATION_FAILED: windows_sys::core::HRESULT = 0x80040306_u32 as _;
pub const FHSVC_E_BACKUP_BLOCKED: windows_sys::core::HRESULT = 0x80040600_u32 as _;
pub const FHSVC_E_CONFIG_DISABLED: windows_sys::core::HRESULT = 0x80040602_u32 as _;
pub const FHSVC_E_CONFIG_DISABLED_GP: windows_sys::core::HRESULT = 0x80040603_u32 as _;
pub const FHSVC_E_CONFIG_REHYDRATING: windows_sys::core::HRESULT = 0x80040605_u32 as _;
pub const FHSVC_E_FATAL_CONFIG_ERROR: windows_sys::core::HRESULT = 0x80040604_u32 as _;
pub const FHSVC_E_NOT_CONFIGURED: windows_sys::core::HRESULT = 0x80040601_u32 as _;
pub const FH_ACCESS_DENIED: FH_DEVICE_VALIDATION_RESULT = 0i32;
pub type FH_BACKUP_STATUS = i32;
pub const FH_CURRENT_DEFAULT: FH_DEVICE_VALIDATION_RESULT = 3i32;
pub type FH_DEVICE_VALIDATION_RESULT = i32;
pub const FH_DRIVE_FIXED: FH_TARGET_DRIVE_TYPES = 3i32;
pub const FH_DRIVE_REMOTE: FH_TARGET_DRIVE_TYPES = 4i32;
pub const FH_DRIVE_REMOVABLE: FH_TARGET_DRIVE_TYPES = 2i32;
pub const FH_DRIVE_UNKNOWN: FH_TARGET_DRIVE_TYPES = 0i32;
pub const FH_FOLDER: FH_PROTECTED_ITEM_CATEGORY = 0i32;
pub const FH_FREQUENCY: FH_LOCAL_POLICY_TYPE = 0i32;
pub const FH_INVALID_DRIVE_TYPE: FH_DEVICE_VALIDATION_RESULT = 1i32;
pub const FH_LIBRARY: FH_PROTECTED_ITEM_CATEGORY = 1i32;
pub type FH_LOCAL_POLICY_TYPE = i32;
pub const FH_NAMESPACE_EXISTS: FH_DEVICE_VALIDATION_RESULT = 4i32;
pub type FH_PROTECTED_ITEM_CATEGORY = i32;
pub const FH_READ_ONLY_PERMISSION: FH_DEVICE_VALIDATION_RESULT = 2i32;
pub const FH_RETENTION_AGE: FH_LOCAL_POLICY_TYPE = 2i32;
pub const FH_RETENTION_AGE_BASED: FH_RETENTION_TYPES = 2i32;
pub const FH_RETENTION_DISABLED: FH_RETENTION_TYPES = 0i32;
pub const FH_RETENTION_TYPE: FH_LOCAL_POLICY_TYPE = 1i32;
pub type FH_RETENTION_TYPES = i32;
pub const FH_RETENTION_UNLIMITED: FH_RETENTION_TYPES = 1i32;
pub type FH_SERVICE_PIPE_HANDLE = *mut core::ffi::c_void;
pub const FH_STATE_BACKUP_NOT_SUPPORTED: u32 = 2064u32;
pub const FH_STATE_DISABLED_BY_GP: u32 = 2u32;
pub const FH_STATE_FATAL_CONFIG_ERROR: u32 = 3u32;
pub const FH_STATE_MIGRATING: u32 = 4u32;
pub const FH_STATE_NOT_TRACKED: u32 = 0u32;
pub const FH_STATE_NO_ERROR: u32 = 255u32;
pub const FH_STATE_OFF: u32 = 1u32;
pub const FH_STATE_REHYDRATING: u32 = 5u32;
pub const FH_STATE_RUNNING: u32 = 256u32;
pub const FH_STATE_STAGING_FULL: u32 = 18u32;
pub const FH_STATE_TARGET_ABSENT: u32 = 21u32;
pub const FH_STATE_TARGET_ACCESS_DENIED: u32 = 14u32;
pub const FH_STATE_TARGET_FS_LIMITATION: u32 = 13u32;
pub const FH_STATE_TARGET_FULL: u32 = 17u32;
pub const FH_STATE_TARGET_FULL_RETENTION_MAX: u32 = 16u32;
pub const FH_STATE_TARGET_LOW_SPACE: u32 = 20u32;
pub const FH_STATE_TARGET_LOW_SPACE_RETENTION_MAX: u32 = 19u32;
pub const FH_STATE_TARGET_VOLUME_DIRTY: u32 = 15u32;
pub const FH_STATE_TOO_MUCH_BEHIND: u32 = 240u32;
pub const FH_STATUS_DISABLED: FH_BACKUP_STATUS = 0i32;
pub const FH_STATUS_DISABLED_BY_GP: FH_BACKUP_STATUS = 1i32;
pub const FH_STATUS_ENABLED: FH_BACKUP_STATUS = 2i32;
pub const FH_STATUS_REHYDRATING: FH_BACKUP_STATUS = 3i32;
pub const FH_TARGET_DRIVE_TYPE: FH_TARGET_PROPERTY_TYPE = 2i32;
pub type FH_TARGET_DRIVE_TYPES = i32;
pub const FH_TARGET_NAME: FH_TARGET_PROPERTY_TYPE = 0i32;
pub const FH_TARGET_PART_OF_LIBRARY: FH_DEVICE_VALIDATION_RESULT = 5i32;
pub type FH_TARGET_PROPERTY_TYPE = i32;
pub const FH_TARGET_URL: FH_TARGET_PROPERTY_TYPE = 1i32;
pub const FH_VALID_TARGET: FH_DEVICE_VALIDATION_RESULT = 6i32;
pub type FhBackupStopReason = i32;
pub const FhConfigMgr: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0xed43bb3c_09e9_498a_9df6_2177244c6db4);
pub const FhReassociation: windows_sys::core::GUID = windows_sys::core::GUID::from_u128(0x4d728e35_16fa_4320_9e8b_bfd7100a8846);
pub const MAX_BACKUP_STATUS: FH_BACKUP_STATUS = 4i32;
pub const MAX_LOCAL_POLICY: FH_LOCAL_POLICY_TYPE = 3i32;
pub const MAX_PROTECTED_ITEM_CATEGORY: FH_PROTECTED_ITEM_CATEGORY = 2i32;
pub const MAX_RETENTION_TYPE: FH_RETENTION_TYPES = 3i32;
pub const MAX_TARGET_PROPERTY: FH_TARGET_PROPERTY_TYPE = 3i32;
pub const MAX_VALIDATION_RESULT: FH_DEVICE_VALIDATION_RESULT = 7i32;
