how to get volume serial disk number ?

In MSDN Q69223, the article mentioned how to retrieve disk volum serial
number. Can I get this number from kernel mode driver without resorting to
user mode helper ?

Thanks,

Jack

Yes from VPB structure.
DevicveObject->Vpb

From: xxxxx@curriculum.com
Reply-To: “File Systems Developers”
>To: “File Systems Developers”
>Subject: [ntfsd] how to get volume serial disk number ?
>Date: Mon, 13 Mar 2000 21:58:31
>
>In MSDN Q69223, the article mentioned how to retrieve disk volum serial
>number. Can I get this number from kernel mode driver without resorting to
>user mode helper ?
>
>Thanks,
>
>Jack
>
>—
>You are currently subscribed to ntfsd as: xxxxx@hotmail.com
>To unsubscribe send a blank email to $subst(‘Email.Unsub’)
>

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

You could call IoQueryVolumeInformation with FsInformationClass
FileFsVolumeInformation and a pointer to a structure of type
FILE_FS_VOLUME_INFORMATION. All of these things are declared in ntifs.h
which comes with the Microsoft IFS Kit. If you don’t have the IFS Kit, it
would be a good idea to buy one. See
http://www.microsoft.com/hwdev/ntifskit/ for details.

Regards,

Rob

-----Original Message-----
From: xxxxx@curriculum.com [mailto:xxxxx@curriculum.com]
Sent: Monday, March 13, 2000 4:59 PM
To: File Systems Developers
Subject: [ntfsd] how to get volume serial disk number ?

In MSDN Q69223, the article mentioned how to retrieve disk volum serial
number. Can I get this number from kernel mode driver without resorting to
user mode helper ?

Thanks,

Jack


You are currently subscribed to ntfsd as: xxxxx@nsisw.com
To unsubscribe send a blank email to $subst(‘Email.Unsub’)

> >In MSDN Q69223, the article mentioned how to retrieve disk volum serial

>number. Can I get this number from kernel mode driver without resorting

You can prepare and send the IRP_MJ_QUERY_INFORMATION IRP to the
filesystem in order to retrieve this information. See ntifs.h for details -
namely
FILE_FS_VOLUME_INFORMATION structure.

Max