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.

73 lines
1.1 KiB

  1. /*++
  2. Copyright (c) 2002 Microsoft Corporation
  3. Module Name:
  4. utils.h
  5. Abstract:
  6. External definitions for intermodule functions.
  7. Revision History:
  8. --*/
  9. #ifndef _SDBUS_UTILS_H_
  10. #define _SDBUS_UTILS_H_
  11. //
  12. // Utility routines
  13. //
  14. NTSTATUS
  15. SdbusIoCallDriverSynchronous(
  16. PDEVICE_OBJECT deviceObject,
  17. PIRP Irp
  18. );
  19. VOID
  20. SdbusWait(
  21. IN ULONG MilliSeconds
  22. );
  23. VOID
  24. SdbusLogError(
  25. IN PFDO_EXTENSION DeviceExtension,
  26. IN ULONG ErrorCode,
  27. IN ULONG UniqueId,
  28. IN ULONG Argument
  29. );
  30. VOID
  31. SdbusLogErrorWithStrings(
  32. IN PFDO_EXTENSION DeviceExtension,
  33. IN ULONG ErrorCode,
  34. IN ULONG UniqueId,
  35. IN PUNICODE_STRING String1,
  36. IN PUNICODE_STRING String2
  37. );
  38. BOOLEAN
  39. SdbusReportControllerError(
  40. IN PFDO_EXTENSION FdoExtension,
  41. NTSTATUS ErrorCode
  42. );
  43. ULONG
  44. SdbusCountOnes(
  45. IN ULONG Data
  46. );
  47. NTSTATUS
  48. SdbusStringsToMultiString(
  49. IN PCSTR * Strings,
  50. IN ULONG Count,
  51. IN PUNICODE_STRING MultiString
  52. );
  53. #endif // _SDBUS_UTILS_H_