Ivri
Ivri

Reputation: 2219

How to read and change CMOS data on Win 2003 and Vista?

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

Answers (1)

Ana Betts
Ana Betts

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

Related Questions