.data

.code

			cmp	eax,hEditName
			jnz	endcheck

; _______________________________________________________________________________________________
;  the name edit control content has changed
; ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
			invoke	GetWindowText,hEditName,addr bfBuffer,MAXSIZE

			test	eax,eax
			jnz	compute

			mov	eax,offset szNoChar

			jmp	errorcompute

; _______________________________________________________________________________________________
;  compute the serial corresponding to the entered name
; ŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻŻ
compute:

			invoke	wsprintfA,addr bfBuffer,addr szFormat,eax

			invoke	SetWindowText,hEditSerial,addr bfBuffer

			jmp	endcheck

errorcompute:		invoke	SetWindowText,hEditSerial,eax

			jmp	endcheck
