Source code of Windows XP (NT5)
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.

137 lines
2.3 KiB

  1. /*
  2. * OPOSSERV.CPP
  3. *
  4. *
  5. *
  6. *
  7. *
  8. *
  9. */
  10. #include <windows.h>
  11. #define INITGUID
  12. #include <hidclass.h>
  13. #include <hidsdi.h>
  14. #include <ole2.h>
  15. #include <ole2ver.h>
  16. #include "..\inc\opos.h"
  17. #include "oposserv.h"
  18. COPOSService::COPOSService()
  19. {
  20. m_refCount = 0;
  21. m_serverLockCount = 0;
  22. }
  23. COPOSService::~COPOSService()
  24. {
  25. ASSERT(m_refCount == 0);
  26. ASSERT(m_serverLockCount == 0);
  27. }
  28. /*
  29. ************************************************************
  30. * COPOSService::OpenService
  31. ************************************************************
  32. *
  33. * Parameters:
  34. * ----------
  35. *
  36. * DeviceClass
  37. * Contains the requested device class.
  38. * Examples are "CashDrawer" and "POSPrinter."
  39. *
  40. * DeviceName
  41. * Contains the Device Name to be managed by this Service Object.
  42. * The relationship between the device name and physical devices
  43. * is determined by entries within the operating system registry;
  44. * a setup or configuration utility maintains these entries.
  45. * (See the "Application Programmer's Guide" appendix "OPOS Registry Usage.")
  46. *
  47. * pDispatch
  48. * Points to the Control Object's dispatch interface,
  49. * which contains the event request methods
  50. *
  51. */
  52. LONG COPOSService::OpenService(BSTR DeviceClass, BSTR DeviceName, LPDISPATCH pDispatch)
  53. {
  54. // BUGBUG FINISH
  55. return 0;
  56. }
  57. LONG COPOSService::CheckHealth(LONG Level)
  58. {
  59. // BUGBUG FINISH
  60. return 0;
  61. }
  62. LONG COPOSService::Claim(LONG Timeout)
  63. {
  64. // BUGBUG FINISH
  65. return 0;
  66. }
  67. LONG COPOSService::ClearInput()
  68. {
  69. // BUGBUG FINISH
  70. return 0;
  71. }
  72. LONG COPOSService::ClearOutput()
  73. {
  74. // BUGBUG FINISH
  75. return 0;
  76. }
  77. LONG COPOSService::Close()
  78. {
  79. // BUGBUG FINISH
  80. return 0;
  81. }
  82. LONG COPOSService::COFreezeEvents(BOOL Freeze)
  83. {
  84. // BUGBUG FINISH
  85. return 0;
  86. }
  87. LONG COPOSService::DirectIO(LONG Command, LONG* pData, BSTR* pString)
  88. {
  89. // BUGBUG FINISH
  90. return 0;
  91. }
  92. LONG COPOSService::GetPropertyNumber(LONG PropIndex)
  93. {
  94. // BUGBUG FINISH
  95. return 0;
  96. }
  97. BSTR COPOSService::GetPropertyString(LONG PropIndex)
  98. {
  99. // BUGBUG FINISH
  100. return NULL;
  101. }
  102. void COPOSService::SetPropertyNumber(LONG PropIndex, LONG Number)
  103. {
  104. // BUGBUG FINISH
  105. }
  106. void COPOSService::SetPropertyString(LONG PropIndex, BSTR String)
  107. {
  108. // BUGBUG FINISH
  109. }