Fixed wrong cast; MSDN says lpDropFileStruct->pFiles is offset in
[wine] / dlls / shell32 / dialogs.c
1 /*
2  *      common shell dialogs
3  *
4  * Copyright 2000 Juergen Schmied
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library; if not, write to the Free Software
18  * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
19  */
20
21 #include <string.h>
22 #include <stdio.h>
23 #include "winerror.h"
24 #include "wine/debug.h"
25
26 #include "shellapi.h"
27 #include "shlobj.h"
28 #include "shell32_main.h"
29 #include "undocshell.h"
30
31 WINE_DEFAULT_DEBUG_CHANNEL(shell);
32
33
34 /*************************************************************************
35  * PickIconDlg                                  [SHELL32.62]
36  *
37  */
38 BOOL WINAPI PickIconDlg(
39         HWND hwndOwner,
40         LPSTR lpstrFile,
41         DWORD nMaxFile,
42         LPDWORD lpdwIconIndex)
43 {
44         FIXME("(%08x,%s,%08lx,%p):stub.\n",
45           hwndOwner, lpstrFile, nMaxFile,lpdwIconIndex);
46         return 0xffffffff;
47 }
48
49 /*************************************************************************
50  * RunFileDlg                                   [SHELL32.61]
51  *
52  * NOTES
53  *     Original name: RunFileDlg (exported by ordinal)
54  */
55 void WINAPI RunFileDlg(
56         HWND hwndOwner,
57         HICON hIcon,
58         LPCSTR lpstrDirectory,
59         LPCSTR lpstrTitle,
60         LPCSTR lpstrDescription,
61         UINT uFlags)
62 {
63         FIXME("(0x%04x 0x%04x %s %s %s 0x%08x):stub.\n",
64            hwndOwner, hIcon, lpstrDirectory, lpstrTitle, lpstrDescription, uFlags);
65 }
66
67 /*************************************************************************
68  * ExitWindowsDialog                            [SHELL32.60]
69  *
70  * NOTES
71  *     exported by ordinal
72  */
73 void WINAPI ExitWindowsDialog (HWND hWndOwner)
74 {
75         TRACE("(0x%08x)\n", hWndOwner);
76         if (MessageBoxA( hWndOwner, "Do you want to exit WINE?", "Shutdown", MB_YESNO|MB_ICONQUESTION) == IDYES)
77         {
78           SendMessageA ( hWndOwner, WM_QUIT, 0, 0);
79         }
80 }