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.

50 lines
1.2 KiB

  1. /*++
  2. Copyright (c) Microsoft Corporation
  3. Module Name:
  4. ntsetup\inc\hwlog.h
  5. Abstract:
  6. Logging some aspects of the hardware configuration to winnt32.log.
  7. Esp. disk drive by connection, and map drive letters to disk drives.
  8. Author:
  9. Jay Krell (JayKrell) April 2001, May 2001
  10. Revision History:
  11. Environment:
  12. winnt32.dll -- Win9x ANSI (down to Win95gold) or NT Unicode
  13. libcmt statically linked in, _tcs* ok
  14. actually only built for Unicode/NT, and does nothing
  15. if run on less than Windows 2000
  16. setup.exe -newsetup -- guimode setup
  17. --*/
  18. struct _SP_LOG_HARDWARE_IN;
  19. #include "setupapi.h"
  20. typedef struct _SP_LOG_HARDWARE_IN {
  21. PCTSTR MachineName OPTIONAL;
  22. HANDLE LogFile OPTIONAL;
  23. BOOL (WINAPI * SetupLogError)(PCTSTR MessageString, LogSeverity) OPTIONAL;
  24. BOOL (__cdecl * SetuplogError)(
  25. IN LogSeverity Severity,
  26. IN LPCTSTR MessageString,
  27. IN UINT MessageId, OPTIONAL
  28. ...
  29. ) OPTIONAL;
  30. } SP_LOG_HARDWARE_IN, *PSP_LOG_HARDWARE_IN;
  31. typedef CONST SP_LOG_HARDWARE_IN* PCSP_LOG_HARDWARE_IN;
  32. VOID
  33. SpLogHardware(
  34. PSP_LOG_HARDWARE_IN In
  35. );