.386
.model flat,stdcall
option casemap:none
include windows.inc
include user32.inc
includelib user32.lib
include kernel32.inc
includelib kernel32.lib
include wsock32.inc
includelib wsock32.lib;可以不需要
.data?
hHandle dd ?
dwWrite dd ?
szSer dd ?
szArgv dd ?
szBuffer dd ?
.data
szBuffer0 db 'Usage: client <server name>\n',0
szBuffer1 db 'CreateFile failed with error %d\n',0
szBuffer2 db 'WriteFile failed with error %d\n',0
szBuffer3 db 'Wrote %d bytes\n',0
szServer db '\\\\%s\\Mailslot\\Myslot',0
szWrite db 'This is a test',0