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.

80 lines
1.8 KiB

  1. /*****************************************************************************
  2. Copyright (c) Microsoft Corporation
  3. Module Name:
  4. ETDelete.h
  5. Abstract:
  6. This module contanins function definations required by ETDelete.cpp
  7. Author:
  8. Akhil Gokhale 03-Oct.-2000
  9. Revision History:
  10. *******************************************************************************/
  11. #ifndef _ETDELETE
  12. #define _ETDELETE
  13. #define MAX_COMMANDLINE_D_OPTION 5
  14. #define ID_D_DELETE 0
  15. #define ID_D_SERVER 1
  16. #define ID_D_USERNAME 2
  17. #define ID_D_PASSWORD 3
  18. #define ID_D_ID 4
  19. #define ID_MAX_RANGE UINT_MAX
  20. class CETDelete
  21. {
  22. public:
  23. BOOL ExecuteDelete();
  24. void Initialize();
  25. CETDelete();
  26. CETDelete(LONG lMinMemoryReq,BOOL bNeedPassword);
  27. void ProcessOption(DWORD argc, LPCTSTR argv[]);
  28. virtual ~CETDelete();
  29. private:
  30. BOOL GiveTriggerID(LONG *pTriggerID,LPTSTR pszTriggerName);
  31. BOOL GiveTriggerName(LONG lTriggerID,LPTSTR pszTriggerName);
  32. void PrepareCMDStruct();
  33. void CheckAndSetMemoryAllocation(LPTSTR pszStr,LONG lSize);
  34. CONSOLE_SCREEN_BUFFER_INFO m_ScreenBufferInfo;
  35. HANDLE m_hStdHandle;
  36. BOOL m_bDelete;
  37. LPTSTR m_pszServerName;
  38. LPTSTR m_pszUserName;
  39. LPTSTR m_pszPassword;
  40. TARRAY m_arrID;
  41. BOOL m_bNeedPassword;
  42. LPTSTR m_pszTemp;
  43. // COM function related local variables..
  44. BOOL m_bIsCOMInitialize;
  45. IWbemLocator* m_pWbemLocator;
  46. IWbemServices* m_pWbemServices;
  47. IEnumWbemClassObject* m_pEnumObjects;
  48. IWbemClassObject* m_pClass;
  49. IWbemClassObject* m_pInClass;
  50. IWbemClassObject* m_pInInst;
  51. IWbemClassObject* m_pOutInst;
  52. COAUTHIDENTITY* m_pAuthIdentity;
  53. LONG m_lMinMemoryReq;
  54. // Array to store command line options
  55. TCMDPARSER cmdOptions[MAX_COMMANDLINE_D_OPTION];
  56. };
  57. #endif