warning C28175: The member of struct should not be accessed by a driver
This warning indicates that a driver accessed an undocumented structure member that drivers should never access.
Drivers should never access the specified undocumented structure member. For most undocumented members of opaque or partially opaque structures, this prohibition is absolute. However, drivers may access certain undocumented structure members from within particular routines. For example, the driver may access the undocumented members of the partially opaque DRIVER_OBJECT structure only within a DRIVER_INITIALIZE or DRIVER_UNLOAD routine.
Sometimes the reason that this rule applies to a particular member is not immediately obvious. For example, one instance where this occurs is with the NextDevice member of _DEVICE_OBJECT. In this instance, a lock should be used to safely access this linked list, but that lock is not available to the driver. In this case, violating this rule causes infrequent but hard-to-diagnose failures. The proper way to access the related devices is to use the IoEnumerateDeviceObjectList function.