System单元一些有用的变量或者常数


本文整理自网络,侵删。

 ExceptProc ///定义未知异常处理例程,这是一个很低层的东西!:),不能处理系统异常!

ErrorProc ///定义RTL错误处理例程,也是一个很低层的东西,不过只能处理RunTimeErro!

SafeCallErrorProc ///SafeCall调用处理例程

AssertErrorProc ///断言错误处理例程

AbstractErrorProc: Pointer;///抽象错误处理例程

HPrevInst: LongWord; ///检测程序的进程是否存在,在Win32中不能使用!

MainInstance: LongWord; /// 主程序(.EXE) 实例句柄

MainThreadID: LongWord; { ThreadID of thread that module was initialized in }

IsLibrary: Boolean; ///模块是否是DLL

CmdShow: Integer; ///指定CreateWindow的CmdShow参数

CmdLine: PChar; ///命令行指针

InitProc: Pointer; ///初始化例程

ExitCode: Integer; ///程序退出代码

ExitProc: Pointer; ///程序结束时的退出例程

ErrorAddr: Pointer; ///发生Run Time Error是的地址

RandSeed: Longint; ///随机种子

IsConsole: Boolean; ///是否是控制台程序

IsMultiThread: Boolean; ///是否是多线程

FileMode: Byte; ///打开文件的模式

Test8086: Byte; { Will always be 2 (386 or later) }

Test8087: Byte; { Will always be 3 (387 or later) }

TestFDIV: Shortint; { -1: Flawed Pentium, 0: Not determined, 1: Ok }

GetHeapStatus ///获得内存堆的状态

RaiseLastWin32Error ///请查看帮助,以便获得关于异常的其他函数信息

ErrorAddr variable

Contains the address of a statement causing a runtime error.

ErrorProc variable

Points to the RTL run-time error handler.

ExceptAddr function

Returns the address at which the current exception was raised.

ExceptObject function

Returns a reference to the object associated with the current exception.

ExceptProc variable

Points to the lowest-level RTL exception handler.

ExceptionErrorMessage function

Formats a standard error message.

OutOfMemoryError procedure

Raises an EOutOfMemory exception.

RaiseLastWin32Error procedure

Raises an exception for the last occurring Win32 error.

SetErrorProc function

Replaces the exception handler for error messages that are received from a Windows socket connection.

ShowException procedure

Displays an exception message with its physical address

SysErrorMessage function

Converts Win32 API error codes into strings.

Win32Check function

Checks the return value of a Windows API call and raises an appropriate exception when it indicates failure.

相关阅读 >>

Delphi allocmem

Delphi 2009 之 tstringbuilder 类[5]: chars[] 属性与 copyto 方法

Delphi windows 编程[17] - 更换菜单: loadmenu、destroymenu、setmenu

如何判断硬盘是fat32还是ntfs

Delphi gmt时间与tdatetime转换

Delphi findwindow的一些用法

解决 Delphi 程序在不同操作系统中 shellexecute 调用 chrome.exe 偶尔无效的问题

Delphi任务对话框ttaskdialog类介绍

Delphi 远程屏幕抓取的源代码

Delphi sysutils.wraptext - 换行

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...