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

msvcrt.h
Go to the documentation of this file.
00001 /*
00002  * Copyright 2001 Jon Griffiths
00003  * Copyright 2004 Dimitrie O. Paun
00004  *
00005  * This library is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU Lesser General Public
00007  * License as published by the Free Software Foundation; either
00008  * version 2.1 of the License, or (at your option) any later version.
00009  *
00010  * This library is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013  * Lesser General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU Lesser General Public
00016  * License along with this library; if not, write to the Free Software
00017  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
00018  */
00019 
00020 #ifndef __WINE_MSVCRT_H
00021 #define __WINE_MSVCRT_H
00022 
00023 #include <stdarg.h>
00024 #include <signal.h>
00025 #include "windef.h"
00026 #include "winbase.h"
00027 
00028 extern int __lc_codepage;
00029 extern int __lc_collate_cp;
00030 extern int __mb_cur_max;
00031 extern const unsigned short _ctype [257];
00032 
00033 void __cdecl _purecall(void);
00034 void __cdecl _amsg_exit(int errnum);
00035 
00036 extern char **_environ;
00037 extern wchar_t **_wenviron;
00038 extern char ** SnapshotOfEnvironmentA(char **);
00039 extern wchar_t ** SnapshotOfEnvironmentW(wchar_t **);
00040 
00041 /* Application type flags */
00042 #define _UNKNOWN_APP    0
00043 #define _CONSOLE_APP    1
00044 #define _GUI_APP        2
00045 
00046 /* I/O Streamming flags missing from stdio.h */
00047 #define _IOYOURBUF      0x0100
00048 #define _IOAPPEND       0x0200
00049 #define _IOSETVBUF      0x0400
00050 #define _IOFEOF         0x0800
00051 #define _IOFLRTN        0x1000
00052 #define _IOCTRLZ        0x2000
00053 #define _IOCOMMIT       0x4000
00054 #define _IOFREE         0x10000
00055 
00056 //wchar_t *wstrdupa(const char *);
00057 //
00059 // * it would not be much use anyway. Even for Winelib applications.
00060 // */
00061 //int __cdecl _set_new_mode(int mode);
00062 //
00063 void* __cdecl MSVCRT_operator_new(size_t);
00064 void __cdecl MSVCRT_operator_delete(void*);
00065 typedef void* (__cdecl *malloc_func_t)(size_t);
00066 typedef void  (__cdecl *free_func_t)(void*);
00067 
00068 extern char* __cdecl __unDName(char *,const char*,int,malloc_func_t,free_func_t,unsigned short int);
00069 extern char* __cdecl __unDNameEx(char *,const char*,int,malloc_func_t,free_func_t,void *,unsigned short int);
00070 
00071 /* Setup and teardown multi threaded locks */
00072 extern void msvcrt_init_mt_locks(void);
00073 extern void msvcrt_free_mt_locks(void);
00074 
00075 extern BOOL msvcrt_init_locale(void);
00076 extern void msvcrt_init_math(void);
00077 extern void msvcrt_init_io(void);
00078 extern void msvcrt_free_io(void);
00079 extern void msvcrt_init_console(void);
00080 extern void msvcrt_free_console(void);
00081 extern void msvcrt_init_args(void);
00082 extern void msvcrt_free_args(void);
00083 extern void msvcrt_init_signals(void);
00084 extern void msvcrt_free_signals(void);
00085 
00086 extern unsigned create_io_inherit_block(WORD*, BYTE**);
00087 
00088 /* _set_abort_behavior codes */
00089 #define MSVCRT__WRITE_ABORT_MSG    1
00090 #define MSVCRT__CALL_REPORTFAULT   2
00091 
00092 #define MSVCRT__OUT_TO_DEFAULT 0
00093 #define MSVCRT__OUT_TO_STDERR  1
00094 #define MSVCRT__OUT_TO_MSGBOX  2
00095 #define MSVCRT__REPORT_ERRMODE 3
00096 
00097 typedef void (*float_handler)(int, int);
00098 void _default_handler(int signal);
00099 typedef struct _sig_element
00100 {
00101    int signal;
00102    char *signame;
00103    __p_sig_fn_t handler;
00104 }sig_element;
00105 
00106 #define MSVCRT_malloc malloc
00107 #define MSVCRT_free free
00108 char* _setlocale(int,const char*);
00109 NTSYSAPI VOID NTAPI RtlAssert(PVOID FailedAssertion,PVOID FileName,ULONG LineNumber,PCHAR Message);
00110 
00111 #endif /* __WINE_MSVCRT_H */

Generated on Sun May 27 2012 04:36:28 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.