ReactOS 0.4.16-dev-716-g2b2bdab
corecrt_wtime.h File Reference
#include <corecrt.h>
Include dependency graph for corecrt_wtime.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  tm
 

Functions

_Check_return_ _CRT_INSECURE_DEPRECATE (_wasctime_s) _Success_(return !=0) _Ret_writes_z_(26) _ACRTIMP wchar_t *__cdecl _wasctime(_In_ struct tm const *_Tm)
 
 _Success_ (return==0) _Check_return_wat_ _ACRTIMP errno_t __cdecl _wasctime_s(_Out_writes_z_(_SizeInWords) _Post_readable_size_(26) wchar_t *_Buffer
 Deletes the virtual mapping and optionally gives back the page & dirty bit.
 
 _In_range_ (>=, 26) size_t _SizeInWords
 
 __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1 (_Success_(return==0) errno_t, _wasctime_s, _Post_readable_size_(26) wchar_t, _Buffer, _In_ struct tm const *, _Time) _Success_(return > 0) _Check_return_wat_ _ACRTIMP size_t __cdecl wcsftime(_Out_writes_z_(_SizeInWords) wchar_t *_Buffer
 
 _Success_ (return > 0) _Check_return_wat_ _ACRTIMP size_t __cdecl _wcsftime_l(_Out_writes_z_(_SizeInWords) wchar_t *_Buffer
 
 _Success_ (return !=0) _Check_return_ _CRT_INSECURE_DEPRECATE(_wctime32_s) _ACRTIMP wchar_t *__cdecl _wctime32(_In_ __time32_t const *_Time)
 
_Check_return_wat_ _ACRTIMP errno_t __cdecl _wctime32_s (_Out_writes_z_(_SizeInWords) _Post_readable_size_(26) wchar_t *_Buffer, _In_ _In_range_(>=, 26) size_t _SizeInWords, _In_ __time32_t const *_Time)
 
 __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1 (errno_t, _wctime32_s, _Post_readable_size_(26) wchar_t, _Buffer, _In_ __time32_t const *, _Time) _Success_(return !=0) _Ret_writes_z_(26) _Check_return_ _CRT_INSECURE_DEPRECATE(_wctime64_s) _ACRTIMP wchar_t *__cdecl _wctime64(_In_ __time64_t const *_Time)
 
_Check_return_wat_ _ACRTIMP errno_t __cdecl _wctime64_s (_Out_writes_z_(_SizeInWords) _Post_readable_size_(26) wchar_t *_Buffer, _In_ _In_range_(>=, 26) size_t _SizeInWords, _In_ __time64_t const *_Time)
 
 __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1 (errno_t, _wctime64_s, _Post_readable_size_(26) wchar_t, _Buffer, _In_ __time64_t const *, _Time) _Check_return_wat_ _ACRTIMP errno_t __cdecl _wstrdate_s(_Out_writes_z_(_SizeInWords) _When_(_SizeInWords >
 
 _Post_readable_size_ (9)) wchar_t *_Buffer
 
 __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_0 (errno_t, _wstrdate_s, _Post_readable_size_(9) wchar_t, _Buffer) __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_0(_Success_(return !=0) _Ret_writes_z_(9) wchar_t *
 
 _Out_writes_z_ (9)
 
_Buffer _Check_return_wat_ _ACRTIMP errno_t __cdecl _wstrtime_s (_Out_writes_z_(_SizeInWords) _When_(_SizeInWords >=9, _Post_readable_size_(9)) wchar_t *_Buffer, _In_ size_t _SizeInWords)
 
 __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_0 (errno_t, _wstrtime_s, _Post_readable_size_(9) wchar_t, _Buffer) __DEFINE_CPP_OVERLOAD_STANDARD_FUNC_0_0(_Success_(return !=0) _Ret_writes_z_(9) wchar_t *
 
_Buffer static _Check_return_ __inline wchar_t *__CRTDECL _wctime (_In_ time_t const *const _Time)
 
static _Check_return_wat_ __inline errno_t __CRTDECL _wctime_s (_Pre_notnull_ _Post_z_ _Out_writes_z_(_SizeInWords) wchar_t *const _Buffer, _In_ size_t const _SizeInWords, _In_ time_t const *const _Time)
 

Variables

_In_ struct tm const_Tm
 
_In_ size_t _SizeInWords
 
_In_ size_t _In_z_ wchar_t const_Format
 
_In_ size_t _In_z_ wchar_t const _In_ struct tm const _In_opt_ _locale_t _Locale
 
 __RETURN_POLICY_DST
 
 _ACRTIMP
 
 _wstrdate
 
 wchar_t
 
 _wstrtime
 

Function Documentation

◆ __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_0() [1/2]

__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_0 ( errno_t  ,
_wstrdate_s  ,
_Post_readable_size_(9) wchar_t  ,
_Buffer   
)
pure virtual

◆ __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_0() [2/2]

__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_0 ( errno_t  ,
_wstrtime_s  ,
_Post_readable_size_(9) wchar_t  ,
_Buffer   
)
pure virtual

◆ __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1() [1/3]

__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1 ( _Success_(return==0)  errno_t,
_wasctime_s  ,
_Post_readable_size_(26) wchar_t  ,
_Buffer  ,
_In_ struct tm const ,
_Time   
)

◆ __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1() [2/3]

__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1 ( errno_t  ,
_wctime32_s  ,
_Post_readable_size_(26) wchar_t  ,
_Buffer  ,
_In_ __time32_t const ,
_Time   
) const
pure virtual

◆ __DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1() [3/3]

__DEFINE_CPP_OVERLOAD_SECURE_FUNC_0_1 ( errno_t  ,
_wctime64_s  ,
_Post_readable_size_(26) wchar_t  ,
_Buffer  ,
_In_ __time64_t const ,
_Time   
)

◆ _CRT_INSECURE_DEPRECATE()

_Check_return_ _CRT_INSECURE_DEPRECATE ( _wasctime_s  ) const
pure virtual

◆ _In_range_()

_In_range_ ( >=  ,
26   
)

◆ _Out_writes_z_()

_Out_writes_z_ ( )

◆ _Post_readable_size_()

_Post_readable_size_ ( )

◆ _Success_() [1/3]

_Success_ ( return = 0) const

Definition at line 16 of file inittime.cpp.

77{
78 // C Locale
79 if (!locale_data->locale_name[LC_TIME])
80 {
81 return &__lc_time_c;
82 }
83
84 // Non-C Locale
85 __crt_unique_heap_ptr<__crt_lc_time_data> lc_time = _calloc_crt_t(__crt_lc_time_data, 1);
86 if (!lc_time)
87 {
88 return nullptr;
89 }
90
91 if (!initialize_lc_time(lc_time.get(), locale_data))
92 {
94 return nullptr;
95 }
96
97 lc_time.get()->refcount = 1;
98
99 return lc_time.detach();
100}
__crt_lc_time_data const __lc_time_c
Definition: nlsdata.cpp:33
#define LC_TIME
Definition: locale.h:22
void __cdecl __acrt_locale_free_time(__crt_lc_time_data *const lc_time)
Definition: inittime.cpp:147
wchar_t tm const _CrtWcstime_Writes_and_advances_ptr_ count wchar_t _Inout_ size_t __crt_lc_time_data const * lc_time
Definition: wcsftime.cpp:385

◆ _Success_() [2/3]

_Success_ ( return  ,
 
)

◆ _Success_() [3/3]

_Success_ ( return  = = 0)

Deletes the virtual mapping and optionally gives back the page & dirty bit.

Parameters
Process- The process this address belongs to, or NULL if system address.
Address- The address to unmap.
WasDirty- Optional param receiving the dirty bit of the PTE.
Page- Optional param receiving the page number previously mapped to this address.
Returns
Whether there was actually a page mapped at the given address.

Definition at line 57 of file firmware.c.

207{
210
211 /* Check input parameters */
212 if (FirmwareType == NULL)
213 {
215 return FALSE;
216 }
217
218 /* Query firmware type */
220 &BootInfo,
221 sizeof(BootInfo),
222 0);
223 if (!NT_SUCCESS(Status))
224 {
226 return FALSE;
227 }
228
229 *FirmwareType = BootInfo.FirmwareType;
230 return TRUE;
231}
LONG NTSTATUS
Definition: precomp.h:26
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define NT_SUCCESS(StatCode)
Definition: apphelp.c:33
#define ERROR_INVALID_PARAMETER
Definition: compat.h:101
#define SetLastError(x)
Definition: compat.h:752
Status
Definition: gdiplustypes.h:25
@ SystemBootEnvironmentInformation
Definition: extypes.h:307
DWORD BaseSetLastNTError(IN NTSTATUS Status)
Definition: reactos.cpp:167
NTSYSAPI NTSTATUS NTAPI NtQuerySystemInformation(IN SYSTEM_INFORMATION_CLASS SystemInfoClass, OUT PVOID SystemInfoBuffer, IN ULONG SystemInfoBufferSize, OUT PULONG BytesReturned OPTIONAL)

◆ _wctime()

_Buffer static _Check_return_ __inline wchar_t *__CRTDECL _wctime ( _In_ time_t const *const  _Time)
static

Definition at line 186 of file corecrt_wtime.h.

188 {
189 return _wctime64(_Time);
190 }
wchar_t *__cdecl _wctime64(__time64_t const *const time_t_value)
Definition: ctime.cpp:121
_In_ size_t _In_ const __time32_t * _Time
Definition: time.h:192

◆ _wctime32_s()

◆ _wctime64_s()

Referenced by _wctime_s().

◆ _wctime_s()

Definition at line 193 of file corecrt_wtime.h.

198 {
200 }
_In_ size_t _SizeInWords
Definition: corecrt_wtime.h:71
_Check_return_wat_ _ACRTIMP errno_t __cdecl _wctime64_s(_Out_writes_z_(_SizeInWords) _Post_readable_size_(26) wchar_t *_Buffer, _In_ _In_range_(>=, 26) size_t _SizeInWords, _In_ __time64_t const *_Time)
_In_ _Pre_notnull_ _Buffer
Definition: stdlib.h:644

◆ _wstrtime_s()

Variable Documentation

◆ __RETURN_POLICY_DST

__RETURN_POLICY_DST

Definition at line 136 of file corecrt_wtime.h.

◆ _ACRTIMP

_ACRTIMP

Definition at line 136 of file corecrt_wtime.h.

◆ _Format

Definition at line 72 of file corecrt_wtime.h.

◆ _Locale

◆ _SizeInWords

_In_ size_t _SizeInWords

Definition at line 71 of file corecrt_wtime.h.

Referenced by _wctime_s().

◆ _Tm

Definition at line 57 of file corecrt_wtime.h.

◆ _wstrdate

_wstrdate

Definition at line 136 of file corecrt_wtime.h.

Referenced by _wstrdate_s(), and test_wstrdate().

◆ _wstrtime

_wstrtime

Definition at line 152 of file corecrt_wtime.h.

Referenced by test_wstrtime().

◆ wchar_t

Definition at line 137 of file corecrt_wtime.h.