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.

80 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 1998 Microsoft Corporation
  3. Module Name:
  4. routing\netsh\shell\utils.h
  5. Abstract:
  6. Include for utils.c
  7. Revision History:
  8. 6/12/96 V Raman
  9. --*/
  10. #define IsHelpToken(pwszToken)\
  11. (MatchToken(pwszToken, CMD_HELP1) \
  12. || MatchToken(pwszToken, CMD_HELP2))
  13. typedef struct _EVENT_PRINT_INFO
  14. {
  15. LPCWSTR pwszLogName;
  16. LPCWSTR pwszComponent;
  17. LPCWSTR pwszSubComponent;
  18. DWORD fFlags;
  19. DWORD dwHistoryContext;
  20. ULONG ulEventCount;
  21. PDWORD pdwEventIds;
  22. PNS_EVENT_FILTER pfnEventFilter;
  23. LPCVOID pvFilterContext;
  24. } EVENT_PRINT_INFO, *PEVENT_PRINT_INFO;
  25. DWORD
  26. DisplayMessageM(
  27. IN HANDLE hModule,
  28. IN DWORD dwMsgId,
  29. ...
  30. );
  31. DWORD GetPasswdStr(IN LPTSTR buf,
  32. IN DWORD buflen,
  33. IN PDWORD len);
  34. LPWSTR
  35. OEMfgets(
  36. OUT PDWORD pdwLen,
  37. IN FILE *fp
  38. );
  39. //
  40. // Event log printing related functions
  41. //
  42. #define EVENT_MSG_KEY_W L"System\\CurrentControlSet\\Services\\EventLog\\"
  43. #define EVENT_MSG_FILE_VALUE_W L"EventMessageFile"
  44. DWORD
  45. SetupEventLogSeekPtr(
  46. OUT PHANDLE phEventLog,
  47. IN PEVENT_PRINT_INFO pEventInfo
  48. );
  49. BOOL
  50. IsOurRecord(
  51. IN EVENTLOGRECORD *pRecord,
  52. IN PEVENT_PRINT_INFO pEventInfo
  53. );
  54. DWORD
  55. DisplayContextHelp(
  56. IN PCNS_CONTEXT_ATTRIBUTES pContext,
  57. IN DWORD dwDisplayFlags,
  58. IN DWORD dwCmdFlags,
  59. IN DWORD dwArgsRemaining,
  60. IN LPCWSTR pwszGroup
  61. );