X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=include%2Fwimlib%2Fwin32_common.h;h=e5317b614be2b4e861a0caca77a5ae3ae161e078;hb=bf008385f7a8eac6fbd41192050dcd9f297ddd2b;hp=691af744c9fc00eb04d4c34957fca98485760177;hpb=aae154ad67444bc760bedff60bc60fd5b91b8ede;p=wimlib diff --git a/include/wimlib/win32_common.h b/include/wimlib/win32_common.h index 691af744..e5317b61 100644 --- a/include/wimlib/win32_common.h +++ b/include/wimlib/win32_common.h @@ -143,20 +143,21 @@ extern NTSTATUS (WINAPI *func_RtlDosPathNameToNtPathName_U_WithStatus) extern NTSTATUS (WINAPI *func_RtlCreateSystemVolumeInformationFolder) (PCUNICODE_STRING VolumeRootPath); +#define FSCTL_SET_PERSISTENT_VOLUME_STATE 0x90238 -extern bool -windows_version_is_at_least(unsigned major, unsigned minor); +#define PERSISTENT_VOLUME_STATE_SHORT_NAME_CREATION_DISABLED 0x00000001 -#define running_on_windows_xp_or_later() \ - windows_version_is_at_least(5, 1) - -#define running_on_windows_vista_or_later() \ - windows_version_is_at_least(6, 0) - -#define running_on_windows_7_or_later() \ - windows_version_is_at_least(6, 1) +typedef struct _FILE_FS_PERSISTENT_VOLUME_INFORMATION { + ULONG VolumeFlags; + ULONG FlagMask; + ULONG Version; + ULONG Reserved; +} FILE_FS_PERSISTENT_VOLUME_INFORMATION, *PFILE_FS_PERSISTENT_VOLUME_INFORMATION; extern int win32_path_to_nt_path(const wchar_t *win32_path, UNICODE_STRING *nt_path); +extern int +win32_get_drive_path(const wchar_t *file_path, wchar_t drive_path[7]); + #endif /* _WIMLIB_WIN32_COMMON_H */