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