Commit 5179aa1b authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

Get started testing ShellExecute().

parent 8759b5fe
......@@ -2,6 +2,7 @@ Makefile
generated.ok
shelllink.ok
shellpath.ok
shlexec.ok
shlfileop.ok
shlfolder.ok
string.ok
......
......@@ -10,6 +10,7 @@ CTESTS = \
generated.c \
shelllink.c \
shellpath.c \
shlexec.c \
shlfileop.c \
shlfolder.c \
string.c
......
/*
* Unit test suite for shell32 functions
*
* Copyright 2005 Francois Gougett for CodeWeavers
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
/* Helper function for creating .lnk files */
typedef struct
{
const char* description;
const char* workdir;
const char* path;
LPITEMIDLIST pidl;
const char* arguments;
int showcmd;
const char* icon;
int icon_id;
WORD hotkey;
} lnk_desc_t;
#define create_lnk(a,b,c) create_lnk_(__LINE__, (a), (b), (c))
void create_lnk_(int,const WCHAR*,lnk_desc_t*,int);
......@@ -33,6 +33,8 @@
#include "shlobj.h"
#include "wine/test.h"
#include "shell32_test.h"
static const WCHAR lnkfile[]= { 'C',':','\\','t','e','s','t','.','l','n','k',0 };
static const WCHAR notafile[]= { 'C',':','\\','n','o','n','e','x','i','s','t','e','n','t','\\','f','i','l','e',0 };
......@@ -268,24 +270,10 @@ static void test_get_set(void)
* Test saving and loading .lnk files
*/
typedef struct
{
const char* description;
const char* workdir;
const char* path;
LPITEMIDLIST pidl;
const char* arguments;
int showcmd;
const char* icon;
int icon_id;
WORD hotkey;
} lnk_desc_t;
#define lok ok_(__FILE__, line)
#define create_lnk(a,b,c) create_lnk_(__LINE__, (a), (b), (c))
#define check_lnk(a,b) check_lnk_(__LINE__, (a), (b))
static void create_lnk_(int line, const WCHAR* path, lnk_desc_t* desc, int save_fails)
void create_lnk_(int line, const WCHAR* path, lnk_desc_t* desc, int save_fails)
{
HRESULT r;
IShellLinkA *sl;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment