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.

55 lines
1.2 KiB

  1. //+----------------------------------------------------------------------------
  2. //
  3. // File: loadconnfolder.h
  4. //
  5. // Module: CMSTP.EXE
  6. //
  7. // Synopsis: This header file contains the CLoadConnFolder Class definition.
  8. //
  9. // Copyright (c) 1997-1999 Microsoft Corporation
  10. //
  11. // Author: quintinb Created Header 07/14/98
  12. //
  13. //+----------------------------------------------------------------------------
  14. #ifndef _LOADCONNFOLDER_H_
  15. #define _LOADCONNFOLDER_H_
  16. #include <windows.h>
  17. #include <shlobj.h>
  18. #include <shellapi.h>
  19. class CLoadConnFolder
  20. {
  21. public:
  22. CLoadConnFolder();
  23. ~CLoadConnFolder();
  24. HRESULT HrLaunchConnFolder();
  25. inline HRESULT GetConnFolder(LPSHELLFOLDER* ppConnectionsFolder)
  26. {
  27. if (SUCCEEDED(m_HrClassState))
  28. {
  29. *ppConnectionsFolder = m_pConnectionsFolder;
  30. }
  31. return m_HrClassState;
  32. }
  33. inline LPITEMIDLIST pidlGetConnFolderPidl()
  34. {
  35. return m_ConnFolderpidl;
  36. }
  37. private:
  38. LPSHELLFOLDER m_pConnectionsFolder;
  39. LPSHELLFOLDER m_pDesktopFolder;
  40. LPITEMIDLIST m_ConnFolderpidl;
  41. HRESULT m_HrClassState;
  42. BOOL m_CoInit;
  43. };
  44. #endif