Source code of Windows XP (NT5)
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.

61 lines
1.3 KiB

  1. //
  2. // Enable driver verifier support for ntoskrnl
  3. // Copyright (c) Microsoft Corporation, 1999
  4. //
  5. //
  6. // module: regutil.hxx
  7. // author: DMihai
  8. // created: 04/19/99
  9. // description: registry keys manipulation routines
  10. //
  11. //
  12. #ifndef __REGUTIL_HXX_INCLUDED__
  13. #define __REGUTIL_HXX_INCLUDED__
  14. //
  15. // exit codes
  16. //
  17. #define EXIT_CODE_NOTHING_CHANGED 0
  18. #define EXIT_CODE_REBOOT 1
  19. #define EXIT_CODE_ERROR 2
  20. //////////////////////////////////////////////////
  21. void
  22. WriteVerifierKeys(
  23. BOOL bEnableKrnVerifier,
  24. DWORD dwNewVerifierFlags,
  25. DWORD dwNewIoLevel,
  26. TCHAR *strKernelModuleName );
  27. //////////////////////////////////////////////////
  28. void
  29. RemoveModuleNameFromRegistry(
  30. TCHAR *strKernelModuleName );
  31. //////////////////////////////////////////////////
  32. void
  33. DumpStatusFromRegistry(
  34. LPCTSTR strKernelModuleName );
  35. //////////////////////////////////////////////////
  36. BOOL
  37. IsModuleNameAlreadyInRegistry(
  38. LPCTSTR strKernelModuleName,
  39. LPCTSTR strWholeString );
  40. //////////////////////////////////////////////////
  41. BOOL
  42. GetIoVerificationLevel(
  43. DWORD *pdwIoLevel );
  44. //////////////////////////////////////////////////
  45. BOOL
  46. SwitchIoVerificationLevel(
  47. DWORD dwNewIoLevel );
  48. #endif //#ifndef __REGUTIL_HXX_INCLUDED__