home *** CD-ROM | disk | FTP | other *** search
/ Magazyn Internet 2000 May / MICD_2000_05.iso / CBuilder5 / INSTALL / DATA1.CAB / Program_Built_Files / Include / Vcl / system.hpp < prev    next >
C/C++ Source or Header  |  2000-02-01  |  11KB  |  221 lines

  1. // Borland C++ Builder
  2. // Copyright (c) 1995, 1999 by Borland International
  3. // All rights reserved
  4.  
  5. // (DO NOT EDIT: machine generated header) 'System.pas' rev: 5.00
  6.  
  7. #ifndef SystemHPP
  8. #define SystemHPP
  9.  
  10. #pragma delphiheader begin
  11. #pragma option push -w-
  12. #pragma option push -Vx
  13. #include <sysmac.H>    // system macros
  14.  
  15. //-- user supplied -----------------------------------------------------------
  16.  
  17. namespace System
  18. {
  19. //-- type declarations -------------------------------------------------------
  20. //-- var, const, procedure ---------------------------------------------------
  21. static const bool False = false;
  22. static const bool True = true;
  23. static const int MaxInt = 0x7fffffff;
  24. static const int MaxLongint = 0x7fffffff;
  25. static const Shortint varEmpty = 0x0;
  26. static const Shortint varNull = 0x1;
  27. static const Shortint varSmallint = 0x2;
  28. static const Shortint varInteger = 0x3;
  29. static const Shortint varSingle = 0x4;
  30. static const Shortint varDouble = 0x5;
  31. static const Shortint varCurrency = 0x6;
  32. static const Shortint varDate = 0x7;
  33. static const Shortint varOleStr = 0x8;
  34. static const Shortint varDispatch = 0x9;
  35. static const Shortint varError = 0xa;
  36. static const Shortint varBoolean = 0xb;
  37. static const Shortint varVariant = 0xc;
  38. static const Shortint varUnknown = 0xd;
  39. static const Shortint varByte = 0x11;
  40. static const Shortint varStrArg = 0x48;
  41. static const Word varString = 0x100;
  42. static const Word varAny = 0x101;
  43. static const Word varTypeMask = 0xfff;
  44. static const Word varArray = 0x2000;
  45. static const Word varByRef = 0x4000;
  46. static const Shortint vtInteger = 0x0;
  47. static const Shortint vtBoolean = 0x1;
  48. static const Shortint vtChar = 0x2;
  49. static const Shortint vtExtended = 0x3;
  50. static const Shortint vtString = 0x4;
  51. static const Shortint vtPointer = 0x5;
  52. static const Shortint vtPChar = 0x6;
  53. static const Shortint vtObject = 0x7;
  54. static const Shortint vtClass = 0x8;
  55. static const Shortint vtWideChar = 0x9;
  56. static const Shortint vtPWideChar = 0xa;
  57. static const Shortint vtAnsiString = 0xb;
  58. static const Shortint vtCurrency = 0xc;
  59. static const Shortint vtVariant = 0xd;
  60. static const Shortint vtInterface = 0xe;
  61. static const Shortint vtWideString = 0xf;
  62. static const Shortint vtInt64 = 0x10;
  63. static const Shortint vmtSelfPtr = 0xffffffb4;
  64. static const Shortint vmtIntfTable = 0xffffffb8;
  65. static const Shortint vmtAutoTable = 0xffffffbc;
  66. static const Shortint vmtInitTable = 0xffffffc0;
  67. static const Shortint vmtTypeInfo = 0xffffffc4;
  68. static const Shortint vmtFieldTable = 0xffffffc8;
  69. static const Shortint vmtMethodTable = 0xffffffcc;
  70. static const Shortint vmtDynamicTable = 0xffffffd0;
  71. static const Shortint vmtClassName = 0xffffffd4;
  72. static const Shortint vmtInstanceSize = 0xffffffd8;
  73. static const Shortint vmtParent = 0xffffffdc;
  74. static const Shortint vmtSafeCallException = 0xffffffe0;
  75. static const Shortint vmtAfterConstruction = 0xffffffe4;
  76. static const Shortint vmtBeforeDestruction = 0xffffffe8;
  77. static const Shortint vmtDispatch = 0xffffffec;
  78. static const Shortint vmtDefaultHandler = 0xfffffff0;
  79. static const Shortint vmtNewInstance = 0xfffffff4;
  80. static const Shortint vmtFreeInstance = 0xfffffff8;
  81. static const Shortint vmtDestroy = 0xfffffffc;
  82. static const Shortint vmtQueryInterface = 0x0;
  83. static const Shortint vmtAddRef = 0x4;
  84. static const Shortint vmtRelease = 0x8;
  85. static const Shortint vmtCreateObject = 0xc;
  86. extern PACKAGE void *ExceptProc;
  87. extern PACKAGE void *ErrorProc;
  88. extern PACKAGE void *ExceptClsProc;
  89. extern PACKAGE void *ExceptObjProc;
  90. extern PACKAGE TMetaClass*ExceptionClass;
  91. extern PACKAGE void *SafeCallErrorProc;
  92. extern PACKAGE void *AssertErrorProc;
  93. extern PACKAGE void *AbstractErrorProc;
  94. extern PACKAGE unsigned HPrevInst;
  95. extern PACKAGE HINSTANCE MainInstance;
  96. extern PACKAGE unsigned MainThreadID;
  97. extern PACKAGE bool IsLibrary;
  98. extern PACKAGE int CmdShow;
  99. extern PACKAGE char *CmdLine;
  100. extern PACKAGE void *InitProc;
  101. extern PACKAGE int ExitCode;
  102. extern PACKAGE void *ExitProc;
  103. extern PACKAGE void *ErrorAddr;
  104. extern PACKAGE int RandSeed;
  105. extern PACKAGE bool IsConsole;
  106. extern PACKAGE bool IsMultiThread;
  107. extern PACKAGE Byte FileMode;
  108. extern PACKAGE Byte Test8086;
  109. extern PACKAGE Byte Test8087;
  110. extern PACKAGE Shortint TestFDIV;
  111. extern PACKAGE TextFile Input;
  112. extern PACKAGE TextFile Output;
  113. extern PACKAGE void *ClearAnyProc;
  114. extern PACKAGE void *ChangeAnyProc;
  115. extern PACKAGE void *RefAnyProc;
  116. extern PACKAGE Word Default8087CW;
  117. extern PACKAGE Word HeapAllocFlags;
  118. extern PACKAGE Byte DebugHook;
  119. extern PACKAGE Byte JITEnable;
  120. extern PACKAGE bool NoErrMsg;
  121. extern PACKAGE Variant Unassigned;
  122. extern PACKAGE Variant Null;
  123. extern PACKAGE OleVariant EmptyParam;
  124. extern PACKAGE int AllocMemCount;
  125. extern PACKAGE int AllocMemSize;
  126. extern PACKAGE void *VarDispProc;
  127. extern PACKAGE void *DispCallByIDProc;
  128. extern PACKAGE TLibModule *LibModuleList;
  129. extern PACKAGE TModuleUnloadRec *ModuleUnloadList;
  130. extern PACKAGE void __fastcall TextStart(void);
  131. extern PACKAGE void * __fastcall SysGetMem(int Size);
  132. extern PACKAGE int __fastcall SysFreeMem(void * P);
  133. extern PACKAGE void * __fastcall SysReallocMem(void * P, int Size);
  134. extern PACKAGE THeapStatus __fastcall GetHeapStatus();
  135. extern PACKAGE void __fastcall GetMemoryManager(TMemoryManager &MemMgr);
  136. extern PACKAGE void __fastcall SetMemoryManager(const TMemoryManager &MemMgr);
  137. extern PACKAGE bool __fastcall IsMemoryManagerSet(void);
  138. extern PACKAGE void * __fastcall RaiseList(void);
  139. extern PACKAGE void * __fastcall SetRaiseList(void * NewPtr);
  140. extern PACKAGE void __fastcall SetInOutRes(int NewValue);
  141. extern PACKAGE int __fastcall IOResult(void);
  142. extern PACKAGE void __fastcall Move(const void *Source, void *Dest, int Count);
  143. extern PACKAGE int __fastcall ParamCount(void);
  144. extern PACKAGE AnsiString __fastcall ParamStr(int Index);
  145. extern PACKAGE void __fastcall Randomize(void);
  146. extern PACKAGE char __fastcall UpCase(char Ch);
  147. extern PACKAGE void __fastcall Set8087CW(Word NewCW);
  148. extern PACKAGE int __fastcall BeginThread(void * SecurityAttributes, unsigned StackSize, TThreadFunc 
  149.     ThreadFunc, void * Parameter, unsigned CreationFlags, unsigned &ThreadId);
  150. extern PACKAGE void __fastcall EndThread(int ExitCode);
  151. extern PACKAGE void __fastcall UniqueString(AnsiString &str);
  152. extern PACKAGE AnsiString __fastcall WideCharToString(wchar_t * Source);
  153. extern PACKAGE AnsiString __fastcall WideCharLenToString(wchar_t * Source, int SourceLen);
  154. extern PACKAGE void __fastcall WideCharToStrVar(wchar_t * Source, AnsiString &Dest);
  155. extern PACKAGE void __fastcall WideCharLenToStrVar(wchar_t * Source, int SourceLen, AnsiString &Dest
  156.     );
  157. extern PACKAGE wchar_t * __fastcall StringToWideChar(const AnsiString Source, wchar_t * Dest, int DestSize
  158.     );
  159. extern PACKAGE AnsiString __fastcall OleStrToString(wchar_t * Source);
  160. extern PACKAGE void __fastcall OleStrToStrVar(wchar_t * Source, AnsiString &Dest);
  161. extern PACKAGE wchar_t * __fastcall StringToOleStr(const AnsiString Source);
  162. extern PACKAGE void __fastcall VarCopyNoInd(Variant &Dest, const Variant &Source);
  163. extern PACKAGE int __fastcall VarType(const Variant &V);
  164. extern PACKAGE Variant __fastcall VarAsType(const Variant &V, int VarType);
  165. extern PACKAGE bool __fastcall VarIsEmpty(const Variant &V);
  166. extern PACKAGE bool __fastcall VarIsNull(const Variant &V);
  167. extern PACKAGE AnsiString __fastcall VarToStr(const Variant &V);
  168. extern PACKAGE Variant __fastcall VarFromDateTime(TDateTime DateTime);
  169. extern PACKAGE TDateTime __fastcall VarToDateTime(const Variant &V);
  170. extern PACKAGE Variant __fastcall VarArrayCreate(const int * Bounds, const int Bounds_Size, int VarType
  171.     );
  172. extern PACKAGE Variant __fastcall VarArrayOf(const Variant * Values, const int Values_Size);
  173. extern PACKAGE int __fastcall VarArrayDimCount(const Variant &A);
  174. extern PACKAGE int __fastcall VarArrayLowBound(const Variant &A, int Dim);
  175. extern PACKAGE int __fastcall VarArrayHighBound(const Variant &A, int Dim);
  176. extern PACKAGE void * __fastcall VarArrayLock(const Variant &A);
  177. extern PACKAGE void __fastcall VarArrayUnlock(const Variant &A);
  178. extern PACKAGE Variant __fastcall VarArrayRef(const Variant &A);
  179. extern PACKAGE bool __fastcall VarIsArray(const Variant &A);
  180. extern PACKAGE void __fastcall DynArrayToVariant(Variant &V, const void * DynArray, void * TypeInfo)
  181.     ;
  182. extern PACKAGE void __fastcall DynArrayFromVariant(void * &DynArray, const Variant &V, void * TypeInfo
  183.     );
  184. extern PACKAGE unsigned __fastcall FindHInstance(void * Address);
  185. extern PACKAGE unsigned __fastcall FindClassHInstance(TMetaClass* ClassType);
  186. extern PACKAGE unsigned __fastcall FindResourceHInstance(unsigned Instance);
  187. extern PACKAGE unsigned __fastcall LoadResourceModule(char * ModuleName);
  188. extern PACKAGE void __fastcall EnumModules(TEnumModuleFunc Func, void * Data)/* overload */;
  189. extern PACKAGE void __fastcall EnumResourceModules(TEnumModuleFunc Func, void * Data)/* overload */;
  190.     
  191. extern PACKAGE void __fastcall EnumModules(TEnumModuleFuncLW Func, void * Data)/* overload */;
  192. extern PACKAGE void __fastcall EnumResourceModules(TEnumModuleFuncLW Func, void * Data)/* overload */
  193.     ;
  194. extern PACKAGE void __fastcall AddModuleUnloadProc(TModuleUnloadProc Proc)/* overload */;
  195. extern PACKAGE void __fastcall RemoveModuleUnloadProc(TModuleUnloadProc Proc)/* overload */;
  196. extern PACKAGE void __fastcall AddModuleUnloadProc(TModuleUnloadProcLW Proc)/* overload */;
  197. extern PACKAGE void __fastcall RemoveModuleUnloadProc(TModuleUnloadProcLW Proc)/* overload */;
  198. extern PACKAGE void __fastcall RegisterModule(PLibModule LibModule);
  199. extern PACKAGE void __fastcall UnregisterModule(PLibModule LibModule);
  200. extern PACKAGE AnsiString __fastcall LoadResString(PResStringRec ResStringRec);
  201. extern PACKAGE double __cdecl CompToDouble(Comp acomp);
  202. extern PACKAGE void __cdecl DoubleToComp(double adouble, Comp &result);
  203. extern PACKAGE Currency __cdecl CompToCurrency(Comp acomp);
  204. extern PACKAGE void __cdecl CurrencyToComp(Currency acurrency, Comp &result);
  205. extern PACKAGE void * __cdecl GetMemory(int Size);
  206. extern PACKAGE int __cdecl FreeMemory(void * P);
  207. extern PACKAGE void * __cdecl ReallocMemory(void * P, int Size);
  208. extern PACKAGE void __fastcall FPower10(void);
  209.  
  210. }    /* namespace System */
  211. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  212. using namespace System;
  213. #endif
  214. #include <sysclass.H>    // system class definitions
  215. #pragma option pop    // -w-
  216. #pragma option pop    // -Vx
  217.  
  218. #pragma delphiheader end.
  219. //-- end unit ----------------------------------------------------------------
  220. #endif    // System
  221.