来源(白菜乐园)

From: http://www.crackbest.org/read.php?tid=15

.386
.model flat,stdcall
option casemap:none
include \masm32\include\windows.inc
include \masm32\include\kernel32.inc
includelib \masm32\lib\kernel32.lib
include \masm32\include\user32.inc
includelib \masm32\lib\user32.lib

.data
freeBytesAvail dd ?
totalBytes dd ?
freeBytes dd ?
driver db 'd:\ ',0
;allDrives db 128 dup(?)

.code
start:
    invoke GetDiskFreeSpaceEx,addr driver,addr FreeBytesAvail,addr TotalBytes,addr FreeBytes
    ;invoke GetLogicalDriveStrings,128,addr allDrives
    ;invoke GetDriveType, addr allDrives
    ;invoke GetDiskFreeSpaceEx,addr allDrives,addr FreeBytesAvail,addr TotalBytes,addr FreeBytes
    invoke ExitProcess,NULL
end start

Link: http://www.asm32.net/article_details.aspx?id=5236