10#define WIN32_LEAN_AND_MEAN
27 printf(
"creating shortcut file '%s' to %s...\n", linkPath,
cmd);
80 strcpy(
p,
"start-winhello.lnk");
91 strcpy(
p,
"start-winemine.lnk");
char * strcpy(char *DstString, const char *SrcString)
HRESULT CreateShellLink(LPCSTR linkPath, LPCSTR cmd, LPCSTR arg, LPCSTR dir, LPCSTR iconPath, int icon_nr, LPCSTR comment)
#define MultiByteToWideChar
HRESULT WINAPI DECLSPEC_HOTPATCH CoCreateInstance(REFCLSID rclsid, LPUNKNOWN pUnkOuter, DWORD dwClsContext, REFIID iid, LPVOID *ppv)
HRESULT WINAPI CoInitialize(LPVOID lpReserved)
void WINAPI DECLSPEC_HOTPATCH CoUninitialize(void)
BOOL WINAPI SHGetSpecialFolderPathA(HWND hwndOwner, LPSTR szPath, int nFolder, BOOL bCreate)
HRESULT SetPath([in] LPCSTR pszFile)
HRESULT SetArguments([in] LPCSTR pszArgs)
HRESULT SetIconLocation([in] LPCSTR pszIconPath, [in] int iIcon)
HRESULT SetDescription([in] LPCSTR pszName)
HRESULT SetWorkingDirectory([in] LPCSTR pszDir)
HRESULT QueryInterface([in] REFIID riid, [out, iid_is(riid)] void **ppvObject)
#define comment(fmt, arg1)
const GUID IID_IPersistFile