.386
.model flat, stdcall
option casemap:none
include windows.inc
include kernel32.inc
include user32.inc
includelib kernel32.lib
includelib user32.lib
.data
szPath db 'c:/', 0
szVolume db 'System', 0
.code
start:
invoke SetVolumeLabel, offset szPath, offset szVolume
invoke ExitProcess, 0
end start
本文介绍如何使用Windows API函数执行设置磁盘标签的代码,包括导入必要的库、定义变量、调用SetVolumeLabel函数并退出进程。
1101

被折叠的 条评论
为什么被折叠?



