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.

94 lines
1.9 KiB

  1. /*++
  2. Copyright (C) 1996-2001 Microsoft Corporation
  3. Module Name:
  4. METHOD.H
  5. Abstract:
  6. History:
  7. --*/
  8. #ifndef __method__H_
  9. #define __method__H_
  10. #include <wbemdlg.h>
  11. #include <wbemidl.h>
  12. #include <resrc1.h>
  13. #include "wbemqual.h"
  14. #include "WT_WString.h"
  15. class CMethodDlg : public CWbemDialog
  16. {
  17. IWbemClassObject* m_pInParams;
  18. IWbemClassObject* m_pOutParams;
  19. BOOL m_bHasOutParam;
  20. IWbemClassObject * m_pClass;
  21. HWND m_hMethodList;
  22. BOOL m_bAtLeastOne;
  23. WString m_wsName;
  24. WCHAR m_Path[2048];
  25. WCHAR m_Class[2048];
  26. LONG m_lGenFlags; // generic WBEM_FLAG_ .. flags
  27. LONG m_lSync; // enum {sync = 0, async, semisync}
  28. LONG m_lTimeout; // used in semisync only
  29. public:
  30. CMethodDlg(HWND hParent, LONG lGenFlags, LONG lSync, LONG lTimeout);
  31. ~CMethodDlg();
  32. void RunDetached(CRefCountable* pOwner);
  33. protected:
  34. BOOL OnInitDialog();
  35. BOOL OnExecute();
  36. BOOL GetPath();
  37. BOOL OnCommand(WORD wNotifyCode, WORD nId);
  38. BOOL OnSelChange(int nID);
  39. void ResetButtons();
  40. BOOL UpdateObjs();
  41. };
  42. class CMethodEditor : public CWbemDialog
  43. {
  44. CTestMethod *m_pTarget;
  45. BOOL m_bEditOnly;
  46. BOOL m_bInstance;
  47. // Control handles.
  48. // ================
  49. HWND m_hPropName;
  50. HWND m_hPropType;
  51. HWND m_hValue;
  52. HWND m_hQualifierList;
  53. public:
  54. CMethodEditor(HWND hParent, CTestMethod *pMethod, BOOL bEditOnly,
  55. BOOL bInstance);
  56. INT_PTR Edit();
  57. BOOL OnInitDialog();
  58. BOOL Verify();
  59. BOOL OnCommand(WORD wCode, WORD wID);
  60. BOOL OnDoubleClick(int nID);
  61. BOOL OnSelChange(int nID);
  62. void Refresh();
  63. void OnAddQualifier();
  64. void OnDelQualifier();
  65. void OnEditQualifier();
  66. void OnNotNull();
  67. void ViewEmbedding(BOOL bInput);
  68. int RemoveSysQuals();
  69. void SetSystemCheck(int nID);
  70. };
  71. #endif