1 #ifndef _WIMLIB_WIN32_H
2 #define _WIMLIB_WIN32_H
5 # error "This header is for Win32 only"
8 #include "wimlib/callback.h"
9 #include "wimlib/types.h"
11 struct blob_descriptor;
14 read_winnt_stream_prefix(const struct blob_descriptor *blob, u64 size,
15 consume_data_callback_t cb, void *cb_ctx);
18 read_win32_encrypted_file_prefix(const struct blob_descriptor *blob,
20 consume_data_callback_t cb,
24 win32_global_init(int init_flags);
27 win32_global_cleanup(void);
33 win32_get_number_of_processors(void);
36 win32_get_avail_memory(void);
39 realpath(const tchar *path, tchar *resolved_path);
42 win32_rename_replacement(const tchar *oldpath, const tchar *newpath);
45 win32_truncate_replacement(const tchar *path, off_t size);
48 win32_strerror_r_replacement(int errnum, tchar *buf, size_t buflen);
51 win32_open_logfile(const wchar_t *path);
54 pread(int fd, void *buf, size_t count, off_t offset);
57 pwrite(int fd, const void *buf, size_t count, off_t offset);
59 #endif /* _WIMLIB_WIN32_H */