API for the hard disk label and serial number 
Author Message
 API for the hard disk label and serial number

Quote:

> Hi navigators!!

> Can you tell me which is the Windows API to see the label and the serial


Declare Function GetVolumeInformation Lib "kernel32" _
    Alias "GetVolumeInformationA" ( _
    ByVal lpRootPathName As String, _
    ByVal lpVolumeNameBuffer As String, _
    ByVal nVolumeNameSize As Long, _
    lpVolumeSerialNumber As Long, _
    lpMaximumComponentLength As Long, _
    lpFileSystemFlags As Long, _
    ByVal lpFileSystemNameBuffer As String, _
    ByVal nFileSystemNameSize As Long) As Long

SFP



Sat, 31 Oct 1998 03:00:00 GMT
 API for the hard disk label and serial number

Quote:

>Hi navigators!!

>Can you tell me which is the Windows API to see the label and the
serial


The API is GetVolumeInformation (GetVolumeInformationA for 32-bit
calls). However, Visual Basic (and VBA) does not interface correctly
with this function, so I have written a dll in Visual C++ designed to
be called from VB and VBA code that returns the disk serial number (I
don't return the label because I don't use it, but the dll can be
easily modified to do this). In other words, VB/VBA calls my dll which
calls the API, etc., and returns the data correctly. If you (or anyone
else) would like a copy of the source code, or of the binary if you
don't have a VCPP compiler, send me e-mail and I'll be glad to give it
to you.


Sun, 01 Nov 1998 03:00:00 GMT
 API for the hard disk label and serial number

Quote:

>Hi navigators!!
>Can you tell me which is the Windows API to see the label and the serial


   Casi seguro que te has equivocado de area al poner este mensaje (lo
digo por el idioma), de todos modos creo que te puedo responder....

   No existe ninguna funcion del api para averiguar la etiqueta ni el
numero de serie de un disco. En el caso de la etiqueta, se puede usar
una llamada a la  int 21h del DOS (funcion 4Eh), y para averiguar el
numerio de serie creo que la nica solucion es leer el primer sector
del disco (con la int 13h de la bios).

Saludos :-)           -Pedro-


http://www.lander.es/~pmaicas/



Sun, 01 Nov 1998 03:00:00 GMT
 API for the hard disk label and serial number


Quote:


>>Hi navigators!!

>>Can you tell me which is the Windows API to see the label and the
>serial

>The API is GetVolumeInformation (GetVolumeInformationA for 32-bit
>calls). However, Visual Basic (and VBA) does not interface correctly
>with this function, so I have written a dll in Visual C++ designed to
>be called from VB and VBA code that returns the disk serial number (I
>don't return the label because I don't use it, but the dll can be
>easily modified to do this). In other words, VB/VBA calls my dll which
>calls the API, etc., and returns the data correctly. If you (or anyone
>else) would like a copy of the source code, or of the binary if you
>don't have a VCPP compiler, send me e-mail and I'll be glad to give it
>to you.

What do you mean ?? vb does not interface the function correctly ?
I have used it many times and i have no problems with getvolumeinformation
What was your problem then ??
--
 .--------------------------------------.------------------------.

`--------------------------------------'------------------------'


Wed, 04 Nov 1998 03:00:00 GMT
 API for the hard disk label and serial number

Pedro, speak ENGLISH.  And by the way, you don't have to use DOS
interrupts to get this info.

Quote:
On Wednesday, May 15, 1996, Pedro Maicas wrote...

> >Hi navigators!!

> >Can you tell me which is the Windows API to see the label and the
serial

>    Casi seguro que te has equivocado de area al poner este mensaje (lo
> digo por el idioma), de todos modos creo que te puedo responder....

>    No existe ninguna funcion del api para averiguar la etiqueta ni el
> numero de serie de un disco. En el caso de la etiqueta, se puede usar
> una llamada a la  int 21h del DOS (funcion 4Eh), y para averiguar el
> numerio de serie creo que la nica solucion es leer el primer sector
> del disco (con la int 13h de la bios).

> Saludos :-)           -Pedro-


> http://www.lander.es/~pmaicas/



Thu, 05 Nov 1998 03:00:00 GMT
 API for the hard disk label and serial number

Quote:

>Pedro, speak ENGLISH.  And by the way, you don't have to use DOS
>interrupts to get this info.

The appropriately named "White"head fires the shot in a personal
little war he wants to get into.

Don't worry Chris: we're all ignoring you.

                                           -dlj.



Thu, 05 Nov 1998 03:00:00 GMT
 API for the hard disk label and serial number

Ah, David. There was nothing personal in the return mail.  I just happen
to find it very rude to reply using a language which may not be
comprehensible to the question's initiator.  If the language is
incomprehensible, the reply may as well be gibberish.  Are you with me so
far?  The initiator's original question was phrased in English.
Therefore, I would consider the response to be phrased in English as this
was the language used.  I haven't lost you so far, have I?  Good, we are
almost at the end of the tunnel.

Finally, the "appropriately named" Whitehead is American Indian, not
"White".  What amazes me is that we have this new form of information
exchange and something as ignorant as prejudice is introduced.  How
pathetic.

You have all my blessings.  Ignore away!!!!

Quote:
On Sunday, May 19, 1996, David Lloyd-Jones wrote...

> >Pedro, speak ENGLISH.  And by the way, you don't have to use DOS
> >interrupts to get this info.

> The appropriately named "White"head fires the shot in a personal
> little war he wants to get into.

> Don't worry Chris: we're all ignoring you.

>                                            -dlj.



Fri, 06 Nov 1998 03:00:00 GMT
 
 [ 7 post ] 

 Relevant Pages 

1. Hard Disk Serial Number

2. Volume serial number of a hard disk

3. Obtaining Hard Disk Serial Number

4. Hard disk serial number or Ethernet card serial number.

5. MACINTOSH - Foxpro routine to grab hard disk serial #

6. Hard disk serial no.

7. How do I read the disk Serial Number

8. Disk Drive Serial Number

9. Disk Drive Serial Number?

10. DISK SERIAL NUMBER

11. FPW26: Getting a disk's serial number

12. I am having a problem with a hard disk drive or floppy disk drive


 
Powered by phpBB® Forum Software