INFO: Kernel Mode Drivers Are Read-Only in Windows 2000

ID: Q229035

This article discusses a Beta release of a Microsoft product. The information in this article is provided as-is and is subject to change without notice.

No formal product support is available from Microsoft for this Beta product. For information about obtaining support for a Beta release, please see the documentation included with the Beta product files, or check the Web location from which you downloaded the release.
The information in this article applies to:


SUMMARY

In Windows 2000, kernel mode device drivers cannot write to read-only segments of memory.


MORE INFORMATION

In previous versions of Windows, kernel mode device drivers can modify their own segments of memory while loaded; however, Windows 2000 enforces read-only access to pages in memory that are not specifically marked as writable.

The Windows 2000 Memory Manager does not allow kernel mode device drivers to modify their own system code at run time, or to modify a string constant that has been previously initialized. To declare a global string that can be modified, the string should be declared as an array of L-value characters.

If a kernel-mode driver or application attempts to write to a read-only memory segment, the system issues bug check 0xBE and a blue screen is displayed with error information.


REFERENCES

See the Microsoft Windows 2000 Device Development Kit (DDK) for additional kernel mode driver information.

Additional query words: compatguidechange


Keywords          : kbWinOS2000 kbGrpNTDDK 
Version           : winnt:
Platform          : winnt 
Issue type        : kbinfo 

Last Reviewed: June 23, 1999