1999-02-28 21:05:11 +01:00
|
|
|
/*
|
1999-03-15 16:16:54 +01:00
|
|
|
* COMMDLG/COMDLG32 functions
|
1999-02-28 21:05:11 +01:00
|
|
|
*
|
|
|
|
* Copyright 1994 Martin Ayotte
|
|
|
|
* Copyright 1996 Albrecht Kleine
|
1999-04-25 20:31:35 +02:00
|
|
|
* Copyright 1998,1999 Bertho Stultiens
|
1999-02-28 21:05:11 +01:00
|
|
|
* Copyright 1999 Klaas van Gend
|
2002-03-10 00:29:33 +01:00
|
|
|
*
|
|
|
|
* 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
|
1999-02-28 21:05:11 +01:00
|
|
|
*/
|
|
|
|
|
2003-09-06 01:08:26 +02:00
|
|
|
#include <stdarg.h>
|
|
|
|
|
|
|
|
#include "windef.h"
|
1999-02-28 21:05:11 +01:00
|
|
|
#include "winbase.h"
|
2003-09-06 01:08:26 +02:00
|
|
|
#include "wingdi.h"
|
|
|
|
#include "winuser.h"
|
1999-02-28 21:05:11 +01:00
|
|
|
#include "commdlg.h"
|
2002-03-10 00:29:33 +01:00
|
|
|
#include "wine/debug.h"
|
1999-02-28 21:05:11 +01:00
|
|
|
|
2002-03-10 00:29:33 +01:00
|
|
|
WINE_DEFAULT_DEBUG_CHANNEL(commdlg);
|
1999-04-19 16:56:29 +02:00
|
|
|
|
1999-04-25 20:31:35 +02:00
|
|
|
#include "cdlg.h"
|
2003-12-12 07:09:13 +01:00
|
|
|
#include "cdlg16.h"
|
1999-03-15 16:16:54 +01:00
|
|
|
|
|
|
|
/***********************************************************************
|
2001-07-02 21:59:40 +02:00
|
|
|
* DllEntryPoint [COMMDLG.32]
|
1999-03-15 16:16:54 +01:00
|
|
|
*
|
1999-04-25 20:31:35 +02:00
|
|
|
* Initialization code for the COMMDLG DLL
|
1999-03-15 16:16:54 +01:00
|
|
|
*
|
|
|
|
* RETURNS:
|
|
|
|
*/
|
1999-04-25 20:31:35 +02:00
|
|
|
BOOL WINAPI COMMDLG_DllEntryPoint(DWORD Reason, HINSTANCE16 hInst, WORD ds, WORD HeapSize, DWORD res1, WORD res2)
|
1999-02-28 21:05:11 +01:00
|
|
|
{
|
1999-06-12 17:45:58 +02:00
|
|
|
TRACE("(%08lx, %04x, %04x, %04x, %08lx, %04x)\n", Reason, hInst, ds, HeapSize, res1, res2);
|
1999-04-25 20:31:35 +02:00
|
|
|
return TRUE;
|
1999-02-28 21:05:11 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
1999-03-15 16:16:54 +01:00
|
|
|
/***********************************************************************
|
1999-04-25 20:31:35 +02:00
|
|
|
* CommDlgExtendedError16 [COMMDLG.26]
|
|
|
|
*
|
|
|
|
* Get the last error value if a commdlg function fails.
|
1999-03-15 16:16:54 +01:00
|
|
|
* RETURNS
|
|
|
|
* Current error value which might not be valid
|
|
|
|
* if a previous call succeeded.
|
|
|
|
*/
|
1999-04-25 20:31:35 +02:00
|
|
|
DWORD WINAPI CommDlgExtendedError16(void)
|
1999-03-15 16:16:54 +01:00
|
|
|
{
|
1999-04-25 20:31:35 +02:00
|
|
|
return CommDlgExtendedError();
|
1999-03-15 16:16:54 +01:00
|
|
|
}
|