X-Git-Url: https://wimlib.net/git/?a=blobdiff_plain;f=include%2Fwimlib%2Fwin32_common.h;h=e5317b614be2b4e861a0caca77a5ae3ae161e078;hb=dd3f804966f577b104eda649f572e8e765edc7ef;hp=2921caaa2796b4c85a4220f7a32f00b6d5d69f95;hpb=f45c157ceb31b97c4393c57b65a0e9b8fc2a3630;p=wimlib diff --git a/include/wimlib/win32_common.h b/include/wimlib/win32_common.h index 2921caaa..e5317b61 100644 --- a/include/wimlib/win32_common.h +++ b/include/wimlib/win32_common.h @@ -143,19 +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 */