Added many missing *Pxxx types.

Removed a few *LPxxx types that are not supposed to be there (in
particular LPICONINFO).
Added a few missing *LPCxxx types (MENUITEMINFO, SCROLLINFO,
DLGITEMTEMPLATE).
WINHELP and PE_ACCEL are internal types.
MULTIKEYHELP and HELPWININFO both have an A and W variant.
NUMBERFMT, CURRENCYFMT and the related API belong to winnls.h.
Added missing ARW_xxx defines (for sysmetrics).
This commit is contained in:
Francois Gouget 2000-10-12 23:18:55 +00:00 committed by Alexandre Julliard
parent 986f197497
commit 67c9691313
4 changed files with 118 additions and 106 deletions

View File

@ -19,6 +19,16 @@
DEFAULT_DEBUG_CHANNEL(resource); DEFAULT_DEBUG_CHANNEL(resource);
DECLARE_DEBUG_CHANNEL(accel); DECLARE_DEBUG_CHANNEL(accel);
/* this is the 8 byte accel struct used in Win32 resources (internal only) */
typedef struct
{
BYTE fVirt;
BYTE pad0;
WORD key;
WORD cmd;
WORD pad1;
} PE_ACCEL, *LPPE_ACCEL;
/********************************************************************** /**********************************************************************
* LoadAccelerators16 [USER.177] * LoadAccelerators16 [USER.177]
*/ */

View File

