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.

88 lines
2.4 KiB

  1. /*++
  2. Copyright (c) 1998-1999 Microsoft Corporation
  3. Module Name:
  4. Abstract:
  5. --*/
  6. #pragma once
  7. #include <mprlog.h>
  8. typedef struct _SUBCOMP_ENTRY
  9. {
  10. PWCHAR pwszSubComp;
  11. ULONG ulEventCount;
  12. PDWORD Events;
  13. }SUBCOMP_ENTRY, *PSUBCOMP_ENTRY;
  14. #define CreateSubcompEntry(n, t) \
  15. {n, sizeof(t)/sizeof(DWORD), t}
  16. typedef struct _COMP_ENTRY
  17. {
  18. PWCHAR pwszComponent;
  19. ULONG ulSubcompCount;
  20. PSUBCOMP_ENTRY SubcompInfo;
  21. }COMP_ENTRY, *PCOMP_ENTRY;
  22. #define CreateCompEntry(w,t) \
  23. {w, sizeof(t)/sizeof(SUBCOMP_ENTRY), t}
  24. //////////////////////////////////////////////////////////////////////////////
  25. // //
  26. // Define your tables here //
  27. // //
  28. //////////////////////////////////////////////////////////////////////////////
  29. DWORD ppp_auth[] = {
  30. ROUTERLOG_AUTH_FAILURE,
  31. ROUTERLOG_AUTH_SUCCESS,
  32. ROUTERLOG_AUTH_CONVERSATION_FAILURE,
  33. ROUTERLOG_CANT_ADD_RASSECURITYNAME,
  34. ROUTERLOG_SESSOPEN_REJECTED,
  35. ROUTERLOG_SECURITY_NET_ERROR,
  36. ROUTERLOG_CANNOT_INIT_SEC_ATTRIBUTE,
  37. ROUTERLOG_CANNOT_REGISTER_LSA,
  38. ROUTERLOG_AUTH_TIMEOUT,
  39. ROUTERLOG_AUTH_NO_PROJECTIONS,
  40. ROUTERLOG_AUTH_INTERNAL_ERROR,
  41. ROUTERLOG_NO_DIALIN_PRIVILEGE,
  42. ROUTERLOG_ENCRYPTION_REQUIRED,
  43. ROUTERLOG_NO_SECURITY_CHECK,
  44. ROUTERLOG_PASSWORD_EXPIRED,
  45. ROUTERLOG_ACCT_EXPIRED,
  46. ROUTERLOG_SEC_AUTH_FAILURE,
  47. ROUTERLOG_SEC_AUTH_INTERNAL_ERROR,
  48. ROUTERLOG_AUTH_DIFFUSER_FAILURE,
  49. ROUTERLOG_LICENSE_LIMIT_EXCEEDED
  50. };
  51. SUBCOMP_ENTRY ppp_table[] = {
  52. CreateSubcompEntry(L"auth", ppp_auth),
  53. };
  54. COMP_ENTRY ppp_info[] = {
  55. CreateCompEntry(L"RemoteAccess", ppp_table),
  56. };
  57. //////////////////////////////////////////////////////////////////////////////
  58. // //
  59. // Add your info to the global table //
  60. // //
  61. //////////////////////////////////////////////////////////////////////////////
  62. PCOMP_ENTRY g_Components[] =
  63. {
  64. ppp_info,
  65. };
  66. ULONG g_ulCompCount = sizeof(g_Components)/sizeof(PCOMP_ENTRY);