Reputation: 2219
I've tried http://www.codepedia.com/1/CMOS_C , but I got Privileged instruction exception, I guess the reason is I was in user mode (ring-3) and this operation requires ring-0. So, do you know any ways I can solve it?
I read that I could write driver using Windows Driver Foundation or try to use WinAPI.
Upvotes: 0
Views: 889
Reputation: 74702
You are correct, you have to do this in kernel mode. Why do you want to read/change the CMOS? Could WMI give you the information you're looking for?
Upvotes: 1