I am using DISK_GEOMETRY_EX structure in my program but get the following error:
error C2065: ‘DISK_GEOMETRY_EX’ : undeclared identifier
I am using Visual C++ 6.0 and Windows XP SP2.
Which SDK should I download to update the headers.
Please help.
Thanks
dranne
Have you included “Winioctl.h”?
Its in the Platform SDK August 2001 +
Regards
Steve
----- Original Message -----
From:
To: “Windows System Software Devs Interest List”
Sent: Wednesday, March 21, 2007 11:12 AM
Subject: [ntdev] DISK_GEOMETRY_EX
>I am using DISK_GEOMETRY_EX structure in my program but get the following
>error:
>
> error C2065: ‘DISK_GEOMETRY_EX’ : undeclared identifier
>
> I am using Visual C++ 6.0 and Windows XP SP2.
>
> Which SDK should I download to update the headers.
>
> Please help.
>
> Thanks
> dranne
>
>
> —
> Questions? First check the Kernel Driver FAQ at
> http://www.osronline.com/article.cfm?id=256
>
> To unsubscribe, visit the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
>
>
>
Wrong place too ask…
Anyhow, why not copy it out of the Server 2003 R2 sdk? Why not just add
the declaration to your
own header off the msdn site like…
typedef struct _DISK_GEOMETRY_EX {
DISK_GEOMETRY Geometry;
LARGE_INTEGER DiskSize;
BYTE Data[1];
} DISK_GEOMETRY_EX,
*PDISK_GEOMETRY_EX;
xxxxx@hotmail.com wrote:
I am using DISK_GEOMETRY_EX structure in my program but get the following error:
error C2065: ‘DISK_GEOMETRY_EX’ : undeclared identifier
I am using Visual C++ 6.0 and Windows XP SP2.
Which SDK should I download to update the headers.
Please help.
Thanks
dranne
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
In general suggestions to cut and paste include file contents, rather
than using a well constructed build environment, are in the category of
‘bad advice’. There are exceptions. Include the correct sdk files and
specifying the correct sdk version are well documented and well
understood and trivial to accomplish.
The OP should download the latest platform sdk and read the
documentation and build his application for the correct platform level
that supports this structure.
The sdk documentation includes all of the required information:
Client Requires Windows XP.
Server Requires Windows Server 2003.
Header Declared in Winioctl.h.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of MM
Sent: Wednesday, March 21, 2007 8:45 AM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] DISK_GEOMETRY_EX
Wrong place too ask…
Anyhow, why not copy it out of the Server 2003 R2 sdk? Why not just add
the declaration to your
own header off the msdn site like…
typedef struct _DISK_GEOMETRY_EX {
DISK_GEOMETRY Geometry;
LARGE_INTEGER DiskSize;
BYTE Data[1];
} DISK_GEOMETRY_EX,
*PDISK_GEOMETRY_EX;
xxxxx@hotmail.com wrote:
I am using DISK_GEOMETRY_EX structure in my program but get the
following error:
error C2065: ‘DISK_GEOMETRY_EX’ : undeclared identifier
I am using Visual C++ 6.0 and Windows XP SP2.
Which SDK should I download to update the headers.
Please help.
Thanks
dranne
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
Yes, but he is using VC 6. Last time I tried to use new headers with it
there were issues with
header versioning, annotations, runtime/lib clashes, etc… Just one
thing after another to deal with.
Roddy, Mark wrote:
In general suggestions to cut and paste include file contents, rather
than using a well constructed build environment, are in the category of
‘bad advice’.
Ok first thanks to all.
Let me explain my problem and seek your advice.
I am doing sector-level IO on a compact flash card (in user-mode). This I am doing because I am developing a custom file system for the compact flash card which will be used imy embedded system. However, I am not getting the correct Disk Size using DeviceIoControl which is very important for my formatting program.
I have had an experience of developing FAT file system driver before for my embedded system.
However, I am somewhat inexperienced in Win32 API.
I need your advice as to what development platform should I use (till now I am using Visual C 6.0) which will fulfill all my needs. My custom file system driver will run on Windows XP.
Thanks
dranne
I build everything from MFC apps to KMDs with build.exe instead of any
IDE except for cranking up some quick test program. (well, I must admit
I’m not a big fan of build.exe). PSDK path is added to the sources as
needed. In such way, it’s easy for my source control, build and disaster
recovery.
I agree with Mark that having a well constructed build env is important.
Calvin Guan (expiring DDK MVP)
NetXtreme NTX Miniport
Broadcom Corporation
Connecting Everything(r)
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:bounce-281304-
xxxxx@lists.osr.com] On Behalf Of MM
Sent: Wednesday, March 21, 2007 3:15 PM
To: Windows System Software Devs Interest List
Subject: Re: [ntdev] DISK_GEOMETRY_EX
Yes, but he is using VC 6. Last time I tried to use new headers with
it
there were issues with
header versioning, annotations, runtime/lib clashes, etc… Just one
thing after another to deal with.
Roddy, Mark wrote:
>In general suggestions to cut and paste include file contents, rather
>than using a well constructed build environment, are in the category
of
>‘bad advice’.
>
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
If you are looking into writing a FSD for WXP, you definitely want to
check out IFS kit or the WDK6000 which includes former IFS kit. You
should also join the NTFSD mailing list.
Calvin Guan (expiring DDK MVP)
NetXtreme NTX Miniport
Broadcom Corporation
Connecting Everything(r)
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:bounce-281321-
xxxxx@lists.osr.com] On Behalf Of xxxxx@hotmail.com
Sent: Wednesday, March 21, 2007 9:44 PM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] DISK_GEOMETRY_EX
Ok first thanks to all.
Let me explain my problem and seek your advice.
I am doing sector-level IO on a compact flash card (in user-mode).
This I
am doing because I am developing a custom file system for the compact
flash card which will be used imy embedded system. However, I am not
getting the correct Disk Size using DeviceIoControl which is very
important for my formatting program.
I have had an experience of developing FAT file system driver before
for
my embedded system.
However, I am somewhat inexperienced in Win32 API.
I need your advice as to what development platform should I use (till
now
I am using Visual C 6.0) which will fulfill all my needs. My custom
file
system driver will run on Windows XP.
Thanks
dranne
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
I have installed the Platform SDK and replaced winioctl.h. Although the header has the declaration for DISK_GEOMETRY_EX. But I am getting the same error when I declare a variable for DISK_GEOMETRY_EX
error C2065: ‘DISK_GEOMETRY_EX’ : undeclared identifier
What is the problem. Can anyone help. Is there something wrong with my compiler? Or I am missing something.
Regards
dranne
Wrong place too ask…
Anyhow, why not copy it out of the Server 2003 R2 sdk? Why not just add
the declaration to your
own header off the msdn site like…
typedef struct _DISK_GEOMETRY_EX {
DISK_GEOMETRY Geometry;
LARGE_INTEGER DiskSize;
BYTE Data[1];
} DISK_GEOMETRY_EX,
*PDISK_GEOMETRY_EX;
Make sure you have defined _WIN32_WINNT > 0x0500.
mm
>> xxxxx@hotmail.com 2007-03-22 06:11 >>>
I have installed the Platform SDK and replaced winioctl.h. Although the
header has the declaration for DISK_GEOMETRY_EX. But I am getting the
same error when I declare a variable for DISK_GEOMETRY_EX
error C2065: ‘DISK_GEOMETRY_EX’ : undeclared identifier
What is the problem. Can anyone help. Is there something wrong with my
compiler? Or I am missing something.
Regards
dranne
Wrong place too ask…
Anyhow, why not copy it out of the Server 2003 R2 sdk? Why not just add
the declaration to your
own header off the msdn site like…
typedef struct _DISK_GEOMETRY_EX {
DISK_GEOMETRY Geometry;
LARGE_INTEGER DiskSize;
BYTE Data[1];
} DISK_GEOMETRY_EX,
*PDISK_GEOMETRY_EX;
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
Right before the declaration there is a line
#if(_WIN32_WINNT >= 0x0500)
Add
#define _WIN32_WINNT 0x0500 // at least
before anything (before the 1st header).
-----Original Message-----
From: xxxxx@lists.osr.com [mailto:xxxxx@lists.osr.com] On Behalf Of xxxxx@hotmail.com
Sent: Thursday, March 22, 2007 6:11 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] DISK_GEOMETRY_EX
I have installed the Platform SDK and replaced winioctl.h. Although the header has the declaration for DISK_GEOMETRY_EX. But I am getting the same error when I declare a variable for DISK_GEOMETRY_EX
error C2065: ‘DISK_GEOMETRY_EX’ : undeclared identifier
What is the problem. Can anyone help. Is there something wrong with my compiler? Or I am missing something.
Regards
dranne
Wrong place too ask…
Anyhow, why not copy it out of the Server 2003 R2 sdk? Why not just add
the declaration to your
own header off the msdn site like…
typedef struct _DISK_GEOMETRY_EX {
DISK_GEOMETRY Geometry;
LARGE_INTEGER DiskSize;
BYTE Data[1];
} DISK_GEOMETRY_EX,
*PDISK_GEOMETRY_EX;
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
#if(_WIN32_WINNT >= 0x0500)
You have not specified the correct platform level in your build
environment. This is all documented in the SDK documentation.
-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@hotmail.com
Sent: Thursday, March 22, 2007 6:11 AM
To: Windows System Software Devs Interest List
Subject: RE:[ntdev] DISK_GEOMETRY_EX
I have installed the Platform SDK and replaced winioctl.h. Although the
header has the declaration for DISK_GEOMETRY_EX. But I am getting the
same error when I declare a variable for DISK_GEOMETRY_EX
error C2065: ‘DISK_GEOMETRY_EX’ : undeclared identifier
What is the problem. Can anyone help. Is there something wrong with my
compiler? Or I am missing something.
Regards
dranne
Wrong place too ask…
Anyhow, why not copy it out of the Server 2003 R2 sdk? Why not just add
the declaration to your
own header off the msdn site like…
typedef struct _DISK_GEOMETRY_EX {
DISK_GEOMETRY Geometry;
LARGE_INTEGER DiskSize;
BYTE Data[1];
} DISK_GEOMETRY_EX,
*PDISK_GEOMETRY_EX;
Questions? First check the Kernel Driver FAQ at
http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer
Sounds like VS is still looking at your old include files.
In Visual studio settings, all search paths (for headers, libs, etc) are
ordered from top (first path to search) to
the bottom of the list (last path to look in).
If you look in your include path settings, use the ‘arrows’ to move your
new include path towards the top of the list,
VS will use the file it finds there, if not it begins searching down the
paths in that list.
In the menu, Tools->Options->Directories VC6
xxxxx@hotmail.com wrote:
I have installed the Platform SDK and replaced winioctl.h. Although the header has the declaration for DISK_GEOMETRY_EX. But I am getting the same error when I declare a variable for DISK_GEOMETRY_EX
error C2065: ‘DISK_GEOMETRY_EX’ : undeclared identifier
What is the problem. Can anyone help. Is there something wrong with my compiler? Or I am missing something.
Regards
dranne
Wrong place too ask…
Anyhow, why not copy it out of the Server 2003 R2 sdk? Why not just add
the declaration to your
own header off the msdn site like…
typedef struct _DISK_GEOMETRY_EX {
DISK_GEOMETRY Geometry;
LARGE_INTEGER DiskSize;
BYTE Data[1];
} DISK_GEOMETRY_EX,
*PDISK_GEOMETRY_EX;
Questions? First check the Kernel Driver FAQ at http://www.osronline.com/article.cfm?id=256
To unsubscribe, visit the List Server section of OSR Online at http://www.osronline.com/page.cfm?name=ListServer
Thanks, it worked.
dranne
Right before the declaration there is a line
#if(_WIN32_WINNT >= 0x0500)
Add
#define _WIN32_WINNT 0x0500 // at least
before anything (before the 1st header).