语法
gethwid(): string返回值
| 名称 | 类型 | 描述 |
|---|---|---|
hardwareId | string | Hardware identifier string. |
说明
Returns Real's hardware identifier string.
无需参数即可调用。函数会从当前 runtime 状态读取所需上下文。
返回 hardwareId (string)。使用返回表区分成功值、nil 结果和可恢复错误。
示例
Read Real's cached hardware identifier string.
local hardwareId = gethwid()
print(hardwareId)