ReactOS 0.4.16-dev-340-g0540c21
vcruntime.h File Reference
#include <_mingw.h>
#include <sal.h>
#include <vadefs.h>
Include dependency graph for vcruntime.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define _VCRUNTIME_H
 
#define _CRT_STRINGIZE_(_Value)   #_Value
 
#define _CRT_STRINGIZE(_Value)   _CRT_STRINGIZE_(_Value)
 
#define _CRT_WIDE_(_String)   L ## _String
 
#define _CRT_WIDE(_String)   _CRT_WIDE_(_String)
 
#define _CRT_CONCATENATE_(a, b)   a ## b
 
#define _CRT_CONCATENATE(a, b)   _CRT_CONCATENATE_(a, b)
 
#define _CRT_UNPARENTHESIZE_(...)   __VA_ARGS__
 
#define _CRT_UNPARENTHESIZE(...)   _CRT_UNPARENTHESIZE_ __VA_ARGS__
 
#define __pragma(x)   _Pragma(_CRT_STRINGIZE(x))
 
#define _CRT_BEGIN_C_HEADER    __pragma(pack(push, _CRT_PACKING_IDENTIFIER, _CRT_PACKING))
 
#define _CRT_END_C_HEADER    __pragma(pack(pop, _CRT_PACKING_IDENTIFIER))
 
#define _CRTIMP
 
#define _VCRTIMP   _CRTIMP
 
#define __CRTDECL   __cdecl
 
#define _CONST_RETURN
 
#define _VCRT_EXPORT_STD
 
#define _CRT_DEPRECATE_TEXT(_Text)
 
#define _CRT_INSECURE_DEPRECATE(_Replacement)    _CRT_DEPRECATE_TEXT("This may be unsafe, Try " #_Replacement " instead!")
 
#define _CRT_INSECURE_DEPRECATE_MEMORY(_Replacement)
 
#define _SIZE_T_DEFINED
 
#define _INTPTR_T_DEFINED
 
#define __intptr_t_defined
 
#define _PTRDIFF_T_DEFINED
 
#define _WCHAR_T_DEFINED
 
#define _CRT_ALIGN(x)   __attribute__ ((aligned(x)))
 
#define _VCRT_ALIGN(x)   __attribute__ ((aligned(x)))
 
#define _HAS_NODISCARD   0
 
#define _NODISCARD
 
#define _UNALIGNED
 
#define __crt_countof(_Array)   (sizeof(_Array) / sizeof(_Array[0]))
 

Typedefs

typedef unsigned int size_t
 
typedef int intptr_t
 
typedef int ptrdiff_t
 
typedef unsigned short wchar_t
 
typedef _Bool __vcrt_bool
 

Functions

void __cdecl __security_init_cookie (void)
 

Variables

uintptr_t __security_cookie
 

Macro Definition Documentation

◆ __crt_countof

#define __crt_countof (   _Array)    (sizeof(_Array) / sizeof(_Array[0]))

Definition at line 216 of file vcruntime.h.

◆ __CRTDECL

#define __CRTDECL   __cdecl

Definition at line 69 of file vcruntime.h.

◆ __intptr_t_defined

#define __intptr_t_defined

Definition at line 125 of file vcruntime.h.

◆ __pragma

#define __pragma (   x)    _Pragma(_CRT_STRINGIZE(x))

Definition at line 29 of file vcruntime.h.

◆ _CONST_RETURN

#define _CONST_RETURN

Definition at line 77 of file vcruntime.h.

◆ _CRT_ALIGN

#define _CRT_ALIGN (   x)    __attribute__ ((aligned(x)))

Definition at line 168 of file vcruntime.h.

◆ _CRT_BEGIN_C_HEADER

#define _CRT_BEGIN_C_HEADER    __pragma(pack(push, _CRT_PACKING_IDENTIFIER, _CRT_PACKING))

Definition at line 40 of file vcruntime.h.

◆ _CRT_CONCATENATE

#define _CRT_CONCATENATE (   a,
  b 
)    _CRT_CONCATENATE_(a, b)

Definition at line 23 of file vcruntime.h.

◆ _CRT_CONCATENATE_

#define _CRT_CONCATENATE_ (   a,
  b 
)    a ## b

Definition at line 22 of file vcruntime.h.

◆ _CRT_DEPRECATE_TEXT

#define _CRT_DEPRECATE_TEXT (   _Text)

Definition at line 92 of file vcruntime.h.

◆ _CRT_END_C_HEADER

#define _CRT_END_C_HEADER    __pragma(pack(pop, _CRT_PACKING_IDENTIFIER))

Definition at line 42 of file vcruntime.h.

◆ _CRT_INSECURE_DEPRECATE

#define _CRT_INSECURE_DEPRECATE (   _Replacement)     _CRT_DEPRECATE_TEXT("This may be unsafe, Try " #_Replacement " instead!")

Definition at line 99 of file vcruntime.h.

◆ _CRT_INSECURE_DEPRECATE_MEMORY

#define _CRT_INSECURE_DEPRECATE_MEMORY (   _Replacement)

Definition at line 105 of file vcruntime.h.

◆ _CRT_STRINGIZE

#define _CRT_STRINGIZE (   _Value)    _CRT_STRINGIZE_(_Value)

Definition at line 17 of file vcruntime.h.

