#include <windows.h>
#include <shlwapi.h>
#include <shlobj.h>
#include <shobjidl.h>
#include <atlbase.h>
#include <atlcom.h>
#include <atlwin.h>
#include <atlstr.h>
#include <shlguid_undoc.h>
#include <shellapi.h>
#include <shellutils.h>
#include <strsafe.h>
#include <wine/debug.h>
#include "CDeskLinkDropHandler.hpp"
#include "sendmail_version.h"
#include "resource.h"
Go to the source code of this file.
◆ COBJMACROS
◆ WIN32_NO_STATUS
◆ CreateShellLink()
Definition at line 102 of file sendmail.cpp.
111{
114 CLSCTX_INPROC_SERVER,
118
119 if (pszTargetPath)
120 {
121 hr = psl->SetPath(pszTargetPath);
124 }
125 else if (pidlTarget)
126 {
127 hr = psl->SetIDList(pidlTarget);
130 }
131 else
132 {
133 ERR(
"invalid argument\n");
135 }
136
137 if (pszArg)
138 hr = psl->SetArguments(pszArg);
139
141 hr = psl->SetWorkingDirectory(
pszDir);
142
143 if (pszIconPath)
144 hr = psl->SetIconLocation(pszIconPath, iIconNr);
145
146 if (pszComment)
147 hr = psl->SetDescription(pszComment);
148
153
154 hr = ppf->Save(pszLinkPath,
TRUE);
157
159}
#define FAILED_UNEXPECTEDLY(hr)
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
#define IID_PPV_ARG(Itype, ppType)
Referenced by CDeskLinkDropHandler::Drop().
◆ g_ModuleRefCnt