File Index Symbol Index

//
// corecrt_wio.h
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
// This file declares the wide character (wchar_t) I/O functionality, shared by
// <io.h> and <wchar.h>.
//
#pragma once
#include <corecrt.h> #include <corecrt_share.h>
#pragma warning(push)
//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
//
// Types
//
//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
#ifdef _USE_32BIT_TIME_T
#define _wfinddata_t _wfinddata32_t
#define _wfinddatai64_t _wfinddata32i64_t
#else
#define _wfinddata_t _wfinddata64i32_t
#define _wfinddatai64_t _wfinddata64_t #endif
typedef
unsigned
long
_fsize_t
;
struct
_wfinddata32_t
{
unsigned
attrib
;
__time32_t
time_create
;
// -1 for FAT file systems
__time32_t
time_access
;
// -1 for FAT file systems
__time32_t
time_write
;
_fsize_t
size
;
wchar_t
name
[
260
]; };
struct
_wfinddata32i64_t
{
unsigned
attrib
;
__time32_t
time_create
;
// -1 for FAT file systems
__time32_t
time_access
;
// -1 for FAT file systems
__time32_t
time_write
;
__int64
size
;
wchar_t
name
[
260
]; };
struct
_wfinddata64i32_t
{
unsigned
attrib
;
__time64_t
time_create
;
// -1 for FAT file systems
__time64_t
time_access
;
// -1 for FAT file systems
__time64_t
time_write
;
_fsize_t
size
;
wchar_t
name
[
260
]; };
struct
_wfinddata64_t
{
unsigned
attrib
;
__time64_t
time_create
;
// -1 for FAT file systems
__time64_t
time_access
;
// -1 for FAT file systems
__time64_t
time_write
;
__int64
size
;
wchar_t
name
[
260
]; };
//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
//
// Functions
//
//-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
#ifdef _USE_32BIT_TIME_T
#define _wfindfirst _wfindfirst32
#define _wfindnext _wfindnext32
#define _wfindfirsti64 _wfindfirst32i64
#define _wfindnexti64 _wfindnext32i64
#else
#define _wfindfirst _wfindfirst64i32
#define _wfindnext _wfindnext64i32
#define _wfindfirsti64 _wfindfirst64
#define _wfindnexti64 _wfindnext64 #endif
_Check_return_
);
_Check_return_wat_
);
_Check_return_
); );
_Success_(return != -1)
_Check_return_
);
_Success_(return != -1)
_Check_return_
); );
_Check_return_
); );
_Success_(return != 0)
_Success_(return != -1)
_Check_return_
);
_Success_(return != -1)
_Check_return_
);
_Success_(return != -1)
_Check_return_
);
_Success_(return != -1)
_Check_return_
);
_Success_(return != -1)
_Check_return_
);
_Success_(return != -1)
_Check_return_
);
_Check_return_wat_
); );
#if defined __cplusplus
// These functions do not validate pmode; use _wsopen_s instead.
) {
int
_FileHandle
;
// Last parameter passed as 0 because we don't want to validate pmode from _open
return
_Result
? -
1
:
_FileHandle
; } ) {
int
_FileHandle
;
// Last parameter passed as 0 because we don't want to validate pmode from _sopen
errno_t
const
_Result
=
_wsopen_dispatch
(
_FileName
,
_OFlag
,
_ShFlag
,
_PMode
, &
_FileHandle
,
0
);
return
_Result
? -
1
:
_FileHandle
; }
#else
_Check_return_ _CRT_INSECURE_DEPRECATE(_wsopen_s)
_ACRTIMP int __cdecl _wopen(
_In_z_ wchar_t const* _FileName,
_In_ int _OpenFlag,
...);
_Check_return_ _CRT_INSECURE_DEPRECATE(_wsopen_s)
_ACRTIMP int __cdecl _wsopen(
_In_z_ wchar_t const* _FileName,
_In_ int _OpenFlag,
_In_ int _ShareFlag,
...);
#endif
#pragma warning(pop)