Commit 601a3abe authored by Dmitry Timoshkov's avatar Dmitry Timoshkov Committed by Alexandre Julliard

Fix some types and function prototypes according to Platform SDK

definitions.
parent ac5de27d
...@@ -61,7 +61,7 @@ typedef struct { ...@@ -61,7 +61,7 @@ typedef struct {
/* ----------- MENUITEMINFO Stuff ----------- */ /* ----------- MENUITEMINFO Stuff ----------- */
UINT fType; /* Item type. */ UINT fType; /* Item type. */
UINT fState; /* Item state. */ UINT fState; /* Item state. */
UINT wID; /* Item id. */ UINT_PTR wID; /* Item id. */
HMENU hSubMenu; /* Pop-up menu. */ HMENU hSubMenu; /* Pop-up menu. */
HBITMAP hCheckBit; /* Bitmap when checked. */ HBITMAP hCheckBit; /* Bitmap when checked. */
HBITMAP hUnCheckBit; /* Bitmap when unchecked. */ HBITMAP hUnCheckBit; /* Bitmap when unchecked. */
...@@ -1757,7 +1757,7 @@ static void MENU_MoveSelection( HWND hwndOwner, HMENU hmenu, INT offset ) ...@@ -1757,7 +1757,7 @@ static void MENU_MoveSelection( HWND hwndOwner, HMENU hmenu, INT offset )
* Set an item's flags, id and text ptr. Called by InsertMenu() and * Set an item's flags, id and text ptr. Called by InsertMenu() and
* ModifyMenu(). * ModifyMenu().
*/ */
static BOOL MENU_SetItemData( MENUITEM *item, UINT flags, UINT id, static BOOL MENU_SetItemData( MENUITEM *item, UINT flags, UINT_PTR id,
LPCWSTR str ) LPCWSTR str )
{ {
LPWSTR prevText = IS_STRING_ITEM(item->fType) ? item->text : NULL; LPWSTR prevText = IS_STRING_ITEM(item->fType) ? item->text : NULL;
...@@ -3531,7 +3531,7 @@ BOOL16 WINAPI InsertMenu16( HMENU16 hMenu, UINT16 pos, UINT16 flags, ...@@ -3531,7 +3531,7 @@ BOOL16 WINAPI InsertMenu16( HMENU16 hMenu, UINT16 pos, UINT16 flags,
* InsertMenuW (USER32.@) * InsertMenuW (USER32.@)
*/ */
BOOL WINAPI InsertMenuW( HMENU hMenu, UINT pos, UINT flags, BOOL WINAPI InsertMenuW( HMENU hMenu, UINT pos, UINT flags,
UINT id, LPCWSTR str ) UINT_PTR id, LPCWSTR str )
{ {
MENUITEM *item; MENUITEM *item;
...@@ -3563,7 +3563,7 @@ BOOL WINAPI InsertMenuW( HMENU hMenu, UINT pos, UINT flags, ...@@ -3563,7 +3563,7 @@ BOOL WINAPI InsertMenuW( HMENU hMenu, UINT pos, UINT flags,
* InsertMenuA (USER32.@) * InsertMenuA (USER32.@)
*/ */
BOOL WINAPI InsertMenuA( HMENU hMenu, UINT pos, UINT flags, BOOL WINAPI InsertMenuA( HMENU hMenu, UINT pos, UINT flags,
UINT id, LPCSTR str ) UINT_PTR id, LPCSTR str )
{ {
BOOL ret = FALSE; BOOL ret = FALSE;
...@@ -3596,7 +3596,7 @@ BOOL16 WINAPI AppendMenu16(HMENU16 hMenu, UINT16 flags, UINT16 id, SEGPTR data) ...@@ -3596,7 +3596,7 @@ BOOL16 WINAPI AppendMenu16(HMENU16 hMenu, UINT16 flags, UINT16 id, SEGPTR data)
* AppendMenuA (USER32.@) * AppendMenuA (USER32.@)
*/ */
BOOL WINAPI AppendMenuA( HMENU hMenu, UINT flags, BOOL WINAPI AppendMenuA( HMENU hMenu, UINT flags,
UINT id, LPCSTR data ) UINT_PTR id, LPCSTR data )
{ {
return InsertMenuA( hMenu, -1, flags | MF_BYPOSITION, id, data ); return InsertMenuA( hMenu, -1, flags | MF_BYPOSITION, id, data );
} }
...@@ -3606,7 +3606,7 @@ BOOL WINAPI AppendMenuA( HMENU hMenu, UINT flags, ...@@ -3606,7 +3606,7 @@ BOOL WINAPI AppendMenuA( HMENU hMenu, UINT flags,
* AppendMenuW (USER32.@) * AppendMenuW (USER32.@)
*/ */
BOOL WINAPI AppendMenuW( HMENU hMenu, UINT flags, BOOL WINAPI AppendMenuW( HMENU hMenu, UINT flags,
UINT id, LPCWSTR data ) UINT_PTR id, LPCWSTR data )
{ {
return InsertMenuW( hMenu, -1, flags | MF_BYPOSITION, id, data ); return InsertMenuW( hMenu, -1, flags | MF_BYPOSITION, id, data );
} }
...@@ -3696,7 +3696,7 @@ BOOL16 WINAPI ModifyMenu16( HMENU16 hMenu, UINT16 pos, UINT16 flags, ...@@ -3696,7 +3696,7 @@ BOOL16 WINAPI ModifyMenu16( HMENU16 hMenu, UINT16 pos, UINT16 flags,
* ModifyMenuW (USER32.@) * ModifyMenuW (USER32.@)
*/ */
BOOL WINAPI ModifyMenuW( HMENU hMenu, UINT pos, UINT flags, BOOL WINAPI ModifyMenuW( HMENU hMenu, UINT pos, UINT flags,
UINT id, LPCWSTR str ) UINT_PTR id, LPCWSTR str )
{ {
MENUITEM *item; MENUITEM *item;
...@@ -3721,7 +3721,7 @@ BOOL WINAPI ModifyMenuW( HMENU hMenu, UINT pos, UINT flags, ...@@ -3721,7 +3721,7 @@ BOOL WINAPI ModifyMenuW( HMENU hMenu, UINT pos, UINT flags,
* ModifyMenuA (USER32.@) * ModifyMenuA (USER32.@)
*/ */
BOOL WINAPI ModifyMenuA( HMENU hMenu, UINT pos, UINT flags, BOOL WINAPI ModifyMenuA( HMENU hMenu, UINT pos, UINT flags,
UINT id, LPCSTR str ) UINT_PTR id, LPCSTR str )
{ {
BOOL ret = FALSE; BOOL ret = FALSE;
......
...@@ -1272,7 +1272,7 @@ static void AVISaveOptionsUpdate(HWND hWnd) ...@@ -1272,7 +1272,7 @@ static void AVISaveOptionsUpdate(HWND hWnd)
} }
BOOL CALLBACK AVISaveOptionsDlgProc(HWND hWnd, UINT uMsg, INT_PTR CALLBACK AVISaveOptionsDlgProc(HWND hWnd, UINT uMsg,
WPARAM wParam, LPARAM lParam) WPARAM wParam, LPARAM lParam)
{ {
DWORD dwInterleave; DWORD dwInterleave;
......
...@@ -170,7 +170,7 @@ static PADDING_INFO PROPSHEET_GetPaddingInfoWizard(HWND hwndDlg, const PropSheet ...@@ -170,7 +170,7 @@ static PADDING_INFO PROPSHEET_GetPaddingInfoWizard(HWND hwndDlg, const PropSheet
static BOOL PROPSHEET_IsDialogMessage(HWND hwnd, LPMSG lpMsg); static BOOL PROPSHEET_IsDialogMessage(HWND hwnd, LPMSG lpMsg);
static BOOL PROPSHEET_DoCommand(HWND hwnd, WORD wID); static BOOL PROPSHEET_DoCommand(HWND hwnd, WORD wID);
BOOL WINAPI INT_PTR CALLBACK
PROPSHEET_DialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam); PROPSHEET_DialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
WINE_DEFAULT_DEBUG_CHANNEL(propsheet); WINE_DEFAULT_DEBUG_CHANNEL(propsheet);
...@@ -592,13 +592,13 @@ BOOL PROPSHEET_CreateDialog(PropSheetInfo* psInfo) ...@@ -592,13 +592,13 @@ BOOL PROPSHEET_CreateDialog(PropSheetInfo* psInfo)
ret = DialogBoxIndirectParamW(psInfo->ppshheader.hInstance, ret = DialogBoxIndirectParamW(psInfo->ppshheader.hInstance,
(LPDLGTEMPLATEW) temp, (LPDLGTEMPLATEW) temp,
psInfo->ppshheader.hwndParent, psInfo->ppshheader.hwndParent,
(DLGPROC) PROPSHEET_DialogProc, PROPSHEET_DialogProc,
(LPARAM)psInfo); (LPARAM)psInfo);
else else
ret = CreateDialogIndirectParamW(psInfo->ppshheader.hInstance, ret = CreateDialogIndirectParamW(psInfo->ppshheader.hInstance,
(LPDLGTEMPLATEW) temp, (LPDLGTEMPLATEW) temp,
psInfo->ppshheader.hwndParent, psInfo->ppshheader.hwndParent,
(DLGPROC) PROPSHEET_DialogProc, PROPSHEET_DialogProc,
(LPARAM)psInfo) ? TRUE : FALSE; (LPARAM)psInfo) ? TRUE : FALSE;
COMCTL32_Free(temp); COMCTL32_Free(temp);
...@@ -2662,7 +2662,7 @@ static BOOL PROPSHEET_DoCommand(HWND hwnd, WORD wID) ...@@ -2662,7 +2662,7 @@ static BOOL PROPSHEET_DoCommand(HWND hwnd, WORD wID)
/****************************************************************************** /******************************************************************************
* PROPSHEET_DialogProc * PROPSHEET_DialogProc
*/ */
BOOL WINAPI INT_PTR CALLBACK
PROPSHEET_DialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) PROPSHEET_DialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{ {
TRACE("hwnd=%p msg=%x wparam=%x lparam=%lx\n", TRACE("hwnd=%p msg=%x wparam=%x lparam=%lx\n",
......
...@@ -1629,7 +1629,7 @@ TOOLBAR_RelayEvent (HWND hwndTip, HWND hwndMsg, UINT uMsg, ...@@ -1629,7 +1629,7 @@ TOOLBAR_RelayEvent (HWND hwndTip, HWND hwndMsg, UINT uMsg,
* TOOLBAR_CustomizeDialogProc * TOOLBAR_CustomizeDialogProc
* This function implements the toolbar customization dialog. * This function implements the toolbar customization dialog.
*/ */
static BOOL WINAPI static INT_PTR CALLBACK
TOOLBAR_CustomizeDialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) TOOLBAR_CustomizeDialogProc(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{ {
PCUSTDLG_INFO custInfo = (PCUSTDLG_INFO)GetWindowLongA (hwnd, DWL_USER); PCUSTDLG_INFO custInfo = (PCUSTDLG_INFO)GetWindowLongA (hwnd, DWL_USER);
...@@ -2769,7 +2769,7 @@ TOOLBAR_Customize (HWND hwnd) ...@@ -2769,7 +2769,7 @@ TOOLBAR_Customize (HWND hwnd)
ret = DialogBoxIndirectParamA ((HINSTANCE)GetWindowLongA(hwnd, GWL_HINSTANCE), ret = DialogBoxIndirectParamA ((HINSTANCE)GetWindowLongA(hwnd, GWL_HINSTANCE),
(LPDLGTEMPLATEA)template, (LPDLGTEMPLATEA)template,
hwnd, hwnd,
(DLGPROC)TOOLBAR_CustomizeDialogProc, TOOLBAR_CustomizeDialogProc,
(LPARAM)&custInfo); (LPARAM)&custInfo);
/* send TBN_ENDADJUST notification */ /* send TBN_ENDADJUST notification */
......
...@@ -41,7 +41,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(commdlg); ...@@ -41,7 +41,7 @@ WINE_DEFAULT_DEBUG_CHANNEL(commdlg);
#include "cdlg.h" #include "cdlg.h"
static LRESULT WINAPI ColorDlgProc( HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam ); static INT_PTR CALLBACK ColorDlgProc( HWND hWnd, UINT wMsg, WPARAM wParam, LPARAM lParam );
#define CONV_LPARAMTOPOINT(lp,p) do { (p)->x = SLOWORD(lp); (p)->y = SHIWORD(lp); } while(0) #define CONV_LPARAMTOPOINT(lp,p) do { (p)->x = SLOWORD(lp); (p)->y = SHIWORD(lp); } while(0)
...@@ -1239,7 +1239,7 @@ static LRESULT CC_WMLButtonDown( HWND hDlg, WPARAM wParam, LPARAM lParam ) ...@@ -1239,7 +1239,7 @@ static LRESULT CC_WMLButtonDown( HWND hDlg, WPARAM wParam, LPARAM lParam )
* ColorDlgProc32 [internal] * ColorDlgProc32 [internal]
* *
*/ */
static LRESULT WINAPI ColorDlgProc( HWND hDlg, UINT message, static INT_PTR CALLBACK ColorDlgProc( HWND hDlg, UINT message,
WPARAM wParam, LPARAM lParam ) WPARAM wParam, LPARAM lParam )
{ {
...@@ -1302,10 +1302,10 @@ static LRESULT WINAPI ColorDlgProc( HWND hDlg, UINT message, ...@@ -1302,10 +1302,10 @@ static LRESULT WINAPI ColorDlgProc( HWND hDlg, UINT message,
/*********************************************************************** /***********************************************************************
* ColorDlgProc (COMMDLG.8) * ColorDlgProc (COMMDLG.8)
*/ */
LRESULT WINAPI ColorDlgProc16( HWND16 hDlg16, UINT16 message, BOOL16 CALLBACK ColorDlgProc16( HWND16 hDlg16, UINT16 message,
WPARAM16 wParam, LONG lParam ) WPARAM16 wParam, LONG lParam )
{ {
int res; BOOL16 res;
HWND hDlg = HWND_32(hDlg16); HWND hDlg = HWND_32(hDlg16);
LCCPRIV lpp = (LCCPRIV)GetWindowLongA(hDlg, DWL_USER); LCCPRIV lpp = (LCCPRIV)GetWindowLongA(hDlg, DWL_USER);
...@@ -1506,7 +1506,7 @@ BOOL WINAPI ChooseColorW( LPCHOOSECOLORW lpChCol ) ...@@ -1506,7 +1506,7 @@ BOOL WINAPI ChooseColorW( LPCHOOSECOLORW lpChCol )
} }
bRet = DialogBoxIndirectParamW(COMMDLG_hInstance32, template, lpChCol->hwndOwner, bRet = DialogBoxIndirectParamW(COMMDLG_hInstance32, template, lpChCol->hwndOwner,
(DLGPROC)ColorDlgProc, (DWORD)lpChCol); ColorDlgProc, (DWORD)lpChCol);
return bRet; return bRet;
} }
......
...@@ -89,12 +89,12 @@ static char defaultsave[]="Save as"; ...@@ -89,12 +89,12 @@ static char defaultsave[]="Save as";
* *
*/ */
LRESULT WINAPI FileOpenDlgProc16(HWND16 hWnd, UINT16 wMsg, WPARAM16 wParam, BOOL16 CALLBACK FileOpenDlgProc16(HWND16 hWnd, UINT16 wMsg, WPARAM16 wParam,
LPARAM lParam); LPARAM lParam);
LRESULT WINAPI FileSaveDlgProc16(HWND16 hWnd, UINT16 wMsg, WPARAM16 wParam, BOOL16 CALLBACK FileSaveDlgProc16(HWND16 hWnd, UINT16 wMsg, WPARAM16 wParam,
LPARAM lParam); LPARAM lParam);
static LRESULT WINAPI FileOpenDlgProc(HWND hDlg, UINT msg, static INT_PTR CALLBACK FileOpenDlgProc(HWND hDlg, UINT msg,
WPARAM wParam, LPARAM lParam); WPARAM wParam, LPARAM lParam);
/*********************************************************************** /***********************************************************************
...@@ -1301,7 +1301,7 @@ BOOL WINAPI GetFileName31A( ...@@ -1301,7 +1301,7 @@ BOOL WINAPI GetFileName31A(
{ {
hInst = GetWindowLongA( lpofn->hwndOwner, GWL_HINSTANCE ); hInst = GetWindowLongA( lpofn->hwndOwner, GWL_HINSTANCE );
bRet = DialogBoxIndirectParamA( hInst, lfs->template, lpofn->hwndOwner, bRet = DialogBoxIndirectParamA( hInst, lfs->template, lpofn->hwndOwner,
(DLGPROC) FileOpenDlgProc, (DWORD) lfs); FileOpenDlgProc, (LPARAM)lfs);
FILEDLG_DestroyPrivate(lfs); FILEDLG_DestroyPrivate(lfs);
} }
...@@ -1331,7 +1331,7 @@ BOOL WINAPI GetFileName31W( ...@@ -1331,7 +1331,7 @@ BOOL WINAPI GetFileName31W(
{ {
hInst = GetWindowLongA( lpofn->hwndOwner, GWL_HINSTANCE ); hInst = GetWindowLongA( lpofn->hwndOwner, GWL_HINSTANCE );
bRet = DialogBoxIndirectParamW( hInst, lfs->template, lpofn->hwndOwner, bRet = DialogBoxIndirectParamW( hInst, lfs->template, lpofn->hwndOwner,
(DLGPROC) FileOpenDlgProc, (DWORD) lfs); FileOpenDlgProc, (LPARAM)lfs);
FILEDLG_DestroyPrivate(lfs); FILEDLG_DestroyPrivate(lfs);
} }
...@@ -1345,7 +1345,7 @@ BOOL WINAPI GetFileName31W( ...@@ -1345,7 +1345,7 @@ BOOL WINAPI GetFileName31W(
/*********************************************************************** /***********************************************************************
* FileOpenDlgProc (COMMDLG.6) * FileOpenDlgProc (COMMDLG.6)
*/ */
LRESULT WINAPI FileOpenDlgProc16(HWND16 hWnd16, UINT16 wMsg, WPARAM16 wParam, BOOL16 CALLBACK FileOpenDlgProc16(HWND16 hWnd16, UINT16 wMsg, WPARAM16 wParam,
LPARAM lParam) LPARAM lParam)
{ {
HWND hWnd = HWND_32(hWnd16); HWND hWnd = HWND_32(hWnd16);
...@@ -1394,7 +1394,7 @@ LRESULT WINAPI FileOpenDlgProc16(HWND16 hWnd16, UINT16 wMsg, WPARAM16 wParam, ...@@ -1394,7 +1394,7 @@ LRESULT WINAPI FileOpenDlgProc16(HWND16 hWnd16, UINT16 wMsg, WPARAM16 wParam,
/*********************************************************************** /***********************************************************************
* FileSaveDlgProc (COMMDLG.7) * FileSaveDlgProc (COMMDLG.7)
*/ */
LRESULT WINAPI FileSaveDlgProc16(HWND16 hWnd16, UINT16 wMsg, WPARAM16 wParam, BOOL16 CALLBACK FileSaveDlgProc16(HWND16 hWnd16, UINT16 wMsg, WPARAM16 wParam,
LPARAM lParam) LPARAM lParam)
{ {
HWND hWnd = HWND_32(hWnd16); HWND hWnd = HWND_32(hWnd16);
...@@ -1446,7 +1446,7 @@ LRESULT WINAPI FileSaveDlgProc16(HWND16 hWnd16, UINT16 wMsg, WPARAM16 wParam, ...@@ -1446,7 +1446,7 @@ LRESULT WINAPI FileSaveDlgProc16(HWND16 hWnd16, UINT16 wMsg, WPARAM16 wParam,
* FileOpenDlgProc [internal] * FileOpenDlgProc [internal]
* Used for open and save, in fact. * Used for open and save, in fact.
*/ */
static LRESULT WINAPI FileOpenDlgProc(HWND hWnd, UINT wMsg, static INT_PTR CALLBACK FileOpenDlgProc(HWND hWnd, UINT wMsg,
WPARAM wParam, LPARAM lParam) WPARAM wParam, LPARAM lParam)
{ {
LFSPRIVATE lfs = (LFSPRIVATE)GetPropA(hWnd,OFN_PROP); LFSPRIVATE lfs = (LFSPRIVATE)GetPropA(hWnd,OFN_PROP);
...@@ -1454,8 +1454,8 @@ static LRESULT WINAPI FileOpenDlgProc(HWND hWnd, UINT wMsg, ...@@ -1454,8 +1454,8 @@ static LRESULT WINAPI FileOpenDlgProc(HWND hWnd, UINT wMsg,
TRACE("msg=%x wparam=%x lParam=%lx\n", wMsg, wParam, lParam); TRACE("msg=%x wparam=%x lParam=%lx\n", wMsg, wParam, lParam);
if ((wMsg != WM_INITDIALOG) && lfs && lfs->hook) if ((wMsg != WM_INITDIALOG) && lfs && lfs->hook)
{ {
LRESULT lRet; INT_PTR lRet;
lRet = (BOOL)FILEDLG_CallWindowProc(lfs, wMsg, wParam, lParam); lRet = (INT_PTR)FILEDLG_CallWindowProc(lfs, wMsg, wParam, lParam);
if (lRet) if (lRet)
return lRet; /* else continue message processing */ return lRet; /* else continue message processing */
} }
...@@ -1522,7 +1522,7 @@ BOOL16 WINAPI GetOpenFileName16( ...@@ -1522,7 +1522,7 @@ BOOL16 WINAPI GetOpenFileName16(
hInst = GetWindowLongA( HWND_32(lpofn->hwndOwner), GWL_HINSTANCE ); hInst = GetWindowLongA( HWND_32(lpofn->hwndOwner), GWL_HINSTANCE );
ptr = GetProcAddress16(GetModuleHandle16("COMMDLG"), (LPCSTR) 6); ptr = GetProcAddress16(GetModuleHandle16("COMMDLG"), (LPCSTR) 6);
bRet = DialogBoxIndirectParam16( hInst, lfs->hDlgTmpl16, lpofn->hwndOwner, bRet = DialogBoxIndirectParam16( hInst, lfs->hDlgTmpl16, lpofn->hwndOwner,
(DLGPROC16) ptr, (DWORD) lfs); (DLGPROC16) ptr, (LPARAM) lfs);
FILEDLG_DestroyPrivate(lfs); FILEDLG_DestroyPrivate(lfs);
} }
...@@ -1560,7 +1560,7 @@ BOOL16 WINAPI GetSaveFileName16( ...@@ -1560,7 +1560,7 @@ BOOL16 WINAPI GetSaveFileName16(
hInst = GetWindowLongA( HWND_32(lpofn->hwndOwner), GWL_HINSTANCE ); hInst = GetWindowLongA( HWND_32(lpofn->hwndOwner), GWL_HINSTANCE );
ptr = GetProcAddress16(GetModuleHandle16("COMMDLG"), (LPCSTR) 7); ptr = GetProcAddress16(GetModuleHandle16("COMMDLG"), (LPCSTR) 7);
bRet = DialogBoxIndirectParam16( hInst, lfs->hDlgTmpl16, lpofn->hwndOwner, bRet = DialogBoxIndirectParam16( hInst, lfs->hDlgTmpl16, lpofn->hwndOwner,
(DLGPROC16) ptr, (DWORD) lfs); (DLGPROC16) ptr, (LPARAM) lfs);
FILEDLG_DestroyPrivate(lfs); FILEDLG_DestroyPrivate(lfs);
} }
......
...@@ -213,7 +213,7 @@ static void *MemAlloc(UINT size); ...@@ -213,7 +213,7 @@ static void *MemAlloc(UINT size);
static void MemFree(void *mem); static void MemFree(void *mem);
BOOL WINAPI GetFileName95(FileOpenDlgInfos *fodInfos); BOOL WINAPI GetFileName95(FileOpenDlgInfos *fodInfos);
HRESULT WINAPI FileOpenDlgProc95(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam); INT_PTR CALLBACK FileOpenDlgProc95(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
HRESULT SendCustomDlgNotificationMessage(HWND hwndParentDlg, UINT uCode); HRESULT SendCustomDlgNotificationMessage(HWND hwndParentDlg, UINT uCode);
HRESULT FILEDLG95_HandleCustomDialogMessages(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam); HRESULT FILEDLG95_HandleCustomDialogMessages(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam);
BOOL FILEDLG95_OnOpenMultipleFiles(HWND hwnd, LPWSTR lpstrFileList, UINT nFileCount, UINT sizeUsed); BOOL FILEDLG95_OnOpenMultipleFiles(HWND hwnd, LPWSTR lpstrFileList, UINT nFileCount, UINT sizeUsed);
...@@ -284,7 +284,7 @@ BOOL WINAPI GetFileName95(FileOpenDlgInfos *fodInfos) ...@@ -284,7 +284,7 @@ BOOL WINAPI GetFileName95(FileOpenDlgInfos *fodInfos)
lRes = DialogBoxIndirectParamA(COMMDLG_hInstance32, lRes = DialogBoxIndirectParamA(COMMDLG_hInstance32,
(LPDLGTEMPLATEA) template, (LPDLGTEMPLATEA) template,
fodInfos->ofnInfos->hwndOwner, fodInfos->ofnInfos->hwndOwner,
(DLGPROC) FileOpenDlgProc95, FileOpenDlgProc95,
(LPARAM) fodInfos); (LPARAM) fodInfos);
/* Unable to create the dialog */ /* Unable to create the dialog */
...@@ -642,7 +642,7 @@ void ArrangeCtrlPositions( HWND hwndChildDlg, HWND hwndParentDlg) ...@@ -642,7 +642,7 @@ void ArrangeCtrlPositions( HWND hwndChildDlg, HWND hwndParentDlg)
} }
HRESULT WINAPI FileOpenDlgProcUserTemplate(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) INT_PTR CALLBACK FileOpenDlgProcUserTemplate(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{ {
FileOpenDlgInfos *fodInfos = (FileOpenDlgInfos *) GetPropA(GetParent(hwnd),FileOpenDlgInfosStr); FileOpenDlgInfos *fodInfos = (FileOpenDlgInfos *) GetPropA(GetParent(hwnd),FileOpenDlgInfosStr);
...@@ -729,7 +729,7 @@ HWND CreateTemplateDialog(FileOpenDlgInfos *fodInfos, HWND hwnd) ...@@ -729,7 +729,7 @@ HWND CreateTemplateDialog(FileOpenDlgInfos *fodInfos, HWND hwnd)
} }
hChildDlg= CreateDialogIndirectParamA(hinst, template, hChildDlg= CreateDialogIndirectParamA(hinst, template,
hwnd,(DLGPROC)FileOpenDlgProcUserTemplate,(LPARAM)fodInfos); hwnd, FileOpenDlgProcUserTemplate, (LPARAM)fodInfos);
if(hChildDlg) if(hChildDlg)
{ {
ShowWindow(hChildDlg,SW_SHOW); ShowWindow(hChildDlg,SW_SHOW);
...@@ -752,8 +752,8 @@ HWND CreateTemplateDialog(FileOpenDlgInfos *fodInfos, HWND hwnd) ...@@ -752,8 +752,8 @@ HWND CreateTemplateDialog(FileOpenDlgInfos *fodInfos, HWND hwnd)
temp.tmplate.cx = rectHwnd.right-rectHwnd.left; temp.tmplate.cx = rectHwnd.right-rectHwnd.left;
temp.tmplate.cy = rectHwnd.bottom-rectHwnd.top; temp.tmplate.cy = rectHwnd.bottom-rectHwnd.top;
temp.menu = temp.class = temp.title = 0; temp.menu = temp.class = temp.title = 0;
hChildDlg = CreateDialogIndirectParamA(fodInfos->ofnInfos->hInstance,&temp, hChildDlg = CreateDialogIndirectParamA(fodInfos->ofnInfos->hInstance,&temp.tmplate,
hwnd,(DLGPROC)FileOpenDlgProcUserTemplate,(LPARAM)fodInfos); hwnd, FileOpenDlgProcUserTemplate, (LPARAM)fodInfos);
return hChildDlg; return hChildDlg;
} }
return (HWND)NULL; return (HWND)NULL;
...@@ -858,7 +858,7 @@ HRESULT FILEDLG95_HandleCustomDialogMessages(HWND hwnd, UINT uMsg, WPARAM wParam ...@@ -858,7 +858,7 @@ HRESULT FILEDLG95_HandleCustomDialogMessages(HWND hwnd, UINT uMsg, WPARAM wParam
* *
* File open dialog procedure * File open dialog procedure
*/ */
HRESULT WINAPI FileOpenDlgProc95(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam) INT_PTR CALLBACK FileOpenDlgProc95(HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{ {
#if 0 #if 0
TRACE("0x%04x 0x%04x\n", hwnd, uMsg); TRACE("0x%04x 0x%04x\n", hwnd, uMsg);
......
...@@ -45,9 +45,9 @@ struct FRPRIVATE ...@@ -45,9 +45,9 @@ struct FRPRIVATE
#define LFRPRIVATE struct FRPRIVATE * #define LFRPRIVATE struct FRPRIVATE *
LRESULT WINAPI FindTextDlgProc16(HWND16 hWnd, UINT16 wMsg, WPARAM16 wParam, BOOL16 CALLBACK FindTextDlgProc16(HWND16 hWnd, UINT16 wMsg, WPARAM16 wParam,
LPARAM lParam); LPARAM lParam);
LRESULT WINAPI ReplaceTextDlgProc16(HWND16 hWnd, UINT16 wMsg, WPARAM16 wParam, BOOL16 CALLBACK ReplaceTextDlgProc16(HWND16 hWnd, UINT16 wMsg, WPARAM16 wParam,
LPARAM lParam); LPARAM lParam);
/*********************************************************************** /***********************************************************************
...@@ -312,7 +312,7 @@ static LRESULT FINDDLG_WMCommand(HWND hWnd, WPARAM wParam, ...@@ -312,7 +312,7 @@ static LRESULT FINDDLG_WMCommand(HWND hWnd, WPARAM wParam,
/*********************************************************************** /***********************************************************************
* FindTextDlgProc (COMMDLG.13) * FindTextDlgProc (COMMDLG.13)
*/ */
LRESULT WINAPI FindTextDlgProc16(HWND16 hWnd16, UINT16 wMsg, WPARAM16 wParam, BOOL16 CALLBACK FindTextDlgProc16(HWND16 hWnd16, UINT16 wMsg, WPARAM16 wParam,
LPARAM lParam) LPARAM lParam)
{ {
HWND hWnd = HWND_32(hWnd16); HWND hWnd = HWND_32(hWnd16);
...@@ -469,7 +469,7 @@ static LRESULT REPLACEDLG_WMCommand(HWND hWnd, WPARAM16 wParam, ...@@ -469,7 +469,7 @@ static LRESULT REPLACEDLG_WMCommand(HWND hWnd, WPARAM16 wParam,
/*********************************************************************** /***********************************************************************
* ReplaceTextDlgProc (COMMDLG.14) * ReplaceTextDlgProc (COMMDLG.14)
*/ */
LRESULT WINAPI ReplaceTextDlgProc16(HWND16 hWnd16, UINT16 wMsg, WPARAM16 wParam, BOOL16 CALLBACK ReplaceTextDlgProc16(HWND16 hWnd16, UINT16 wMsg, WPARAM16 wParam,
LPARAM lParam) LPARAM lParam)
{ {
HWND hWnd = HWND_32(hWnd16); HWND hWnd = HWND_32(hWnd16);
......
...@@ -172,10 +172,10 @@ Replace: ...@@ -172,10 +172,10 @@ Replace:
* COMDLG32_FindReplaceDlgProc [internal] * COMDLG32_FindReplaceDlgProc [internal]
* [Find/Replace]Text32[A/W] window procedure. * [Find/Replace]Text32[A/W] window procedure.
*/ */
static BOOL CALLBACK COMDLG32_FindReplaceDlgProc(HWND hDlgWnd, UINT iMsg, WPARAM wParam, LPARAM lParam) static INT_PTR CALLBACK COMDLG32_FindReplaceDlgProc(HWND hDlgWnd, UINT iMsg, WPARAM wParam, LPARAM lParam)
{ {
COMDLG32_FR_Data *pdata = (COMDLG32_FR_Data *)GetPropA(hDlgWnd, (LPSTR)COMDLG32_Atom); COMDLG32_FR_Data *pdata = (COMDLG32_FR_Data *)GetPropA(hDlgWnd, (LPSTR)COMDLG32_Atom);
BOOL retval = TRUE; INT_PTR retval = TRUE;
if(iMsg == WM_INITDIALOG) if(iMsg == WM_INITDIALOG)
{ {
...@@ -425,7 +425,7 @@ static HWND COMDLG32_FR_DoFindReplace( ...@@ -425,7 +425,7 @@ static HWND COMDLG32_FR_DoFindReplace(
hdlgwnd = CreateDialogIndirectParamA(COMDLG32_hInstance, hdlgwnd = CreateDialogIndirectParamA(COMDLG32_hInstance,
rcs, rcs,
pdata->fr.hwndOwner, pdata->fr.hwndOwner,
(DLGPROC)COMDLG32_FindReplaceDlgProc, COMDLG32_FindReplaceDlgProc,
(LPARAM)pdata); (LPARAM)pdata);
if(!hdlgwnd) if(!hdlgwnd)
{ {
...@@ -554,5 +554,3 @@ HWND WINAPI ReplaceTextW( ...@@ -554,5 +554,3 @@ HWND WINAPI ReplaceTextW(
pdata->fr.lpstrReplaceWith, len2, NULL, NULL ); pdata->fr.lpstrReplaceWith, len2, NULL, NULL );
return COMDLG32_FR_DoFindReplace(pdata); return COMDLG32_FR_DoFindReplace(pdata);
} }
...@@ -42,11 +42,11 @@ WINE_DEFAULT_DEBUG_CHANNEL(commdlg); ...@@ -42,11 +42,11 @@ WINE_DEFAULT_DEBUG_CHANNEL(commdlg);
static HBITMAP16 hBitmapTT = 0; static HBITMAP16 hBitmapTT = 0;
LRESULT WINAPI FormatCharDlgProcA(HWND hDlg, UINT uMsg, WPARAM wParam, INT_PTR CALLBACK FormatCharDlgProcA(HWND hDlg, UINT uMsg, WPARAM wParam,
LPARAM lParam); LPARAM lParam);
LRESULT WINAPI FormatCharDlgProcW(HWND hDlg, UINT uMsg, WPARAM wParam, INT_PTR CALLBACK FormatCharDlgProcW(HWND hDlg, UINT uMsg, WPARAM wParam,
LPARAM lParam); LPARAM lParam);
LRESULT WINAPI FormatCharDlgProc16(HWND16 hDlg, UINT16 message, WPARAM16 wParam, BOOL16 CALLBACK FormatCharDlgProc16(HWND16 hDlg, UINT16 message, WPARAM16 wParam,
LPARAM lParam); LPARAM lParam);
static void FONT_LogFont16To32A( const LPLOGFONT16 font16, LPLOGFONTA font32 ) static void FONT_LogFont16To32A( const LPLOGFONT16 font16, LPLOGFONTA font32 )
...@@ -281,7 +281,7 @@ BOOL WINAPI ChooseFontA(LPCHOOSEFONTA lpChFont) ...@@ -281,7 +281,7 @@ BOOL WINAPI ChooseFontA(LPCHOOSEFONTA lpChFont)
if (lpChFont->Flags & (CF_SELECTSCRIPT | CF_NOVERTFONTS | CF_ENABLETEMPLATE | if (lpChFont->Flags & (CF_SELECTSCRIPT | CF_NOVERTFONTS | CF_ENABLETEMPLATE |
CF_ENABLETEMPLATEHANDLE)) FIXME(": unimplemented flag (ignored)\n"); CF_ENABLETEMPLATEHANDLE)) FIXME(": unimplemented flag (ignored)\n");
return DialogBoxIndirectParamA(COMMDLG_hInstance32, template, return DialogBoxIndirectParamA(COMMDLG_hInstance32, template,
lpChFont->hwndOwner, (DLGPROC)FormatCharDlgProcA, (LPARAM)lpChFont ); lpChFont->hwndOwner, FormatCharDlgProcA, (LPARAM)lpChFont );
} }
/*********************************************************************** /***********************************************************************
...@@ -433,7 +433,7 @@ BOOL WINAPI ChooseFontW(LPCHOOSEFONTW lpChFont) ...@@ -433,7 +433,7 @@ BOOL WINAPI ChooseFontW(LPCHOOSEFONTW lpChFont)
cf32a.lpszStyle=HEAP_strdupWtoA(GetProcessHeap(), 0, lpChFont->lpszStyle); cf32a.lpszStyle=HEAP_strdupWtoA(GetProcessHeap(), 0, lpChFont->lpszStyle);
lpChFont->lpTemplateName=(LPWSTR)&cf32a; lpChFont->lpTemplateName=(LPWSTR)&cf32a;
bRet = DialogBoxIndirectParamW(COMMDLG_hInstance32, template, bRet = DialogBoxIndirectParamW(COMMDLG_hInstance32, template,
lpChFont->hwndOwner, (DLGPROC)FormatCharDlgProcW, (LPARAM)lpChFont ); lpChFont->hwndOwner, FormatCharDlgProcW, (LPARAM)lpChFont );
HeapFree(GetProcessHeap(), 0, cf32a.lpszStyle); HeapFree(GetProcessHeap(), 0, cf32a.lpszStyle);
lpChFont->lpTemplateName=(LPWSTR)cf32a.lpTemplateName; lpChFont->lpTemplateName=(LPWSTR)cf32a.lpTemplateName;
memcpy(lpChFont->lpLogFont, &lf32a, sizeof(CHOOSEFONTA)); memcpy(lpChFont->lpLogFont, &lf32a, sizeof(CHOOSEFONTA));
...@@ -1120,13 +1120,13 @@ static LRESULT CFn_WMDestroy(HWND hwnd, WPARAM wParam, LPARAM lParam) ...@@ -1120,13 +1120,13 @@ static LRESULT CFn_WMDestroy(HWND hwnd, WPARAM wParam, LPARAM lParam)
2. some CF_.. flags are not supported 2. some CF_.. flags are not supported
3. some TType extensions 3. some TType extensions
*/ */
LRESULT WINAPI FormatCharDlgProc16(HWND16 hDlg16, UINT16 message, BOOL16 CALLBACK FormatCharDlgProc16(HWND16 hDlg16, UINT16 message,
WPARAM16 wParam, LPARAM lParam) WPARAM16 wParam, LPARAM lParam)
{ {
HWND hDlg = HWND_32(hDlg16); HWND hDlg = HWND_32(hDlg16);
LPCHOOSEFONT16 lpcf; LPCHOOSEFONT16 lpcf;
LPCHOOSEFONTA lpcf32a; LPCHOOSEFONTA lpcf32a;
LRESULT res=0; BOOL16 res=0;
if (message!=WM_INITDIALOG) if (message!=WM_INITDIALOG)
{ {
lpcf=(LPCHOOSEFONT16)GetWindowLongA(hDlg, DWL_USER); lpcf=(LPCHOOSEFONT16)GetWindowLongA(hDlg, DWL_USER);
...@@ -1204,11 +1204,11 @@ LRESULT WINAPI FormatCharDlgProc16(HWND16 hDlg16, UINT16 message, ...@@ -1204,11 +1204,11 @@ LRESULT WINAPI FormatCharDlgProc16(HWND16 hDlg16, UINT16 message,
/*********************************************************************** /***********************************************************************
* FormatCharDlgProcA [internal] * FormatCharDlgProcA [internal]
*/ */
LRESULT WINAPI FormatCharDlgProcA(HWND hDlg, UINT uMsg, WPARAM wParam, INT_PTR CALLBACK FormatCharDlgProcA(HWND hDlg, UINT uMsg, WPARAM wParam,
LPARAM lParam) LPARAM lParam)
{ {
LPCHOOSEFONTA lpcf; LPCHOOSEFONTA lpcf;
LRESULT res=FALSE; INT_PTR res = FALSE;
if (uMsg!=WM_INITDIALOG) if (uMsg!=WM_INITDIALOG)
{ {
lpcf=(LPCHOOSEFONTA)GetWindowLongA(hDlg, DWL_USER); lpcf=(LPCHOOSEFONTA)GetWindowLongA(hDlg, DWL_USER);
...@@ -1254,12 +1254,12 @@ LRESULT WINAPI FormatCharDlgProcA(HWND hDlg, UINT uMsg, WPARAM wParam, ...@@ -1254,12 +1254,12 @@ LRESULT WINAPI FormatCharDlgProcA(HWND hDlg, UINT uMsg, WPARAM wParam,
/*********************************************************************** /***********************************************************************
* FormatCharDlgProcW [internal] * FormatCharDlgProcW [internal]
*/ */
LRESULT WINAPI FormatCharDlgProcW(HWND hDlg, UINT uMsg, WPARAM wParam, INT_PTR CALLBACK FormatCharDlgProcW(HWND hDlg, UINT uMsg, WPARAM wParam,
LPARAM lParam) LPARAM lParam)
{ {
LPCHOOSEFONTW lpcf32w; LPCHOOSEFONTW lpcf32w;
LPCHOOSEFONTA lpcf32a; LPCHOOSEFONTA lpcf32a;
LRESULT res=FALSE; INT_PTR res = FALSE;
if (uMsg!=WM_INITDIALOG) if (uMsg!=WM_INITDIALOG)
{ {
lpcf32w=(LPCHOOSEFONTW)GetWindowLongA(hDlg, DWL_USER); lpcf32w=(LPCHOOSEFONTW)GetWindowLongA(hDlg, DWL_USER);
......
...@@ -2002,11 +2002,11 @@ static LRESULT PRINTDLG_WMCommandW(HWND hDlg, WPARAM wParam, ...@@ -2002,11 +2002,11 @@ static LRESULT PRINTDLG_WMCommandW(HWND hDlg, WPARAM wParam,
/*********************************************************************** /***********************************************************************
* PrintDlgProcA [internal] * PrintDlgProcA [internal]
*/ */
BOOL WINAPI PrintDlgProcA(HWND hDlg, UINT uMsg, WPARAM wParam, INT_PTR CALLBACK PrintDlgProcA(HWND hDlg, UINT uMsg, WPARAM wParam,
LPARAM lParam) LPARAM lParam)
{ {
PRINT_PTRA* PrintStructures; PRINT_PTRA* PrintStructures;
LRESULT res=FALSE; INT_PTR res = FALSE;
if (uMsg!=WM_INITDIALOG) { if (uMsg!=WM_INITDIALOG) {
PrintStructures = (PRINT_PTRA*)GetPropA(hDlg,"__WINE_PRINTDLGDATA"); PrintStructures = (PRINT_PTRA*)GetPropA(hDlg,"__WINE_PRINTDLGDATA");
...@@ -2046,11 +2046,11 @@ BOOL WINAPI PrintDlgProcA(HWND hDlg, UINT uMsg, WPARAM wParam, ...@@ -2046,11 +2046,11 @@ BOOL WINAPI PrintDlgProcA(HWND hDlg, UINT uMsg, WPARAM wParam,
return res; return res;
} }
BOOL WINAPI PrintDlgProcW(HWND hDlg, UINT uMsg, WPARAM wParam, INT_PTR CALLBACK PrintDlgProcW(HWND hDlg, UINT uMsg, WPARAM wParam,
LPARAM lParam) LPARAM lParam)
{ {
PRINT_PTRW* PrintStructures; PRINT_PTRW* PrintStructures;
LRESULT res=FALSE; INT_PTR res = FALSE;
if (uMsg!=WM_INITDIALOG) { if (uMsg!=WM_INITDIALOG) {
PrintStructures = (PRINT_PTRW*) GetWindowLongA(hDlg, DWL_USER); PrintStructures = (PRINT_PTRW*) GetWindowLongA(hDlg, DWL_USER);
...@@ -3163,11 +3163,11 @@ PRINTDLG_PS_WMCommandW( ...@@ -3163,11 +3163,11 @@ PRINTDLG_PS_WMCommandW(
} }
static BOOL WINAPI static INT_PTR CALLBACK
PageDlgProcA(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) PageDlgProcA(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
{ {
PageSetupDataA *pda; PageSetupDataA *pda;
BOOL res = FALSE; INT_PTR res = FALSE;
if (uMsg==WM_INITDIALOG) { if (uMsg==WM_INITDIALOG) {
res = TRUE; res = TRUE;
...@@ -3245,7 +3245,7 @@ PageDlgProcA(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) ...@@ -3245,7 +3245,7 @@ PageDlgProcA(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
return FALSE; return FALSE;
} }
static BOOL WINAPI static INT_PTR CALLBACK
PageDlgProcW(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam) PageDlgProcW(HWND hDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
{ {
PageSetupDataW *pda; PageSetupDataW *pda;
...@@ -3469,12 +3469,12 @@ BOOL WINAPI PageSetupDlgW(LPPAGESETUPDLGW setupdlg) { ...@@ -3469,12 +3469,12 @@ BOOL WINAPI PageSetupDlgW(LPPAGESETUPDLGW setupdlg) {
/*********************************************************************** /***********************************************************************
* PrintDlgProc (COMMDLG.21) * PrintDlgProc (COMMDLG.21)
*/ */
LRESULT WINAPI PrintDlgProc16(HWND16 hDlg16, UINT16 uMsg, WPARAM16 wParam, BOOL16 CALLBACK PrintDlgProc16(HWND16 hDlg16, UINT16 uMsg, WPARAM16 wParam,
LPARAM lParam) LPARAM lParam)
{ {
HWND hDlg = HWND_32(hDlg16); HWND hDlg = HWND_32(hDlg16);
PRINT_PTRA* PrintStructures; PRINT_PTRA* PrintStructures;
LRESULT res=FALSE; BOOL16 res = FALSE;
if (uMsg!=WM_INITDIALOG) { if (uMsg!=WM_INITDIALOG) {
PrintStructures = (PRINT_PTRA*)GetPropA(hDlg,"__WINE_PRINTDLGDATA"); PrintStructures = (PRINT_PTRA*)GetPropA(hDlg,"__WINE_PRINTDLGDATA");
...@@ -3528,7 +3528,7 @@ LRESULT WINAPI PrintDlgProc16(HWND16 hDlg16, UINT16 uMsg, WPARAM16 wParam, ...@@ -3528,7 +3528,7 @@ LRESULT WINAPI PrintDlgProc16(HWND16 hDlg16, UINT16 uMsg, WPARAM16 wParam,
/*********************************************************************** /***********************************************************************
* PrintSetupDlgProc (COMMDLG.22) * PrintSetupDlgProc (COMMDLG.22)
*/ */
LRESULT WINAPI PrintSetupDlgProc16(HWND16 hWnd16, UINT16 wMsg, WPARAM16 wParam, BOOL16 CALLBACK PrintSetupDlgProc16(HWND16 hWnd16, UINT16 wMsg, WPARAM16 wParam,
LPARAM lParam) LPARAM lParam)
{ {
HWND hWnd = HWND_32(hWnd16); HWND hWnd = HWND_32(hWnd16);
......
...@@ -193,7 +193,7 @@ static MMRESULT MSACM_GetWFX(HWND hWnd, PACMFORMATCHOOSEA afc) ...@@ -193,7 +193,7 @@ static MMRESULT MSACM_GetWFX(HWND hWnd, PACMFORMATCHOOSEA afc)
return affd.ret; return affd.ret;
} }
static BOOL WINAPI FormatChooseDlgProc(HWND hWnd, UINT msg, static INT_PTR CALLBACK FormatChooseDlgProc(HWND hWnd, UINT msg,
WPARAM wParam, LPARAM lParam) WPARAM wParam, LPARAM lParam)
{ {
......
...@@ -338,7 +338,7 @@ static void SERIALUI_DialogInfoToDCB(HWND hDlg, SERIALUI_DialogInfo *info) ...@@ -338,7 +338,7 @@ static void SERIALUI_DialogInfoToDCB(HWND hDlg, SERIALUI_DialogInfo *info)
* *
* Shows a dialog for configuring a COMM port * Shows a dialog for configuring a COMM port
*/ */
BOOL WINAPI SERIALUI_ConfigDialogProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam) INT_PTR CALLBACK SERIALUI_ConfigDialogProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lParam)
{ {
CHAR szTitle[30]; CHAR szTitle[30];
SERIALUI_DialogInfo *info; SERIALUI_DialogInfo *info;
...@@ -423,7 +423,7 @@ BOOL WINAPI SERIALUI_CommConfigDialog( ...@@ -423,7 +423,7 @@ BOOL WINAPI SERIALUI_CommConfigDialog(
return DialogBoxParamA(SERIALUI_hModule, return DialogBoxParamA(SERIALUI_hModule,
MAKEINTRESOURCEA(IDD_SERIALUICONFIG), MAKEINTRESOURCEA(IDD_SERIALUICONFIG),
hWndParent, hWndParent,
(DLGPROC) SERIALUI_ConfigDialogProc, SERIALUI_ConfigDialogProc,
(LPARAM)&info); (LPARAM)&info);
} }
......
...@@ -579,9 +579,9 @@ static HWND hDlgCopy = 0; ...@@ -579,9 +579,9 @@ static HWND hDlgCopy = 0;
static HKEY hKeyFiles = 0, hKeyRename = 0, hKeyConflict = 0; static HKEY hKeyFiles = 0, hKeyRename = 0, hKeyConflict = 0;
static char BackupDir[12]; static char BackupDir[12];
static BOOL CALLBACK VCP_UI_FileCopyDlgProc(HWND hWndDlg, UINT iMsg, WPARAM wParam, LPARAM lParam) static INT_PTR CALLBACK VCP_UI_FileCopyDlgProc(HWND hWndDlg, UINT iMsg, WPARAM wParam, LPARAM lParam)
{ {
BOOL retval = FALSE; INT_PTR retval = FALSE;
if (iMsg == WM_INITDIALOG) if (iMsg == WM_INITDIALOG)
{ {
......
...@@ -254,7 +254,7 @@ static LRESULT MsgNotify(HWND hWnd, UINT CtlID, LPNMHDR lpnmh) ...@@ -254,7 +254,7 @@ static LRESULT MsgNotify(HWND hWnd, UINT CtlID, LPNMHDR lpnmh)
/************************************************************************* /*************************************************************************
* BrsFolderDlgProc32 (not an exported API function) * BrsFolderDlgProc32 (not an exported API function)
*/ */
static BOOL WINAPI BrsFolderDlgProc( HWND hWnd, UINT msg, WPARAM wParam, static INT_PTR CALLBACK BrsFolderDlgProc( HWND hWnd, UINT msg, WPARAM wParam,
LPARAM lParam ) LPARAM lParam )
{ {
TRACE("hwnd=%08x msg=%04x 0x%08x 0x%08lx\n", hWnd, msg, wParam, lParam ); TRACE("hwnd=%08x msg=%04x 0x%08x 0x%08lx\n", hWnd, msg, wParam, lParam );
......
...@@ -46,7 +46,7 @@ typedef struct ...@@ -46,7 +46,7 @@ typedef struct
typedef BOOL (*LPFNOFN) (OPENFILENAMEA *) ; typedef BOOL (*LPFNOFN) (OPENFILENAMEA *) ;
WINE_DEFAULT_DEBUG_CHANNEL(shell); WINE_DEFAULT_DEBUG_CHANNEL(shell);
BOOL CALLBACK RunDlgProc (HWND, UINT, WPARAM, LPARAM) ; INT_PTR CALLBACK RunDlgProc (HWND, UINT, WPARAM, LPARAM) ;
void FillList (HWND, char *) ; void FillList (HWND, char *) ;
...@@ -109,7 +109,7 @@ void WINAPI RunFileDlg( ...@@ -109,7 +109,7 @@ void WINAPI RunFileDlg(
} }
/* Dialog procedure for RunFileDlg */ /* Dialog procedure for RunFileDlg */
BOOL CALLBACK RunDlgProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam) INT_PTR CALLBACK RunDlgProc (HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
{ {
int ic ; int ic ;
char *psz, szMsg[256] ; char *psz, szMsg[256] ;
......
...@@ -677,7 +677,7 @@ DWORD WINAPI SHLoadInProc (REFCLSID rclsid) ...@@ -677,7 +677,7 @@ DWORD WINAPI SHLoadInProc (REFCLSID rclsid)
/************************************************************************* /*************************************************************************
* AboutDlgProc (internal) * AboutDlgProc (internal)
*/ */
BOOL WINAPI AboutDlgProc( HWND hWnd, UINT msg, WPARAM wParam, INT_PTR CALLBACK AboutDlgProc( HWND hWnd, UINT msg, WPARAM wParam,
LPARAM lParam ) LPARAM lParam )
{ HWND hWndCtl; { HWND hWndCtl;
char Template[512], AppTitle[512]; char Template[512], AppTitle[512];
......
...@@ -63,7 +63,7 @@ BOOL HCR_GetDefaultIcon (LPCSTR szClass, LPSTR szDest, DWORD len, LPDWORD dwNr); ...@@ -63,7 +63,7 @@ BOOL HCR_GetDefaultIcon (LPCSTR szClass, LPSTR szDest, DWORD len, LPDWORD dwNr);
BOOL HCR_GetClassName (REFIID riid, LPSTR szDest, DWORD len); BOOL HCR_GetClassName (REFIID riid, LPSTR szDest, DWORD len);
BOOL HCR_GetFolderAttributes (REFIID riid, LPDWORD szDest); BOOL HCR_GetFolderAttributes (REFIID riid, LPDWORD szDest);
BOOL WINAPI AboutDlgProc(HWND,UINT,WPARAM,LPARAM); INT_PTR CALLBACK AboutDlgProc(HWND,UINT,WPARAM,LPARAM);
DWORD WINAPI ParseFieldA(LPCSTR src,DWORD field,LPSTR dst,DWORD len); DWORD WINAPI ParseFieldA(LPCSTR src,DWORD field,LPSTR dst,DWORD len);
/**************************************************************************** /****************************************************************************
......
...@@ -1705,7 +1705,7 @@ static LRESULT send_inter_thread_message( DWORD dest_tid, const struct send_mess ...@@ -1705,7 +1705,7 @@ static LRESULT send_inter_thread_message( DWORD dest_tid, const struct send_mess
* SendMessageTimeoutW (USER32.@) * SendMessageTimeoutW (USER32.@)
*/ */
LRESULT WINAPI SendMessageTimeoutW( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam, LRESULT WINAPI SendMessageTimeoutW( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam,
UINT flags, UINT timeout, LPDWORD res_ptr ) UINT flags, UINT timeout, PDWORD_PTR res_ptr )
{ {
struct send_message_info info; struct send_message_info info;
DWORD dest_tid, dest_pid; DWORD dest_tid, dest_pid;
...@@ -1753,7 +1753,7 @@ LRESULT WINAPI SendMessageTimeoutW( HWND hwnd, UINT msg, WPARAM wparam, LPARAM l ...@@ -1753,7 +1753,7 @@ LRESULT WINAPI SendMessageTimeoutW( HWND hwnd, UINT msg, WPARAM wparam, LPARAM l
* SendMessageTimeoutA (USER32.@) * SendMessageTimeoutA (USER32.@)
*/ */
LRESULT WINAPI SendMessageTimeoutA( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam, LRESULT WINAPI SendMessageTimeoutA( HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam,
UINT flags, UINT timeout, LPDWORD res_ptr ) UINT flags, UINT timeout, PDWORD_PTR res_ptr )
{ {
struct send_message_info info; struct send_message_info info;
DWORD dest_tid, dest_pid; DWORD dest_tid, dest_pid;
......
...@@ -188,7 +188,7 @@ WORD WINAPI PSDRV_AdvancedSetupDialog16(HWND16 hwnd, HANDLE16 hDriver, ...@@ -188,7 +188,7 @@ WORD WINAPI PSDRV_AdvancedSetupDialog16(HWND16 hwnd, HANDLE16 hDriver,
* *
* Dialog proc for 'Paper' propsheet * Dialog proc for 'Paper' propsheet
*/ */
BOOL WINAPI PSDRV_PaperDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM INT_PTR CALLBACK PSDRV_PaperDlgProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM
lParam) lParam)
{ {
PSDRV_DLGINFO *di; PSDRV_DLGINFO *di;
......
...@@ -686,7 +686,7 @@ static LPCSTR DIALOG_ParseTemplate32( LPCSTR template, DLG_TEMPLATE * result ) ...@@ -686,7 +686,7 @@ static LPCSTR DIALOG_ParseTemplate32( LPCSTR template, DLG_TEMPLATE * result )
* (it's more compatible to do it here, as under Windows the owner * (it's more compatible to do it here, as under Windows the owner
* is never disabled if the dialog fails because of an invalid template) * is never disabled if the dialog fails because of an invalid template)
*/ */
static HWND DIALOG_CreateIndirect( HINSTANCE hInst, LPCSTR dlgTemplate, static HWND DIALOG_CreateIndirect( HINSTANCE hInst, LPCVOID dlgTemplate,
HWND owner, DLGPROC dlgProc, LPARAM param, HWND owner, DLGPROC dlgProc, LPARAM param,
WINDOWPROCTYPE procType, BOOL modal ) WINDOWPROCTYPE procType, BOOL modal )
{ {
...@@ -982,7 +982,7 @@ HWND16 WINAPI CreateDialogIndirectParam16( HINSTANCE16 hInst, ...@@ -982,7 +982,7 @@ HWND16 WINAPI CreateDialogIndirectParam16( HINSTANCE16 hInst,
* CreateDialogIndirectParamA (USER32.@) * CreateDialogIndirectParamA (USER32.@)
*/ */
HWND WINAPI CreateDialogIndirectParamA( HINSTANCE hInst, HWND WINAPI CreateDialogIndirectParamA( HINSTANCE hInst,
LPCVOID dlgTemplate, LPCDLGTEMPLATEA dlgTemplate,
HWND owner, DLGPROC dlgProc, HWND owner, DLGPROC dlgProc,
LPARAM param ) LPARAM param )
{ {
...@@ -1004,7 +1004,7 @@ HWND WINAPI CreateDialogIndirectParamAorW( HINSTANCE hInst, ...@@ -1004,7 +1004,7 @@ HWND WINAPI CreateDialogIndirectParamAorW( HINSTANCE hInst,
* CreateDialogIndirectParamW (USER32.@) * CreateDialogIndirectParamW (USER32.@)
*/ */
HWND WINAPI CreateDialogIndirectParamW( HINSTANCE hInst, HWND WINAPI CreateDialogIndirectParamW( HINSTANCE hInst,
LPCVOID dlgTemplate, LPCDLGTEMPLATEW dlgTemplate,
HWND owner, DLGPROC dlgProc, HWND owner, DLGPROC dlgProc,
LPARAM param ) LPARAM param )
{ {
...@@ -1096,7 +1096,7 @@ INT16 WINAPI DialogBoxParam16( HINSTANCE16 hInst, LPCSTR template, ...@@ -1096,7 +1096,7 @@ INT16 WINAPI DialogBoxParam16( HINSTANCE16 hInst, LPCSTR template,
/*********************************************************************** /***********************************************************************
* DialogBoxParamA (USER32.@) * DialogBoxParamA (USER32.@)
*/ */
INT WINAPI DialogBoxParamA( HINSTANCE hInst, LPCSTR name, INT_PTR WINAPI DialogBoxParamA( HINSTANCE hInst, LPCSTR name,
HWND owner, DLGPROC dlgProc, LPARAM param ) HWND owner, DLGPROC dlgProc, LPARAM param )
{ {
HWND hwnd; HWND hwnd;
...@@ -1112,7 +1112,7 @@ INT WINAPI DialogBoxParamA( HINSTANCE hInst, LPCSTR name, ...@@ -1112,7 +1112,7 @@ INT WINAPI DialogBoxParamA( HINSTANCE hInst, LPCSTR name,
/*********************************************************************** /***********************************************************************
* DialogBoxParamW (USER32.@) * DialogBoxParamW (USER32.@)
*/ */
INT WINAPI DialogBoxParamW( HINSTANCE hInst, LPCWSTR name, INT_PTR WINAPI DialogBoxParamW( HINSTANCE hInst, LPCWSTR name,
HWND owner, DLGPROC dlgProc, LPARAM param ) HWND owner, DLGPROC dlgProc, LPARAM param )
{ {
HWND hwnd; HWND hwnd;
...@@ -1157,7 +1157,7 @@ INT16 WINAPI DialogBoxIndirectParam16( HINSTANCE16 hInst, HANDLE16 dlgTemplate, ...@@ -1157,7 +1157,7 @@ INT16 WINAPI DialogBoxIndirectParam16( HINSTANCE16 hInst, HANDLE16 dlgTemplate,
/*********************************************************************** /***********************************************************************
* DialogBoxIndirectParamA (USER32.@) * DialogBoxIndirectParamA (USER32.@)
*/ */
INT WINAPI DialogBoxIndirectParamA(HINSTANCE hInstance, LPCVOID template, INT_PTR WINAPI DialogBoxIndirectParamA(HINSTANCE hInstance, LPCDLGTEMPLATEA template,
HWND owner, DLGPROC dlgProc, HWND owner, DLGPROC dlgProc,
LPARAM param ) LPARAM param )
{ {
...@@ -1171,7 +1171,7 @@ INT WINAPI DialogBoxIndirectParamA(HINSTANCE hInstance, LPCVOID template, ...@@ -1171,7 +1171,7 @@ INT WINAPI DialogBoxIndirectParamA(HINSTANCE hInstance, LPCVOID template,
/*********************************************************************** /***********************************************************************
* DialogBoxIndirectParamW (USER32.@) * DialogBoxIndirectParamW (USER32.@)
*/ */
INT WINAPI DialogBoxIndirectParamW(HINSTANCE hInstance, LPCVOID template, INT_PTR WINAPI DialogBoxIndirectParamW(HINSTANCE hInstance, LPCDLGTEMPLATEW template,
HWND owner, DLGPROC dlgProc, HWND owner, DLGPROC dlgProc,
LPARAM param ) LPARAM param )
{ {
...@@ -1184,7 +1184,7 @@ INT WINAPI DialogBoxIndirectParamW(HINSTANCE hInstance, LPCVOID template, ...@@ -1184,7 +1184,7 @@ INT WINAPI DialogBoxIndirectParamW(HINSTANCE hInstance, LPCVOID template,
/*********************************************************************** /***********************************************************************
* DialogBoxIndirectParamAorW (USER32.@) * DialogBoxIndirectParamAorW (USER32.@)
*/ */
INT WINAPI DialogBoxIndirectParamAorW(HINSTANCE hInstance, LPCVOID template, INT_PTR WINAPI DialogBoxIndirectParamAorW(HINSTANCE hInstance, LPCVOID template,
HWND owner, DLGPROC dlgProc, HWND owner, DLGPROC dlgProc,
LPARAM param, DWORD x ) LPARAM param, DWORD x )
{ {
...@@ -1199,7 +1199,7 @@ INT WINAPI DialogBoxIndirectParamAorW(HINSTANCE hInstance, LPCVOID template, ...@@ -1199,7 +1199,7 @@ INT WINAPI DialogBoxIndirectParamAorW(HINSTANCE hInstance, LPCVOID template,
/*********************************************************************** /***********************************************************************
* EndDialog (USER32.@) * EndDialog (USER32.@)
*/ */
BOOL WINAPI EndDialog( HWND hwnd, INT retval ) BOOL WINAPI EndDialog( HWND hwnd, INT_PTR retval )
{ {
BOOL wasEnabled = TRUE; BOOL wasEnabled = TRUE;
DIALOGINFO * dlgInfo; DIALOGINFO * dlgInfo;
......
...@@ -347,7 +347,7 @@ UINT WINAPI SendInput( UINT count, LPINPUT inputs, int size ) ...@@ -347,7 +347,7 @@ UINT WINAPI SendInput( UINT count, LPINPUT inputs, int size )
* keybd_event (USER32.@) * keybd_event (USER32.@)
*/ */
void WINAPI keybd_event( BYTE bVk, BYTE bScan, void WINAPI keybd_event( BYTE bVk, BYTE bScan,
DWORD dwFlags, DWORD dwExtraInfo ) DWORD dwFlags, ULONG_PTR dwExtraInfo )
{ {
INPUT input; INPUT input;
...@@ -380,7 +380,7 @@ void WINAPI keybd_event16( CONTEXT86 *context ) ...@@ -380,7 +380,7 @@ void WINAPI keybd_event16( CONTEXT86 *context )
* mouse_event (USER32.@) * mouse_event (USER32.@)
*/ */
void WINAPI mouse_event( DWORD dwFlags, DWORD dx, DWORD dy, void WINAPI mouse_event( DWORD dwFlags, DWORD dx, DWORD dy,
DWORD dwData, DWORD dwExtraInfo ) DWORD dwData, ULONG_PTR dwExtraInfo )
{ {
INPUT input; INPUT input;
......
...@@ -2114,7 +2114,7 @@ TileWindows (HWND hwndParent, UINT wFlags, const LPRECT lpRect, ...@@ -2114,7 +2114,7 @@ TileWindows (HWND hwndParent, UINT wFlags, const LPRECT lpRect,
* *
*/ */
static BOOL WINAPI MDI_MoreWindowsDlgProc (HWND hDlg, UINT iMsg, WPARAM wParam, LPARAM lParam) static INT_PTR WINAPI MDI_MoreWindowsDlgProc (HWND hDlg, UINT iMsg, WPARAM wParam, LPARAM lParam)
{ {
switch (iMsg) switch (iMsg)
{ {
......
...@@ -263,7 +263,7 @@ static HFONT MSGBOX_OnInit(HWND hwnd, LPMSGBOXPARAMSW lpmb) ...@@ -263,7 +263,7 @@ static HFONT MSGBOX_OnInit(HWND hwnd, LPMSGBOXPARAMSW lpmb)
* *
* Dialog procedure for message boxes. * Dialog procedure for message boxes.
*/ */
static BOOL CALLBACK MSGBOX_DlgProc( HWND hwnd, UINT message, static INT_PTR CALLBACK MSGBOX_DlgProc( HWND hwnd, UINT message,
WPARAM wParam, LPARAM lParam ) WPARAM wParam, LPARAM lParam )
{ {
HFONT hFont; HFONT hFont;
......
...@@ -111,7 +111,7 @@ void TIMER_RemoveThreadTimers(void) ...@@ -111,7 +111,7 @@ void TIMER_RemoveThreadTimers(void)
/*********************************************************************** /***********************************************************************
* TIMER_SetTimer * TIMER_SetTimer
*/ */
static UINT TIMER_SetTimer( HWND hwnd, UINT id, UINT timeout, static UINT_PTR TIMER_SetTimer( HWND hwnd, UINT_PTR id, UINT timeout,
WNDPROC16 proc, WINDOWPROCTYPE type, BOOL sys ) WNDPROC16 proc, WINDOWPROCTYPE type, BOOL sys )
{ {
int i; int i;
...@@ -195,7 +195,7 @@ static UINT TIMER_SetTimer( HWND hwnd, UINT id, UINT timeout, ...@@ -195,7 +195,7 @@ static UINT TIMER_SetTimer( HWND hwnd, UINT id, UINT timeout,
/*********************************************************************** /***********************************************************************
* TIMER_KillTimer * TIMER_KillTimer
*/ */
static BOOL TIMER_KillTimer( HWND hwnd, UINT id, BOOL sys ) static BOOL TIMER_KillTimer( HWND hwnd, UINT_PTR id, BOOL sys )
{ {
int i; int i;
TIMER * pTimer; TIMER * pTimer;
...@@ -252,7 +252,7 @@ UINT16 WINAPI SetTimer16( HWND16 hwnd, UINT16 id, UINT16 timeout, ...@@ -252,7 +252,7 @@ UINT16 WINAPI SetTimer16( HWND16 hwnd, UINT16 id, UINT16 timeout,
/*********************************************************************** /***********************************************************************
* SetTimer (USER32.@) * SetTimer (USER32.@)
*/ */
UINT WINAPI SetTimer( HWND hwnd, UINT id, UINT timeout, UINT_PTR WINAPI SetTimer( HWND hwnd, UINT_PTR id, UINT timeout,
TIMERPROC proc ) TIMERPROC proc )
{ {
TRACE("%04x %d %d %08lx\n", TRACE("%04x %d %d %08lx\n",
...@@ -264,7 +264,7 @@ UINT WINAPI SetTimer( HWND hwnd, UINT id, UINT timeout, ...@@ -264,7 +264,7 @@ UINT WINAPI SetTimer( HWND hwnd, UINT id, UINT timeout,
/*********************************************************************** /***********************************************************************
* TIMER_IsTimerValid * TIMER_IsTimerValid
*/ */
BOOL TIMER_IsTimerValid( HWND hwnd, UINT id, HWINDOWPROC hProc ) BOOL TIMER_IsTimerValid( HWND hwnd, UINT_PTR id, HWINDOWPROC hProc )
{ {
int i; int i;
TIMER *pTimer; TIMER *pTimer;
...@@ -302,7 +302,7 @@ UINT16 WINAPI SetSystemTimer16( HWND16 hwnd, UINT16 id, UINT16 timeout, ...@@ -302,7 +302,7 @@ UINT16 WINAPI SetSystemTimer16( HWND16 hwnd, UINT16 id, UINT16 timeout,
/*********************************************************************** /***********************************************************************
* SetSystemTimer (USER32.@) * SetSystemTimer (USER32.@)
*/ */
UINT WINAPI SetSystemTimer( HWND hwnd, UINT id, UINT timeout, UINT_PTR WINAPI SetSystemTimer( HWND hwnd, UINT_PTR id, UINT timeout,
TIMERPROC proc ) TIMERPROC proc )
{ {
TRACE("%04x %d %d %08lx\n", TRACE("%04x %d %d %08lx\n",
...@@ -314,7 +314,7 @@ UINT WINAPI SetSystemTimer( HWND hwnd, UINT id, UINT timeout, ...@@ -314,7 +314,7 @@ UINT WINAPI SetSystemTimer( HWND hwnd, UINT id, UINT timeout,
/*********************************************************************** /***********************************************************************
* KillTimer (USER32.@) * KillTimer (USER32.@)
*/ */
BOOL WINAPI KillTimer( HWND hwnd, UINT id ) BOOL WINAPI KillTimer( HWND hwnd, UINT_PTR id )
{ {
TRACE("%04x %d\n", hwnd, id ); TRACE("%04x %d\n", hwnd, id );
return TIMER_KillTimer( hwnd, id, FALSE ); return TIMER_KillTimer( hwnd, id, FALSE );
...@@ -324,7 +324,7 @@ BOOL WINAPI KillTimer( HWND hwnd, UINT id ) ...@@ -324,7 +324,7 @@ BOOL WINAPI KillTimer( HWND hwnd, UINT id )
/*********************************************************************** /***********************************************************************
* KillSystemTimer (USER32.@) * KillSystemTimer (USER32.@)
*/ */
BOOL WINAPI KillSystemTimer( HWND hwnd, UINT id ) BOOL WINAPI KillSystemTimer( HWND hwnd, UINT_PTR id )
{ {
TRACE("%04x %d\n", hwnd, id ); TRACE("%04x %d\n", hwnd, id );
return TIMER_KillTimer( hwnd, id, TRUE ); return TIMER_KillTimer( hwnd, id, TRUE );
......
...@@ -78,8 +78,7 @@ BOOL16 WINAPI WinHelp16( HWND16 hWnd, LPCSTR lpHelpFile, UINT16 wCommand, ...@@ -78,8 +78,7 @@ BOOL16 WINAPI WinHelp16( HWND16 hWnd, LPCSTR lpHelpFile, UINT16 wCommand,
/********************************************************************** /**********************************************************************
* WinHelpA (USER32.@) * WinHelpA (USER32.@)
*/ */
BOOL WINAPI WinHelpA( HWND hWnd, LPCSTR lpHelpFile, UINT wCommand, BOOL WINAPI WinHelpA( HWND hWnd, LPCSTR lpHelpFile, UINT wCommand, ULONG_PTR dwData )
DWORD dwData )
{ {
static WORD WM_WINHELP = 0; static WORD WM_WINHELP = 0;
HWND hDest; HWND hDest;
...@@ -164,7 +163,7 @@ BOOL WINAPI WinHelpA( HWND hWnd, LPCSTR lpHelpFile, UINT wCommand, ...@@ -164,7 +163,7 @@ BOOL WINAPI WinHelpA( HWND hWnd, LPCSTR lpHelpFile, UINT wCommand,
/********************************************************************** /**********************************************************************
* WinHelpW (USER32.@) * WinHelpW (USER32.@)
*/ */
BOOL WINAPI WinHelpW( HWND hWnd, LPCWSTR helpFile, UINT command, DWORD dwData ) BOOL WINAPI WinHelpW( HWND hWnd, LPCWSTR helpFile, UINT command, ULONG_PTR dwData )
{ {
INT len; INT len;
LPSTR file; LPSTR file;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment