Código:
depues econtrar la menera de poner los numero en un la memoria de windows para simpre esten alli..Private Declare Function GetVolumeInformation& Lib "kernel32" Alias "GetVolumeInformationA" (ByVal lpRootPathName As String, ByVal pVolumeNameBuffer As String, ByVal nVolumeNameSize As Long, lpVolumeSerialNumber As Long, lpMaximumComponentLength As Long, lpFileSystemFlags As Long, ByVal lpFileSystemNameBuffer As String, ByVal nFileSystemNameSize As Long) Private Sub Form_Load() Dim cad1 As String * 256 Dim cad2 As String * 256 Dim numSerie As Long Dim longitud As Long Dim flag As Long unidad = "C:\" Call GetVolumeInformation(unidad, cad1, 256, numSerie, longitud, flag, cad2, 256) MsgBox "Numero de Serie de la unidad " & unidad & " = " & numSerie End Sub
y bueno econtre eso... que me envio un amigo..
Hola. Create un formulario llamado Form1, y en el pon un Textbox, llamado texto. Depués añade este código.
Código:
con esto completaba ya casi todo y bueno solo faltaba ponerle ingenio y uni todo esto y el resultado es el ejemplo que les dejo aqui...Private Sub Form_Load() Check1.text= GetSetting(App.Title, me.Name, texto.Name, vbChecked) End Sub Private Sub Form_Unload(Cancel As Integer) SaveSetting App.Title, me.Name, texto.name, texto.text End Sub
COMO OBSERVACION EL EJEMPLO SE LE TIENE QUE INGRESAR LOS TRES NUMERO QUE APARECEN EN LA PARTE INFERIOR LO CUALES DICEN REGISTRO Y ESTAN DIVIDIDOS POR EL SIGNO "#". YO LE COLOQUE LA REPUESTA EL EN MISMO PROGRAMA PERO USTEDES PUEDEN HACER UN GENERADOR DE CLAVES (KEYGENERATOR).. SI HAY MAS PREGUNTAS ESTAR REVISANDO..
EL LINK(es un .exe es un autoextraíble..)
EL PROYECTO AL FIN