20 #define LIBSMBIOS_SOURCE
41 hNtdll = GetModuleHandle(L
"ntdll.dll");
58 status = OpenProcessToken(GetCurrentProcess(), TOKEN_ADJUST_PRIVILEGES | TOKEN_QUERY, &hToken);
64 TP.PrivilegeCount = 1;
65 TP.Privileges[0].Attributes = SE_PRIVILEGE_ENABLED;
67 status = LookupPrivilegeValue(NULL, SE_DEBUG_NAME, &TP.Privileges[0].Luid);
73 status = AdjustTokenPrivileges(hToken, FALSE, &TP,
sizeof(TP), NULL, NULL);
87 : ICmosRW(), Suppressable()
91 throw smbios::NotImplementedImpl(
"Error loading DLLs needed to call functions to read CMOS.");
94 throw smbios::NotImplementedImpl(
"Error loading DLLs needed to call functions to read CMOS.");
98 CmosRWIo::CmosRWIo (
const CmosRWIo &)
99 : ICmosRW(), Suppressable()
103 CmosRWIo & CmosRWIo::operator = (
const CmosRWIo &)
110 u8 CmosRWIo::readByte (
u32 indexPort,
u32 dataPort,
u32 offset)
const
117 memset(&io, 0,
sizeof(io));
126 throw smbios::NotImplementedImpl();
128 memset(&io, 0,
sizeof(io));
137 throw smbios::NotImplementedImpl();
144 void CmosRWIo::writeByte (
u32 indexPort,
u32 dataPort,
u32 offset,
u8 byte)
const
150 throw smbios::NotImplementedImpl();
154 if(! isNotifySuppressed() )