WriteFile(stdout, buf1, lstrlen(buf1), &r, NULL);
EnumThreadWindows((DWORD)CurrentProcess->Threads[ti].ClientId.UniqueThread,
- (ENUMWINDOWSPROC) EnumThreadProc,
+ (WNDENUMPROC) EnumThreadProc,
(LPARAM)(LPTSTR) szWindowName );
}
CurrentProcess = (PSYSTEM_PROCESSES)((ULONG_PTR)CurrentProcess +
#include "mpu401.h"
-// #define NDEBUG
+#define NDEBUG
#include <debug.h>
#include "sbdebug.h" // our own debug helper
#endif
#ifndef NDEBUG
-#define DPRINT(...) do { DbgPrint("(%s:%d) ",__FILE__,__LINE__); DbgPrint(__VA_ARGS__); } while(0);
+#define DPRINT(...) do { if(0) { DbgPrint(__VA_ARGS__); } } while(0)
#define CHECKPOINT do { DbgPrint("%s:%d\n",__FILE__,__LINE__); } while(0);
#else
#ifdef __GNUC__
#include <windows.h>
#include <wchar.h>
+/* Add ROS Master debug functions if not added yet */
+#ifndef __INTERNAL_DEBUG
+#include <reactos/debug.h>
+#endif
+
#ifndef __GNUC__
#define __FUNCTION__ ""
#define inline __inline
unsigned long DbgPrint(char *Format,...);
-#ifdef DBG
-#define DPRINT1 DbgPrint("(%s:%d:%s) ",__FILE__,__LINE__,__FUNCTION__), DbgPrint
-#else
-#define DPRINT1(...)
-#endif
-
-#if !defined(DBG) || !defined(YDEBUG)
-#define DPRINT(...) do { if(0) { DbgPrint(__VA_ARGS__); } } while(0)
-#else
-#define DPRINT DbgPrint("(%s:%d:%s) ",__FILE__,__LINE__,__FUNCTION__), DbgPrint
-#endif
-
-#define UNIMPLEMENTED DbgPrint("WARNING: %s at %s:%d is UNIMPLEMENTED!\n",__FUNCTION__,__FILE__,__LINE__);
-
-
struct _GUID;
/* Exported definitions and macros */
#define NTOS_MODE_USER
#include <ndk/ntndk.h>
+/* ELF Support */
+#include <elf/elf.h>
+
/* Internal NTDLL */
#include "ntdllp.h"
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#define __WINE__
#include <user32.h>
-#include <stdarg.h>
-#include <string.h>
-#include <stdlib.h>
-
-#include "controls.h"
-#include "wine/unicode.h"
-#include "wine/debug.h"
-
-#ifdef __REACTOS__
-HPEN STDCALL GetSysColorPen(int nIndex);
-#endif
/* GetWindowLong offsets for window extra information */
#define STATE_GWL_OFFSET 0
};
-inline static LONG get_button_state( HWND hwnd )
+__inline static LONG get_button_state( HWND hwnd )
{
return GetWindowLongA( hwnd, STATE_GWL_OFFSET );
}
-inline static void set_button_state( HWND hwnd, LONG state )
+__inline static void set_button_state( HWND hwnd, LONG state )
{
SetWindowLongA( hwnd, STATE_GWL_OFFSET, state );
}
-inline static HFONT get_button_font( HWND hwnd )
+__inline static HFONT get_button_font( HWND hwnd )
{
return (HFONT)GetWindowLongA( hwnd, HFONT_GWL_OFFSET );
}
-inline static void set_button_font( HWND hwnd, HFONT font )
+__inline static void set_button_font( HWND hwnd, HFONT font )
{
SetWindowLongA( hwnd, HFONT_GWL_OFFSET, (LONG)font );
}
-inline static UINT get_button_type( LONG window_style )
+__inline static UINT get_button_type( LONG window_style )
{
return (window_style & 0x0f);
}
/* paint a button of any type */
-inline static void paint_button( HWND hwnd, LONG style, UINT action )
+__inline static void paint_button( HWND hwnd, LONG style, UINT action )
{
if (btnPaintFunc[style] && IsWindowVisible(hwnd))
{
}
/* retrieve the button text; returned buffer must be freed by caller */
-inline static WCHAR *get_button_text( HWND hwnd )
+__inline static WCHAR *get_button_text( HWND hwnd )
{
INT len = 512;
WCHAR *buffer = HeapAlloc( GetProcessHeap(), 0, (len + 1) * sizeof(WCHAR) );
* FIXME: roll up in Netscape 3.01.
*/
-#define __WINE__
#include <user32.h>
-#include <stdarg.h>
-#include <string.h>
-
#define NDEBUG
-#include <string.h>
-#include <stdlib.h>
-#include <stdio.h>
-#include "controls.h"
-#include "wine/debug.h"
-#include "wine/unicode.h"
+#include <debug.h>
WINE_DEFAULT_DEBUG_CHANNEL(combo);
*
*/
-#define __WINE__
#include <user32.h>
-#include <stdarg.h>
-#include <string.h>
-#include <stdlib.h>
-#include "controls.h"
-#include "wine/unicode.h"
-#include "wine/debug.h"
+#define NDEBUG
+#include <debug.h>
WINE_DEFAULT_DEBUG_CHANNEL(edit);
WINE_DECLARE_DEBUG_CHANNEL(combo);
* We still like to call them internally
* "static inline" makes them more like macro's
*/
-static inline BOOL EDIT_EM_CanUndo(EDITSTATE *es);
-static inline void EDIT_EM_EmptyUndoBuffer(EDITSTATE *es);
-static inline void EDIT_WM_Clear(EDITSTATE *es);
-static inline void EDIT_WM_Cut(EDITSTATE *es);
+static __inline BOOL EDIT_EM_CanUndo(EDITSTATE *es);
+static __inline void EDIT_EM_EmptyUndoBuffer(EDITSTATE *es);
+static __inline void EDIT_WM_Clear(EDITSTATE *es);
+static __inline void EDIT_WM_Cut(EDITSTATE *es);
/*
* Helper functions only valid for one type of control
* EM_CANUNDO
*
*/
-static inline BOOL EDIT_EM_CanUndo(EDITSTATE *es)
+static __inline BOOL EDIT_EM_CanUndo(EDITSTATE *es)
{
return (es->undo_insert_count || strlenW(es->undo_text));
}
* EM_EMPTYUNDOBUFFER
*
*/
-static inline void EDIT_EM_EmptyUndoBuffer(EDITSTATE *es)
+static __inline void EDIT_EM_EmptyUndoBuffer(EDITSTATE *es)
{
es->undo_insert_count = 0;
*es->undo_text = '\0';
* WM_CLEAR
*
*/
-static inline void EDIT_WM_Clear(EDITSTATE *es)
+static __inline void EDIT_WM_Clear(EDITSTATE *es)
{
static const WCHAR empty_stringW[] = {0};
* WM_CUT
*
*/
-static inline void EDIT_WM_Cut(EDITSTATE *es)
+static __inline void EDIT_WM_Cut(EDITSTATE *es)
{
EDIT_WM_Copy(es);
EDIT_WM_Clear(es);
return (HBRUSH)SendMessageW(GetParent(es->hwndSelf), msg, (WPARAM)hdc, (LPARAM)es->hwndSelf);
}
-static inline LRESULT DefWindowProcT(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam, BOOL unicode)
+static __inline LRESULT DefWindowProcT(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam, BOOL unicode)
{
if(unicode)
return DefWindowProcW(hwnd, msg, wParam, lParam);
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include "user32.h"
-#include "controls.h"
-#include "wine/unicode.h"
+#include <user32.h>
#ifdef __REACTOS__
#define MAKEINTATOMW(atom) ((LPCWSTR)((ULONG_PTR)((WORD)(atom))))
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#define __WINE__
#include <user32.h>
-#include <string.h>
-#include <stdlib.h>
-#include "controls.h"
-#include "wine/debug.h"
+#define NDEBUG
+#include <debug.h>
-#ifdef __REACTOS__
-#include "wine/unicode.h"
/* Start of hack section -------------------------------- */
typedef short *LPINT16;
#define WM_SYSTIMER 280
UINT STDCALL SetSystemTimer(HWND,UINT_PTR,UINT,TIMERPROC);
-WINBOOL STDCALL KillSystemTimer(HWND,UINT_PTR);
+BOOL STDCALL KillSystemTimer(HWND,UINT_PTR);
/* End of hack section -------------------------------- */
-#endif
/* Unimplemented yet:
* - LBS_USETABSTOPS
/* INCLUDES *******************************************************************/
#include <user32.h>
-#include <oleacc.h>
+#define NDEBUG
+#include <debug.h>
+
/* GLOBAL VARIABLES ***********************************************************/
static LRESULT WINAPI ScrollBarWndProc( HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam );
UINT STDCALL SetSystemTimer(HWND,UINT_PTR,UINT,TIMERPROC);
-WINBOOL STDCALL KillSystemTimer(HWND,UINT_PTR);
+BOOL STDCALL KillSystemTimer(HWND,UINT_PTR);
/*********************************************************************
* scrollbar class descriptor
// infoPtr->flags = wParam ? ESB_ENABLE_BOTH : ESB_DISABLE_BOTH;
// SCROLL_RefreshScrollBar(hwnd, SB_CTL, TRUE, TRUE);
// }
+ HDC hdc;
DbgPrint("ScrollBarWndProc WM_ENABLE\n");
NtUserEnableScrollBar(Wnd,SB_CTL,(wParam ? ESB_ENABLE_BOTH : ESB_DISABLE_BOTH));
/* Refresh Scrollbars. */
- HDC hdc = GetDCEx( Wnd, 0, DCX_CACHE );
+ hdc = GetDCEx( Wnd, 0, DCX_CACHE );
if (!hdc) return 1;
IntDrawScrollBar( Wnd, hdc, SB_CTL);
ReleaseDC( Wnd, hdc );
WPARAM wParam, LPARAM lParam);
extern void WDML_NotifyThreadExit(DWORD tid);
-static inline void WDML_ExtractAck(WORD status, DDEACK* da)
+static __inline void WDML_ExtractAck(WORD status, DDEACK* da)
{
*da = *((DDEACK*)&status);
}
+++ /dev/null
-/*
- * COPYRIGHT: See COPYING in the top level directory
- * PROJECT: ReactOS user32.dll
- * FILE: include/debug.h
- * PURPOSE: Debugging support macros
- * DEFINES: DBG - Enable debug output
- * NASSERT - Disable assertions
- */
-#ifndef __DEBUG_H
-#define __DEBUG_H
-
-#define NORMAL_MASK 0x000000FF
-#define SPECIAL_MASK 0xFFFFFF00
-#define MIN_TRACE 0x00000001
-#define MID_TRACE 0x00000002
-#define MAX_TRACE 0x00000003
-
-#define DEBUG_CHECK 0x00000100
-#define DEBUG_OBJECT 0x00000200
-#define DEBUG_WINDOW 0x00000400
-#define DEBUG_ULTRA 0xFFFFFFFF
-
-#ifdef ASSERT
-#undef ASSERT
-#endif
-
-#ifdef DBG
-
-extern DWORD DebugTraceLevel;
-
-#define D(_t_, _x_) \
- if (((DebugTraceLevel & NORMAL_MASK) >= _t_) || \
- ((DebugTraceLevel & _t_) > NORMAL_MASK)) { \
- DbgPrint("(%hS:%d)(%hS) ", __FILE__, __LINE__, __FUNCTION__); \
- DbgPrint _x_; \
- }
-
-#ifdef NASSERT
-#define ASSERT(x)
-#else /* NASSERT */
-#define ASSERT(x) if (!(x)) { D(MIN_TRACE, ("Assertion "#x" failed at %s:%d\n", __FILE__, __LINE__)); }
-#endif /* NASSERT */
-
-#define ASSERT_IRQL(x) ASSERT(KeGetCurrentIrql() <= (x))
-
-#else /* DBG */
-
-#define D(_t_, _x_)
-
-#define ASSERT_IRQL(x)
-#define ASSERT(x)
-
-#endif /* DBG */
-
-#ifdef assert
-#undef assert
-#endif
-#define assert(x) ASSERT(x)
-#define assert_irql(x) ASSERT_IRQL(x)
-
-
-#define UNIMPLEMENTED \
- D(MIN_TRACE, ("is unimplemented, please try again later.\n"));
-
-#define CHECKPOINT \
- D(DEBUG_CHECK, ("\n"));
-
-#define DPRINT(X...) D(DEBUG_CHECK, (X))
-
-#define CP CHECKPOINT
-
-#endif /* __DEBUG_H */
-
-/* EOF */
/* INCLUDES ******************************************************************/
-#ifndef USER32_H
-#define USER32_H
-
/* C Headers */
#include <stdio.h>
-#include <ctype.h>
+#include <math.h>
/* SDK/NDK Headers */
+#define _USER32_
+#define OEMRESOURCE
+#define NTOS_MODE_USER
#include <windows.h>
#include <windowsx.h>
-#define NTOS_MODE_USER
+#include <winnls32.h>
#include <ndk/ntndk.h>
/* CSRSS Headers */
#include <win32k/menu.h>
#include <win32k/paint.h>
+/* WINE Headers */
+#include <wine/debug.h>
+#include <wine/unicode.h>
+
/* Internal User32 Headers */
#include "user32p.h"
/* FIXME: FILIP */
HGDIOBJ STDCALL NtGdiSelectObject(HDC hDC, HGDIOBJ hGDIObj);
DWORD STDCALL GdiGetCharDimensions(HDC, LPTEXTMETRICW, DWORD *);
-
-#endif /* USER32_H */
/* Private User32 Headers */
#include "accel.h"
#include "cursor.h"
-#ifndef __WINE__
-#include "debug.h"
-#endif
+#include "controls.h"
#include "draw.h"
+#include "dde_private.h"
#include "menu.h"
#include "message.h"
#include "regcontrol.h"
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include "wine/config.h"
-#include "wine/port.h"
-
-#include <string.h>
-#include <stdarg.h>
-#include <stdio.h>
-#include "windef.h"
-#include "winbase.h"
-#include "wingdi.h"
-#include "winuser.h"
-#include "winerror.h"
-#include "dde.h"
-#include "ddeml.h"
-#include "wine/debug.h"
-#include "dde_private.h"
+#include <user32.h>
+#define NDEBUG
+#include <debug.h>
WINE_DEFAULT_DEBUG_CHANNEL(ddeml);
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include <stdarg.h>
-#include <string.h>
-#include "windef.h"
-#include "winbase.h"
-#include "wingdi.h"
-#include "winuser.h"
-#include "winerror.h"
-#include "winnls.h"
-#include "dde.h"
-#include "ddeml.h"
-#include "wine/debug.h"
-#include "dde_private.h"
+#include <user32.h>
+#define NDEBUG
+#include <debug.h>
WINE_DEFAULT_DEBUG_CHANNEL(ddeml);
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include <stdarg.h>
-#include <string.h>
-#include "windef.h"
-#include "winbase.h"
-#include "wingdi.h"
-#include "winuser.h"
-#include "winerror.h"
-#include "dde.h"
-#include "ddeml.h"
-#include "wine/debug.h"
-#include "dde_private.h"
+#include <user32.h>
+#define NDEBUG
+#include <debug.h>
WINE_DEFAULT_DEBUG_CHANNEL(ddeml);
/* INCLUDES ******************************************************************/
#include <user32.h>
+#define NDEBUG
+#include <debug.h>
#define SIZEOF_DEVMODEA_300 124
#define SIZEOF_DEVMODEA_400 148
#include <user32.h>
+#define NDEBUG
+#include <debug.h>
/* FIXME: Belongs to some header. */
-WINBOOL STDCALL GdiDllInitialize(HANDLE, DWORD, LPVOID);
+BOOL STDCALL GdiDllInitialize(HANDLE, DWORD, LPVOID);
void InitStockObjects(void);
VOID DeleteFrameBrushes(VOID);
-#ifdef DBG
-
-/* See debug.h for debug/trace constants */
-DWORD DebugTraceLevel = MIN_TRACE;
-
-#endif /* DBG */
-
extern CRITICAL_SECTION gcsMPH;
static ULONG User32TlsIndex;
HINSTANCE User32Instance;
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
-#include <stdarg.h>
-#include <string.h>
-#include <stdlib.h> /* abs() */
-#include <stddef.h>
-#include <sys/types.h>
-#ifdef HAVE_UNISTD_H
-# include <unistd.h>
-#endif
-
-//#define NONAMELESSUNION
-#define NONAMELESSSTRUCT
-#include "windef.h"
-#include "winbase.h"
-#include "winerror.h"
-#include "wingdi.h"
-#include "winuser.h"
-#include "winnls.h"
-#include "wine/unicode.h"
-#include "wine/debug.h"
+#include <user32.h>
+#define NDEBUG
+#include <debug.h>
/* Start of Hack section */
/* INCLUDES ******************************************************************/
#include <user32.h>
+#define NDEBUG
+#include <debug.h>
/* FUNCTIONS *****************************************************************/
*/
#include <user32.h>
-#ifdef __USE_W32API
-typedef PVOID LPIMEPROW, LPIMEPROA;
-#endif
+#define NDEBUG
+#include <debug.h>
/*
* @unimplemented
HANDLE WINAPI
CopyImage(HANDLE hnd, UINT type, INT desiredx, INT desiredy, UINT flags)
{
+ HBITMAP res;
+ BITMAP bm;
+
switch (type)
{
case IMAGE_BITMAP:
/* FIXME: support flags LR_COPYDELETEORG, LR_COPYFROMRESOURCE,
LR_COPYRETURNORG, LR_CREATEDIBSECTION,
and LR_MONOCHROME; */
- HBITMAP res;
- BITMAP bm;
if (!GetObjectW(hnd, sizeof(bm), &bm)) return 0;
bm.bmBits = NULL;
/* INCLUDES ******************************************************************/
#include <user32.h>
+#define NDEBUG
+#include <debug.h>
+
/* FUNCTIONS *****************************************************************/
/* INCLUDES ******************************************************************/
#include <user32.h>
+#define NDEBUG
+#include <debug.h>
+
#undef CopyCursor
HBITMAP
/* INCLUDES ******************************************************************/
#include <user32.h>
+#define NDEBUG
+#include <debug.h>
#ifndef WM_SETVISIBLE
#define WM_SETVISIBLE 9
ULONG width, ULONG height)
{
static HBRUSH hDraggingRectBrush = NULL;
+ HBRUSH hbrush;
if(!hDraggingRectBrush)
{
hDraggingRectBrush = CreatePatternBrush(hDraggingPattern);
}
- HBRUSH hbrush = SelectObject( hdc, hDraggingRectBrush );
+ hbrush = SelectObject( hdc, hDraggingRectBrush );
PatBlt( hdc, rect->left, rect->top,
rect->right - rect->left - width, height, PATINVERT );
PatBlt( hdc, rect->left, rect->top + height, width,
/* INCLUDES ******************************************************************/
#include <user32.h>
+#define NDEBUG
+#include <debug.h>
/* MACROS/DEFINITIONS ********************************************************/
GETDLGITEMINFO info;
info.nIDDlgItem = nIDDlgItem;
info.control = 0;
- if(hDlg && !EnumChildWindows(hDlg, (ENUMWINDOWSPROC)&GetDlgItemEnumProc, (LPARAM)&info))
+ if(hDlg && !EnumChildWindows(hDlg, (WNDENUMPROC)&GetDlgItemEnumProc, (LPARAM)&info))
return info.control;
else
return 0;
/* INCLUDES *******************************************************************/
#include <user32.h>
+#define NDEBUG
+#include <debug.h>
/* GLOBALS *******************************************************************/
/* INCLUDES ******************************************************************/
#include <user32.h>
+#define NDEBUG
+#include <debug.h>
/* FUNCTIONS *****************************************************************/
/* INCLUDES ******************************************************************/
#include <user32.h>
+#define NDEBUG
+#include <debug.h>
/* FUNCTIONS *****************************************************************/
/* INCLUDES ******************************************************************/
#include <user32.h>
+#define NDEBUG
+#include <debug.h>
+
/* FUNCTIONS *****************************************************************/
/* INCLUDES ******************************************************************/
#include <user32.h>
+#define NDEBUG
+#include <debug.h>
/* GLOBALS *******************************************************************/
*
*/
-#define __WINE__
-
-#include <stdlib.h>
-#include <stdarg.h>
-#include <stdio.h>
-#include <string.h>
-#include <math.h>
-
-#include "windef.h"
-#include "winbase.h"
-#include "wingdi.h"
-#include "winuser.h"
-#include "wine/unicode.h"
-#include "user32.h"
-#include <winnls.h>
-#include "wine/debug.h"
-#include "dlgs.h"
+#include <user32.h>
+#define NDEBUG
+#include <debug.h>
+
WINE_DEFAULT_DEBUG_CHANNEL(mdi);
{
#ifdef __REACTOS__
DWORD Control = id;
- if (hwnd && !EnumChildWindows(hwnd, (ENUMWINDOWSPROC)&MDI_GetChildByID_EnumProc, (LPARAM)&Control))
+ if (hwnd && !EnumChildWindows(hwnd, (WNDENUMPROC)&MDI_GetChildByID_EnumProc, (LPARAM)&Control))
{
return (HWND)Control;
}
/* INCLUDES ******************************************************************/
#include <user32.h>
-#include "../controls/controls.h"
+#define NDEBUG
+#include <debug.h>
/* internal popup menu window messages */
#define MM_SETMENUHANDLE (WM_USER + 0)
*/
#include <user32.h>
+#define NDEBUG
+#include <debug.h>
/* DDE message exchange
*
/* INCLUDES ******************************************************************/
#include <user32.h>
+#define NDEBUG
+#include <debug.h>
/* DEFINES *******************************************************************/
/* INTERNAL FUNCTIONS ********************************************************/
-static inline unsigned int strlenW( const WCHAR *str )
-{
- const WCHAR *s = str;
- while (*s) s++;
- return s - str;
-}
-
static INT_PTR CALLBACK MessageBoxProc( HWND hwnd, UINT message,
WPARAM wParam, LPARAM lParam )
{
*/
#include <user32.h>
+#define NDEBUG
+#include <debug.h>
#define HAS_DLGFRAME(Style, ExStyle) \
(((ExStyle) & WS_EX_DLGMODALFRAME) || \
/* INCLUDES ******************************************************************/
#include <user32.h>
+#define NDEBUG
+#include <debug.h>
static HBRUSH FrameBrushes[13];
static HBITMAP hHatch;
/* INCLUDES ******************************************************************/
#include <user32.h>
+#define NDEBUG
+#include <debug.h>
BOOL ControlsInitialized = FALSE;
User32EnumWindows (
HDESK hDesktop,
HWND hWndparent,
- ENUMWINDOWSPROC lpfn,
+ WNDENUMPROC lpfn,
LPARAM lParam,
DWORD dwThreadId,
BOOL bChildren )
STDCALL
EnumChildWindows(
HWND hWndParent,
- ENUMWINDOWSPROC lpEnumFunc,
+ WNDENUMPROC lpEnumFunc,
LPARAM lParam)
{
if ( !hWndParent )
BOOL
STDCALL
EnumThreadWindows(DWORD dwThreadId,
- ENUMWINDOWSPROC lpfn,
+ WNDENUMPROC lpfn,
LPARAM lParam)
{
if ( !dwThreadId )
* @implemented
*/
BOOL STDCALL
-EnumWindows(ENUMWINDOWSPROC lpEnumFunc,
+EnumWindows(WNDENUMPROC lpEnumFunc,
LPARAM lParam)
{
return User32EnumWindows ( NULL, NULL, lpEnumFunc, lParam, 0, FALSE );
STDCALL
EnumDesktopWindows(
HDESK hDesktop,
- ENUMWINDOWSPROC lpfn,
+ WNDENUMPROC lpfn,
LPARAM lParam)
{
return User32EnumWindows ( hDesktop, NULL, lpfn, lParam, 0, FALSE );
--- /dev/null
+#ifndef _WINNLS32_\r
+#define _WINNLS32_\r
+\r
+#if __GNUC__ >=3\r
+#pragma GCC system_header\r
+#endif\r
+\r
+#ifdef __cplusplus\r
+extern "C" {\r
+#endif\r
+\r
+typedef struct _tagDATETIME\r
+{\r
+ WORD year;\r
+ WORD month;\r
+ WORD day;\r
+ WORD hour;\r
+ WORD min;\r
+ WORD sec;\r
+} DATETIME;\r
+\r
+typedef struct _tagIMEPROA\r
+{\r
+ HWND hWnd;\r
+ DATETIME InstDate;\r
+ UINT wVersion;\r
+ BYTE szDescription[50];\r
+ BYTE szName[80];\r
+ BYTE szOptions[30];\r
+} IMEPROA,*PIMEPROA,NEAR *NPIMEPROA,FAR *LPIMEPROA;\r
+\r
+typedef struct _tagIMEPROW\r
+{\r
+ HWND hWnd;\r
+ DATETIME InstDate;\r
+ UINT wVersion;\r
+ WCHAR szDescription[50];\r
+ WCHAR szName[80];\r
+ WCHAR szOptions[30];\r
+} IMEPROW,*PIMEPROW,NEAR *NPIMEPROW,FAR *LPIMEPROW;\r
+\r
+#ifdef UNICODE\r
+typedef IMEPROW IMEPRO;\r
+typedef PIMEPROW PIMEPRO;\r
+typedef NPIMEPROW NPIMEPRO;\r
+typedef LPIMEPROW LPIMEPRO;\r
+#define IMPGetIME IMPGetIMEW\r
+#define IMPQueryIME IMPQueryIMEW\r
+#define IMPSetIME IMPSetIMEW\r
+#else\r
+typedef IMEPROA IMEPRO;\r
+typedef PIMEPROA PIMEPRO;\r
+typedef NPIMEPROA NPIMEPRO;\r
+typedef LPIMEPROA LPIMEPRO;\r
+#define IMPGetIME IMPGetIMEA\r
+#define IMPQueryIME IMPQueryIMEA\r
+#define IMPSetIME IMPSetIMEA\r
+#endif\r
+\r
+BOOL WINAPI IMPGetIMEA(HWND, LPIMEPROA);\r
+BOOL WINAPI IMPGetIMEW(HWND, LPIMEPROW);\r
+BOOL WINAPI IMPQueryIMEA(LPIMEPROA);\r
+BOOL WINAPI IMPQueryIMEW(LPIMEPROW);\r
+BOOL WINAPI IMPSetIMEA(HWND, LPIMEPROA);\r
+BOOL WINAPI IMPSetIMEW(HWND, LPIMEPROW);\r
+UINT WINAPI WINNLSGetIMEHotkey(HWND);\r
+BOOL WINAPI WINNLSEnableIME(HWND, BOOL);\r
+BOOL WINAPI WINNLSGetEnableStatus(HWND);\r
+\r
+#ifdef __cplusplus\r
+}\r
+#endif\r
+\r
+#endif /* _USERENV_H */\r
typedef LRESULT(CALLBACK *WNDPROC)(HWND,UINT,WPARAM,LPARAM);
typedef BOOL(CALLBACK *DRAWSTATEPROC)(HDC,LPARAM,WPARAM,int,int);
typedef BOOL(CALLBACK *WNDENUMPROC)(HWND,LPARAM);
-typedef BOOL(CALLBACK *ENUMWINDOWSPROC)(HWND,LPARAM);
typedef BOOL(CALLBACK* MONITORENUMPROC)(HMONITOR,HDC,LPRECT,LPARAM);
typedef BOOL(CALLBACK *NAMEENUMPROCA)(LPSTR,LPARAM);
typedef BOOL(CALLBACK *NAMEENUMPROCW)(LPWSTR,LPARAM);
#if (_WIN32_WINNT >= 0x0500)
BOOL WINAPI EndTask(HWND,BOOL,BOOL);
#endif
-BOOL WINAPI EnumChildWindows(HWND,ENUMWINDOWSPROC,LPARAM);
+BOOL WINAPI EnumChildWindows(HWND,WNDENUMPROC,LPARAM);
UINT WINAPI EnumClipboardFormats(UINT);
BOOL WINAPI EnumDesktopsA(HWINSTA,DESKTOPENUMPROCA,LPARAM);
BOOL WINAPI EnumDesktopsW(HWINSTA,DESKTOPENUMPROCW,LPARAM);
-BOOL WINAPI EnumDesktopWindows(HDESK,ENUMWINDOWSPROC,LPARAM);
+BOOL WINAPI EnumDesktopWindows(HDESK,WNDENUMPROC,LPARAM);
BOOL WINAPI EnumDisplayMonitors(HDC,LPCRECT,MONITORENUMPROC,LPARAM);
#ifndef NOGDI
BOOL WINAPI EnumDisplaySettingsA(LPCSTR,DWORD,PDEVMODEA);