ReactOS 0.4.16-dev-250-g3ecd236
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 _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 _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 202 of file vcruntime.h.

◆ __CRTDECL

#define __CRTDECL   __cdecl

Definition at line 61 of file vcruntime.h.

◆ __intptr_t_defined

#define __intptr_t_defined

Definition at line 111 of file vcruntime.h.

◆ __pragma

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

Definition at line 21 of file vcruntime.h.

◆ _CONST_RETURN

#define _CONST_RETURN

Definition at line 69 of file vcruntime.h.

◆ _CRT_ALIGN

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

Definition at line 154 of file vcruntime.h.

◆ _CRT_BEGIN_C_HEADER

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

Definition at line 32 of file vcruntime.h.

◆ _CRT_CONCATENATE

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

Definition at line 15 of file vcruntime.h.

◆ _CRT_CONCATENATE_

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

Definition at line 14 of file vcruntime.h.

◆ _CRT_DEPRECATE_TEXT

#define _CRT_DEPRECATE_TEXT (   _Text)

Definition at line 78 of file vcruntime.h.

◆ _CRT_END_C_HEADER

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

Definition at line 34 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 85 of file vcruntime.h.

◆ _CRT_INSECURE_DEPRECATE_MEMORY

#define _CRT_INSECURE_DEPRECATE_MEMORY (   _Replacement)

Definition at line 91 of file vcruntime.h.

◆ _CRT_STRINGIZE

#define _CRT_STRINGIZE (   _Value)    _CRT_STRINGIZE_(_Value)

Definition at line 9 of file vcruntime.h.

◆ _CRT_STRINGIZE_

#define _CRT_STRINGIZE_ (   _Value)    #_Value

Definition at line 8 of file vcruntime.h.

◆ _CRT_UNPARENTHESIZE

#define _CRT_UNPARENTHESIZE (   ...)    _CRT_UNPARENTHESIZE_ __VA_ARGS__

Definition at line 18 of file vcruntime.h.

◆ _CRT_UNPARENTHESIZE_

#define _CRT_UNPARENTHESIZE_ (   ...)    __VA_ARGS__

Definition at line 17 of file vcruntime.h.

◆ _CRT_WIDE

#define _CRT_WIDE (   _String)    _CRT_WIDE_(_String)

Definition at line 12 of file vcruntime.h.

◆ _CRT_WIDE_

#define _CRT_WIDE_ (   _String)    L ## _String

Definition at line 11 of file vcruntime.h.

◆ _CRTIMP

#define _CRTIMP

Definition at line 46 of file vcruntime.h.

◆ _HAS_NODISCARD

#define _HAS_NODISCARD   0

Definition at line 176 of file vcruntime.h.

◆ _INTPTR_T_DEFINED

#define _INTPTR_T_DEFINED

Definition at line 109 of file vcruntime.h.

◆ _NODISCARD

#define _NODISCARD

Definition at line 187 of file vcruntime.h.

◆ _PTRDIFF_T_DEFINED

#define _PTRDIFF_T_DEFINED

Definition at line 126 of file vcruntime.h.

◆ _SIZE_T_DEFINED

#define _SIZE_T_DEFINED

Definition at line 95 of file vcruntime.h.

◆ _UNALIGNED

#define _UNALIGNED

Definition at line 193 of file vcruntime.h.

◆ _VCRT_ALIGN

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

Definition at line 163 of file vcruntime.h.

◆ _VCRTIMP

#define _VCRTIMP   _CRTIMP

Definition at line 52 of file vcruntime.h.

◆ _WCHAR_T_DEFINED

#define _WCHAR_T_DEFINED

Definition at line 142 of file vcruntime.h.

Typedef Documentation

◆ __vcrt_bool

typedef _Bool __vcrt_bool

Definition at line 171 of file vcruntime.h.

◆ intptr_t

typedef int intptr_t

Definition at line 120 of file vcruntime.h.

◆ ptrdiff_t

typedef int ptrdiff_t

Definition at line 136 of file vcruntime.h.

◆ size_t

typedef unsigned int size_t

Definition at line 104 of file vcruntime.h.

◆ wchar_t

Definition at line 144 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().