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.

50 lines
1.5 KiB

  1. // WinPop3.h: interface for the CWinPop3 class.
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_WINPOP3_H__E31CD929_FC30_413D_9944_E6991AFB61DE__INCLUDED_)
  5. #define AFX_WINPOP3_H__E31CD929_FC30_413D_9944_E6991AFB61DE__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. struct IP3Config; //forward declaration
  10. class CWinPop3
  11. {
  12. public:
  13. CWinPop3();
  14. virtual ~CWinPop3();
  15. public: // Implementation
  16. int Add(int argc, wchar_t *argv[]);
  17. int AddUserToAD(int argc, wchar_t *argv[]);
  18. int CreateQuotaFile(int argc, wchar_t *argv[]);
  19. int Del(int argc, wchar_t *argv[]);
  20. int Get(int argc, wchar_t *argv[]);
  21. int Init( int argc, wchar_t* argv[]);
  22. int List( int argc, wchar_t* argv[]);
  23. int Lock( int argc, wchar_t* argv[], BOOL bLock);
  24. int Net(int argc, wchar_t *argv[]);
  25. int Set(int argc, wchar_t *argv[]);
  26. int SetPassword(int argc, wchar_t *argv[]);
  27. int Stat( int argc, wchar_t* argv[]);
  28. void PrintError( int iRC );
  29. void PrintMessage( LPWSTR psMessage, bool bCRLF = true );
  30. void PrintMessage( int iID, bool bCRLF = true );
  31. void PrintUsage();
  32. void PrintUsageGetSet();
  33. protected:
  34. void SetMachineName( IP3Config *pIConfig );
  35. bool StrIsDigit( LPWSTR ps );
  36. // Attributes
  37. protected:
  38. bool m_bSuppressPrintError;
  39. };
  40. #endif // !defined(AFX_WINPOP3_H__E31CD929_FC30_413D_9944_E6991AFB61DE__INCLUDED_)