]> wimlib.net Git - wimlib/blob - include/wimlib/win32.h
Move CPU and memory information to util
[wimlib] / include / wimlib / win32.h
1 #ifndef _WIMLIB_WIN32_H
2 #define _WIMLIB_WIN32_H
3
4 #ifdef __WIN32__
5
6 #include "wimlib/callback.h"
7 #include "wimlib/types.h"
8
9 struct blob_descriptor;
10
11 extern int
12 read_winnt_stream_prefix(const struct blob_descriptor *blob, u64 size,
13                          consume_data_callback_t cb, void *cb_ctx);
14
15 extern int
16 read_win32_encrypted_file_prefix(const struct blob_descriptor *blob,
17                                  u64 size,
18                                  consume_data_callback_t cb,
19                                  void *cb_ctx);
20
21 extern int
22 win32_global_init(int init_flags);
23
24 extern void
25 win32_global_cleanup(void);
26
27 extern int
28 fsync(int fd);
29
30 extern tchar *
31 realpath(const tchar *path, tchar *resolved_path);
32
33 extern int
34 win32_rename_replacement(const tchar *oldpath, const tchar *newpath);
35
36 extern int
37 win32_truncate_replacement(const tchar *path, off_t size);
38
39 extern int
40 win32_strerror_r_replacement(int errnum, tchar *buf, size_t buflen);
41
42 extern FILE *
43 win32_open_logfile(const wchar_t *path);
44
45 extern ssize_t
46 pread(int fd, void *buf, size_t count, off_t offset);
47
48 extern ssize_t
49 pwrite(int fd, const void *buf, size_t count, off_t offset);
50
51 #endif /* __WIN32__ */
52
53 #endif /* _WIMLIB_WIN32_H */