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.

48 lines
800 B

  1. #ifndef _MUSINGCOM_H
  2. #define _MUSINGCOM_H
  3. //
  4. // Copyright (c) Microsoft. All Rights Reserved
  5. //
  6. // THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF Microsoft.
  7. // The copyright notice above does not evidence any
  8. // actual or intended publication of such source code.
  9. //
  10. // OneLiner : MUsingCom interface
  11. // DevUnit : wlbstest
  12. // Author : Murtaza Hakim
  13. //
  14. // Description:
  15. // -----------
  16. // Include Files
  17. #include <comdef.h>
  18. class MUsingCom
  19. {
  20. public:
  21. enum MUsingCom_Error
  22. {
  23. MUsingCom_SUCCESS = 0,
  24. COM_FAILURE = 1,
  25. };
  26. // constructor
  27. MUsingCom( DWORD type = COINIT_DISABLE_OLE1DDE | COINIT_APARTMENTTHREADED );
  28. // destructor
  29. ~MUsingCom();
  30. //
  31. MUsingCom_Error
  32. getStatus();
  33. private:
  34. MUsingCom_Error status;
  35. };
  36. #endif