正式会员享受无限制浏览网站功能和高速网盘下载,赶快加入本站吧!
您需要 登录 才可以下载或查看,没有账号?立即注册
x
- include MUI.nsh
-
- Function GetDiskVolumeSerialNumber
- !define GetVolumeInformation "Kernel32::GetVolumeInformation(t,t,i,*i,*i,*i,t,i) i"
- System::Call '${GetVolumeInformation}("$0",,${NSIS_MAX_STRLEN},.r0,,,,${NSIS_MAX_STRLEN})'
- FunctionEnd
- Section
- StrCpy $0 "C:"
- Call GetDiskVolumeSerialNumber
- IntFmt $0 "%08X" $0
- MessageBox MB_OK "$0"
- SectionEnd
复制代码
|