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.

131 lines
2.8 KiB

  1. //-----------------------------------------------------------------------------
  2. //
  3. // File: _errorrep.inl
  4. // Copyright (C) 1994-1997 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. //
  8. //
  9. //-----------------------------------------------------------------------------
  10. //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  11. //
  12. // TODO - comment this function
  13. //
  14. //-----------------------------------------------------------------------------
  15. inline
  16. void
  17. IssueMessage(
  18. MessageSeverity sev,
  19. const CLString &strContext,
  20. HINSTANCE hResourceDll,
  21. UINT uiStringId,
  22. const CLocation &loc,
  23. UINT uiHelpContext)
  24. {
  25. CLString strMessage;
  26. strMessage.LoadString(hResourceDll, uiStringId);
  27. IssueMessage(sev, strContext, strMessage, loc, uiHelpContext);
  28. }
  29. //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  30. //
  31. // TODO - comment this function
  32. //
  33. //-----------------------------------------------------------------------------
  34. inline
  35. void
  36. IssueMessage(
  37. MessageSeverity sev,
  38. HINSTANCE hResourceDll,
  39. UINT uiContext,
  40. const CLString &strMessage,
  41. const CLocation &loc,
  42. UINT uiHelpContext)
  43. {
  44. CLString strContext;
  45. strContext.LoadString(hResourceDll, uiContext);
  46. IssueMessage(sev, strContext, strMessage, loc, uiHelpContext);
  47. }
  48. //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  49. //
  50. // TODO - comment this function
  51. //
  52. //-----------------------------------------------------------------------------
  53. inline
  54. void
  55. IssueMessage(
  56. MessageSeverity sev,
  57. HINSTANCE hResourceDll,
  58. UINT uiContext,
  59. UINT uiStringId,
  60. const CLocation &loc,
  61. UINT uiHelpContext)
  62. {
  63. CLString strContext;
  64. strContext.LoadString(hResourceDll, uiContext);
  65. IssueMessage(sev, strContext, hResourceDll, uiStringId, loc,uiHelpContext);
  66. }
  67. //+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  68. //
  69. // TODO - comment this function
  70. //
  71. //-----------------------------------------------------------------------------
  72. inline
  73. void
  74. IssueMessage(
  75. MessageSeverity sev,
  76. HINSTANCE hResourceDll,
  77. UINT uiContext,
  78. const CLocation &loc,
  79. CException *pe)
  80. {
  81. CLString strContext;
  82. strContext.LoadString(hResourceDll, uiContext);
  83. IssueMessage(sev, strContext, loc, pe);
  84. }
  85. inline
  86. void
  87. IssueMessage(
  88. MessageSeverity sev,
  89. const CContext &context,
  90. const CLString &strMessage,
  91. UINT uiHelpId)
  92. {
  93. IssueMessage(sev, context.GetContext(), strMessage, context.GetLocation(),
  94. uiHelpId);
  95. }
  96. inline
  97. void
  98. IssueMessage(
  99. MessageSeverity sev,
  100. const CContext &context,
  101. HINSTANCE hResDll,
  102. UINT uiStringId,
  103. UINT uiHelpId)
  104. {
  105. IssueMessage(sev, context.GetContext(), hResDll, uiStringId,
  106. context.GetLocation(), uiHelpId);
  107. }