Gray C++ Libraries  0.0.2
A set of C++ libraries for MSVC, GNU on Windows, WinCE, Linux
cWinShellLink.h
Go to the documentation of this file.
1 //
4 //
5 
6 #ifndef _INC_cWinShellLink_H
7 #define _INC_cWinShellLink_H
8 #ifndef NO_PRAGMA_ONCE
9 #pragma once
10 #endif
11 
12 #include "WinTypes.h"
14 
15 #if defined(_WIN32) && ! defined(UNDER_CE)
16 
17 struct _GTN(IShellLink);
18 
19 namespace GrayLib
20 {
21  class GRAYLIB_LINK cWinShellLink
22  {
25 
26  public:
27  cIUnkPtr< _GTN(IShellLink) > m_pSL;
28  public:
29  cWinShellLink(const GChar_t* pszPathTarget = nullptr, const GChar_t* pszWorkDir = nullptr, const GChar_t* pszDesc = nullptr);
30  ~cWinShellLink(void);
31 
32  HRESULT CreateShellLink(const GChar_t* pszPathTarget, const GChar_t* pszWorkDir = nullptr, const GChar_t* pszDesc = nullptr);
33  HRESULT Save(const GChar_t* pszPathLink) const;
34  };
35 };
36 
37 #endif
38 #endif
#define GRAYLIB_LINK
Definition: GrayLibBase.h:35
#define _GTN(c)
_WIN32 name has a A or W for UTF8 or UNICODE (like _FNF)
Definition: StrConst.h:28
INT32 HRESULT
_WIN32 style error codes. INT32
Definition: SysTypes.h:465
Definition: cMesh.h:22
char GChar_t
My version of TCHAR, _TCHAR.
Definition: StrConst.h:26