mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-30 05:31:39 +00:00
include: Use proper dllimports for comdlg32 functions.
This commit is contained in:
parent
c63f485379
commit
83a378f1d1
|
@ -1,3 +1,4 @@
|
||||||
|
EXTRADEFS = -D_COMDLG32_
|
||||||
MODULE = comdlg32.dll
|
MODULE = comdlg32.dll
|
||||||
IMPORTLIB = comdlg32
|
IMPORTLIB = comdlg32
|
||||||
IMPORTS = uuid shell32 shlwapi comctl32 winspool user32 gdi32 advapi32
|
IMPORTS = uuid shell32 shlwapi comctl32 winspool user32 gdi32 advapi32
|
||||||
|
|
|
@ -30,6 +30,14 @@ extern "C" {
|
||||||
#include <pshpack1.h>
|
#include <pshpack1.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef WINCOMMDLGAPI
|
||||||
|
#ifdef _COMDLG32_
|
||||||
|
# define WINCOMMDLGAPI
|
||||||
|
#else
|
||||||
|
# define WINCOMMDLGAPI DECLSPEC_IMPORT
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifndef SNDMSG
|
#ifndef SNDMSG
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
#define SNDMSG ::SendMessage
|
#define SNDMSG ::SendMessage
|
||||||
|
@ -777,40 +785,37 @@ DECLARE_INTERFACE_(IPrintDialogServices,IUnknown)
|
||||||
|
|
||||||
#endif /* STDMETHOD */
|
#endif /* STDMETHOD */
|
||||||
|
|
||||||
BOOL WINAPI ChooseColorA(LPCHOOSECOLORA lpChCol);
|
WINCOMMDLGAPI BOOL WINAPI ChooseColorA(LPCHOOSECOLORA lpChCol);
|
||||||
BOOL WINAPI ChooseColorW(LPCHOOSECOLORW lpChCol);
|
WINCOMMDLGAPI BOOL WINAPI ChooseColorW(LPCHOOSECOLORW lpChCol);
|
||||||
#define ChooseColor WINELIB_NAME_AW(ChooseColor)
|
#define ChooseColor WINELIB_NAME_AW(ChooseColor)
|
||||||
DWORD WINAPI CommDlgExtendedError(void);
|
WINCOMMDLGAPI DWORD WINAPI CommDlgExtendedError(void);
|
||||||
HWND WINAPI FindTextA(LPFINDREPLACEA lpFind);
|
WINCOMMDLGAPI HWND WINAPI FindTextA(LPFINDREPLACEA lpFind);
|
||||||
HWND WINAPI FindTextW(LPFINDREPLACEW lpFind);
|
WINCOMMDLGAPI HWND WINAPI FindTextW(LPFINDREPLACEW lpFind);
|
||||||
#define FindText WINELIB_NAME_AW(FindText)
|
#define FindText WINELIB_NAME_AW(FindText)
|
||||||
short WINAPI GetFileTitleA(LPCSTR lpFile, LPSTR lpTitle, WORD cbBuf);
|
WINCOMMDLGAPI short WINAPI GetFileTitleA(LPCSTR lpFile, LPSTR lpTitle, WORD cbBuf);
|
||||||
short WINAPI GetFileTitleW(LPCWSTR lpFile, LPWSTR lpTitle, WORD cbBuf);
|
WINCOMMDLGAPI short WINAPI GetFileTitleW(LPCWSTR lpFile, LPWSTR lpTitle, WORD cbBuf);
|
||||||
#define GetFileTitle WINELIB_NAME_AW(GetFileTitle)
|
#define GetFileTitle WINELIB_NAME_AW(GetFileTitle)
|
||||||
BOOL WINAPI GetOpenFileNameA(LPOPENFILENAMEA ofn);
|
WINCOMMDLGAPI BOOL WINAPI GetOpenFileNameA(LPOPENFILENAMEA ofn);
|
||||||
BOOL WINAPI GetOpenFileNameW(LPOPENFILENAMEW ofn);
|
WINCOMMDLGAPI BOOL WINAPI GetOpenFileNameW(LPOPENFILENAMEW ofn);
|
||||||
#define GetOpenFileName WINELIB_NAME_AW(GetOpenFileName)
|
#define GetOpenFileName WINELIB_NAME_AW(GetOpenFileName)
|
||||||
BOOL WINAPI GetSaveFileNameA(LPOPENFILENAMEA ofn);
|
WINCOMMDLGAPI BOOL WINAPI GetSaveFileNameA(LPOPENFILENAMEA ofn);
|
||||||
BOOL WINAPI GetSaveFileNameW(LPOPENFILENAMEW ofn);
|
WINCOMMDLGAPI BOOL WINAPI GetSaveFileNameW(LPOPENFILENAMEW ofn);
|
||||||
#define GetSaveFileName WINELIB_NAME_AW(GetSaveFileName)
|
#define GetSaveFileName WINELIB_NAME_AW(GetSaveFileName)
|
||||||
BOOL WINAPI PageSetupDlgA( LPPAGESETUPDLGA );
|
WINCOMMDLGAPI BOOL WINAPI PageSetupDlgA( LPPAGESETUPDLGA );
|
||||||
BOOL WINAPI PageSetupDlgW( LPPAGESETUPDLGW );
|
WINCOMMDLGAPI BOOL WINAPI PageSetupDlgW( LPPAGESETUPDLGW );
|
||||||
#define PageSetupDlg WINELIB_NAME_AW(PageSetupDlg)
|
#define PageSetupDlg WINELIB_NAME_AW(PageSetupDlg)
|
||||||
BOOL WINAPI PrintDlgA( LPPRINTDLGA printdlg);
|
WINCOMMDLGAPI BOOL WINAPI PrintDlgA( LPPRINTDLGA printdlg);
|
||||||
BOOL WINAPI PrintDlgW( LPPRINTDLGW printdlg);
|
WINCOMMDLGAPI BOOL WINAPI PrintDlgW( LPPRINTDLGW printdlg);
|
||||||
#define PrintDlg WINELIB_NAME_AW(PrintDlg)
|
#define PrintDlg WINELIB_NAME_AW(PrintDlg)
|
||||||
HRESULT WINAPI PrintDlgExA(LPPRINTDLGEXA);
|
WINCOMMDLGAPI HRESULT WINAPI PrintDlgExA(LPPRINTDLGEXA);
|
||||||
HRESULT WINAPI PrintDlgExW(LPPRINTDLGEXW);
|
WINCOMMDLGAPI HRESULT WINAPI PrintDlgExW(LPPRINTDLGEXW);
|
||||||
#define PrintDlgEx WINELIB_NAME_AW(PrintDlgEx)
|
#define PrintDlgEx WINELIB_NAME_AW(PrintDlgEx)
|
||||||
HWND WINAPI ReplaceTextA( LPFINDREPLACEA lpFind);
|
WINCOMMDLGAPI HWND WINAPI ReplaceTextA( LPFINDREPLACEA lpFind);
|
||||||
HWND WINAPI ReplaceTextW( LPFINDREPLACEW lpFind);
|
WINCOMMDLGAPI HWND WINAPI ReplaceTextW( LPFINDREPLACEW lpFind);
|
||||||
#define ReplaceText WINELIB_NAME_AW(ReplaceText)
|
#define ReplaceText WINELIB_NAME_AW(ReplaceText)
|
||||||
BOOL WINAPI ChooseFontA(LPCHOOSEFONTA);
|
WINCOMMDLGAPI BOOL WINAPI ChooseFontA(LPCHOOSEFONTA);
|
||||||
BOOL WINAPI ChooseFontW(LPCHOOSEFONTW);
|
WINCOMMDLGAPI BOOL WINAPI ChooseFontW(LPCHOOSEFONTW);
|
||||||
#define ChooseFont WINELIB_NAME_AW(ChooseFont)
|
#define ChooseFont WINELIB_NAME_AW(ChooseFont)
|
||||||
|
|
||||||
void COMDLG32_SetCommDlgExtendedError(DWORD err);
|
|
||||||
|
|
||||||
|
|
||||||
#ifndef _WIN64
|
#ifndef _WIN64
|
||||||
#include <poppack.h>
|
#include <poppack.h>
|
||||||
|
|
Loading…
Reference in a new issue