Microsoft KB Archive/280308

{|
 * width="100%"|

PRB: Specifying Device Name in IoCreateDevice

 * }

Q280308

-

The information in this article applies to:


 * Microsoft Windows 2000 Driver Development Kit (DDK)
 * Microsoft Windows NT 4.0 Driver Development Kit (DDK)

-

SYMPTOMS
The IoCreateDevice function returns STATUS_OBJECT_PATH_NOT_FOUND, if the DeviceName specified has

"\DEVICE\xyz" instead of:

"\Device\xyz" where &quot;xzy&quot; is the user-defined name.

CAUSE
The system creates a case-sensitive directory object for DeviceObjects.

RESOLUTION
Specify &quot;\Device&quot; instead of &quot;\DEVICE&quot;. For example:

#define NT_DEVICE_NAME   &quot;\\Device\\Test&quot;  /* Correct definition */
 * 1) define NT_DEVICE_NAME   &quot;\\DEVICE\\Test&quot;   /* Wrong definition */

STATUS
This behavior is by design.

Additional query words:

Keywords : kbDDK kbKMode kbOSWin2000 kbDSupport kbGrpDSNTDDK

Issue type : kbprb

Technology : kbWinNTsearch kbWinNT400xsearch kbwin2000Search kbwin2000DDK kbAudDeveloper kbWinDDKSearch kbWinNT400DDK