#pragma once
#include <corecrt.h>
#include <corecrt_share.h>
_CRT_BEGIN_C_HEADER
__pragma
(pack(push,
8
))
extern
"C"
{
#pragma warning(push)
#pragma warning(disable:4820) /* padding added after data member */
#pragma warning(disable:
4820
)
#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
;
struct
{
unsigned
;
;
;
;
;
wchar_t
[
260
];
};
struct
{
unsigned
;
;
;
;
__int64
;
wchar_t
[
260
];
};
struct
{
unsigned
;
;
;
;
;
wchar_t
[
260
];
};
struct
{
unsigned
;
;
;
;
__int64
;
wchar_t
[
260
];
};
#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_
_ACRTIMP int __cdecl _waccess(
__declspec
(dllimport)
int
__cdecl
(
_In_z_ wchar_t const* _FileName,
);
_Check_return_wat_
_ACRTIMP errno_t __cdecl _waccess_s(
__declspec
(dllimport)
__cdecl
(
_In_z_ wchar_t const* _FileName,
);
_Check_return_
_ACRTIMP int __cdecl _wchmod(
__declspec
(dllimport)
int
__cdecl
(
_In_z_ wchar_t const* _FileName,
);
_Check_return_ _CRT_INSECURE_DEPRECATE(_wsopen_s)
__declspec
(deprecated(
"This function or variable may be unsafe. Consider using "
"_wsopen_s"
" instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. "
"See online help for details."
))
_ACRTIMP int __cdecl _wcreat(
__declspec
(dllimport)
int
__cdecl
(
_In_z_ wchar_t const* _FileName,
);
_Success_(return != -1)
_Check_return_
_ACRTIMP intptr_t __cdecl _wfindfirst32(
__declspec
(dllimport)
__cdecl
(
_In_z_ wchar_t const* _FileName,
_Out_ struct _wfinddata32_t* _FindData
);
_Success_(return != -1)
_Check_return_
_ACRTIMP int __cdecl _wfindnext32(
__declspec
(dllimport)
int
__cdecl
(
_In_ intptr_t _FindHandle,
_Out_ struct _wfinddata32_t* _FindData
);
_ACRTIMP int __cdecl _wunlink(
__declspec
(dllimport)
int
__cdecl
(
_In_z_ wchar_t const* _FileName
);
_Check_return_
_ACRTIMP int __cdecl _wrename(
__declspec
(dllimport)
int
__cdecl
(
_In_z_ wchar_t const* _OldFileName,
_In_z_ wchar_t const* _NewFileName
);
_ACRTIMP errno_t __cdecl _wmktemp_s(
__declspec
(dllimport)
__cdecl
(
_Inout_updates_z_(_SizeInWords) wchar_t* _TemplateName,
);
__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_0(
errno_t, _wmktemp_s,
wchar_t, _TemplateName
)
extern
"C++"
{
template
<
>
inline
__cdecl
(
wchar_t
(&
)[
])
throw
() {
return
(
,
); } }
_Success_(return != 0)
__DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_0(
wchar_t*, __RETURN_POLICY_DST, _ACRTIMP, _wmktemp,
_Inout_z_, wchar_t, _TemplateName
)
__declspec
(deprecated(
"This function or variable may be unsafe. Consider using "
"_wmktemp_s"
" instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. "
"See online help for details."
))
__declspec
(dllimport)
wchar_t
*
__cdecl
(
wchar_t
*
);
_Success_(return != -1)
_Check_return_
_ACRTIMP intptr_t __cdecl _wfindfirst32i64(
__declspec
(dllimport)
__cdecl
(
_In_z_ wchar_t const* _FileName,
_Out_ struct _wfinddata32i64_t* _FindData
);
_Success_(return != -1)
_Check_return_
_ACRTIMP intptr_t __cdecl _wfindfirst64i32(
__declspec
(dllimport)
__cdecl
(
_In_z_ wchar_t const* _FileName,
_Out_ struct _wfinddata64i32_t* _FindData
);
_Success_(return != -1)
_Check_return_
_ACRTIMP intptr_t __cdecl _wfindfirst64(
__declspec
(dllimport)
__cdecl
(
_In_z_ wchar_t const* _FileName,
_Out_ struct _wfinddata64_t* _FindData
);
_Success_(return != -1)
_Check_return_
_ACRTIMP int __cdecl _wfindnext32i64(
__declspec
(dllimport)
int
__cdecl
(
_In_ intptr_t _FindHandle,
_Out_ struct _wfinddata32i64_t* _FindData
);
_Success_(return != -1)
_Check_return_
_ACRTIMP int __cdecl _wfindnext64i32(
__declspec
(dllimport)
int
__cdecl
(
_In_ intptr_t _FindHandle,
_Out_ struct _wfinddata64i32_t* _FindData
);
_Success_(return != -1)
_Check_return_
_ACRTIMP int __cdecl _wfindnext64(
__declspec
(dllimport)
int
__cdecl
(
_In_ intptr_t _FindHandle,
_Out_ struct _wfinddata64_t* _FindData
);
_Check_return_wat_
_ACRTIMP errno_t __cdecl _wsopen_s(
__declspec
(dllimport)
__cdecl
(
_In_z_ wchar_t const* _FileName,
);
_ACRTIMP errno_t __cdecl _wsopen_dispatch(
__declspec
(dllimport)
__cdecl
(
_In_z_ wchar_t const* _FileName,
);
#if defined __cplusplus
extern "C++" _Check_return_ _CRT_INSECURE_DEPRECATE(_wsopen_s)
extern
"C++"
__declspec
(deprecated(
"This function or variable may be unsafe. Consider using "
"_wsopen_s"
" instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. "
"See online help for details."
))
inline int __CRTDECL _wopen(
_In_z_ wchar_t const* _FileName,
)
{
int
;
errno_t const _Result = _wsopen_dispatch(_FileName, _OFlag, _SH_DENYNO, _PMode, &_FileHandle, 0);
const
=
(
,
,
0x40
,
, &
_FileHandle
,
0
);
return
_Result
? -
1
:
_FileHandle
;
}
extern "C++" _Check_return_ _CRT_INSECURE_DEPRECATE(_wsopen_s)
extern
"C++"
__declspec
(deprecated(
"This function or variable may be unsafe. Consider using "
"_wsopen_s"
" instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. "
"See online help for details."
))
inline int __CRTDECL _wsopen(
_In_z_ wchar_t const* _FileName,
)
{
int
;
const
=
(
,
,
,
, &
_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)