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.

相关阅读 >>

strpcopy 将字符串复制到字符数组中

Delphi 文件路径相关的字符串操作

winapi 字符及字符串函数(10): lstrcpy - 复制字符串

Delphi 检查声卡是否安装

Delphi 拷贝文件时有进度显示

Delphi tgauge类的定义在哪个单元中定义的?

Delphi unigui程序部署到服务器

Delphi idhttp post json 上传 php 接收

Delphi判断字符串是否为数字

Delphi 3句话绕过xxx拦截删除桌面快捷方式

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



打赏

取消

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

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

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

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

评论

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