?? a constant value

Just starting out? Need help? Post your questions and find answers here.
TerryHough
Enthusiast
Enthusiast
Posts: 781
Joined: Fri Apr 25, 2003 6:51 pm
Location: NC, USA
Contact:

?? a constant value

Post by TerryHough »

Does anyone know the required constant value for the code
IOCTL_DISK_GET_DRIVE_GEOMETRY necessary to work with
the WinAPI DeviceIoControl_ as an operation code to get the
Disk Geometry returned.

Any idea where I can find it. PureBasic doesn't see it as an
existing constant.

Thanks,
TerryHough
GPI
PureBasic Expert
PureBasic Expert
Posts: 1394
Joined: Fri Apr 25, 2003 6:41 pm

Post by GPI »

Download Api Viewer (sorry, i don't have a link at the moment).

Btw.: What about a Link-Section for things like this?
ebs
Enthusiast
Enthusiast
Posts: 562
Joined: Fri Apr 25, 2003 11:08 pm

Post by ebs »

Terry,

#define IOCTL_DISK_GET_DRIVE_GEOMETRY CTL_CODE(IOCTL_DISK_BASE, 0x0000, METHOD_BUFFERED, FILE_ANY_ACCESS)

Which should be 0x00070000.

Eric
DominiqueB
Enthusiast
Enthusiast
Posts: 103
Joined: Fri Apr 25, 2003 4:00 pm
Location: France

Here:

Post by DominiqueB »

Public Const IOCTL_DISK_GET_DRIVE_GEOMETRY As Long = &H70000

Dominique
Dominique

Windows 10 64bits. Pure basic 32bits
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6172
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

i found apiviewer 2003, but when i install and run the thing there appears to be no databasie win32.txt or win32.apv... am i missing something?
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB - upgrade incoming...)
( The path to enlightenment and the PureBasic Survival Guide right here... )
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: ?? a constant value

Post by PB »

> Does anyone know the required constant value for the code
> IOCTL_DISK_GET_DRIVE_GEOMETRY

http://www.google.com.au/search?q=IOCTL ... E_GEOMETRY

:wink:
TerryHough
Enthusiast
Enthusiast
Posts: 781
Joined: Fri Apr 25, 2003 6:51 pm
Location: NC, USA
Contact:

Post by TerryHough »

Thanks to all who replied.

Drat... not available for Win98SE where I need it anyway.

Terry
Post Reply