1 #ifndef _WIMLIB_WIN32_H
2 #define _WIMLIB_WIN32_H
4 #include "wimlib_internal.h"
9 win32_build_dentry_tree(struct wim_dentry **root_ret,
10 const tchar *root_disk_path,
11 struct wim_lookup_table *lookup_table,
13 const struct wimlib_capture_config *config,
15 wimlib_progress_func_t progress_func,
19 win32_read_file(const tchar *filename, HANDLE handle,
20 u64 offset, size_t size, void *buf);
23 win32_open_file_data_only(const wchar_t *path_utf16);
26 win32_close_file(void *handle);
28 #ifdef ENABLE_ERROR_MESSAGES
29 extern void win32_error(u32 err);
30 extern void win32_error_last();
32 # define win32_error(err)
33 # define win32_error_last()
36 #define FNM_PATHNAME 0x1
37 #define FNM_NOESCAPE 0x2
40 fnmatch(const tchar *pattern, const tchar *string, int flags);
43 win32_do_apply_dentry(const tchar *output_path,
44 size_t output_path_nbytes,
45 struct wim_dentry *dentry,
46 struct apply_args *args);
49 win32_do_apply_dentry_timestamps(const tchar *output_path,
50 size_t output_path_nbytes,
51 const struct wim_dentry *dentry,
52 const struct apply_args *args);
58 win32_get_number_of_processors();
61 realpath(const tchar *path, tchar *resolved_path);
68 win32_rename_replacement(const tchar *oldpath, const tchar *newpath);
71 win32_truncate_replacement(const tchar *path, off_t size);
77 win32_global_cleanup();
80 win32_strerror_r_replacement(int errnum, tchar *buf, size_t buflen);
82 #endif /* _WIMLIB_WIN32_H */