80 *lengthp = wcslen((
const wchar_t *)
name) + extra_chars;
81 return (
char *)
malloc(*lengthp *
sizeof(
wchar_t));
87 CREATEFILE2_EXTENDED_PARAMETERS extParams = {0};
88 extParams.dwFileAttributes = file_attributes;
89 extParams.dwFileFlags = FILE_FLAG_RANDOM_ACCESS;
90 extParams.dwSecurityQosFlags = SECURITY_ANONYMOUS;
91 extParams.dwSize =
sizeof(extParams);
92 extParams.hTemplateFile = template_file;
93 extParams.lpSecurityAttributes = security_attributes;
95 return CreateFile2((
const wchar_t *)
name,
access, share_mode, creation_disposition, &extParams);
97 return CreateFileW((
const wchar_t *)
name,
access, share_mode, security_attributes, creation_disposition, file_attributes, template_file);
104 _snwprintf((
wchar_t *)
buf,
len,
L"%s.%08x", (
const wchar_t *)
name,
i);
110 return (
char *)_wcsdup((
const wchar_t *)
string);
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void static offset struct stat static buf void long static basep static whence static length const void static len static semflg const void static shmflg const struct timespec struct timespec static rem const char static group const void start
static static sync static getppid static getegid const char static filename char static len const char char static bufsiz static mask static vfork const void static prot static getpgrp const char static swapflags static arg static fd static protocol static who struct sockaddr static addrlen static backlog struct timeval struct timezone static tz const struct iovec static count static mode const void const struct sockaddr static tolen const char static pathname void static offset struct stat static buf void long static basep static whence static length const void static len static semflg const void static shmflg const struct timespec struct timespec static rem const char static group const void length
ZIP_EXTERN void zip_error_set(zip_error_t *_Nullable, int, int)
void * malloc(size_t size)
static static fork const void static count static fd const char static mode const char static pathname const char static path const char static dev const char static group static getpid static getuid void void static data static pause access
void error(const char *msg)
zip_source_t * zip_source_file_common_new(const char *fname, void *file, zip_uint64_t start, zip_int64_t len, const zip_stat_t *st, zip_source_file_operations_t *ops, void *ops_userdata, zip_error_t *error)
zip_source_file_operations_t _zip_source_file_win32_named_ops
ZIP_EXTERN zip_source_t * zip_source_win32w_create(const wchar_t *fname, zip_uint64_t start, zip_int64_t length, zip_error_t *error)
zip_win32_file_operations_t ops_utf16
static void utf16_make_tempname(char *buf, size_t len, const char *name, zip_uint32_t i)
ZIP_EXTERN zip_source_t * zip_source_win32w(zip_t *za, const wchar_t *fname, zip_uint64_t start, zip_int64_t len)
static HANDLE __stdcall utf16_create_file(const char *name, DWORD access, DWORD share_mode, PSECURITY_ATTRIBUTES security_attributes, DWORD creation_disposition, DWORD file_attributes, HANDLE template_file)
static char * utf16_allocate_tempname(const char *name, size_t extra_chars, size_t *lengthp)
static char * utf16_strdup(const char *string)