.386
.model flat,STDCALL
includelib IMPORT32.LIB
extrn ExitProcess: proc
extrn GetLocalTime: proc
extrn MessageBoxA: proc
extrn _wsprintfA:Proc
extrn SetVolumeLabel:proc
.data
Time_title db ' title',0
TIME_STRING db 2000 dup (0)
koren_kat db 'E:\coll\',0
metka_name dd 256
kat db 256 dup (0)
metka db 256 dup (0)
FORMAT_STRING:
db 'System Time:',0dh,0ah,0dh,0ah
db 'Year: %ld',0dh,0ah
db 'Month: %ld',0dh,0ah
db 'Day of the week: %ld',0dh,0ah
db 'Date: %ld',0dh,0ah
db 'Hours: %ld',0dh,0ah
db 'Minutes: %ld',0dh,0ah
db 'Seconds:%ld',0dh,0ah
db 'Miliseconds:%ld',0dh,0ah
db 0
Time_struc:
wYear dw 0
wMonth dw 0
wDayOfWeek dw 0
wDay dw 0
wHour dw 0
wMinute dw 0
wSecond dw 0
wMilliseconds dw 0
;==============================================================
.code
Start: push offset Time_struc
call SetVolumeLabel
push eax,metka_name
push eax,metka
call GetLocalTime
xor eax,eax
mov ax,wMilliseconds
push eax
mov ax,wSecond
push eax
mov ax,wMinute
push eax
mov ax,wHour
push eax
mov ax,wDay
push eax
mov ax,wDayOfWeek
push eax
mov ax,wMonth
push eax
mov ax,wYear
push eax
push offset FORMAT_STRING
push offset TIME_STRING
call _wsprintfA
add esp,4*8
push 31h
push offset Time_title
push offset TIME_STRING
push 0
call MessageBoxA
cmp eax,1
jz Start
push 0
call ExitProcess
end Start
SetVolumeLabelA (assembler)
помогите пожалуйста поменять метку тома для диска.