windows - 如何检测 Delpi 代码是否在 DLL 中运行?

标签 windows delphi dll

我正在创建一个主要供非 Delphi 调用者使用的 [Windows] DLL。我想使用一些现有的“库”代码,但如果在 DLL 中执行,有些部分可能不合适或有问题。

有没有办法检测代码是否在 DLL 中运行?

最佳答案

System.IsLibrary

Indicates whether the module is a shared library.

The IsLibrary variable is True if the module is a dynamic link library (DLL).

关于windows - 如何检测 Delpi 代码是否在 DLL 中运行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55543856/

相关文章:

c++ - 如何在控制台应用程序中注册 WndProc

c# - 在 Windows 7 上运行 LibVLC.NET 示例

c++ - 关于c++命名约定的问题

Delphi:获取调用者函数的UnitName

delphi - .png 保存期间出现访问冲突

delphi - delphi中ftp上传后的随机文件名

PHP 在 Windows 机器上安装 SSH2

java - 如何从 Java 获取 Windows 10 上已安装应用程序的列表

python - 来自 Python ctypes 的 Microsoft ICertAdmin2 接口(interface)

windows - 是否有内置的 Windows 命令行编辑器?