Fixed some issues found by winapi_check.
[wine] / dlls / shell32 / dialogs.c
1 /*
2  *      common shell dialogs
3  */
4 #include <string.h>
5 #include <stdio.h>
6 #include "winerror.h"
7 #include "debugtools.h"
8
9 #include "shellapi.h"
10 #include "shlobj.h"
11 #include "shell32_main.h"
12 #include "wine/undocshell.h"
13
14 DEFAULT_DEBUG_CHANNEL(shell);
15
16
17 /*************************************************************************
18  * PickIconDlg                                  [SHELL32.62]
19  * 
20  */
21 BOOL WINAPI PickIconDlg(
22         HWND hwndOwner,
23         LPSTR lpstrFile,
24         DWORD nMaxFile,
25         LPDWORD lpdwIconIndex)
26 {
27         FIXME("(%08x,%s,%08lx,%p):stub.\n",
28           hwndOwner, lpstrFile, nMaxFile,lpdwIconIndex);
29         return 0xffffffff;
30 }
31
32 /*************************************************************************
33  * RunFileDlg                                   [SHELL32.61]
34  *
35  * NOTES
36  *     Original name: RunFileDlg (exported by ordinal)
37  */
38 void WINAPI RunFileDlg(
39         HWND hwndOwner,
40         HICON hIcon,
41         LPCSTR lpstrDirectory,
42         LPCSTR lpstrTitle,
43         LPCSTR lpstrDescription,
44         UINT uFlags)
45 {
46         FIXME("(0x%04x 0x%04x %s %s %s 0x%08x):stub.\n",
47            hwndOwner, hIcon, lpstrDirectory, lpstrTitle, lpstrDescription, uFlags);
48 }
49
50 /*************************************************************************
51  * ExitWindowsDialog                            [SHELL32.60]
52  *
53  * NOTES
54  *     exported by ordinal
55  */
56 void WINAPI ExitWindowsDialog (HWND hWndOwner)
57 {
58         TRACE("(0x%08x)\n", hWndOwner);
59         if (MessageBoxA( hWndOwner, "Do you want to exit WINE?", "Shutdown", MB_YESNO|MB_ICONQUESTION) == IDYES)
60         {
61           SendMessageA ( hWndOwner, WM_QUIT, 0, 0);
62         }
63 }