@ -44,7 +44,7 @@ typedef struct
UINT paramH; UINT paramH;
DWORD time; DWORD time;
HWND hwnd; HWND hwnd;
} EVENTMSG, *LPEVENTMSG; } EVENTMSG, *PEVENTMSG, *LPEVENTMSG;
/* Mouse hook structure */ /* Mouse hook structure */
@ -66,7 +66,7 @@ typedef struct
UINT wMessage; UINT wMessage;
WPARAM wParam; WPARAM wParam;
LPARAM lParam; LPARAM lParam;
} HARDWAREHOOKSTRUCT, *LPHARDWAREHOOKSTRUCT; } HARDWAREHOOKSTRUCT, *PHARDWAREHOOKSTRUCT, *LPHARDWAREHOOKSTRUCT;
/* Debug hook structure */ /* Debug hook structure */
@ -78,7 +78,7 @@ typedef struct
LPARAM lParam; LPARAM lParam;
WPARAM wParam; WPARAM wParam;
INT code; INT code;
} DEBUGHOOKINFO, *LPDEBUGHOOKINFO; } DEBUGHOOKINFO, *PDEBUGHOOKINFO, *LPDEBUGHOOKINFO;
#define HKL_PREV 0 #define HKL_PREV 0
#define HKL_NEXT 1 #define HKL_NEXT 1
@ -142,7 +142,7 @@ typedef struct
WPARAM wParam; WPARAM wParam;
UINT message; UINT message;
HWND hwnd; HWND hwnd;
} CWPSTRUCT, *LPCWPSTRUCT; } CWPSTRUCT, *PCWPSTRUCT, *LPCWPSTRUCT;
typedef struct typedef struct
{ {
@ -151,7 +151,7 @@ typedef struct
WPARAM wParam; WPARAM wParam;
DWORD message; DWORD message;
HWND hwnd; HWND hwnd;
} CWPRETSTRUCT, *LPCWPRETSTRUCT; } CWPRETSTRUCT, *PCWPRETSTRUCT, *LPCWPRETSTRUCT;
typedef struct typedef struct
{ {
@ -161,7 +161,7 @@ typedef struct
POINT ptMinPosition WINE_PACKED; POINT ptMinPosition WINE_PACKED;
POINT ptMaxPosition WINE_PACKED; POINT ptMaxPosition WINE_PACKED;
RECT rcNormalPosition WINE_PACKED; RECT rcNormalPosition WINE_PACKED;
} WINDOWPLACEMENT, *LPWINDOWPLACEMENT; } WINDOWPLACEMENT, *PWINDOWPLACEMENT, *LPWINDOWPLACEMENT;
/* WINDOWPLACEMENT flags */ /* WINDOWPLACEMENT flags */
@ -1233,7 +1233,7 @@ typedef struct
HBRUSH hbrBackground; HBRUSH hbrBackground;
LPCSTR lpszMenuName; LPCSTR lpszMenuName;
LPCSTR lpszClassName; LPCSTR lpszClassName;
} WNDCLASSA, *LPWNDCLASSA, *PWNDCLASSA; } WNDCLASSA, *PWNDCLASSA, *LPWNDCLASSA;
typedef struct typedef struct
{ {
@ -1247,17 +1247,17 @@ typedef struct
HBRUSH hbrBackground; HBRUSH hbrBackground;
LPCWSTR lpszMenuName; LPCWSTR lpszMenuName;
LPCWSTR lpszClassName; LPCWSTR lpszClassName;
} WNDCLASSW, *LPWNDCLASSW, *PWNDCLASSW; } WNDCLASSW, *PWNDCLASSW, *LPWNDCLASSW;
DECL_WINELIB_TYPE_AW(WNDCLASS) DECL_WINELIB_TYPE_AW(WNDCLASS)
DECL_WINELIB_TYPE_AW(LPWNDCLASS)
DECL_WINELIB_TYPE_AW(PWNDCLASS) DECL_WINELIB_TYPE_AW(PWNDCLASS)
DECL_WINELIB_TYPE_AW(LPWNDCLASS)
typedef struct { typedef struct {
DWORD dwData; DWORD dwData;
DWORD cbData; DWORD cbData;
LPVOID lpData; LPVOID lpData;
} COPYDATASTRUCT, *PCOPYDATASTRUCT, *LPCOPYDATASTRUCT; } COPYDATASTRUCT, *PCOPYDATASTRUCT;
typedef struct { typedef struct {
HMENU hmenuIn; HMENU hmenuIn;
@ -1265,22 +1265,23 @@ typedef struct {
HWND hwndNext; HWND hwndNext;
} MDINEXTMENU, *PMDINEXTMENU, *LPMDINEXTMENU; } MDINEXTMENU, *PMDINEXTMENU, *LPMDINEXTMENU;
/* WinHelp internal structure */ typedef struct
typedef struct { {
WORD size; WORD mkSize;
WORD command; CHAR mkKeyList;
LONG data; CHAR szKeyphrase[1];
LONG reserved; } MULTIKEYHELPA, *PMULTIKEYHELPA, *LPMULTIKEYHELPA;
WORD ofsFilename;
WORD ofsData;
} WINHELP,*LPWINHELP;
typedef struct typedef struct
{ {
WORD mkSize; WORD mkSize;
BYTE mkKeyList; WCHAR mkKeyList;
BYTE szKeyphrase[1]; WCHAR szKeyphrase[1];
} MULTIKEYHELP, *LPMULTIKEYHELP; } MULTIKEYHELPW, *PMULTIKEYHELPW, *LPMULTIKEYHELPW;
DECL_WINELIB_TYPE_AW(MULTIKEYHELP)
DECL_WINELIB_TYPE_AW(PMULTIKEYHELP)
DECL_WINELIB_TYPE_AW(LPMULTIKEYHELP)
typedef struct { typedef struct {
WORD wStructSize; WORD wStructSize;
@ -1289,8 +1290,22 @@ typedef struct {
WORD dx; WORD dx;
WORD dy; WORD dy;
WORD wMax; WORD wMax;
char rgchMember[2]; CHAR rgchMember[2];
} HELPWININFO, *LPHELPWININFO; } HELPWININFOA, *PHELPWININFOA, *LPHELPWININFOA;
typedef struct {
WORD wStructSize;
WORD x;
WORD y;
WORD dx;
WORD dy;
WORD wMax;
WCHAR rgchMember[2];
} HELPWININFOW, *PHELPWININFOW, *LPHELPWININFOW;
DECL_WINELIB_TYPE_AW(HELPWININFO)
DECL_WINELIB_TYPE_AW(PHELPWININFO)
DECL_WINELIB_TYPE_AW(LPHELPWININFO)
#define HELP_CONTEXT 0x0001 #define HELP_CONTEXT 0x0001
#define HELP_QUIT 0x0002 #define HELP_QUIT 0x0002
@ -1350,7 +1365,7 @@ typedef struct
LPCSTR lpszMenuName; LPCSTR lpszMenuName;
LPCSTR lpszClassName; LPCSTR lpszClassName;
HICON hIconSm; HICON hIconSm;
} WNDCLASSEXA, *LPWNDCLASSEXA; } WNDCLASSEXA, *PWNDCLASSEXA, *LPWNDCLASSEXA;
typedef struct typedef struct
{ {
@ -1366,9 +1381,10 @@ typedef struct
LPCWSTR lpszMenuName; LPCWSTR lpszMenuName;
LPCWSTR lpszClassName; LPCWSTR lpszClassName;
HICON hIconSm; HICON hIconSm;
} WNDCLASSEXW, *LPWNDCLASSEXW; } WNDCLASSEXW, *PWNDCLASSEXW, *LPWNDCLASSEXW;
DECL_WINELIB_TYPE_AW(WNDCLASSEX) DECL_WINELIB_TYPE_AW(WNDCLASSEX)
DECL_WINELIB_TYPE_AW(PWNDCLASSEX)
DECL_WINELIB_TYPE_AW(LPWNDCLASSEX) DECL_WINELIB_TYPE_AW(LPWNDCLASSEX)
typedef struct tagMSG typedef struct tagMSG
@ -1396,7 +1412,7 @@ typedef struct {
DWORD yHotspot; DWORD yHotspot;
HBITMAP hbmMask; HBITMAP hbmMask;
HBITMAP hbmColor; HBITMAP hbmColor;
} ICONINFO,*LPICONINFO; } ICONINFO, *PICONINFO;
/* this is the 6 byte accel struct used in Win32 when presented to the user */ /* this is the 6 byte accel struct used in Win32 when presented to the user */
@ -1408,16 +1424,6 @@ typedef struct
WORD cmd; WORD cmd;
} ACCEL, *LPACCEL; } ACCEL, *LPACCEL;
/* this is the 8 byte accel struct used in Win32 resources (internal only) */
typedef struct
{
BYTE fVirt;
BYTE pad0;
WORD key;
WORD cmd;
WORD pad1;
} PE_ACCEL, *LPPE_ACCEL;
/* Flags for TrackPopupMenu */ /* Flags for TrackPopupMenu */
#define TPM_LEFTBUTTON 0x0000 #define TPM_LEFTBUTTON 0x0000
@ -1464,14 +1470,17 @@ typedef struct {
HMENU hSubMenu; HMENU hSubMenu;
HBITMAP hbmpChecked; HBITMAP hbmpChecked;
HBITMAP hbmpUnchecked; HBITMAP hbmpUnchecked;
DWORD dwItemData; DWORD dwItemData;
LPWSTR dwTypeData; LPWSTR dwTypeData;
UINT cch; UINT cch;
HBITMAP hbmpItem; HBITMAP hbmpItem;
} MENUITEMINFOW, *LPMENUITEMINFOW; } MENUITEMINFOW, *LPMENUITEMINFOW;
DECL_WINELIB_TYPE_AW(MENUITEMINFO) DECL_WINELIB_TYPE_AW(MENUITEMINFO)
DECL_WINELIB_TYPE_AW(LPMENUITEMINFO) DECL_WINELIB_TYPE_AW(LPMENUITEMINFO)
typedef const MENUITEMINFOA *LPCMENUITEMINFOA;
typedef const MENUITEMINFOW *LPCMENUITEMINFOW;
DECL_WINELIB_TYPE_AW(LPCMENUITEMINFO)
typedef struct { typedef struct {
DWORD cbSize; DWORD cbSize;
@ -1483,7 +1492,7 @@ typedef struct {
DWORD dwMenuData; DWORD dwMenuData;
} MENUINFO, *LPMENUINFO; } MENUINFO, *LPMENUINFO;
typedef MENUINFO const * LPCMENUINFO; typedef const MENUINFO *LPCMENUINFO;
#define MIM_MAXHEIGHT 0x00000001 #define MIM_MAXHEIGHT 0x00000001
#define MIM_BACKGROUND 0x00000002 #define MIM_BACKGROUND 0x00000002
@ -1667,7 +1676,9 @@ typedef struct
INT nPos; INT nPos;
INT nTrackPos; INT nTrackPos;
} SCROLLINFO, *LPSCROLLINFO; } SCROLLINFO, *LPSCROLLINFO;
typedef const SCROLLINFO *LPCSCROLLINFO;
/* GetScrollInfo() flags */ /* GetScrollInfo() flags */
#define SIF_RANGE 0x0001 #define SIF_RANGE 0x0001
#define SIF_PAGE 0x0002 #define SIF_PAGE 0x0002
@ -1870,7 +1881,7 @@ typedef struct
#define HELPINFO_MENUITEM 0x0002 #define HELPINFO_MENUITEM 0x0002
/* Structure pointed to by lParam of WM_HELP */ /* Structure pointed to by lParam of WM_HELP */
typedef struct typedef struct
{ {
UINT cbSize; /* Size in bytes of this struct */ UINT cbSize; /* Size in bytes of this struct */
INT iContextType; /* Either HELPINFO_WINDOW or HELPINFO_MENUITEM */ INT iContextType; /* Either HELPINFO_WINDOW or HELPINFO_MENUITEM */
@ -1894,7 +1905,7 @@ typedef struct
DWORD dwContextHelpId; DWORD dwContextHelpId;
MSGBOXCALLBACK lpfnMsgBoxCallback; MSGBOXCALLBACK lpfnMsgBoxCallback;
DWORD dwLanguageId; DWORD dwLanguageId;
} MSGBOXPARAMSA,*LPMSGBOXPARAMSA; } MSGBOXPARAMSA, *PMSGBOXPARAMSA, *LPMSGBOXPARAMSA;
typedef struct typedef struct
{ {
@ -1908,53 +1919,12 @@ typedef struct
DWORD dwContextHelpId; DWORD dwContextHelpId;
MSGBOXCALLBACK lpfnMsgBoxCallback; MSGBOXCALLBACK lpfnMsgBoxCallback;
DWORD dwLanguageId; DWORD dwLanguageId;
} MSGBOXPARAMSW,*LPMSGBOXPARAMSW; } MSGBOXPARAMSW, *PMSGBOXPARAMSW, *LPMSGBOXPARAMSW;
DECL_WINELIB_TYPE_AW(MSGBOXPARAMS) DECL_WINELIB_TYPE_AW(MSGBOXPARAMS)
DECL_WINELIB_TYPE_AW(PMSGBOXPARAMS)
DECL_WINELIB_TYPE_AW(LPMSGBOXPARAMS) DECL_WINELIB_TYPE_AW(LPMSGBOXPARAMS)
typedef struct _numberfmt32a {
UINT NumDigits;
UINT LeadingZero;
UINT Grouping;
LPCSTR lpDecimalSep;
LPCSTR lpThousandSep;
UINT NegativeOrder;
} NUMBERFMTA;
typedef struct _numberfmt32w {
UINT NumDigits;
UINT LeadingZero;
UINT Grouping;
LPCWSTR lpDecimalSep;
LPCWSTR lpThousandSep;
UINT NegativeOrder;
} NUMBERFMTW;
typedef struct _currencyfmt32a
{
UINT NumDigits;
UINT LeadingZero;
UINT Grouping;
LPCSTR lpDecimalSep;
LPCSTR lpThousandSep;
UINT NegativeOrder;
UINT PositiveOrder;
LPCSTR lpCurrencySymbol;
} CURRENCYFMTA;
typedef struct _currencyfmt32w
{
UINT NumDigits;
UINT LeadingZero;
UINT Grouping;
LPCWSTR lpDecimalSep;
LPCWSTR lpThousandSep;
UINT NegativeOrder;
UINT PositiveOrder;
LPCWSTR lpCurrencySymbol;
} CURRENCYFMTW;
#define MONITOR_DEFAULTTONULL 0x00000000 #define MONITOR_DEFAULTTONULL 0x00000000
#define MONITOR_DEFAULTTOPRIMARY 0x00000001 #define MONITOR_DEFAULTTOPRIMARY 0x00000001
#define MONITOR_DEFAULTTONEAREST 0x00000002 #define MONITOR_DEFAULTTONEAREST 0x00000002
@ -2001,10 +1971,10 @@ typedef struct tagDLGTEMPLATE
typedef DLGTEMPLATE *LPDLGTEMPLATEA; typedef DLGTEMPLATE *LPDLGTEMPLATEA;
typedef DLGTEMPLATE *LPDLGTEMPLATEW; typedef DLGTEMPLATE *LPDLGTEMPLATEW;
#define LPDLGTEMPLATE WINELIB_NAME_AW(LPDLGTEMPLATE) DECL_WINELIB_TYPE_AW(LPDLGTEMPLATE)
typedef const DLGTEMPLATE *LPCDLGTEMPLATEA; typedef const DLGTEMPLATE *LPCDLGTEMPLATEA;
typedef const DLGTEMPLATE *LPCDLGTEMPLATEW; typedef const DLGTEMPLATE *LPCDLGTEMPLATEW;
#define LPCDLGTEMPLATE WINELIB_NAME_AW(LPCDLGTEMPLATE) DECL_WINELIB_TYPE_AW(LPCDLGTEMPLATE)
typedef struct tagDLGITEMTEMPLATE typedef struct tagDLGITEMTEMPLATE
{ {
@ -2017,12 +1987,12 @@ typedef struct tagDLGITEMTEMPLATE
WORD id; WORD id;
} DLGITEMTEMPLATE; } DLGITEMTEMPLATE;
typedef DLGITEMTEMPLATE *PDLGITEMTEMPLATEA;
typedef DLGITEMTEMPLATE *PDLGITEMTEMPLATEW;
DECL_WINELIB_TYPE_AW(PDLGITEMTEMPLATE)
typedef DLGITEMTEMPLATE *LPDLGITEMTEMPLATEA; typedef DLGITEMTEMPLATE *LPDLGITEMTEMPLATEA;
typedef DLGITEMTEMPLATE *LPDLGITEMTEMPLATEW; typedef DLGITEMTEMPLATE *LPDLGITEMTEMPLATEW;
#define LPDLGITEMTEMPLATE WINELIB_NAME_AW(LPDLGITEMTEMPLATE) DECL_WINELIB_TYPE_AW(LPDLGITEMTEMPLATE)
typedef const DLGITEMTEMPLATE *LPCDLGITEMTEMPLATEA;
typedef const DLGITEMTEMPLATE *LPCDLGITEMTEMPLATEW;
#define LPCDLGITEMTEMPLATE WINELIB_NAME_AW(LPCDLGITEMTEMPLATE)
/* CBT hook values */ /* CBT hook values */
@ -2347,7 +2317,7 @@ typedef struct {
LOGFONTA lfMenuFont; LOGFONTA lfMenuFont;
LOGFONTA lfStatusFont; LOGFONTA lfStatusFont;
LOGFONTA lfMessageFont; LOGFONTA lfMessageFont;
} NONCLIENTMETRICSA,*LPNONCLIENTMETRICSA; } NONCLIENTMETRICSA, *PNONCLIENTMETRICSA, *LPNONCLIENTMETRICSA;
typedef struct { typedef struct {
UINT cbSize; UINT cbSize;
@ -2365,18 +2335,41 @@ typedef struct {
LOGFONTW lfMenuFont; LOGFONTW lfMenuFont;
LOGFONTW lfStatusFont; LOGFONTW lfStatusFont;
LOGFONTW lfMessageFont; LOGFONTW lfMessageFont;
} NONCLIENTMETRICSW,*LPNONCLIENTMETRICSW; } NONCLIENTMETRICSW, *PNONCLIENTMETRICSW, *LPNONCLIENTMETRICSW;
DECL_WINELIB_TYPE_AW(NONCLIENTMETRICS) DECL_WINELIB_TYPE_AW(NONCLIENTMETRICS)
DECL_WINELIB_TYPE_AW(PNONCLIENTMETRICS)
DECL_WINELIB_TYPE_AW(LPNONCLIENTMETRICS) DECL_WINELIB_TYPE_AW(LPNONCLIENTMETRICS)
#define ARW_BOTTOMLEFT 0x0000L
#define ARW_BOTTOMRIGHT 0x0001L
#define ARW_TOPLEFT 0x0002L
#define ARW_TOPRIGHT 0x0003L
#define ARW_STARTMASK 0x0003L
#define ARW_STARTRIGHT 0x0001L
#define ARW_STARTTOP 0x0002L
#define ARW_LEFT 0x0000L
#define ARW_RIGHT 0x0000L
#define ARW_UP 0x0004L
#define ARW_DOWN 0x0004L
#define ARW_HIDE 0x0008L
typedef struct tagMINIMIZEDMETRICS {
UINT cbSize;
int iWidth;
int iHorzGap;
int iVertGap;
int iArrange;
} MINIMIZEDMETRICS, *PMINIMIZEDMETRICS, *LPMINIMIZEDMETRICS;
typedef struct tagICONMETRICSA { typedef struct tagICONMETRICSA {
UINT cbSize; UINT cbSize;
int iHorzSpacing; int iHorzSpacing;
int iVertSpacing; int iVertSpacing;
int iTitleWrap; int iTitleWrap;
LOGFONTA lfFont; LOGFONTA lfFont;
} ICONMETRICSA, *LPICONMETRICSA; } ICONMETRICSA, *PICONMETRICSA, *LPICONMETRICSA;
typedef struct tagICONMETRICSW { typedef struct tagICONMETRICSW {
UINT cbSize; UINT cbSize;
@ -2384,9 +2377,10 @@ typedef struct tagICONMETRICSW {
int iVertSpacing; int iVertSpacing;
int iTitleWrap; int iTitleWrap;
LOGFONTW lfFont; LOGFONTW lfFont;
} ICONMETRICSW, *LPICONMETRICSW; } ICONMETRICSW, *PICONMETRICSW, *LPICONMETRICSW;
DECL_WINELIB_TYPE_AW(ICONMETRICS) DECL_WINELIB_TYPE_AW(ICONMETRICS)
DECL_WINELIB_TYPE_AW(PICONMETRICS)
DECL_WINELIB_TYPE_AW(LPICONMETRICS) DECL_WINELIB_TYPE_AW(LPICONMETRICS)
/* Window Styles */ /* Window Styles */
@ -2743,7 +2737,7 @@ typedef struct
UINT itemID; UINT itemID;
HWND hwndItem; HWND hwndItem;
DWORD itemData; DWORD itemData;
} DELETEITEMSTRUCT, *LPDELETEITEMSTRUCT; } DELETEITEMSTRUCT, *PDELETEITEMSTRUCT, *LPDELETEITEMSTRUCT;
typedef struct typedef struct
@ -3070,7 +3064,7 @@ INT WINAPI CopyAcceleratorTableW(HACCEL,LPACCEL,INT);
HACCEL WINAPI CreateAcceleratorTableA(LPACCEL,INT); HACCEL WINAPI CreateAcceleratorTableA(LPACCEL,INT);
HACCEL WINAPI CreateAcceleratorTableW(LPACCEL,INT); HACCEL WINAPI CreateAcceleratorTableW(LPACCEL,INT);
#define CreateAcceleratorTable WINELIB_NAME_AW(CreateAcceleratorTable) #define CreateAcceleratorTable WINELIB_NAME_AW(CreateAcceleratorTable)
HICON WINAPI CreateIconIndirect(LPICONINFO); HICON WINAPI CreateIconIndirect(PICONINFO);
BOOL WINAPI DestroyAcceleratorTable(HACCEL); BOOL WINAPI DestroyAcceleratorTable(HACCEL);
BOOL WINAPI EnumDisplayMonitors(HDC,LPRECT,MONITORENUMPROC,LPARAM); BOOL WINAPI EnumDisplayMonitors(HDC,LPRECT,MONITORENUMPROC,LPARAM);
BOOL WINAPI EnumDisplayDevicesA(LPVOID,DWORD,LPDISPLAY_DEVICEA,DWORD); BOOL WINAPI EnumDisplayDevicesA(LPVOID,DWORD,LPDISPLAY_DEVICEA,DWORD);
@ -3084,7 +3078,7 @@ INT WINAPI EnumPropsExW(HWND,PROPENUMPROCEXW,LPARAM);
#define EnumPropsEx WINELIB_NAME_AW(EnumPropsEx) #define EnumPropsEx WINELIB_NAME_AW(EnumPropsEx)
BOOL WINAPI EnumThreadWindows(DWORD,WNDENUMPROC,LPARAM); BOOL WINAPI EnumThreadWindows(DWORD,WNDENUMPROC,LPARAM);
BOOL WINAPI ExitWindowsEx(UINT,DWORD); BOOL WINAPI ExitWindowsEx(UINT,DWORD);
BOOL WINAPI GetIconInfo(HICON,LPICONINFO); BOOL WINAPI GetIconInfo(HICON,PICONINFO);
HKL WINAPI GetKeyboardLayout(DWORD); HKL WINAPI GetKeyboardLayout(DWORD);
INT WINAPI GetKeyboardLayoutList(INT,HKL *); INT WINAPI GetKeyboardLayoutList(INT,HKL *);
DWORD WINAPI GetMenuContextHelpId(HMENU); DWORD WINAPI GetMenuContextHelpId(HMENU);
@ -3096,9 +3090,6 @@ BOOL WINAPI GetMenuItemInfoW(HMENU,UINT,BOOL,MENUITEMINFOW*);
BOOL WINAPI GetMonitorInfoA(HMONITOR,LPMONITORINFO); BOOL WINAPI GetMonitorInfoA(HMONITOR,LPMONITORINFO);
BOOL WINAPI GetMonitorInfoW(HMONITOR,LPMONITORINFO); BOOL WINAPI GetMonitorInfoW(HMONITOR,LPMONITORINFO);
#define GetMonitorInfo WINELIB_NAME_AW(GetMonitorInfo) #define GetMonitorInfo WINELIB_NAME_AW(GetMonitorInfo)
INT WINAPI GetNumberFormatA(LCID,DWORD,LPCSTR,const NUMBERFMTA*,LPSTR,int);
INT WINAPI GetNumberFormatW(LCID,DWORD,LPCWSTR,const NUMBERFMTW*,LPWSTR,int);
#define GetNumberFormat WINELIB_NAME_AW(GetNumberFormat)
DWORD WINAPI GetWindowContextHelpId(HWND); DWORD WINAPI GetWindowContextHelpId(HWND);
DWORD WINAPI GetWindowThreadProcessId(HWND,LPDWORD); DWORD WINAPI GetWindowThreadProcessId(HWND,LPDWORD);
BOOL WINAPI IsWindowUnicode(HWND); BOOL WINAPI IsWindowUnicode(HWND);

