X-Git-Url: https://wimlib.net/git/?p=wimlib;a=blobdiff_plain;f=programs%2Fimagex-win32.h;h=11143f7b5429c6151d396955cdd68d4ec1d5e552;hp=9e18eab549f91f4052b9250a23a565ca9e160945;hb=719a063c87e3abab99b0fb53ebc80223fbf33123;hpb=650997e4865a090b6856c7ca34b02f42994e8e29 diff --git a/programs/imagex-win32.h b/programs/imagex-win32.h index 9e18eab5..11143f7b 100644 --- a/programs/imagex-win32.h +++ b/programs/imagex-win32.h @@ -3,47 +3,17 @@ #include #include +#include #include -typedef struct { - size_t gl_pathc; - wchar_t **gl_pathv; - size_t gl_offs; -} glob_t; - -/* WARNING: this is a reduced functionality replacement */ -extern int -win32_wglob(const wchar_t *pattern, int flags, - int (*errfunc)(const wchar_t *epath, int eerrno), - glob_t *pglob); - -extern void globfree(glob_t *pglob); - -#define GLOB_ERR 0x1 /* Return on read errors. */ -#define GLOB_NOSORT 0x2 /* Don't sort the names. */ - -/* Error returns from `glob'. */ -#define GLOB_NOSPACE 1 /* Ran out of memory. */ -#define GLOB_ABORTED 2 /* Read error. */ -#define GLOB_NOMATCH 3 /* No matches found. */ - -extern void -win32_acquire_capture_privileges(); - -extern void -win32_release_capture_privileges(); +extern wchar_t * +win32_mbs_to_wcs(const char *mbs, size_t mbs_nbytes, size_t *num_wchars_ret); extern void -win32_acquire_restore_privileges(); +win32_print_security_descriptor(const uint8_t *sd, size_t size); extern void -win32_release_restore_privileges(); - -extern wchar_t * -win32_mbs_to_wcs(const char *mbs, size_t mbs_nbytes, size_t *num_wchars_ret); - -extern wchar_t * -win32_wbasename(wchar_t *path); +set_fd_to_binary_mode(int fd); #include "wgetopt.h"