UIDesktopServices_win.cpp revision a9b62afc62b28da7a1a77f34259f8013892d9664
/* $Id$ */
/** @file
* VBox Qt GUI - Qt GUI - Utility Classes and Functions specific to Windows..
*/
/*
* Copyright (C) 2010 Oracle Corporation
*
* This file is part of VirtualBox Open Source Edition (OSE), as
* available from http://www.virtualbox.org. This file is free software;
* General Public License (GPL) as published by the Free Software
* Foundation, in version 2 as it comes in the "COPYING" file of the
* VirtualBox OSE distribution. VirtualBox OSE is distributed in the
* hope that it will be useful, but WITHOUT ANY WARRANTY of any kind.
*/
# include <precomp.h>
#else /* !VBOX_WITH_PRECOMPILED_HEADERS */
/* VBox includes */
# include "UIDesktopServices.h"
/* Qt includes */
# include <QDir>
# include <QCoreApplication>
/* System includes */
# include <shlobj.h>
#endif /* !VBOX_WITH_PRECOMPILED_HEADERS */
bool UIDesktopServices::createMachineShortcut(const QString & /* strSrcFile */, const QString &strDstPath, const QString &strName, const QString &strUuid)
{
HRESULT rc = CoCreateInstance(CLSID_ShellLink, NULL, CLSCTX_INPROC_SERVER, IID_IShellLink, (void**)(&pShl));
return false;
do
{
break;
break;
break;
break;
break;
} while(0);
if (pPPF)
if (pShl)
}
{
return rc > 32 ? true : false;
}