View File

@ -1772,7 +1772,7 @@ BOOL16 WINAPI GetIconInfo16(HICON16 hIcon,LPICONINFO16 iconinfo)
/********************************************************************** /**********************************************************************
* GetIconInfo (USER32.242) * GetIconInfo (USER32.242)
*/ */
BOOL WINAPI GetIconInfo(HICON hIcon,LPICONINFO iconinfo) { BOOL WINAPI GetIconInfo(HICON hIcon,PICONINFO iconinfo) {
CURSORICONINFO *ciconinfo; CURSORICONINFO *ciconinfo;
ciconinfo = GlobalLock16(hIcon); ciconinfo = GlobalLock16(hIcon);
@ -1809,7 +1809,7 @@ BOOL WINAPI GetIconInfo(HICON hIcon,LPICONINFO iconinfo) {
/********************************************************************** /**********************************************************************
* CreateIconIndirect (USER32.78) * CreateIconIndirect (USER32.78)
*/ */
HICON WINAPI CreateIconIndirect(LPICONINFO iconinfo) HICON WINAPI CreateIconIndirect(PICONINFO iconinfo)
{ {
BITMAP bmpXor,bmpAnd; BITMAP bmpXor,bmpAnd;
HICON hObj; HICON hObj;

View File

@ -18,6 +18,17 @@
DEFAULT_DEBUG_CHANNEL(win); DEFAULT_DEBUG_CHANNEL(win);
/* WinHelp internal structure */
typedef struct
{
WORD size;
WORD command;
LONG data;
LONG reserved;
WORD ofsFilename;
WORD ofsData;
} WINHELP,*LPWINHELP;
/********************************************************************** /**********************************************************************
* WinHelp16 (USER.171) * WinHelp16 (USER.171)
*/ */
@ -89,10 +100,10 @@ BOOL WINAPI WinHelpA( HWND hWnd, LPCSTR lpHelpFile, UINT wCommand,
dsize = dwData ? strlen( (LPSTR)dwData )+1: 0; dsize = dwData ? strlen( (LPSTR)dwData )+1: 0;
break; break;
case HELP_MULTIKEY: case HELP_MULTIKEY:
dsize = ((LPMULTIKEYHELP)dwData)->mkSize; dsize = ((LPMULTIKEYHELPA)dwData)->mkSize;
break; break;
case HELP_SETWINPOS: case HELP_SETWINPOS:
dsize = ((LPHELPWININFO)dwData)->wStructSize; dsize = ((LPHELPWININFOA)dwData)->wStructSize;
break; break;
default: default:
WARN("Unknown help command %d\n",wCommand); WARN("Unknown help command %d\n",wCommand);