home *** CD-ROM | disk | FTP | other *** search
/ Tools / WinSN5.0Ver.iso / NETSCAP.50 / WIN1998.ZIP / ns / cmd / winfe / shcut.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-04-08  |  1.6 KB  |  55 lines

  1. /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
  2.  *
  3.  * The contents of this file are subject to the Netscape Public License
  4.  * Version 1.0 (the "NPL"); you may not use this file except in
  5.  * compliance with the NPL.  You may obtain a copy of the NPL at
  6.  * http://www.mozilla.org/NPL/
  7.  *
  8.  * Software distributed under the NPL is distributed on an "AS IS" basis,
  9.  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the NPL
  10.  * for the specific language governing rights and limitations under the
  11.  * NPL.
  12.  *
  13.  * The Initial Developer of this code under the NPL is Netscape
  14.  * Communications Corporation.  Portions created by Netscape are
  15.  * Copyright (C) 1998 Netscape Communications Corporation.  All Rights
  16.  * Reserved.
  17.  */
  18.  
  19. #ifndef __SHCUT_H
  20. #define __SHCUT_H
  21.  
  22. #ifdef XP_WIN32
  23. #ifndef _OBJBASE_H_
  24.  #include <objbase.h>
  25. #endif
  26. #ifndef __INTSHCUT_H__
  27.  #include "intshcut.h"
  28. #endif
  29. #ifndef _SHLOBJ_H_
  30.  #include "shlobj.h"
  31. #endif
  32. #endif /* XP_WIN32 */
  33. #ifndef __AFXOLE_H__
  34.  #include "afxole.h"
  35. #endif
  36.  
  37. class CInternetShortcut {
  38. protected:
  39.     CString m_URL;
  40.     CString m_filename;
  41. public:
  42.     CInternetShortcut ( const char * filename, char * url = 0 );
  43.     CInternetShortcut ( void );
  44.  
  45.     BOOL ShellSupport ( );
  46.     void GetURL ( char * urlBuffer, int urlBufferSize );
  47. };
  48.  
  49. HRESULT ResolveShortCut ( HWND hwnd, LPCSTR pszShortcutFile, LPSTR pszPath);
  50. void DragInternetShortcut ( COleDataSource * pDataSource,
  51.     LPCSTR lpszTitle, LPCSTR lpszAddress );
  52. void DragMultipleShortcuts(COleDataSource* pDataSource, CString* titleArray, 
  53.                            CString* urlArray, int count);
  54. #endif
  55.