netmstnet спасиб....
Цитата: Ему уже хватить
а вот с этого момента поподробнее плизззззззз....
Добавлено: кто там спрашивал про серийный номер проца. на асме - легко
Код: .586
.model flat, stdcall
option casemap:none
;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::::::::::::::
; I N C L U D E F I L E S
;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::::::::::::::
include \masm32\include\windows.inc
include \masm32\include\kernel32.inc
include \masm32\include\user32.inc
includelib \masm32\lib\kernel32.lib
includelib \masm32\lib\user32.lib
;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::::::::::::::
; C O N S T A N T S
;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::::::::::::::
.const
szFmt db "%04X-%04X-%04X-%04X-%04X-%04X", 0
szCap db "Processor Serial Number", 0
szErr db "Processor Serial Number feature is not available", 0
;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::::::::::::::
; U N I N I T I A L I Z E D D A T A
;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::::::::::::::
.data?
buffer db 128 dup(?)
;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::::::::::::::
; C O D E
;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::::::::::::::
.code
start:
mov eax, 1
cpuid
and edx, 0100000000000000000y
.if !ZERO?
; Processor Serial Number feature is available
pushad
mov eax, 1
cpuid ; get Processor Signature
push eax
mov eax, 3
cpuid pop eax
mov ebx, eax
shr ebx, 16
and eax, 0FFFFh
mov esi, edx
shr esi, 16
and edx, 0FFFFh
mov edi, ecx
shr edi, 16
and ecx, 0FFFFh
invoke wsprintf, addr buffer, addr szFmt, ebx, eax, esi, edx, edi, ecx
invoke MessageBox, NULL, addr buffer, addr szCap, MB_OK
popad
.else
invoke MessageBox, NULL, addr szErr, NULL, MB_OK
.endif
invoke ExitProcess, 0
;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::::::::::::::
;
;::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ::::::::::::::::::::::::::::::
end start