Re: BatClass.h






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,

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>
Joseph M. Newcomer [MVP]
email: newcomer@xxxxxxxxxxxx
Web: http://www.flounder.com
MVP Tips: http://www.flounder.com/mvp_tips.htm

.



Relevant Pages

  • gcc failure
    ... I failed with gnu gcc 3.4.5 installation, ... checking for C compiler default output... ... with no type or storage class ...
    (comp.unix.solaris)
  • Re: External RAMdisk
    ... battery backed RAM disk. ... I goosed the KayPro II up to 5 MHz, ... People used to tell me that this wasn't much of a test, because all I was measuring was the overhead time of the compiler and other tools. ... To put things in perspective, running this on a VAX 11/780, with BSD Unix, took 20 seconds, and generated a 20k object file. ...
    (comp.os.cpm)
  • Re: BatClass.h
    ... Compiler: Default compiler ... Executing make... ... looks like it should be pretty straightforward from the MSDN documentation. ... My application has enumerated all devices that has battery class 2. ...
    (microsoft.public.vc.mfc)
  • Re: editing the search path for #include preprocessor
    ... > files, for that i need to edit the makefile that my gcc compiler uses, ... for libraries you'll need to set LIBRARY_PATH. ... How to set environment variables depends on the shell you use. ...
    (freebsd-questions)
  • Re: Newbie: on "Hello, world" -data definition has no type. how to check proper configuration
    ... gcc conf. ... You need to get an compiler and associated development kit for 5.2. ...
    (comp.lang.c)