ResExist

检查可执行文件(dll或exe)中是否存在资源。

OutputVar := ResExist(Executable, Name , Type, Language)
函数示例: Exist := ResExist(A_AhkPath, "MYRESOURCE")

参数

OutputVar(输出变量)

如果资源存在,则存储 true / 1 的变量名称,否则存储 false / 0。

Executable(可执行文件)

可执行文件(dll 或 exe)的路径。

Name(名称)

资源名称。

Type(类型,可选)

资源类型。默认值为 RCDATA (10)。
参阅 MSDN 对于默认资源类型。

Language(语言,可选)

资源语言。默认值为 1033。

相关

ResGet, ResPut, ResPutFile, ResExist, ResDelete, ResDllCreate, UnZipRawMemory

示例

If ResExist(A_AhkPath,"RESEXIST.AHK","LIB")
  MsgBox ResExist.ahk is included in resource library.