Newsgroups : Borland : borland.public.delphi.nativeapi.win32 : 2008 Feb : To get serial number of digital memory card?

www.cryer.info
Managed Newsgroup Archive

To get serial number of digital memory card?

Subject:To get serial number of digital memory card?
Posted by:"rap" (voldemot-minus th..@laposte.net)
Date:Wed, 20 Feb 2008 12:44:57

How do we get the serial number of a digital memory read by the computer? I
thought 'GetVolumeInformation' will do  the job. It does fine for usb memory
stick but not for digital  memory card read by a usb device - even if the
card get a letter, such as 'H', no volume serial can be read).

The function i use to read serials (volserial) is:
GetVolumeInformation(pchar(char(i) + ':\'),VolName,Max_Path,@VolSerial,
        FileMaxLen, FileFlags,FileSysName,Max_Path)

For digital memory card 'volserieal' returns '0' .

Thank you.

Replies:

www.cryer.info
Managed Newsgroup Archive