Re: I got SPDRP_ADDRESS error
- From: Joseph M. Newcomer <newcomer@xxxxxxxxxxxx>
- Date: Wed, 10 Jan 2007 09:36:19 -0500
You can download the latest PSDK even if you aren't using it in VS6. Then you look at it,
and suppose it has
#define SPDRP_ADDRESS (0x0000001C)
then you can create a header file
newapis.h
in which you add
#ifndef _SPDRP_ADDARESS
#define SPDRP_ADDRESS (0x0000001C)
#endif
so your code will compile with either PSDK in any compiler. Since this is a code value to
the API, it will work with any platform that implements this code value. Note that if you
run you code on an earlier platform that does not have support for this code in its
implementation of the API, you will get an error back, but if you run it on any platform
which *does* have the API support, it will work, no matter what compiler you used to
compile the code.
joe
On 9 Jan 2007 21:54:07 -0800, "zdk" <nx2zdk@xxxxxxxxx> wrote:
Thank you very much for your worth answer.Joseph M. Newcomer [MVP]
if I'd like to use VS6 SDK(I don't have VS2003 so far),do you know how
to retrieve Hardware address range info. ?
Warachet S.
Joseph M. Newcomer wrote:
You probably have an obsolete platform SDK. My VS6 SDK doesn't define this symbol, but my
VS2003 SDK does. Note that this suggests that not all platforms might support this
option, so be prepared for that...
joe
On 9 Jan 2007 20:48:44 -0800, "zdk" <nx2zdk@xxxxxxxxx> wrote:
My purpose is to retrieve PCI device address range..Joseph M. Newcomer [MVP]
,and in my code I use SPDRP_ADDRESS as this below function parameter:
while (!SetupDiGetDeviceRegistryProperty(
hDevInfo,
&DeviceInfoData,
SPDRP_ADDRESS,
&DataT,
(PBYTE)buffer,
buffersize,
&buffersize))
but I got
: error C2065: 'SPDRP_ADDRESS' : undeclared identifier
Error executing cl.exe.
When I see
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/devio/base/setupdigetdeviceregistryproperty.asp
Is it really undeclared?
Any help or suggest would be greatly appriciated.
Thank you very much.
Warachet S.
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- References:
- I got SPDRP_ADDRESS error
- From: zdk
- Re: I got SPDRP_ADDRESS error
- From: Joseph M . Newcomer
- Re: I got SPDRP_ADDRESS error
- From: zdk
- I got SPDRP_ADDRESS error
- Prev by Date: Re: Comport problems
- Next by Date: Re: Driver Development with Visual C++ for PcVue
- Previous by thread: Re: I got SPDRP_ADDRESS error
- Next by thread: Re: problem working with hardware interrupt
- Index(es):
Relevant Pages
|
Loading