]> wimlib.net Git - wimlib/blob - programs/imagex-win32.h
Add --noacls options and set dwDesiredAccess more appropriately
[wimlib] / programs / imagex-win32.h
1 #ifndef _IMAGEX_WIN32_H
2 #define _IMAGEX_WIN32_H
3
4 #include <stddef.h>
5 #include <stdbool.h>
6
7 typedef struct {
8         size_t gl_pathc;
9         char **gl_pathv;
10         size_t gl_offs;
11 } glob_t;
12
13 /* WARNING: this is a reduced functionality replacement */
14 extern int glob(const char *pattern, int flags,
15                 int (*errfunc)(const char *epath, int eerrno),
16                 glob_t *pglob);
17
18 extern void globfree(glob_t *pglob);
19
20 #define GLOB_ERR        0x1 /* Return on read errors.  */
21 #define GLOB_NOSORT     0x2 /* Don't sort the names.  */
22
23 /* Error returns from `glob'.  */
24 #define GLOB_NOSPACE    1       /* Ran out of memory.  */
25 #define GLOB_ABORTED    2       /* Read error.  */
26 #define GLOB_NOMATCH    3       /* No matches found.  */
27
28 extern void
29 win32_acquire_capture_privileges();
30
31 extern void
32 win32_release_capture_privileges();
33
34 extern void
35 win32_acquire_restore_privileges();
36
37 extern void
38 win32_release_restore_privileges();
39
40 #endif