Miscellaneous

gethwid

Returns Real's hardware identifier string.

语法

gethwid(): string

返回值

名称类型描述
hardwareIdstringHardware identifier string.

说明

Returns Real's hardware identifier string.

无需参数即可调用。函数会从当前 runtime 状态读取所需上下文。

返回 hardwareId (string)。使用返回表区分成功值、nil 结果和可恢复错误。

示例

Read Real's cached hardware identifier string.

local hardwareId = gethwid()
print(hardwareId)