◆ _CRT_STRINGIZE_

#define _CRT_STRINGIZE_ (   _Value)    #_Value

Definition at line 16 of file vcruntime.h.

◆ _CRT_UNPARENTHESIZE

#define _CRT_UNPARENTHESIZE (   ...)    _CRT_UNPARENTHESIZE_ __VA_ARGS__

Definition at line 26 of file vcruntime.h.

◆ _CRT_UNPARENTHESIZE_

#define _CRT_UNPARENTHESIZE_ (   ...)    __VA_ARGS__

Definition at line 25 of file vcruntime.h.

◆ _CRT_WIDE

#define _CRT_WIDE (   _String)    _CRT_WIDE_(_String)

Definition at line 20 of file vcruntime.h.

◆ _CRT_WIDE_

#define _CRT_WIDE_ (   _String)    L ## _String

Definition at line 19 of file vcruntime.h.

◆ _CRTIMP

#define _CRTIMP

Definition at line 54 of file vcruntime.h.

◆ _HAS_NODISCARD

#define _HAS_NODISCARD   0

Definition at line 190 of file vcruntime.h.

◆ _INTPTR_T_DEFINED

#define _INTPTR_T_DEFINED

Definition at line 123 of file vcruntime.h.

◆ _NODISCARD

#define _NODISCARD

Definition at line 201 of file vcruntime.h.

◆ _PTRDIFF_T_DEFINED

#define _PTRDIFF_T_DEFINED

Definition at line 140 of file vcruntime.h.

◆ _SIZE_T_DEFINED

#define _SIZE_T_DEFINED

Definition at line 109 of file vcruntime.h.

◆ _UNALIGNED

#define _UNALIGNED

Definition at line 207 of file vcruntime.h.

◆ _VCRT_ALIGN

#define _VCRT_ALIGN (   x)    __attribute__ ((aligned(x)))

Definition at line 177 of file vcruntime.h.

◆ _VCRT_EXPORT_STD

#define _VCRT_EXPORT_STD

Definition at line 84 of file vcruntime.h.

◆ _VCRTIMP

#define _VCRTIMP   _CRTIMP

Definition at line 60 of file vcruntime.h.

◆ _VCRUNTIME_H

#define _VCRUNTIME_H

Definition at line 10 of file vcruntime.h.

◆ _WCHAR_T_DEFINED

#define _WCHAR_T_DEFINED

Definition at line 156 of file vcruntime.h.

Typedef Documentation

◆ __vcrt_bool

typedef _Bool __vcrt_bool

Definition at line 185 of file vcruntime.h.

◆ intptr_t

typedef int intptr_t

Definition at line 134 of file vcruntime.h.

◆ ptrdiff_t

typedef int ptrdiff_t

Definition at line 150 of file vcruntime.h.

◆ size_t

typedef unsigned int size_t

Definition at line 118 of file vcruntime.h.

◆ wchar_t

Definition at line 158 of file vcruntime.h.

Function Documentation

◆ __security_init_cookie()

void __cdecl __security_init_cookie ( void  )

Definition at line 55 of file gs_support.c.

56{
58 FT systime = { 0, };
59 LARGE_INTEGER perfctr;
60
62 {
63 __security_cookie_complement = ~__security_cookie;
64 return;
65 }
66
68#ifdef _WIN64
69 cookie = systime.ft_scalar;
70#else
73#endif
74
77 cookie ^= GetTickCount ();
78
79 QueryPerformanceCounter (&perfctr);
80#ifdef _WIN64
81 cookie ^= perfctr.QuadPart;
82#else
83 cookie ^= perfctr.LowPart;
84 cookie ^= perfctr.HighPart;
85#endif
86
87#ifdef _WIN64
88 cookie &= 0x0000ffffffffffffll;
89#endif
90
95}
BOOL WINAPI QueryPerformanceCounter(OUT PLARGE_INTEGER lpPerformanceCount)
Definition: perfcnt.c:23
VOID WINAPI GetSystemTimeAsFileTime(OUT PFILETIME lpFileTime)
Definition: time.c:128
DWORD WINAPI GetTickCount(VOID)
Definition: time.c:455
#define DEFAULT_SECURITY_COOKIE
Definition: gs_support.c:25
DECLSPEC_SELECTANY UINT_PTR __security_cookie_complement
Definition: gs_support.c:50
DECLSPEC_SELECTANY UINT_PTR __security_cookie
Definition: gs_support.c:49
unsigned __int3264 UINT_PTR
Definition: mstsclib_h.h:274
DWORD dwHighDateTime
Definition: mapidefs.h:66
DWORD dwLowDateTime
Definition: mapidefs.h:65
Definition: cookie.c:34
Definition: gs_support.c:35
unsigned __int64 ft_scalar
Definition: gs_support.c:36
FILETIME ft_struct
Definition: gs_support.c:37
LONGLONG QuadPart
Definition: typedefs.h:114
ULONG LowPart
Definition: typedefs.h:106
DWORD WINAPI GetCurrentThreadId(void)
Definition: thread.c:459
DWORD WINAPI GetCurrentProcessId(void)
Definition: proc.c:1158

Variable Documentation

◆ __security_cookie

uintptr_t __security_cookie
extern

Definition at line 49 of file gs_support.c.

Referenced by __security_init_cookie().