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.

69 lines
1.5 KiB

  1. #ifndef _MNLBEXE_H
  2. #define _MNLBEXE_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 : MNLBSetting interface.
  11. // DevUnit : wlbstest
  12. // Author : Murtaza Hakim
  13. //
  14. // Description:
  15. // -----------
  16. #include "MWmiInstance.h"
  17. #include "Common.h"
  18. // Include Files
  19. class MNLBExe
  20. {
  21. public:
  22. enum MNLBExe_Error
  23. {
  24. MNLBExe_SUCCESS = 0,
  25. COM_FAILURE = 1,
  26. };
  27. static
  28. MNLBExe_Error
  29. start( MWmiInstance& instance, unsigned long* retVal );
  30. static
  31. MNLBExe_Error
  32. stop( MWmiInstance& instance, unsigned long* retVal );
  33. static
  34. MNLBExe_Error
  35. resume( MWmiInstance& instance, unsigned long* retVal );
  36. static
  37. MNLBExe_Error
  38. suspend( MWmiInstance& instance, unsigned long* retVal );
  39. static
  40. MNLBExe_Error
  41. drainstop( MWmiInstance& instance, unsigned long* retVal );
  42. static
  43. MNLBExe_Error
  44. enable( MWmiInstance& instance, unsigned long* retVal, unsigned long portToAffect = Common::ALL_PORTS );
  45. static
  46. MNLBExe_Error
  47. disable( MWmiInstance& instance, unsigned long* retVal, unsigned long portToAffect = Common::ALL_PORTS );
  48. static
  49. MNLBExe_Error
  50. drain( MWmiInstance& instance, unsigned long* retVal, unsigned long portToAffect = Common::ALL_PORTS );
  51. };
  52. #endif