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.

38 lines
1.0 KiB

  1. // File: speedial.h
  2. #ifndef _SPEEDIAL_H_
  3. #define _SPEEDIAL_H_
  4. #include "confevt.h"
  5. #include "calv.h"
  6. class CSPEEDDIAL : public CALV
  7. {
  8. private:
  9. TCHAR m_szFile[MAX_PATH*2]; // large buffer for full path name to file
  10. LPTSTR m_pszFileName; // pointer into m_szFile for filename
  11. int m_cchFileNameMax; // maximum length of filename
  12. public:
  13. CSPEEDDIAL();
  14. ~CSPEEDDIAL();
  15. VOID CmdDelete(void);
  16. BOOL FGetSelectedFilename(LPTSTR pszFile);
  17. // CALV methods
  18. VOID ShowItems(HWND hwnd);
  19. VOID OnCommand(WPARAM wParam, LPARAM lParam);
  20. RAI * GetAddrInfo(void);
  21. };
  22. // Utility routines
  23. BOOL FGetSpeedDialFolder(LPTSTR pszBuffer, UINT cchMax, BOOL fCreate = FALSE);
  24. BOOL FExistingSpeedDial(LPCTSTR pcszAddress, NM_ADDR_TYPE addrType);
  25. BOOL FCreateSpeedDial(LPCTSTR pcszName, LPCTSTR pcszAddress,
  26. NM_ADDR_TYPE addrType = NM_ADDR_UNKNOWN, DWORD dwCallFlags = CRPCF_DEFAULT,
  27. LPCTSTR pcszRemoteConfName = NULL, LPCTSTR pcszPassword = NULL,
  28. LPCTSTR pcszPathPrefix = NULL);
  29. #endif /* _SPEEDIAL_H_ */