ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

internal.h
Go to the documentation of this file.
00001 
00007 #ifndef _INC_INTERNAL
00008 #define _INC_INTERNAL
00009 
00010 #include <crtdefs.h>
00011 
00012 #ifdef __cplusplus
00013 extern "C" {
00014 #endif
00015 
00016 #include <limits.h>
00017 #include <windows.h>
00018 
00019 #ifdef __REACTOS__
00020 #include "malloc.h"
00021 struct _exception;
00022 __declspec(dllimport) void __setusermatherr(int (__cdecl *)(struct _exception *));
00023 #define __mingw_fprintf fprintf
00024 #define __mingw_vfprintf vfprintf
00025 #endif
00026 
00027 #pragma pack(push,_CRT_PACKING)
00028 
00029 #ifndef __INTERNAL_FUNC_DEFINED
00030 #define __INTERNAL_FUNC_DEFINED
00031   typedef void (__cdecl *_PVFV)(void);
00032   typedef int (__cdecl *_PIFV)(void);
00033   typedef void (__cdecl *_PVFI)(int);
00034 #endif
00035 
00036 #if defined (SPECIAL_CRTEXE) && (defined (_DLL) || defined (__GNUC__))
00037   extern int _commode;
00038 #else
00039   _CRTIMP extern int _commode;
00040 #endif
00041 
00042 #define __IOINFO_TM_ANSI 0
00043 #define __IOINFO_TM_UTF8 1
00044 #define __IOINFO_TM_UTF16LE 2
00045 
00046 #ifdef _MSC_VER
00047 #pragma warning(push)
00048 #pragma warning(disable:4214)
00049 #pragma warning(disable:4820)
00050 #endif
00051 
00052   typedef struct {
00053     intptr_t osfhnd;
00054     char osfile;
00055     char pipech;
00056     int lockinitflag;
00057     CRITICAL_SECTION lock;
00058     char textmode : 7;
00059     char unicode : 1;
00060     char pipech2[2];
00061   } ioinfo;
00062 
00063 #ifdef _MSC_VER
00064 #pragma warning(pop)
00065 #endif
00066 
00067 #define IOINFO_ARRAY_ELTS (1 << 5)
00068 
00069 #define _pioinfo(i) (__pioinfo[(i) >> 5] + ((i) & (IOINFO_ARRAY_ELTS - 1)))
00070 #define _osfile(i) (_pioinfo(i)->osfile)
00071 #define _pipech2(i) (_pioinfo(i)->pipech2)
00072 #define _textmode(i) (_pioinfo(i)->textmode)
00073 #define _tm_unicode(i) (_pioinfo(i)->unicode)
00074 #define _pioinfo_safe(i) ((((i) != -1) && ((i) != -2)) ? _pioinfo(i) : &__badioinfo)
00075 #define _osfhnd_safe(i) (_pioinfo_safe(i)->osfhnd)
00076 #define _osfile_safe(i) (_pioinfo_safe(i)->osfile)
00077 #define _pipech_safe(i) (_pioinfo_safe(i)->pipech)
00078 #define _pipech2_safe(i) (_pioinfo_safe(i)->pipech2)
00079 #define _textmode_safe(i) (_pioinfo_safe(i)->textmode)
00080 #define _tm_unicode_safe(i) (_pioinfo_safe(i)->unicode)
00081 
00082 #ifndef __badioinfo
00083   extern ioinfo ** __MINGW_IMP_SYMBOL(__badioinfo)[];
00084 #define __badioinfo (* __MINGW_IMP_SYMBOL(__badioinfo))
00085 #endif
00086 
00087 #ifndef __pioinfo
00088   extern ioinfo ** __MINGW_IMP_SYMBOL(__pioinfo)[];
00089 #define __pioinfo (* __MINGW_IMP_SYMBOL(__pioinfo))
00090 #endif
00091 
00092 #define _NO_CONSOLE_FILENO (intptr_t)-2
00093 
00094 #ifndef _FILE_DEFINED
00095 #define _FILE_DEFINED
00096   struct _iobuf {
00097     char *_ptr;
00098     int _cnt;
00099     char *_base;
00100     int _flag;
00101     int _file;
00102     int _charbuf;
00103     int _bufsiz;
00104     char *_tmpfname;
00105   };
00106   typedef struct _iobuf FILE;
00107 #endif
00108 
00109 #if !defined (_FILEX_DEFINED) && defined (_WINDOWS_)
00110 #define _FILEX_DEFINED
00111   typedef struct {
00112     FILE f;
00113     CRITICAL_SECTION lock;
00114   } _FILEX;
00115 #endif
00116 
00117   extern int _dowildcard;
00118   extern int _newmode;
00119 
00120 #ifndef __winitenv
00121 extern wchar_t *** __MINGW_IMP_SYMBOL(__winitenv);
00122 #define __winitenv (* __MINGW_IMP_SYMBOL(__winitenv))
00123 #endif
00124 
00125 #ifndef __initenv
00126 extern char *** __MINGW_IMP_SYMBOL(__initenv);
00127 #define __initenv (* __MINGW_IMP_SYMBOL(__initenv))
00128 #endif
00129 
00130 #ifndef _acmdln
00131 extern char ** __MINGW_IMP_SYMBOL(_acmdln);
00132 #define _acmdln (* __MINGW_IMP_SYMBOL(_acmdln))
00133 /*  _CRTIMP extern char *_acmdln; */
00134 #endif
00135 
00136 #ifndef _wcmdln
00137 extern char ** __MINGW_IMP_SYMBOL(_wcmdln);
00138 #define _wcmdln (* __MINGW_IMP_SYMBOL(_wcmdln))
00139 /*  __CRTIMP extern wchar_t *_wcmdln; */
00140 #endif
00141 
00142   _CRTIMP void __cdecl _amsg_exit(int);
00143 
00144   int __CRTDECL _setargv(void);
00145   int __CRTDECL __setargv(void);
00146   int __CRTDECL _wsetargv(void);
00147   int __CRTDECL __wsetargv(void);
00148 
00149   int __CRTDECL main(int _Argc, char **_Argv, char **_Env);
00150   int __CRTDECL wmain(int _Argc, wchar_t **_Argv, wchar_t **_Env);
00151 
00152 #ifndef _STARTUP_INFO_DEFINED
00153 #define _STARTUP_INFO_DEFINED
00154   typedef struct {
00155     int newmode;
00156   } _startupinfo;
00157 #endif
00158 
00159   _CRTIMP int __cdecl __getmainargs(int * _Argc, char *** _Argv, char ***_Env, int _DoWildCard, _startupinfo *_StartInfo);
00160   _CRTIMP int __cdecl __wgetmainargs(int * _Argc, wchar_t ***_Argv, wchar_t ***_Env, int _DoWildCard, _startupinfo *_StartInfo);
00161 
00162 #define _CONSOLE_APP 1
00163 #define _GUI_APP 2
00164 
00165   typedef enum __enative_startup_state {
00166     __uninitialized = 0, __initializing, __initialized
00167   } __enative_startup_state;
00168 
00169   extern volatile __enative_startup_state __native_startup_state;
00170   extern volatile void *__native_startup_lock;
00171 
00172   extern volatile unsigned int __native_dllmain_reason;
00173   extern volatile unsigned int __native_vcclrit_reason;
00174 
00175   _CRTIMP void __cdecl __set_app_type (int);
00176 
00177   typedef LONG NTSTATUS;
00178 
00179 #include <crtdbg.h>
00180 #include <errno.h>
00181 
00182   void * __cdecl _encode_pointer(void *);
00183   void * __cdecl _encoded_null();
00184   void * __cdecl _decode_pointer(void *);
00185 
00186   BOOL __cdecl _ValidateImageBase (PBYTE pImageBase);
00187   PIMAGE_SECTION_HEADER __cdecl _FindPESection (PBYTE pImageBase, DWORD_PTR rva);
00188   BOOL __cdecl _IsNonwritableInCurrentImage (PBYTE pTarget);
00189 
00190 #ifdef __cplusplus
00191 }
00192 #endif
00193 
00194 #pragma pack(pop)
00195 #endif

Generated on Sat May 26 2012 04:18:08 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.