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.

77 lines
2.7 KiB

  1. //---------------------------------------------------------------------------
  2. //
  3. // File: sigtab.h
  4. //
  5. // Copyright (c) Microsoft Corp. All Rights Reserved
  6. //
  7. //---------------------------------------------------------------------------
  8. #include <windows.h>
  9. #include <windowsx.h>
  10. #include <shlobj.h>
  11. #include <shellapi.h>
  12. #include <regstr.h>
  13. #include "resource.h"
  14. extern "C" {
  15. #include <setupapi.h>
  16. #include <spapip.h>
  17. }
  18. #define IDC_STATIC (-1)
  19. /*
  20. For driver signing, there are actually 3 sources of policy:
  21. 1. HKLM\Software\Microsoft\Driver Signing : Policy : REG_BINARY (REG_DWORD also supported)
  22. This is a Windows 98-compatible value that specifies the default
  23. behavior which applies to all users of the machine.
  24. 2. HKCU\Software\Microsoft\Driver Signing : Policy : REG_DWORD
  25. This specifies the user's preference for what behavior to employ
  26. upon verification failure.
  27. 3. HKCU\Software\Policies\Microsoft\Windows NT\Driver Signing : BehaviorOnFailedVerify : REG_DWORD
  28. This specifies the administrator-mandated policy on what behavior
  29. to employ upon verification failure. This policy, if specified,
  30. overrides the user's preference.
  31. The algorithm for deciding on the behavior to employ is as follows:
  32. if (3) is specified {
  33. policy = (3)
  34. } else {
  35. policy = (2)
  36. }
  37. policy = MAX(policy, (1))
  38. Value indicating the policy in effect. May be one of the following three values:
  39. DRIVERSIGN_NONE - silently succeed installation of unsigned/
  40. incorrectly-signed files. A PSS log entry will
  41. be generated, however (as it will for all 3 types)
  42. DRIVERSIGN_WARNING - warn the user, but let them choose whether or not
  43. they still want to install the problematic file
  44. DRIVERSIGN_BLOCKING - do not allow the file to be installed
  45. */
  46. #define SIGTAB_REG_KEY TEXT("Software\\Microsoft\\Driver Signing")
  47. #define SIGTAB_REG_VALUE TEXT("Policy")
  48. //
  49. // Context-Sensitive Help/Identifiers specific to SigVerif
  50. //
  51. #define SIGTAB_HELPFILE TEXT("SYSDM.HLP")
  52. #define IDH_CODESIGN_IGNORE 11020
  53. #define IDH_CODESIGN_WARN 11021
  54. #define IDH_CODESIGN_BLOCK 11022
  55. #define IDH_CODESIGN_APPLY 11023
  56. INT_PTR CALLBACK SigTab_DlgProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
  57. extern "C" {
  58. VOID
  59. pSetupGetRealSystemTime(
  60. OUT LPSYSTEMTIME RealSystemTime
  61. );
  62. }