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
2.0 KiB

  1. //---------------------------------------------------------------------
  2. // Copyright (c)1998 Microsoft Corporation, All Rights Reserved.
  3. //
  4. // iostatus.cpp
  5. //
  6. // Author:
  7. //
  8. // Edward Reus (edwardr) 02-28-98 Initial coding.
  9. //
  10. //---------------------------------------------------------------------
  11. #include "precomp.h"
  12. //---------------------------------------------------------------------
  13. // CIOSTATUS::CIOSTATUS()
  14. //
  15. //---------------------------------------------------------------------
  16. CIOSTATUS::CIOSTATUS()
  17. {
  18. m_dwMainThreadId = 0;
  19. m_lNumThreads = 0;
  20. m_lNumPendingThreads = 0;
  21. }
  22. //---------------------------------------------------------------------
  23. // CIOSTATUS::~CIOSTATUS()
  24. //
  25. //---------------------------------------------------------------------
  26. CIOSTATUS::~CIOSTATUS()
  27. {
  28. }
  29. //------------------------------------------------------------------------
  30. // CIOSTATUS::operator new()
  31. //
  32. //------------------------------------------------------------------------
  33. void *CIOSTATUS::operator new( IN size_t Size )
  34. {
  35. void *pObj = AllocateMemory(Size);
  36. return pObj;
  37. }
  38. //------------------------------------------------------------------------
  39. // CIOSTATUS::operator delete()
  40. //
  41. //------------------------------------------------------------------------
  42. void CIOSTATUS::operator delete( IN void *pObj,
  43. IN size_t Size )
  44. {
  45. if (pObj)
  46. {
  47. DWORD dwStatus = FreeMemory(pObj);
  48. #ifdef DBG_MEM
  49. if (dwStatus)
  50. {
  51. DbgPrint("IrXfer: IrTran-P: CIOSTATUS::delete Failed: %d\n",
  52. dwStatus );
  53. }
  54. #endif
  55. }
  56. }
  57. //---------------------------------------------------------------------
  58. // CIOSTATUS::Initialize();
  59. //
  60. //---------------------------------------------------------------------
  61. DWORD CIOSTATUS::Initialize()
  62. {
  63. DWORD dwStatus = NO_ERROR;
  64. m_dwMainThreadId = GetCurrentThreadId();
  65. return dwStatus;
  66. }