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 ttabcontrol控件使用

Delphi android 获取通�记录

Delphi 如何让 tgpimage 直接从流中加载图片?

Delphi将dbgrid数据导出到excel表中

Delphi 之 列表框组件(tlistbox)

Delphi实现url编码解码函数

Delphi 在 webservice 中采用 tsoapattachment 传输文件

Delphi 建立快捷方式的函数: createshortcut

Delphi adoquery的post和updatebatch

Delphi 注册表管理

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



打赏

取消

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

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

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

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

评论

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