/* Clear the CMOS memory */
ZeroMemory(&CmosMemory, sizeof(CmosMemory));
- /* Always open (and if needed, create) a RAM file with exclusive access */
+ /* Always open (and if needed, create) a RAM file with shared access */
SetLastError(0); // For debugging purposes
hCmosRam = CreateFileW(L"cmos.ram",
GENERIC_READ | GENERIC_WRITE,
- 0,
+ FILE_SHARE_READ | FILE_SHARE_WRITE,
NULL,
OPEN_ALWAYS,
FILE_ATTRIBUTE_NORMAL,
* See the following documentation for more information:
* http://www.intel-assembler.it/portale/5/cmos-memory-map-123/cmos-memory-map-123.asp
* http://wiki.osdev.org/CMOS
+ * http://www.walshcomptech.com/ohlandl/config/cmos_registers.html
+ * http://www.fysnet.net/cmosinfo.htm
* http://www.bioscentral.com/misc/cmosmap.htm
*/
#pragma pack(push, 1)