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.

78 lines
1.5 KiB

  1. #include "compch.h"
  2. #pragma hdrstop
  3. #include <comsvcs.h>
  4. #undef GetObjectContext
  5. DWORD __stdcall ComSvcsExceptionFilter(
  6. IN EXCEPTION_POINTERS* pExcepPtrs,
  7. IN const wchar_t* wszMethodName,
  8. IN const wchar_t* objectName
  9. )
  10. {
  11. return EXCEPTION_CONTINUE_SEARCH;
  12. }
  13. STDAPI ComSvcsLogError(
  14. IN HRESULT hrError,
  15. IN int iErrorMessageCode,
  16. IN LPWSTR wszInfo,
  17. IN BOOL fFailFast
  18. )
  19. {
  20. return FAILED (hrError) ? hrError : HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  21. }
  22. typedef struct{
  23. DWORD dwMTAThreadPoolMaxSize;
  24. DWORD dwMTAThreadPoolThrottle;
  25. } MTA_METRICS;
  26. BOOL __stdcall
  27. GetMTAThreadPoolMetrics(
  28. MTA_METRICS *pMM
  29. )
  30. {
  31. if (pMM)
  32. ZeroMemory (pMM, sizeof (MTA_METRICS));
  33. return FALSE;
  34. }
  35. HRESULT __cdecl GetObjectContext(
  36. OUT IObjectContext** ppInstanceContext
  37. )
  38. {
  39. if (ppInstanceContext)
  40. *ppInstanceContext = NULL;
  41. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  42. }
  43. STDAPI
  44. GetTrkSvrObject(
  45. IN REFIID riid,
  46. OUT void** ppv
  47. )
  48. {
  49. if (ppv)
  50. *ppv = NULL;
  51. return HRESULT_FROM_WIN32(ERROR_MOD_NOT_FOUND);
  52. }
  53. //
  54. // !! WARNING !! The entries below must be in alphabetical order, and are CASE SENSITIVE (eg lower case comes last!)
  55. //
  56. DEFINE_PROCNAME_ENTRIES(comsvcs)
  57. {
  58. DLPENTRY(ComSvcsExceptionFilter)
  59. DLPENTRY(ComSvcsLogError)
  60. DLPENTRY(GetMTAThreadPoolMetrics)
  61. DLPENTRY(GetObjectContext)
  62. DLPENTRY(GetTrkSvrObject)
  63. };
  64. DEFINE_PROCNAME_MAP(comsvcs)