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 如何把类中的方法做参数

Delphi的窗体文件(dfm)文件中的汉字提取出来?

Delphi 从一个html返回所有的图片链接

Delphi的idhttp报iohandler value is not valid错误的原因

Delphi禁止用鼠标拖动窗口的大小

Delphi 中有 iif() 函数

Delphi unidbtreegrid判断点击折叠事件

Delphi 下找到目录中的所有文件夹

Delphi 最好的线程操作

Delphi 获取进程列表及相关信息

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



打赏

取消

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

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

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

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

评论

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