Re: BatClass.h
- From: "HK" <HKahwaji@xxxxxxxxxxxxxx>
- Date: 9 Dec 2006 22:13:03 -0800
Here are the errors:
Compiler: Default compiler
Building Makefile: "C:\Dev-Cpp\Battery_IOCTL_Sample\Makefile.win"
Executing make...
make.exe -f "C:\Dev-Cpp\Battery_IOCTL_Sample\Makefile.win" all
gcc.exe -D__DEBUG__ -c main.c -o main.o -I"C:/Dev-Cpp/include" -g3
In file included from main.c:9:
C:/Dev-Cpp/include/Batclass.h:290: error: syntax error before
"PDEVICE_OBJECT"
C:/Dev-Cpp/include/Batclass.h:290: warning: no semicolon at end of
struct or union
C:/Dev-Cpp/include/Batclass.h:292: error: syntax error before '}' token
C:/Dev-Cpp/include/Batclass.h:292: warning: data definition has no type
or storage class
C:/Dev-Cpp/include/Batclass.h:391: error: syntax error before
"MiniportInfo"
C:/Dev-Cpp/include/Batclass.h:405: error: syntax error before "PIRP"
C:/Dev-Cpp/include/Batclass.h:413: error: syntax error before
"PDEVICE_OBJECT"
C:/Dev-Cpp/include/Batclass.h:422: error: syntax error before
"PDEVICE_OBJECT"
make.exe: *** [main.o] Error 1
Joseph M. Newcomer wrote:
I seriously doubt you are getting "all kinds of errors". I strongly suspect you are
getting very specific error messages. Without seeing them, there is no way to guess what
might be wrong. Otherwise, your question is unanswerable.
joe
On 8 Dec 2006 16:08:40 -0800, "HK" <HKahwaji@xxxxxxxxxxxxxx> wrote:
Hi all,Joseph M. Newcomer [MVP]
I am experimenting in IOCTL_BATTERY_QUERY_INFORMATION to get more
detailed infromation about the battery and I was able to get good
information from MSDN.
1. My application has enumerated all devices that has battery class 2.
Created the handle after aquiring the name of the battery 3. Use
IOCTL_Battery_Query_tag to get the tag value and use that in
IOCTL_BATTERY_QUERY_INFORMATION
However I am looking at MSDN information and its says to include
BatClass.h. Unfortunately, when I do so I am getting all kinds of
errors within BatClass.h. Errors include syntax errors as well.
Any suggestions or ideas are appreciated
I am including <windows.h>
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm
.
- Follow-Ups:
- Re: BatClass.h
- From: Joseph M . Newcomer
- Re: BatClass.h
- References:
- BatClass.h
- From: HK
- Re: BatClass.h
- From: Joseph M . Newcomer
- BatClass.h
- Prev by Date: Re: Anyone know what diff 'languages' of resources makes?
- Next by Date: ot - updating Visual studio 2005
- Previous by thread: Re: BatClass.h
- Next by thread: Re: BatClass.h
- Index(es):
Relevant Pages
|