1 #ifndef _WIMLIB_WIN32_COMMON_H
2 #define _WIMLIB_WIN32_COMMON_H
13 #ifdef ENABLE_ERROR_MESSAGES
15 win32_error(DWORD err_code);
18 win32_error(DWORD err_code)
24 set_errno_from_GetLastError();
27 win32_error_to_errno(DWORD err_code);
30 win32_get_vol_flags(const wchar_t *path, unsigned *vol_flags_ret);
33 win32_open_existing_file(const wchar_t *path, DWORD dwDesiredAccess);
36 win32_open_file_data_only(const wchar_t *path);
38 extern HANDLE (WINAPI *win32func_FindFirstStreamW)(LPCWSTR lpFileName,
39 STREAM_INFO_LEVELS InfoLevel,
40 LPVOID lpFindStreamData,
44 extern BOOL (WINAPI *win32func_FindNextStreamW)(HANDLE hFindStream,
45 LPVOID lpFindStreamData);
47 #endif /* _WIMLIB_WIN32_COMMON_H */