Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

107 lines
3.0 KiB

  1. ;/***************************************************************************
  2. ;
  3. ;Copyright (c) 2000 Microsoft Corporation
  4. ;
  5. ;Module Name:
  6. ;
  7. ; Dot4Usb.sys - Lower Filter Driver for Dot4.sys for USB connected
  8. ; IEEE 1284.4 devices.
  9. ;
  10. ;File Name:
  11. ;
  12. ; AddDev.c
  13. ;
  14. ;Abstract:
  15. ;
  16. ; AddDevice - Create and initialize device object and attach device
  17. ; object to the device stack.
  18. ;
  19. ;Environment:
  20. ;
  21. ; Kernel mode only
  22. ;
  23. ;Notes:
  24. ;
  25. ; THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
  26. ; KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
  27. ; IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR
  28. ; PURPOSE.
  29. ;
  30. ; Copyright (c) 2000 Microsoft Corporation. All Rights Reserved.
  31. ;
  32. ;Revision History:
  33. ;
  34. ; 01/18/2000 : created
  35. ;
  36. ;Author(s):
  37. ;
  38. ; Doug Fritz (DFritz)
  39. ; Joby Lafky (JobyL)
  40. ;
  41. ;****************************************************************************/
  42. ;
  43. ;#ifndef _D4ULOG_H_
  44. ;#define _D4ULOG_H_
  45. ;
  46. ;//
  47. ;// Status values are 32 bit values layed out as follows:
  48. ;//
  49. ;// 3 3 2 2 2 2 2 2 2 2 2 2 1 1 1 1 1 1 1 1 1 1
  50. ;// 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0 9 8 7 6 5 4 3 2 1 0
  51. ;// +---+-+-------------------------+-------------------------------+
  52. ;// |Sev|C| Facility | Code |
  53. ;// +---+-+-------------------------+-------------------------------+
  54. ;//
  55. ;// where
  56. ;//
  57. ;// Sev - is the severity code
  58. ;//
  59. ;// 00 - Success
  60. ;// 01 - Informational
  61. ;// 10 - Warning
  62. ;// 11 - Error
  63. ;//
  64. ;// C - is the Customer code flag
  65. ;//
  66. ;// Facility - is the facility code
  67. ;//
  68. ;// Code - is the facility's status code
  69. ;//
  70. ;
  71. MessageIdTypedef=NTSTATUS
  72. SeverityNames=(Success=0x0:STATUS_SEVERITY_SUCCESS
  73. Informational=0x1:STATUS_SEVERITY_INFORMATIONAL
  74. Warning=0x2:STATUS_SEVERITY_WARNING
  75. Error=0x3:STATUS_SEVERITY_ERROR
  76. )
  77. FacilityNames=(System=0x0
  78. RpcRuntime=0x2:FACILITY_RPC_RUNTIME
  79. RpcStubs=0x3:FACILITY_RPC_STUBS
  80. Io=0x4:FACILITY_IO_ERROR_CODE
  81. Dot4Usb=0x7:FACILITY_DOT4USB_ERROR_CODE
  82. )
  83. MessageId=0x0003 Facility=Dot4Usb Severity=Error SymbolicName=D4U_INSUFFICIENT_RESOURCES
  84. Language=English
  85. Not enough memory was available to allocate internal storage needed for the device %1.
  86. .
  87. MessageId=0x0010 Facility=Dot4Usb Severity=Informational SymbolicName=D4U_ADDDEV
  88. Language=English
  89. Dot4Usb AddDevice - test event log message <%2> <%3>.
  90. .
  91. MessageId=0x0011 Facility=Dot4Usb Severity=Warning SymbolicName=D4U_NO_DEVICE_MAP_CREATED
  92. Language=English
  93. Unable to create the device map entry for %1.
  94. .
  95. MessageId=0x0015 Facility=Dot4Usb Severity=Error SymbolicName=D4U_CANT_FIND_PORT_DRIVER
  96. Language=English
  97. Unable to get device object pointer for port object.
  98. .
  99. ;#endif /* _D4ULOG_H_ */