Not overly, apart from the constants...which should all be uppercase. Why? What's the problem?
Printable View
Not overly, apart from the constants...which should all be uppercase. Why? What's the problem?
Have you definded the System_Info type?
Sorry I wasen't to decriptive of the problem. I have the Const's declared and system_info udt created. It just returns 0. I have a pentium III could that be why it is not returning anything?
I have checked your code and it all seems fine to me. I think it's possible that the returned value is 0 because of your PentiumIII. I see it likely that this API call was developed before the PIII was on the market. Maybe the code would work on a win2000 machine? - You're not using 2000 are you?
No, im running win98. So the code did work ok on your machine?
No, I'm not using 2000 and the code didn't work, mind you it has no reason to work, I haven’t got an Intel chip. I'm guessing when I say it maybe because the API was developed before the chip was on the market. That is the only explanation I can think of.
Ok, well thanks for your help anyway I appreciate it.