Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

user.h File Reference

#include "winerrp.h"

Go to the source code of this file.

Classes

union  tagALWAYSZERO
struct  tagSIZERECT
struct  _CAPTUREBUF
struct  _CALLBACKSTATUS
struct  _LARGE_STRING
struct  _LARGE_ANSI_STRING
struct  _LARGE_UNICODE_STRING
struct  _CTLCOLOR
struct  _DRAWICONEXDATA
struct  _CALLBACKWND
struct  _CLIENTINFO
struct  _PROPSET
struct  tagEVENT_PACKET
struct  POINT5
struct  BROADCASTSYSTEMMSGPARAMS
struct  _PFNCLIENT
struct  _PFNCLIENTWORKER
struct  tagOEMBITMAPINFO
struct  tagPERUSERSERVERINFO
struct  tagSERVERINFO
struct  _WNDMSG
struct  tagSHAREDINFO
struct  _USERCONNECT
struct  tagGETCLIPBDATA
struct  tagSETCLIPBDATA
struct  tagHANDLETYPEINFO
struct  _HEAD
struct  _THROBJHEAD
struct  _PROCOBJHEAD
struct  _PROCMARKHEAD
struct  _DESKHEAD
struct  _DESKOBJHEAD
struct  _THRDESKHEAD
struct  _PROCDESKHEAD
struct  _HANDLEENTRY
struct  _CALLPROCDATA
struct  tagCOMMON_WNDCLASS
struct  tagCLSMENUNAME
struct  tagCLS
struct  tagSBDATA
struct  tagSBINFO
struct  tagPROP
struct  tagPROPLIST
struct  tagWND
struct  tagCBox
struct  tagCOMBOWND
struct  _SCROLLPOS
struct  tagLBIV
struct  tagLBWND
struct  tagIMC
struct  tagHOOK
struct  tagNAMELIST
struct  tagMONITOR
struct  tagDISPLAYINFO
struct  tagDESKTOPINFO
struct  tagCURSORDATA
struct  tagCURSORFIND
struct  tagITEM
struct  tagMENU
struct  tagDLGENUMDATA
struct  tagSBCALC
struct  tagSBTRACK
struct  _DLG
struct  _DIALOG
struct  tagCLIENTTHREADINFO
struct  tagCARET
struct  tagSBWND
struct  tagSNDMSGTIMEOUT
struct  tagBUTN
struct  tagBUTNWND
struct  tagIMEUI
struct  tagIMEWND
struct  _MSGBOXDATA
struct  DRAWTEXTDATA
struct  tagLPKEDITCALLOUT
struct  _DOCONNECTDATA
struct  _DORECONNECTDATA
struct  tagMSG_TABLE_ENTRY
struct  tagMNDRAGOVERINFO

Defines

#define FASTCALL
#define UTCHAR   UCHAR
#define ARRAY_SIZE(a)   (sizeof(a) / sizeof((a)[0]))
#define ICON_PROP_NAME   L"SysIC"
#define DbgPrint   UserDbgPrint
#define ZERO(t)   ((*(t *)&gZero))
#define PZERO(t)   ((t *)&gZero)
#define GET_X_LPARAM(lp)   ((int)(short)LOWORD(lp))
#define GET_Y_LPARAM(lp)   ((int)(short)HIWORD(lp))
#define TEST_FLAG(field, flag)   ((field) & (flag))
#define TEST_BOOL_FLAG(field, flag)   (((field) & (flag)) != 0)
#define SET_FLAG(field, flag)   ((field) |= (flag))
#define CLEAR_FLAG(field, flag)   ((field) &= ~(flag))
#define TOGGLE_FLAG(field, flag)   ((field ^= (flag))
#define COPY_FLAG(fieldDst, fieldSrc, flag)   ((fieldDst) ^= ((fieldDst) ^ (fieldSrc)) & (flag))
#define SET_OR_CLEAR_FLAG(field, flag, fset)   COPY_FLAG((field), -!!(fset), (flag))
#define GetClientInfo()   ((PCLIENTINFO)((NtCurrentTeb())->Win32ClientInfo))
#define HEVENT_REMOVEME   ((HANDLE)IntToPtr( 0xFFFFFFFF ))
#define SYSMET(i)   ((int)gpsi->aiSysMet[SM_##i])
#define SYSMETRTL(i)   ((int)gpsi->aiSysMet[SM_##i])
#define SYSRGB(i)   gpsi->argbSystem[COLOR_##i]
#define SYSRGBRTL(i)   gpsi->argbSystem[COLOR_##i]
#define SYSHBR(i)   ahbrSystem[COLOR_##i]
#define SYSHBRRTL(i)   ahbrSystem[COLOR_##i]
#define DESTINATION   (DWORD)0x00AA0000
#define SOURCE   (DWORD)0x00CC0000
#define PATTERN   (DWORD)0x00F00000
#define BI_CHECKBOX   0
#define BI_RADIOBUTTON   1
#define BI_3STATE   2
#define NUM_BUTTON_TYPES   3
#define NUM_BUTTON_STATES   4
#define MAX_MB_STRINGS   9
#define CopyRect   CopyRectInl
#define EqualRect   EqualRectInl
#define SetRectEmpty   SetRectEmptyInl
#define TEXT_FN(fn)   fn##A
#define BYTESTOCHARS(cb)   (cb)
#define CHARSTOBYTES(cch)   (cch)
#define DESKTOPCLASS   MAKEINTATOM(0x8001)
#define DIALOGCLASS   MAKEINTATOM(0x8002)
#define SWITCHWNDCLASS   MAKEINTATOM(0x8003)
#define ICONTITLECLASS   MAKEINTATOM(0x8004)
#define INFOCLASS   MAKEINTATOM(0x8005)
#define TOOLTIPCLASS   MAKEINTATOM(0x8006)
#define MENUCLASS   MAKEINTATOM(0x8000) /* Public Knowledge */
#define IDSYS_WNDTRACKING   0x0000FFF7L
#define IDSYS_FLASHWND   0x0000FFF8L
#define IDSYS_MNAUTODISMISS   0x0000FFF9L
#define IDSYS_MOUSEHOVER   0x0000FFFAL
#define IDSYS_MNANIMATE   0x0000FFFBL
#define IDSYS_MNDOWN   MFMWFP_DOWNARROW /* 0xFFFFFFFC */
#define IDSYS_LBSEARCH   0x0000FFFCL
#define IDSYS_MNUP   MFMWFP_UPARROW /* 0xFFFFFFFD */
#define IDSYS_STANIMATE   0x0000FFFDL
#define IDSYS_MNSHOW   0x0000FFFEL
#define IDSYS_SCROLL   0x0000FFFEL
#define IDSYS_MNHIDE   0x0000FFFFL
#define IDSYS_CARET   0x0000FFFFL
#define CODEBIT   0x80
#define BUTTONCODE   0x80
#define EDITCODE   0x81
#define STATICCODE   0x82
#define LISTBOXCODE   0x83
#define SCROLLBARCODE   0x84
#define COMBOBOXCODE   0x85
#define MDICLIENTCODE   0x86
#define COMBOLISTBOXCODE   0x87
#define ICLS_BUTTON   0
#define ICLS_EDIT   1
#define ICLS_STATIC   2
#define ICLS_LISTBOX   3
#define ICLS_SCROLLBAR   4
#define ICLS_COMBOBOX   5
#define ICLS_CTL_MAX   6
#define ICLS_DESKTOP   6
#define ICLS_DIALOG   7
#define ICLS_MENU   8
#define ICLS_SWITCH   9
#define ICLS_ICONTITLE   10
#define ICLS_MDICLIENT   11
#define ICLS_COMBOLISTBOX   12
#define ICLS_DDEMLEVENT   13
#define ICLS_DDEMLMOTHER   14
#define ICLS_DDEML16BIT   15
#define ICLS_DDEMLCLIENTA   16
#define ICLS_DDEMLCLIENTW   17
#define ICLS_DDEMLSERVERA   18
#define ICLS_DDEMLSERVERW   19
#define ICLS_IME   20
#define ICLS_TOOLTIP   21
#define ICLS_MAX   22
#define WINSTA_DIR   L"\\Windows\\WindowStations"
#define WINSTA_SESSION_DIR   L"\\Sessions\\xxxxxxxxxxx\\Windows\\WindowStations"
#define WINSTA_NAME   L"Service-0x0000-0000$"
#define MAX_SESSION_PATH   256
#define SESSION_ROOT   L"\\Sessions"
#define CALLBACKSTACKLIMIT   (PAGE_SIZE / 2)
#define IS_PTR(p)   ((((ULONG_PTR)(p)) & ~MAXUSHORT) != 0)
#define PTR_TO_ID(p)   ((USHORT)(((ULONG_PTR)(p)) & MAXUSHORT))
#define VER50   0x0500
#define VER40   0x0400
#define VER31   0x030A
#define VER30   0x0300
#define Is500Compat(dwExpWinVer)   (LOWORD(dwExpWinVer) >= VER50)
#define Is400Compat(dwExpWinVer)   (LOWORD(dwExpWinVer) >= VER40)
#define Is310Compat(dwExpWinVer)   (LOWORD(dwExpWinVer) >= VER31)
#define Is300Compat(dwExpWinVer)   (LOWORD(dwExpWinVer) >= VER30)
#define CVKKEYCACHE   32
#define CBKEYCACHE   (CVKKEYCACHE >> 2)
#define CVKASYNCKEYCACHE   16
#define CBASYNCKEYCACHE   (CVKASYNCKEYCACHE >> 2)
#define CI_IN_SYNC_TRANSACTION   0x00000001
#define CI_PROCESSING_QUEUE   0x00000002
#define CI_16BIT   0x00000004
#define CI_INITIALIZED   0x00000008
#define CI_INTERTHREAD_HOOK   0x00000010
#define CI_REGISTERCLASSES   0x00000020
#define THREAD_CODEPAGE()   (GetClientInfo()->CodePage)
#define WMCR_IR_DBCSCHAR   0x80000000
#define IS_DBCS_MESSAGE(DbcsChar)   (((DWORD)(DbcsChar)) & 0x0000FF00)
#define MAKE_IR_DBCSCHAR(DbcsChar)
#define MAKE_WPARAM_DBCSCHAR(DbcsChar)
#define DBCS_CHARSIZE   (2)
#define IS_DBCS_SYSTEM()   (TEST_SRVIF(SRVIF_DBCS))
#define IS_DBCS_ENABLED()   (TEST_SRVIF(SRVIF_DBCS))
#define IS_IME_ENABLED()   (TEST_SRVIF(SRVIF_IME))
#define IMM_MAGIC_CALLER_ID   (0x19650412)
#define IS_MIDEAST_ENABLED()   (TEST_SRVIF(SRVIF_MIDEAST))
#define WMCS_EXIT   0x0001
#define WMCS_QUERYEND   0x0002
#define WMCS_SHUTDOWN   0x0004
#define WMCS_CONTEXTLOGOFF   0x0008
#define WMCS_ENDTASK   0x0010
#define WMCS_CONSOLE   0x0020
#define WMCS_NODLGIFHUNG   0x0040
#define WMCS_NORETRY   0x0080
#define WMCS_LOGOFF   ENDSESSION_LOGOFF /* from winuser.w */
#define WMCSR_ALLOWSHUTDOWN   1
#define WMCSR_DONE   2
#define WMCSR_CANCEL   3
#define MultDiv(x, y, z)   (((INT)(x) * (INT)(y) + (INT)(z) / 2) / (INT)(z))
#define MFISPOPUP   0x00000001
#define MFMULTIROW   0x00000002
#define MFUNDERLINE   0x00000004
#define MFWINDOWDC   0x00000008 /* Window DC vs Client area DC when drawing*/
#define MFINACTIVE   0x00000010
#define MFRTL   0x00000020
#define MFDESKTOP   0x00000040
#define MFSYSMENU   0x00000080
#define MFLAST   0x00000080
#define GWLP_INSTANCE_INFO   0
#define GWLP_PCI   0
#define GWL_CONVCONTEXT   GWLP_PCI + sizeof(PVOID)
#define GWL_CONVSTATE   GWL_CONVCONTEXT + sizeof(CONVCONTEXT)
#define GWLP_SHINST   GWL_CONVSTATE + sizeof(LONG)
#define GWLP_CHINST   GWLP_SHINST + sizeof(HANDLE)
#define CLST_CONNECTED   0
#define CLST_SINGLE_INITIALIZING   1
#define CLST_MULT_INITIALIZING   2
#define GWLP_PSI   0
#define GWLP_PSII   0
#define DF_SHIFT0   0x0000
#define DF_SHIFT1   0x0001
#define DF_SHIFT2   0x0002
#define DF_SHIFT3   0x0003
#define DF_PATCOPY   0x0000
#define DF_PATINVERT   0x0004
#define DF_SHIFTMASK   (DF_SHIFT0 | DF_SHIFT1 | DF_SHIFT2 | DF_SHIFT3)
#define DF_ROPMASK   (DF_PATCOPY | DF_PATINVERT)
#define DF_HBRMASK   ~(DF_SHIFTMASK | DF_ROPMASK)
#define DF_SCROLLBAR   (COLOR_SCROLLBAR << 3)
#define DF_BACKGROUND   (COLOR_BACKGROUND << 3)
#define DF_ACTIVECAPTION   (COLOR_ACTIVECAPTION << 3)
#define DF_INACTIVECAPTION   (COLOR_INACTIVECAPTION << 3)
#define DF_MENU   (COLOR_MENU << 3)
#define DF_WINDOW   (COLOR_WINDOW << 3)
#define DF_WINDOWFRAME   (COLOR_WINDOWFRAME << 3)
#define DF_MENUTEXT   (COLOR_MENUTEXT << 3)
#define DF_WINDOWTEXT   (COLOR_WINDOWTEXT << 3)
#define DF_CAPTIONTEXT   (COLOR_CAPTIONTEXT << 3)
#define DF_ACTIVEBORDER   (COLOR_ACTIVEBORDER << 3)
#define DF_INACTIVEBORDER   (COLOR_INACTIVEBORDER << 3)
#define DF_APPWORKSPACE   (COLOR_APPWORKSPACE << 3)
#define DF_3DSHADOW   (COLOR_3DSHADOW << 3)
#define DF_3DFACE   (COLOR_3DFACE << 3)
#define DF_GRAY   (COLOR_MAX << 3)
#define WS_EX_MDICHILD   0x00000040L
#define WS_EX_ANSICREATOR   0x80000000L
#define FIELD_SIZE(type, field)   (sizeof(((type *)0)->field))
#define FLASTKEY   0x80
#define FNID_START   0x0000029A
#define FNID_WNDPROCSTART   0x0000029A
#define FNID_SCROLLBAR   0x0000029A
#define FNID_ICONTITLE   0x0000029B
#define FNID_MENU   0x0000029C
#define FNID_DESKTOP   0x0000029D
#define FNID_DEFWINDOWPROC   0x0000029E
#define FNID_WNDPROCEND   0x0000029E
#define FNID_CONTROLSTART   0x0000029F
#define FNID_BUTTON   0x0000029F
#define FNID_COMBOBOX   0x000002A0
#define FNID_COMBOLISTBOX   0x000002A1
#define FNID_DIALOG   0x000002A2
#define FNID_EDIT   0x000002A3
#define FNID_LISTBOX   0x000002A4
#define FNID_MDICLIENT   0x000002A5
#define FNID_STATIC   0x000002A6
#define FNID_IME   0x000002A7
#define FNID_CONTROLEND   0x000002A7
#define FNID_HKINLPCWPEXSTRUCT   0x000002A8
#define FNID_HKINLPCWPRETEXSTRUCT   0x000002A9
#define FNID_DEFFRAMEPROC   0x000002AA
#define FNID_DEFMDICHILDPROC   0x000002AB
#define FNID_MB_DLGPROC   0x000002AC
#define FNID_MDIACTIVATEDLGPROC   0x000002AD
#define FNID_SENDMESSAGE   0x000002AE
#define FNID_SENDMESSAGEFF   0x000002AF
#define FNID_SENDMESSAGEEX   0x000002B0
#define FNID_CALLWINDOWPROC   0x000002B1
#define FNID_SENDMESSAGEBSM   0x000002B2
#define FNID_SWITCH   0x000002B3
#define FNID_TOOLTIP   0x000002B4
#define FNID_END   0x000002B4
#define FNID_ARRAY_SIZE   32
#define FNID_DDE_BIT   0x00002000
#define FNID_CLEANEDUP_BIT   0x00004000
#define FNID_DELETED_BIT   0x00008000
#define FNID_STATUS_BITS   (FNID_CLEANEDUP_BIT | FNID_DELETED_BIT)
#define FNID(s)   (gpsi->mpFnidPfn[((DWORD)(s) - FNID_START) & (FNID_ARRAY_SIZE - 1)])
#define STOCID(s)   (gpsi->aStoCidPfn[(DWORD)((s) & ~FNID_STATUS_BITS) - FNID_START])
#define CBFNID(s)   (gpsi->mpFnid_serverCBWndProc[(DWORD)((s) & ~FNID_STATUS_BITS) - FNID_START])
#define GETFNID(pwnd)   ((pwnd)->fnid & ~FNID_STATUS_BITS)
#define FNID_TO_CLIENT_PFNA(s)   (*(((ULONG_PTR *)&gpsi->apfnClientA) + (s - FNID_START)))
#define FNID_TO_CLIENT_PFNW(s)   (*(((ULONG_PTR *)&gpsi->apfnClientW) + (s - FNID_START)))
#define FNID_TO_CLIENT_PFNWORKER(s)   (*(((ULONG_PTR *)&gpsi->apfnClientWorker) + (s - FNID_CONTROLSTART)))
#define TYPE_FREE   0
#define TYPE_WINDOW   1
#define TYPE_MENU   2
#define TYPE_CURSOR   3
#define TYPE_SETWINDOWPOS   4
#define TYPE_HOOK   5
#define TYPE_CLIPDATA   6
#define TYPE_CALLPROC   7
#define TYPE_ACCELTABLE   8
#define TYPE_DDEACCESS   9
#define TYPE_DDECONV   10
#define TYPE_DDEXACT   11
#define TYPE_MONITOR   12
#define TYPE_KBDLAYOUT   13
#define TYPE_KBDFILE   14
#define TYPE_WINEVENTHOOK   15
#define TYPE_TIMER   16
#define TYPE_INPUTCONTEXT   17
#define TYPE_CTYPES   18
#define TYPE_GENERIC   255
#define DOBI_NORMAL   0
#define DOBI_PUSHED   1
#define DOBI_HOT   2
#define DOBI_INACTIVE   3
#define DOBI_CHECK   1
#define DOBI_DOWN   2
#define DOBI_CHECKDOWN   3
#define DOBI_CAPON   0
#define DOBI_CAPOFF   1
#define DOBI_3STATE   8
#define DOBI_MBAR   OBI_CLOSE_MBAR
#define OBI_CLOSE   0
#define OBI_CLOSE_D   1
#define OBI_CLOSE_H   2
#define OBI_CLOSE_I   3
#define OBI_REDUCE   4
#define OBI_REDUCE_D   5
#define OBI_REDUCE_H   6
#define OBI_REDUCE_I   7
#define OBI_RESTORE   8
#define OBI_RESTORE_D   9
#define OBI_RESTORE_H   10
#define OBI_HELP   11
#define OBI_HELP_D   12
#define OBI_HELP_H   13
#define OBI_ZOOM   14
#define OBI_ZOOM_D   15
#define OBI_ZOOM_H   16
#define OBI_ZOOM_I   17
#define OBI_CLOSE_MBAR   18
#define OBI_CLOSE_MBAR_D   19
#define OBI_CLOSE_MBAR_H   20
#define OBI_CLOSE_MBAR_I   21
#define OBI_REDUCE_MBAR   22
#define OBI_REDUCE_MBAR_D   23
#define OBI_REDUCE_MBAR_H   24
#define OBI_REDUCE_MBAR_I   25
#define OBI_RESTORE_MBAR   26
#define OBI_RESTORE_MBAR_D   27
#define OBI_RESTORE_MBAR_H   28
#define OBI_CAPCACHE1   29
#define OBI_CAPCACHE1_I   30
#define OBI_CAPCACHE2   31
#define OBI_CAPCACHE2_I   32
#define OBI_CAPCACHE3   33
#define OBI_CAPCACHE3_I   34
#define OBI_CAPCACHE4   35
#define OBI_CAPCACHE4_I   36
#define OBI_CAPCACHE5   37
#define OBI_CAPCACHE5_I   38
#define OBI_CAPBTNS   39
#define OBI_CAPBTNS_I   40
#define OBI_CLOSE_PAL   41
#define OBI_CLOSE_PAL_D   42
#define OBI_CLOSE_PAL_H   43
#define OBI_CLOSE_PAL_I   44
#define OBI_NCGRIP   45
#define OBI_UPARROW   46
#define OBI_UPARROW_D   47
#define OBI_UPARROW_H   48
#define OBI_UPARROW_I   49
#define OBI_DNARROW   50
#define OBI_DNARROW_D   51
#define OBI_DNARROW_H   52
#define OBI_DNARROW_I   53
#define OBI_RGARROW   54
#define OBI_RGARROW_D   55
#define OBI_RGARROW_H   56
#define OBI_RGARROW_I   57
#define OBI_LFARROW   58
#define OBI_LFARROW_D   59
#define OBI_LFARROW_H   60
#define OBI_LFARROW_I   61
#define OBI_MENUARROW   62
#define OBI_MENUCHECK   63
#define OBI_MENUBULLET   64
#define OBI_MENUARROWUP   65
#define OBI_MENUARROWUP_H   66
#define OBI_MENUARROWUP_I   67
#define OBI_MENUARROWDOWN   68
#define OBI_MENUARROWDOWN_H   69
#define OBI_MENUARROWDOWN_I   70
#define OBI_RADIOMASK   71
#define OBI_CHECK   72
#define OBI_CHECK_C   73
#define OBI_CHECK_D   74
#define OBI_CHECK_CD   75
#define OBI_CHECK_CDI   76
#define OBI_RADIO   77
#define OBI_RADIO_C   78
#define OBI_RADIO_D   79
#define OBI_RADIO_CD   80
#define OBI_RADIO_CDI   81
#define OBI_3STATE   82
#define OBI_3STATE_C   83
#define OBI_3STATE_D   84
#define OBI_3STATE_CD   85
#define OBI_3STATE_CDI   86
#define OBI_POPUPFIRST   87
#define OBI_CLOSE_POPUP   87
#define OBI_RESTORE_POPUP   88
#define OBI_ZOOM_POPUP   89
#define OBI_REDUCE_POPUP   90
#define OBI_NCGRIP_L   91
#define OBI_MENUARROW_L   92
#define OBI_COUNT   93
#define NCHARS   256
#define NCTRLS   0x20
#define PUSIF_PALETTEDISPLAY   0x01 /* Is the display palettized? */
#define PUSIF_SNAPTO   0x02 /* Is SnapTo enabled? */
#define PUSIF_COMBOBOXANIMATION   0x04 /* Must match UPBOOLMask(SPI_GETCOMBOBOXANIMATION) */
#define PUSIF_LISTBOXSMOOTHSCROLLING   0x08 /* Must match UPBOOLMask(SPI_GETLISTBOXSMOOTHSCROLLING) */
#define TEST_PUSIF(f)   TEST_FLAG(gpsi->PUSIFlags, f)
#define TEST_BOOL_PUSIF(f)   TEST_BOOL_FLAG(gpsi->PUSIFlags, f)
#define SET_PUSIF(f)   SET_FLAG(gpsi->PUSIFlags, f)
#define CLEAR_PUSIF(f)   CLEAR_FLAG(gpsi->PUSIFlags, f)
#define SET_OR_CLEAR_PUSIF(f, fSet)   SET_OR_CLEAR_FLAG(gpsi->PUSIFlags, f, fSet)
#define TOGGLE_PUSIF(f)   TOGGLE_FLAG(gpsi->PUSIFlags, f)
#define SRVIF_CHECKED   0x0001
#define SRVIF_WINEVENTHOOKS   0x0002
#define SRVIF_DBCS   0x0004
#define SRVIF_IME   0x0008
#define SRVIF_MIDEAST   0x0010
#define TEST_SRVIF(f)   TEST_FLAG(gpsi->wSRVIFlags, f)
#define TEST_BOOL_SRVIF(f)   TEST_BOOL_FLAG(gpsi->wSRVIFlags, f)
#define SET_SRVIF(f)   SET_FLAG(gpsi->wSRVIFlags, f)
#define CLEAR_SRVIF(f)   CLEAR_FLAG(gpsi->wSRVIFlags, f)
#define SET_OR_CLEAR_SRVIF(f, fSet)   SET_OR_CLEAR_FLAG(gpsi->wSRVIFlags, f, fSet)
#define TOGGLE_SRVIF(f)   TOGGLE_FLAG(gpsi->wSRVIFlags, f)
#define RIPF_PROMPTONERROR   0x0001
#define RIPF_PROMPTONWARNING   0x0002
#define RIPF_PROMPTONVERBOSE   0x0004
#define RIPF_PRINTONERROR   0x0010
#define RIPF_PRINTONWARNING   0x0020
#define RIPF_PRINTONVERBOSE   0x0040
#define RIPF_PRINTFILELINE   0x0100
#define RIPF_HIDEPID   0x0200
#define RIPF_DEFAULT
#define RIPF_PROMPT_MASK   0x0007
#define RIPF_PROMPT_SHIFT   0x00
#define RIPF_PRINT_MASK   0x0070
#define RIPF_PRINT_SHIFT   0x04
#define RIPF_VALIDUSERFLAGS   0x0377
#define TEST_RIPF(f)   TEST_FLAG((gpsi) ? gpsi->wRIPFlags : RIPF_DEFAULT, f)
#define TEST_BOOL_RIPF(f)   TEST_BOOL_FLAG((gpsi) ? gpsi->wRIPFlags : RIPF_DEFAULT, f)
#define SET_RIPF(f)   do{UserAssert(gpsi); SET_FLAG(gpsi->wRIPFlags, f);}while (FALSE)
#define CLEAR_RIPF(f)   do{UserAssert(gpsi); CLEAR_FLAG(gpsi->wRIPFlags, f);}while (FALSE)
#define SET_OR_CLEAR_RIPF(f, fSet)   do{UserAssert(gpsi); SET_OR_CLEAR_FLAG(gpsi->wRIPFlags, f, fSet);}while (FALSE)
#define TOGGLE_RIPF(f)   do{UserAssert(gpsi); TOGGLE_FLAG(gpsi->wRIPFlags, f);}while (FALSE)
#define FWINABLE()   TEST_SRVIF(SRVIF_WINEVENTHOOKS)
#define GETGPSIMBPSTR(u)   (LPWSTR) ((LPBYTE)gpsi->AllMBbtnStrings + *(gpsi->AllMBbtnStrings+(u)))
#define USER_MAJOR_VERSION   0x0005
#define USER_MINOR_VERSION   0x0000
#define USERCURRENTVERSION   MAKELONG(USER_MINOR_VERSION, USER_MAJOR_VERSION)
#define SSCF_NOTIFY   0x00000001
#define SSCF_FORCESOLIDCOLOR   0x00000002
#define SSCF_SETMAGICCOLORS   0x00000004
#define OCF_THREADOWNED   0x01
#define OCF_PROCESSOWNED   0x02
#define OCF_MARKPROCESS   0x04
#define OCF_USEPOOLQUOTA   0x08
#define OCF_DESKTOPHEAP   0x10
#define OCF_USEPOOLIFNODESKTOP   0x20
#define OCF_SHAREDHEAP   0x40
#define OCF_VARIABLESIZE   0
#define HANDLEF_DESTROY   0x01
#define HANDLEF_INDESTROY   0x02
#define HANDLEF_INWAITFORDEATH   0x04
#define HANDLEF_FINALDESTROY   0x08
#define HANDLEF_MARKED_OK   0x10
#define HANDLEF_GRANTED   0x20
#define HANDLEF_VALID   0x3F
#define HMINDEXBITS   0x0000FFFF
#define HMUNIQSHIFT   16
#define HMUNIQBITS   0xFFFF
#define HMHandleFromIndex(i)   ((HANDLE)(i | (gSharedInfo.aheList[i].wUniq << HMUNIQSHIFT)))
#define HMIndexFromHandle(h)   (((ULONG_PTR)h) & HMINDEXBITS)
#define _HMPheFromObject(p)   (&gSharedInfo.aheList[HMIndexFromHandle((((PHEAD)p)->h))])
#define _HMObjectFromHandle(h)   ((PVOID)(gSharedInfo.aheList[HMIndexFromHandle(h)].phead))
#define HMUniqFromHandle(h)   ((WORD)((((ULONG_PTR)h) >> HMUNIQSHIFT) & HMUNIQBITS))
#define HMObjectType(p)   (HMPheFromObject(p)->bType)
#define HMObjectFlags(p)   (gahti[HMObjectType(p)].bObjectCreateFlags)
#define HMIsMarkDestroy(p)   (HMPheFromObject(p)->bFlags & HANDLEF_DESTROY)
#define HMRevalidateHandle(h)   HMValidateHandleNoSecure(h, TYPE_GENERIC)
#define HMRevalidateHandleNoRip(h)   HMValidateHandleNoRip(h, TYPE_GENERIC)
#define RevalidateHmenu(hmenuX)   HMValidateHandleNoRip(hmenuX, TYPE_MENU)
#define _PtoHq(p)   ((HANDLE)(((PHEAD)p)->h))
#define _PtoH(p)   ((HANDLE)((p) == NULL ? NULL : _PtoHq(p)))
#define _HW(pwnd)   ((HWND)_PtoH(pwnd))
#define _HWq(pwnd)   ((HWND)_PtoHq(pwnd))
#define HMPheFromObject(p)   _HMPheFromObject(p)
#define HMObjectFromHandle(h)   _HMObjectFromHandle(h)
#define PtoH(p)   _PtoH(p)
#define PtoHq(p)   _PtoHq(p)
#define HW(pwnd)   _HW(pwnd)
#define HWq(pwnd)   _HWq(pwnd)
#define _GETPTI(p)   (((PTHROBJHEAD)p)->pti)
#define _GETPDESK(p)   (((PDESKOBJHEAD)p)->rpdesk)
#define _GETPPI(p)   (((PPROCMARKHEAD)p)->ppi)
#define GETPTI(p)   _GETPTI(p)
#define GETPDESK(p)   _GETPDESK(p)
#define GETPPI(p)   _GETPPI(p)
#define GETPWNDPPI(p)   (GETPTI(p)->ppi)
#define CPD_ANSI_TO_UNICODE   0x0001 /* CPD represents ansi to U transition */
#define CPD_UNICODE_TO_ANSI   0x0002
#define CPD_TRANSITION_TYPES   (CPD_ANSI_TO_UNICODE|CPD_UNICODE_TO_ANSI)
#define CPD_CLASS   0x0010 /* Get CPD for a class */
#define CPD_WND   0x0020
#define CPD_DIALOG   0x0040
#define CPD_WNDTOCLS   0x0080
#define CPDHANDLE_HI   0xFFFF
#define MAKE_CPDHANDLE(h)   (MAKELONG((WORD)(ULONG_PTR)h,CPDHANDLE_HI))
#define ISCPDTAG(x)   (HIWORD((ULONG_PTR)x) == CPDHANDLE_HI)
#define CFVREDRAW   0x0001
#define CFHREDRAW   0x0002
#define CFKANJIWINDOW   0x0004
#define CFDBLCLKS   0x0008
#define CFSERVERSIDEPROC   0x0010
#define CFOWNDC   0x0020
#define CFCLASSDC   0x0040
#define CFPARENTDC   0x0080
#define CFNOKEYCVT   0x0101
#define CFNOCLOSE   0x0102
#define CFLVB   0x0104
#define CFSAVEBITS   0x0108
#define CFOEMCHARS   0x0140
#define CFIME   0x0201
#define CFCACHEDSMICON   0x0304
#define CFOFFSET   (sizeof(CLS) - sizeof(COMMON_WNDCLASS))
#define TestCF(hwnd, flag)   (*((BYTE *)((PWND)(hwnd))->pcls + CFOFFSET + HIBYTE(flag)) & LOBYTE(flag))
#define SetCF(hwnd, flag)   (*((BYTE *)((PWND)(hwnd))->pcls + CFOFFSET + HIBYTE(flag)) |= LOBYTE(flag))
#define ClrCF(pcls, flag)   (*((BYTE *)((PWND)(hwnd))->pcls + CFOFFSET + HIBYTE(flag)) &= ~LOBYTE(flag))
#define TestCF2(pcls, flag)   (*((BYTE *)(pcls) + CFOFFSET + (int)HIBYTE(flag)) & LOBYTE(flag))
#define SetCF2(pcls, flag)   (*((BYTE *)(pcls) + CFOFFSET + (int)HIBYTE(flag)) |= LOBYTE(flag))
#define ClrCF2(pcls, flag)   (*((BYTE *)(pcls) + CFOFFSET + (int)HIBYTE(flag)) &= ~LOBYTE(flag))
#define PWCFromPCLS(pcls)   ((PWC)((PBYTE)(pcls) + sizeof(CLS) + (pcls)->cbclsExtra))
#define CSF_SERVERSIDEPROC   0x0001
#define CSF_ANSIPROC   0x0002
#define CSF_WOWDEFERDESTROY   0x0004
#define CSF_SYSTEMCLASS   0x0008
#define CSF_WOWCLASS   0x0010
#define CSF_WOWEXTRA   0x0020
#define PROPF_INTERNAL   0x0001
#define PROPF_STRING   0x0002
#define PROPF_NOPOOL   0x0004
#define NEEDSPAINT(pwnd)   (pwnd->hrgnUpdate != NULL || TestWF(pwnd, WFINTERNALPAINT))
#define HF_GLOBAL   0x0001
#define HF_ANSI   0x0002
#define HF_NEEDHC_SKIP   0x0004
#define HF_HUNG   0x0008
#define HF_HOOKFAULTED   0x0010
#define HF_NOPLAYBACKDELAY   0x0020
#define HF_WX86KNOWNDLL   0x0040
#define HF_DESTROYED   0x0080
#define WHF_FROM_WH(n)   (1 << (n + 1))
#define WHF_MSGFILTER   WHF_FROM_WH(WH_MSGFILTER)
#define WHF_JOURNALRECORD   WHF_FROM_WH(WH_JOURNALRECORD)
#define WHF_JOURNALPLAYBACK   WHF_FROM_WH(WH_JOURNALPLAYBACK)
#define WHF_KEYBOARD   WHF_FROM_WH(WH_KEYBOARD)
#define WHF_GETMESSAGE   WHF_FROM_WH(WH_GETMESSAGE)
#define WHF_CALLWNDPROC   WHF_FROM_WH(WH_CALLWNDPROC)
#define WHF_CALLWNDPROCRET   WHF_FROM_WH(WH_CALLWNDPROCRET)
#define WHF_CBT   WHF_FROM_WH(WH_CBT)
#define WHF_SYSMSGFILTER   WHF_FROM_WH(WH_SYSMSGFILTER)
#define WHF_MOUSE   WHF_FROM_WH(WH_MOUSE)
#define WHF_HARDWARE   WHF_FROM_WH(WH_HARDWARE)
#define WHF_DEBUG   WHF_FROM_WH(WH_DEBUG)
#define WHF_SHELL   WHF_FROM_WH(WH_SHELL)
#define WHF_FOREGROUNDIDLE   WHF_FROM_WH(WH_FOREGROUNDIDLE)
#define MONF_VISIBLE   0x01
#define MONF_PALETTEDISPLAY   0x02
#define HDCBITS()   gpDispInfo->hdcBits
#define DTF_NEEDSPALETTECHANGED   0x00000001
#define DTF_NEEDSREDRAW   0x00000002
#define CWINHOOKS   (WH_MAX - WH_MIN + 1)
#define CURSOR_ALWAYSDESTROY   0
#define CURSOR_CALLFROMCLIENT   1
#define CURSOR_THREADCLEANUP   2
#define CURSORF_FROMRESOURCE   0x0001
#define CURSORF_GLOBAL   0x0002
#define CURSORF_LRSHARED   0x0004
#define CURSORF_ACON   0x0008
#define CURSORF_WOWCLEANUP   0x0010
#define CURSORF_ACONFRAME   0x0040
#define CURSORF_SECRET   0x0080
#define CURSORF_LINKED   0x0100
#define CURSORF_VALID   0x01DF
#define MSGFLAG_MASK   0xFFFE0000
#define MSGFLAG_WOW_RESERVED   0x00010000
#define MSGFLAG_DDE_MID_THUNK   0x80000000
#define MSGFLAG_DDE_SPECIAL_SEND   0x40000000
#define MSGFLAG_SPECIAL_THUNK   0x10000000
#define WIDTHBYTES(i)   ((((i) + 31) & ~31) >> 3)
#define BITMAPWIDTHSIZE(cx, cy, planes, bpp)   (WIDTHBYTES((cx * bpp)) * (cy) * (planes))
#define WFMPRESENT   0x0001
#define WFVPRESENT   0x0002
#define WFHPRESENT   0x0004
#define WFCPRESENT   0x0008
#define WFFRAMEPRESENTMASK   0x000F
#define WFSENDSIZEMOVE   0x0010
#define WFMSGBOX   0x0020
#define WFFRAMEON   0x0040
#define WFHASSPB   0x0080
#define WFNONCPAINT   0x0101
#define WFSENDERASEBKGND   0x0102
#define WFERASEBKGND   0x0104
#define WFSENDNCPAINT   0x0108
#define WFINTERNALPAINT   0x0110
#define WFUPDATEDIRTY   0x0120
#define WFHIDDENPOPUP   0x0140
#define WFMENUDRAW   0x0180
#define WFDIALOGWINDOW   0x0201
#define WFTITLESET   0x0202
#define WFSERVERSIDEPROC   0x0204
#define WFANSIPROC   0x0208
#define WFBEINGACTIVATED   0x0210
#define WFHASPALETTE   0x0220
#define WFPAINTNOTPROCESSED   0x0240
#define WFSYNCPAINTPENDING   0x0280
#define WFGOTQUERYSUSPENDMSG   0x0301
#define WFGOTSUSPENDMSG   0x0302
#define WFTOGGLETOPMOST   0x0304
#define WFREDRAWIFHUNG   0x0308
#define WFREDRAWFRAMEIFHUNG   0x0310
#define WFANYHUNGREDRAW   0x0318
#define WFANSICREATOR   0x0320
#define WFREALLYMAXIMIZABLE   0x0340
#define WFDESTROYED   0x0380
#define WFWMPAINTSENT   0x0401
#define WFDONTVALIDATE   0x0402
#define WFSTARTPAINT   0x0404
#define WFOLDUI   0x0408
#define WFCEPRESENT   0x0410
#define WFBOTTOMMOST   0x0420
#define WFFULLSCREEN   0x0440
#define WFINDESTROY   0x0480
#define WFWIN31COMPAT   0x0501
#define WFWIN40COMPAT   0x0502
#define WFWIN50COMPAT   0x0504
#define WFWINCOMPATMASK   0x0507
#define WFMAXFAKEREGIONAL   0x0508
#define WFCLOSEBUTTONDOWN   0x0510
#define WFZOOMBUTTONDOWN   0x0520
#define WFREDUCEBUTTONDOWN   0x0540
#define WFHELPBUTTONDOWN   0x0580
#define WFLINEUPBUTTONDOWN   0x0601
#define WFPAGEUPBUTTONDOWN   0x0602
#define WFPAGEDNBUTTONDOWN   0x0604
#define WFLINEDNBUTTONDOWN   0x0608
#define WFSCROLLBUTTONDOWN   0x0610
#define WFVERTSCROLLTRACK   0x0620
#define WFALWAYSSENDNCPAINT   0x0640
#define WFPIXIEHACK   0x0680
#define WFFULLSCREENBASE   0x0700
#define WFFULLSCREENMASK   0x0707
#define WFSPRITE   0x0708
#define WEFDLGMODALFRAME   0x0801
#define WEFDRAGOBJECT   0x0802
#define WEFNOPARENTNOTIFY   0x0804
#define WEFTOPMOST   0x0808
#define WEFACCEPTFILES   0x0810
#define WEFTRANSPARENT   0x0820
#define WEFMDICHILD   0x0840
#define WEFTOOLWINDOW   0x0880
#define WEFWINDOWEDGE   0x0901
#define WEFCLIENTEDGE   0x0902
#define WEFEDGEMASK   0x0903
#define WEFCONTEXTHELP   0x0904
#define WEFRIGHT   0x0910
#define WEFRTLREADING   0x0920
#define WEFLEFTSCROLL   0x0940
#define WEFCONTROLPARENT   0x0A01
#define WEFSTATICEDGE   0x0A02
#define WEFAPPWINDOW   0x0A04
#define WEFROUNDFRAME   0x0A08
#define WFNOANIMATE   0x0A10
#define WFSMQUERYDRAGICON   0x0A20
#define WFSHELLHOOKWND   0x0A80
#define WFMAXBOX   0x0E01
#define WFTABSTOP   0x0E01
#define WFMINBOX   0x0E02
#define WFGROUP   0x0E02
#define WFSIZEBOX   0x0E04
#define WFSYSMENU   0x0E08
#define WFHSCROLL   0x0E10
#define WFVSCROLL   0x0E20
#define WFDLGFRAME   0x0E40
#define WFTOPLEVEL   0x0E40
#define WFBORDER   0x0E80
#define WFBORDERMASK   0x0EC0
#define WFCAPTION   0x0EC0
#define WFTILED   0x0F00
#define WFMAXIMIZED   0x0F01
#define WFCLIPCHILDREN   0x0F02
#define WFCLIPSIBLINGS   0x0F04
#define WFDISABLED   0x0F08
#define WFVISIBLE   0x0F10
#define WFMINIMIZED   0x0F20
#define WFCHILD   0x0F40
#define WFPOPUP   0x0F80
#define WFTYPEMASK   0x0FC0
#define WFICONICPOPUP   0x0FC0
#define WFICONIC   WFMINIMIZED
#define BFTYPEMASK   0x0C0F
#define BFRIGHTBUTTON   0x0C20
#define BFICON   0x0C40
#define BFBITMAP   0x0C80
#define BFIMAGEMASK   0x0CC0
#define BFLEFT   0x0D01
#define BFRIGHT   0x0D02
#define BFCENTER   0x0D03
#define BFHORZMASK   0x0D03
#define BFTOP   0x0D04
#define BFBOTTOM   0x0D08
#define BFVCENTER   0x0D0C
#define BFVERTMASK   0x0D0C
#define BFALIGNMASK   0x0D0F
#define BFPUSHLIKE   0x0D10
#define BFMULTILINE   0x0D20
#define BFNOTIFY   0x0D40
#define BFFLAT   0x0D80
#define CBFSIMPLE   0x0C01
#define CBFDROPDOWN   0x0C02
#define CBFDROPDOWNLIST   0x0C03
#define CBFEDITABLE   0x0C01
#define CBFDROPPABLE   0x0C02
#define CBFDROPTYPE   0x0C03
#define CBFOWNERDRAWFIXED   0x0C10
#define CBFOWNERDRAWVAR   0x0C20
#define CBFOWNERDRAW   0x0C30
#define CBFAUTOHSCROLL   0x0C40
#define CBFOEMCONVERT   0x0C80
#define CBFSORT   0x0D01
#define CBFHASSTRINGS   0x0D02
#define CBFNOINTEGRALHEIGHT   0x0D04
#define CBFDISABLENOSCROLL   0x0D08
#define CBFBUTTONUPTRACK   0x0D10
#define CBFUPPERCASE   0x0D20
#define CBFLOWERCASE   0x0D40
#define DFSYSMODAL   0x0C02
#define DF3DLOOK   0x0C04
#define DFNOFAILCREATE   0x0C10
#define DFLOCALEDIT   0x0C20
#define WFNOIDLEMSG   0x0D01
#define DFCONTROL   0x0D04
#define EFMULTILINE   0x0C04
#define EFUPPERCASE   0x0C08
#define EFLOWERCASE   0x0C10
#define EFPASSWORD   0x0C20
#define EFAUTOVSCROLL   0x0C40
#define EFAUTOHSCROLL   0x0C80
#define EFNOHIDESEL   0x0D01
#define EFCOMBOBOX   0x0D02
#define EFOEMCONVERT   0x0D04
#define EFREADONLY   0x0D08
#define EFWANTRETURN   0x0D10
#define EFNUMBER   0x0D20
#define SBFSIZEBOXTOPLEFT   0x0C02
#define SBFSIZEBOXBOTTOMRIGHT   0x0C04
#define SBFSIZEBOX   0x0C08
#define SBFSIZEGRIP   0x0C10
#define SFTYPEMASK   0x0C1F
#define SFNOPREFIX   0x0C80
#define SFNOTIFY   0x0D01
#define SFCENTERIMAGE   0x0D02
#define SFRIGHTJUST   0x0D04
#define SFREALSIZEIMAGE   0x0D08
#define SFSUNKEN   0x0D10
#define SFEDITCONTROL   0x0D20
#define SFELLIPSISMASK   0x0DC0
#define SFWIDELINESPACING   0x0C20
#define SYS_ALTERNATE   0x2000
#define SYS_PREVKEYSTATE   0x4000
#define STATEOFFSET   (FIELD_OFFSET(WND, state))
#define LOBYTE(w)   ((BYTE)((w) & 0x00FF))
#define TestWF(hwnd, flag)   (*(((BYTE *)(hwnd)) + STATEOFFSET + (int)HIBYTE(flag)) & LOBYTE(flag))
#define SetWF(hwnd, flag)   (*(((BYTE *)(hwnd)) + STATEOFFSET + (int)HIBYTE(flag)) |= LOBYTE(flag))
#define ClrWF(hwnd, flag)   (*(((BYTE *)(hwnd)) + STATEOFFSET + (int)HIBYTE(flag)) &= ~LOBYTE(flag))
#define MaskWF(flag)   ((WORD)( (HIBYTE(flag) & 1) ? LOBYTE(flag) << 8 : LOBYTE(flag)))
#define TestwndChild(hwnd)   (TestWF(hwnd, WFTYPEMASK) == LOBYTE(WFCHILD))
#define TestwndIPopup(hwnd)   (TestWF(hwnd, WFTYPEMASK) == LOBYTE(WFICONICPOPUP))
#define TestwndTiled(hwnd)   (TestWF(hwnd, WFTYPEMASK) == LOBYTE(WFTILED))
#define TestwndNIPopup(hwnd)   (TestWF(hwnd, WFTYPEMASK) == LOBYTE(WFPOPUP))
#define TestwndPopup(hwnd)   (TestwndNIPopup(hwnd) || TestwndIPopup(hwnd))
#define TestwndHI(hwnd)   (TestwndTiled(hwnd) || TestwndIPopup(hwnd))
#define GetChildParent(pwnd)   (TestwndChild(pwnd) ? pwnd->spwndParent : NULL)
#define GetWindowCreator(pwnd)   (TestwndChild(pwnd) ? pwnd->spwndParent : pwnd->spwndOwner)
#define TestwndFrameOn(pwnd)   (TestWF(pwnd, WFFRAMEON) && (GETPTI(pwnd)->pq == gpqForeground))
#define GetFullScreen(pwnd)   (TestWF(pwnd, WFFULLSCREENMASK))
#define SetFullScreen(pwnd, state)
#define FTrueVis(pwnd)   (_IsWindowVisible(pwnd))
#define _IsWindowEnabled(pwnd)   (TestWF(pwnd, WFDISABLED) == 0)
#define _IsIconic(pwnd)   (TestWF(pwnd, WFMINIMIZED) != 0)
#define _IsZoomed(pwnd)   (TestWF(pwnd, WFMAXIMIZED) != 0)
#define SV_UNSET   0x0000
#define SV_SET   0x0001
#define SV_CLRFTRUEVIS   0x0002
#define ID_SYSMENU   0x10
#define ID_CLOSEMENU   0x20
#define CHILDSYSMENU   ID_CLOSEMENU
#define ID_DIALOGSYSMENU   0x30
#define ID_HSCROLLMENU   0x40
#define ID_VSCROLLMENU   0x50
#define MSA_OFF   0
#define MSA_ON   1
#define MSA_ATTOP   2
#define MSA_ATBOTTOM   3
#define ID_HELPMENU   4
#define MNF_DONTSKIPSEPARATORS   0x0001
#define LTUPFLAG   0x0001
#define RTDNFLAG   0x0002
#define CSPINBACKGROUND   100
#define CCHTITLEMAX   256
#define SW_MDIRESTORE   0xCC /* special xxxMinMaximize() command for MDI */
#define CW2_USEDEFAULT   0x8000
#define CW_FLAGS_DIFFHMOD   0x80000000
#define MENUSYSMENU   TEXT(' ') /* Space character */
#define MENUCHILDSYSMENU   TEXT('-') /* Hyphen */
#define MF_ALLSTATE   0x00FF
#define MF_MAINMENU   0xFFFF
#define MFMWFP_OFFMENU   0
#define MFMWFP_MAINMENU   0x0000FFFF
#define MFMWFP_NOITEM   0xFFFFFFFF
#define MFMWFP_UPARROW   0xFFFFFFFD /* Warning: Also used to define IDSYS_MNUP */
#define MFMWFP_DOWNARROW   0xFFFFFFFC /* Warning: Also used to define IDSYS_MNDOWN */
#define MFMWFP_MINVALID   0xFFFFFFFC
#define MFMWFP_ALTMENU   0xFFFFFFFB
#define MFMWFP_FIRSTITEM   0
#define SetMF(pmenu, flag)   ((pmenu)->fFlags |= (flag))
#define ClearMF(pmenu, flag)   ((pmenu)->fFlags &= ~(flag))
#define TestMF(pmenu, flag)   ((pmenu)->fFlags & (flag))
#define SetMFS(pitem, flag)   ((pitem)->fState |= (flag))
#define TestMFS(pitem, flag)   ((pitem)->fState & (flag))
#define ClearMFS(pitem, flag)   ((pitem)->fState &= ~(flag))
#define SetMFT(pitem, flag)   ((pitem)->fType |= (flag))
#define TestMFT(pitem, flag)   ((pitem)->fType & (flag))
#define ClearMFT(pitem, flag)   ((pitem)->fType &= ~(flag))
#define PDLG(pwnd)   (((PDIALOG)pwnd)->pdlg)
#define DLGF_ANSI   0x01 /* lpfnDlg is an ANSI proc */
#define TIF_INCLEANUP   (UINT)0x00000001
#define TIF_16BIT   (UINT)0x00000002
#define TIF_SYSTEMTHREAD   (UINT)0x00000004
#define TIF_CSRSSTHREAD   (UINT)0x00000008
#define TIF_TRACKRECTVISIBLE   (UINT)0x00000010
#define TIF_ALLOWFOREGROUNDACTIVATE   (UINT)0x00000020
#define TIF_DONTATTACHQUEUE   (UINT)0x00000040
#define TIF_DONTJOURNALATTACH   (UINT)0x00000080
#define TIF_INACTIVATEAPPMSG   (UINT)0x00000200
#define TIF_SPINNING   (UINT)0x00000400
#define TIF_PALETTEAWARE   (UINT)0x00000800
#define TIF_SHAREDWOW   (UINT)0x00001000
#define TIF_FIRSTIDLE   (UINT)0x00002000
#define TIF_WAITFORINPUTIDLE   (UINT)0x00004000
#define TIF_MOVESIZETRACKING   (UINT)0x00008000
#define TIF_VDMAPP   (UINT)0x00010000
#define TIF_DOSEMULATOR   (UINT)0x00020000
#define TIF_GLOBALHOOKER   (UINT)0x00040000
#define TIF_DELAYEDEVENT   (UINT)0x00080000
#define TIF_IGNOREPLAYBACKDELAY   (UINT)0x00400000
#define TIF_ALLOWOTHERACCOUNTHOOK   (UINT)0x00800000
#define TIF_GUITHREADINITIALIZED   (UINT)0x02000000
#define TIF_DISABLEIME   (UINT)0x04000000
#define TIF_INGETTEXTLENGTH   (UINT)0x08000000
#define TIF_ANSILENGTH   (UINT)0x10000000
#define TIF_DISABLEHOOKS   (UINT)0x20000000
#define TIF_RESTRICTED   (UINT)0x40000000
#define CTIF_SYSQUEUELOCKED   (UINT)0x00000001
#define CheckMsgFilter(wMsg, wMsgFilterMin, wMsgFilterMax)
#define CVKKEYSTATE   256
#define CBKEYSTATE   (CVKKEYSTATE >> 2)
#define CBKEYSTATERECENTDOWN   (CVKKEYSTATE >> 3)
#define TestKeyDownBit(pb, vk)   (pb[vk >> 2] & (1 << ((vk & 3) << 1)))
#define SetKeyDownBit(pb, vk)   (pb[vk >> 2] |= (1 << ((vk & 3) << 1)))
#define ClearKeyDownBit(pb, vk)   (pb[vk >> 2] &= ~(1 << ((vk & 3) << 1)))
#define TestKeyToggleBit(pb, vk)   (pb[vk >> 2] & (1 << (((vk & 3) << 1) + 1)))
#define SetKeyToggleBit(pb, vk)   (pb[vk >> 2] |= (1 << (((vk & 3) << 1) + 1)))
#define ClearKeyToggleBit(pb, vk)   (pb[vk >> 2] &= ~(1 << (((vk & 3) << 1) + 1)))
#define ToggleKeyToggleBit(pb, vk)   (pb[vk >> 2] ^= (1 << (((vk & 3) << 1) + 1)))
#define TestKeyRecentDownBit(pb, vk)   (pb[vk >> 3] & (1 << (vk & 7)))
#define SetKeyRecentDownBit(pb, vk)   (pb[vk >> 3] |= (1 << (vk & 7)))
#define ClearKeyRecentDownBit(pb, vk)   (pb[vk >> 3] &= ~(1 << (vk & 7)))
#define TestKeyStateDown(pq, vk)   TestKeyDownBit(pq->afKeyState, vk)
#define SetKeyStateDown(pq, vk)   SetKeyDownBit(pq->afKeyState, vk)
#define ClearKeyStateDown(pq, vk)   ClearKeyDownBit(pq->afKeyState, vk)
#define TestKeyStateToggle(pq, vk)   TestKeyToggleBit(pq->afKeyState, vk)
#define SetKeyStateToggle(pq, vk)   SetKeyToggleBit(pq->afKeyState, vk)
#define ClearKeyStateToggle(pq, vk)   ClearKeyToggleBit(pq->afKeyState, vk)
#define TestAsyncKeyStateDown(vk)   TestKeyDownBit(gafAsyncKeyState, vk)
#define SetAsyncKeyStateDown(vk)   SetKeyDownBit(gafAsyncKeyState, vk)
#define ClearAsyncKeyStateDown(vk)   ClearKeyDownBit(gafAsyncKeyState, vk)
#define TestAsyncKeyStateToggle(vk)   TestKeyToggleBit(gafAsyncKeyState, vk)
#define SetAsyncKeyStateToggle(vk)   SetKeyToggleBit(gafAsyncKeyState, vk)
#define ClearAsyncKeyStateToggle(vk)   ClearKeyToggleBit(gafAsyncKeyState, vk)
#define TestAsyncKeyStateRecentDown(vk)   TestKeyRecentDownBit(gafAsyncKeyStateRecentDown, vk)
#define SetAsyncKeyStateRecentDown(vk)   SetKeyRecentDownBit(gafAsyncKeyStateRecentDown, vk)
#define ClearAsyncKeyStateRecentDown(vk)   ClearKeyRecentDownBit(gafAsyncKeyStateRecentDown, vk)
#define XPixFromXDU(x, cxChar)   MultDiv(x, cxChar, 4)
#define YPixFromYDU(y, cyChar)   MultDiv(y, cyChar, 8)
#define XDUFromXPix(x, cxChar)   MultDiv(x, 4, cxChar)
#define YDUFromYPix(y, cyChar)   MultDiv(y, 8, cyChar)
#define QF_UPDATEKEYSTATE   (UINT)0x00001
#define QF_FMENUSTATUSBREAK   (UINT)0x00004
#define QF_FMENUSTATUS   (UINT)0x00008
#define QF_FF10STATUS   (UINT)0x00010
#define QF_MOUSEMOVED   (UINT)0x00020
#define QF_ACTIVATIONCHANGE   (UINT)0x00040
#define QF_TABSWITCHING   (UINT)0x00080
#define QF_KEYSTATERESET   (UINT)0x00100
#define QF_INDESTROY   (UINT)0x00200
#define QF_LOCKNOREMOVE   (UINT)0x00400
#define QF_FOCUSNULLSINCEACTIVE   (UINT)0x00800
#define QF_DIALOGACTIVE   (UINT)0x04000
#define QF_EVENTDEACTIVATEREMOVED   (UINT)0x08000
#define QF_CAPTURELOCKED   0x00100000
#define QF_ACTIVEWNDTRACKING   0x00200000
#define RNDFRM_CORNER   10
#define RNDFRM_BORDER   3
#define GRC_SCROLLS   0x0001
#define GRC_MINWNDS   0x0002
#define GRC_FULLSCREEN   0x0004
#define HRGN_EMPTY   ((HRGN)0)
#define HRGN_FULL   ((HRGN)1)
#define HRGN_MONITOR   ((HRGN)2)
#define HRGN_SPECIAL_LAST   HRGN_MONITOR
#define MAX_SEB_STYLES   9 /* number of SEB_* values */
#define SEB_OK   1 /* Button with "OK". */
#define SEB_CANCEL   2 /* Button with "Cancel" */
#define SEB_YES   3 /* Button with "&Yes" */
#define SEB_NO   4 /* Button with "&No" */
#define SEB_RETRY   5 /* Button with "&Retry" */
#define SEB_ABORT   6 /* Button with "&Abort" */
#define SEB_IGNORE   7 /* Button with "&Ignore" */
#define SEB_CLOSE   8 /* Button with "&Close" */
#define SEB_HELP   9 /* Button with "&Help" */
#define SEB_DEFBUTTON   0x8000 /* Mask to make this button default */
#define RTLMENU   HMENU
#define xxxRtlSetMenuInfo   NtUserThunkedMenuInfo
#define xxxRtlSetMenuItemInfo(rtlMenu, uId, pmii)   NtUserThunkedMenuItemInfo(rtlMenu, uId, FALSE, FALSE, pmii, NULL)
#define CH_PREFIX   TEXT('&')
#define CH_ENGLISHPREFIX   0x1E
#define CH_KANJIPREFIX   0x1F
#define DT_CHARSETDRAW   1
#define DT_CHARSETINIT   2
#define DT_CHARSETDONE   3
#define DT_GETNEXTWORD   4
#define CCHELLIPSIS   3
#define GRECT_CLIENT   0x0001
#define GRECT_WINDOW   0x0002
#define GRECT_RECTMASK   0x0003
#define GRECT_CLIENTCOORDS   0x0010
#define GRECT_WINDOWCOORDS   0x0020
#define GRECT_PARENTCOORDS   0x0040
#define GRECT_COORDMASK   0x0070
#define TextPointer(h)   ((LPWSTR)h)
#define DO_DROPFILE   0x454C4946L
#define CMSSLEEP   250
#define CMSHUNGAPPTIMEOUT   (5 * 1000)
#define CMSHUNGTOKILLCOUNT   4
#define CMSWAITTOKILLTIMEOUT   (CMSHUNGTOKILLCOUNT * CMSHUNGAPPTIMEOUT)
#define CMSAPPSTARTINGTIMEOUT   (3 * CMSHUNGAPPTIMEOUT) /* Must be less than WAITTOKILL. See CheckAppStarting */
#define CMS_QANIMATION   165
#define CMS_FLASHWND   500
#define TESTSYNCONLYMESSAGE(msg, wParam)
#define USER_SOUND_DEFAULT   0
#define USER_SOUND_SYSTEMHAND   1
#define USER_SOUND_SYSTEMQUESTION   2
#define USER_SOUND_SYSTEMEXCLAMATION   3
#define USER_SOUND_SYSTEMASTERISK   4
#define USER_SOUND_MENUPOPUP   5
#define USER_SOUND_MENUCOMMAND   6
#define USER_SOUND_OPEN   7
#define USER_SOUND_CLOSE   8
#define USER_SOUND_RESTOREUP   9
#define USER_SOUND_RESTOREDOWN   10
#define USER_SOUND_MINIMIZE   11
#define USER_SOUND_MAXIMIZE   12
#define USER_SOUND_MAX   13

Typedefs

typedef tagWINDOWSTATIONPWINDOWSTATION
typedef _LOCKRECORDPLR
typedef _TLPTL
typedef tagDESKTOPPDESKTOP
typedef tagTDBPTDB
typedef tagSVR_INSTANCE_INFOPSVR_INSTANCE_INFO
typedef _MOVESIZEDATAPMOVESIZEDATA
typedef tagCURSORPCURSOR
typedef tagPOPUPMENUPPOPUPMENU
typedef tagQMSGPQMSG
typedef tagWNDPWND
typedef _ETHREADPETHREAD
typedef tagDESKTOPINFOPDESKTOPINFO
typedef tagDISPLAYINFOPDISPLAYINFO
typedef tagCLIENTTHREADINFOPCLIENTTHREADINFO
typedef tagDCEPDCE
typedef tagSPBPSPB
typedef tagQPQ
typedef tagTHREADINFOPTHREADINFO
typedef tagPROCESSINFOPPROCESSINFO
typedef tagWOWTHREADINFOPWOWTHREADINFO
typedef tagPERUSERDATA * PPERUSERDATA
typedef tagPERUSERSERVERINFOPPERUSERSERVERINFO
typedef tagTERMINALPTERMINAL
typedef _CLIENTINFOPCLIENTINFO
typedef tagALWAYSZERO ALWAYSZERO
typedef tagSIZERECT SIZERECT
typedef tagSIZERECTPSIZERECT
typedef tagSIZERECTLPSIZERECT
typedef const SIZERECTPCSIZERECT
typedef const SIZERECTLPCSIZERECT
typedef _CAPTUREBUF CAPTUREBUF
typedef _CAPTUREBUFPCAPTUREBUF
typedef _CALLBACKSTATUS CALLBACKSTATUS
typedef _CALLBACKSTATUSPCALLBACKSTATUS
typedef _LARGE_STRING LARGE_STRING
typedef _LARGE_STRINGPLARGE_STRING
typedef _LARGE_ANSI_STRING LARGE_ANSI_STRING
typedef _LARGE_ANSI_STRINGPLARGE_ANSI_STRING
typedef _LARGE_UNICODE_STRING LARGE_UNICODE_STRING
typedef _LARGE_UNICODE_STRINGPLARGE_UNICODE_STRING
typedef _CTLCOLOR CTLCOLOR
typedef _CTLCOLORPCTLCOLOR
typedef _DRAWICONEXDATA DRAWICONEXDATA
typedef _CALLBACKWND CALLBACKWND
typedef _CALLBACKWNDPCALLBACKWND
typedef _CLIENTINFO CLIENTINFO
typedef DWORD ICH
typedef ICHLPICH
typedef _PROPSET PROPSET
typedef _PROPSETPPROPSET
typedef tagEVENT_PACKET EVENT_PACKET
typedef tagEVENT_PACKETPEVENT_PACKET
typedef * LPPOINT5
typedef * LPBROADCASTSYSTEMMSGPARAMS
typedef LRESULT(APIENTRY * WNDPROC_PWND )(PWND, UINT, WPARAM, LPARAM)
typedef LRESULT(APIENTRY * WNDPROC_PWNDEX )(PWND, UINT, WPARAM, LPARAM, ULONG_PTR)
typedef BOOL(APIENTRY * WNDENUMPROC_PWND )(PWND, LPARAM)
typedef VOID(APIENTRY * TIMERPROC_PWND )(PWND, UINT, UINT, LPARAM)
typedef _PFNCLIENT PFNCLIENT
typedef _PFNCLIENTPPFNCLIENT
typedef _PFNCLIENTWORKER PFNCLIENTWORKER
typedef _PFNCLIENTWORKERPPFNCLIENTWORKER
typedef tagOEMBITMAPINFO OEMBITMAPINFO
typedef tagOEMBITMAPINFOPOEMBITMAPINFO
typedef tagPERUSERSERVERINFO PERUSERSERVERINFO
typedef tagSERVERINFO SERVERINFO
typedef tagSERVERINFOPSERVERINFO
typedef _WNDMSG WNDMSG
typedef _WNDMSGPWNDMSG
typedef tagSHAREDINFO SHAREDINFO
typedef tagSHAREDINFOPSHAREDINFO
typedef _USERCONNECT USERCONNECT
typedef _USERCONNECTPUSERCONNECT
typedef tagGETCLIPBDATA GETCLIPBDATA
typedef tagGETCLIPBDATAPGETCLIPBDATA
typedef tagSETCLIPBDATA SETCLIPBDATA
typedef tagSETCLIPBDATAPSETCLIPBDATA
typedef void(* FnDestroyUserObject )(void *)
typedef tagHANDLETYPEINFO HANDLETYPEINFO
typedef tagHANDLETYPEINFOPHANDLETYPEINFO
typedef _HEAD HEAD
typedef _HEADPHEAD
typedef _THROBJHEAD THROBJHEAD
typedef _THROBJHEADPTHROBJHEAD
typedef _PROCOBJHEAD PROCOBJHEAD
typedef _PROCOBJHEADPPROCOBJHEAD
typedef _PROCMARKHEAD PROCMARKHEAD
typedef _PROCMARKHEADPPROCMARKHEAD
typedef _DESKHEAD DESKHEAD
typedef _DESKHEADPDESKHEAD
typedef _DESKOBJHEAD DESKOBJHEAD
typedef _DESKOBJHEADPDESKOBJHEAD
typedef _THRDESKHEAD THRDESKHEAD
typedef _THRDESKHEADPTHRDESKHEAD
typedef _PROCDESKHEAD PROCDESKHEAD
typedef _PROCDESKHEADPPROCDESKHEAD
typedef _HANDLEENTRY HANDLEENTRY
typedef _HANDLEENTRYPHE
typedef _CALLPROCDATA CALLPROCDATA
typedef _CALLPROCDATAPCALLPROCDATA
typedef tagCOMMON_WNDCLASS COMMON_WNDCLASS
typedef tagCLSMENUNAME CLSMENUNAME
typedef tagCLSMENUNAMEPCLSMENUNAME
typedef tagCLS CLS
typedef tagCLSPCLS
typedef tagCLSLPCLS
typedef tagCLS ** PPCLS
typedef tagSBDATA SBDATA
typedef tagSBDATAPSBDATA
typedef tagSBINFO SBINFO
typedef tagSBINFOPSBINFO
typedef tagPROP PROP
typedef tagPROPPPROP
typedef tagPROPLIST PROPLIST
typedef tagPROPLISTPPROPLIST
typedef tagWND WND
typedef tagCBox CBOX
typedef tagCBoxPCBOX
typedef tagCOMBOWND COMBOWND
typedef tagCOMBOWNDPCOMBOWND
typedef _SCROLLPOS SCROLLPOS
typedef _SCROLLPOSPSCROLLPOS
typedef tagLBIV LBIV
typedef tagLBIVPLBIV
typedef tagLBWND LBWND
typedef tagLBWNDPLBWND
typedef tagIMC IMC
typedef tagIMCPIMC
typedef tagHOOK HOOK
typedef tagHOOKPHOOK
typedef tagNAMELIST NAMELIST
typedef tagNAMELISTPNAMELIST
typedef tagMONITOR MONITOR
typedef tagMONITORPMONITOR
typedef tagDISPLAYINFO DISPLAYINFO
typedef tagDESKTOPINFO DESKTOPINFO
typedef tagCURSORDATA CURSORDATA
typedef tagCURSORDATAPCURSORDATA
typedef tagCURSORFIND CURSORFIND
typedef tagCURSORFINDPCURSORFIND
typedef tagITEM ITEM
typedef tagITEMPITEM
typedef tagITEMLPITEM
typedef tagMENU MENU
typedef tagMENUPMENU
typedef tagDLGENUMDATA DLGENUMDATA
typedef tagDLGENUMDATAPDLGENUMDATA
typedef tagSBCALC SBCALC
typedef tagSBCALCPSBCALC
typedef tagSBTRACK SBTRACK
typedef tagSBTRACKPSBTRACK
typedef _DLG DLG
typedef _DLGPDLG
typedef _DIALOG DIALOG
typedef _DIALOGPDIALOG
typedef tagCLIENTTHREADINFO CLIENTTHREADINFO
typedef tagCARET CARET
typedef tagCARETPCARET
typedef tagSBWND SBWND
typedef tagSBWNDPSBWND
typedef tagSBWNDLPSBWND
typedef tagSNDMSGTIMEOUT SNDMSGTIMEOUT
typedef tagSNDMSGTIMEOUTPSNDMSGTIMEOUT
typedef tagBUTN BUTN
typedef tagBUTNPBUTN
typedef tagBUTNWND BUTNWND
typedef tagBUTNWNDPBUTNWND
typedef tagIMEUI IMEUI
typedef tagIMEUIPIMEUI
typedef tagIMEWND IMEWND
typedef tagIMEWNDPIMEWND
typedef _MSGBOXDATA MSGBOXDATA
typedef _MSGBOXDATAPMSGBOXDATA
typedef _MSGBOXDATALPMSGBOXDATA
typedef void(FAR * LPFNTEXTDRAW )(HDC, int, int, LPWSTR, int)
typedef * LPDRAWTEXTDATA
typedef LONG(* FPLPKTABBEDTEXTOUT )(HDC, int, int, LPCWSTR, int, int, LPINT, int, BOOL, int, int, int)
typedef void(* FPLPKPSMTEXTOUT )(HDC, int, int, LPWSTR, int)
typedef int(* FPLPKDRAWTEXTEX )(HDC, int, int, LPCWSTR, int, BOOL, UINT, LPDRAWTEXTDATA, UINT, int)
typedef tagEDPED
typedef BOOL LpkEditCreate (PED ped, HWND hWnd)
typedef int LpkEditIchToXY (PED ped, HDC hDC, PSTR pText, ICH cch, ICH ichPos)
typedef ICH LpkEditMouseToIch (PED ped, HDC hDC, PSTR pText, ICH cch, INT iX)
typedef ICH LpkEditCchInWidth (PED ped, HDC hdc, PSTR pText, ICH cch, int width)
typedef INT LpkEditGetLineWidth (PED ped, HDC hdc, PSTR pText, ICH cch)
typedef void LpkEditDrawText (PED ped, HDC hdc, PSTR pText, INT cch, INT iMinSel, INT iMaxSel, INT iY)
typedef BOOL LpkEditHScroll (PED ped, HDC hdc, PSTR pText)
typedef ICH LpkEditMoveSelection (PED ped, HDC hdc, PSTR pText, ICH ich, BOOL fLeft)
typedef int LpkEditVerifyText (PED ped, HDC hdc, PSTR pText, ICH ichInsert, PSTR pInsertText, ICH cchInsert)
typedef void LpkEditNextWord (PED ped, HDC hdc, PSTR pText, ICH ichStart, BOOL fLeft, ICH *pichMin, ICH *pichMax)
typedef void LpkEditSetMenu (PED ped, HMENU hMenu)
typedef int LpkEditProcessMenu (PED ped, UINT idMenuItem)
typedef int LpkEditCreateCaret (PED ped, HDC hdc, INT nWidth, INT nHeight, UINT hkl)
typedef tagLPKEDITCALLOUT LPKEDITCALLOUT
typedef tagLPKEDITCALLOUTPLPKEDITCALLOUT
typedef _DOCONNECTDATA DOCONNECTDATA
typedef _DOCONNECTDATAPDOCONNECTDATA
typedef _DORECONNECTDATA DORECONNECTDATA
typedef _DORECONNECTDATAPDORECONNECTDATA
typedef tagMSG_TABLE_ENTRY MSG_TABLE_ENTRY
typedef tagMNDRAGOVERINFO MNDRAGOVERINFO
typedef tagMNDRAGOVERINFOPMNDRAGOVERINFO

Enumerations

enum  { TYPE_NORMAL, TYPE_POPUP, TYPE_TCARD }

Functions

 DECLARE_HANDLE (HQ)
void RECTFromSIZERECT (PRECT prc, PCSIZERECT psrc)
void SIZERECTFromRECT (PSIZERECT psrc, LPCRECT prc)
__inline void CopyRectInl (LPRECT prcDest, LPCRECT prcSrc)
__inline DWORD EqualRectInl (LPCRECT prc1, LPCRECT prc2)
__inline void SetRectEmptyInl (LPRECT prc)
__inline BOOL IsEmptyString (PVOID p, ULONG bAnsi)
__inline void NullTerminateString (PVOID p, ULONG bAnsi)
__inline UINT StringLength (PVOID p, ULONG bAnsi)
VOID User32InitializeImmEntryTable (DWORD dwMagic)
PMONITOR _MonitorFromPoint (POINT pt, DWORD dwFlags)
PMONITOR _MonitorFromRect (LPCRECT lprc, DWORD dwFlags)
PMONITOR _MonitorFromWindow (PWND pwnd, DWORD dwFlags)
WORD VersionFromWindowFlag (PWND pwnd)
BOOL CALLBACK EnumPwndDlgChildProc (PWND pwnd, LPARAM lParam)
BOOL FIsParentDude (PWND pwnd)
UINT CalcWakeMask (UINT wMsgFilterMin, UINT wMsgFilterMax, UINT fsWakeMaskFilter)
__inline WORD GetInputBits (PCLIENTTHREADINFO pcti, WORD fsWakeMask, BOOL fAvailable)
LPWSTR MB_GetString (UINT wBtn)
int SoftModalMessageBox (LPMSGBOXDATA lpmb)
DWORD GetContextHelpId (PWND pwnd)
PITEM MNLookUpItem (PMENU pMenu, UINT wCmd, BOOL fByPosition, PMENU *ppMenuItemIsOn)
BOOL _MNCanClose (PWND pwnd)
PMENU GetSysMenuHandle (PWND pwnd)
PWND GetPrevPwnd (PWND pwndList, PWND pwndFind)
BOOL _RegisterServicesProcess (DWORD dwProcessId)
RTLMENU xxxLoadSysMenu (UINT uMenuId)
BOOL _FChildVisible (PWND pwnd)
BOOL RtlWCSMessageWParamCharToMB (DWORD msg, WPARAM *pWParam)
BOOL RtlMBMessageWParamCharToWCS (DWORD msg, WPARAM *pWParam)
VOID RtlInitLargeAnsiString (PLARGE_ANSI_STRING plstr, LPCSTR psz, UINT cchLimit)
VOID RtlInitLargeUnicodeString (PLARGE_UNICODE_STRING plstr, LPCWSTR psz, UINT cchLimit)
DWORD RtlGetExpWinVer (HANDLE hmod)
int DrawTextExWorker (HDC hdc, LPWSTR lpchText, int cchText, LPRECT lprc, UINT dwDTformat, LPDRAWTEXTPARAMS lpDTparams, int iCharset)
LRESULT CALLBACK fnHkINLPRECT (DWORD nCode, WPARAM wParam, LPRECT lParam, ULONG_PTR xParam, PROC xpfnProc)
LRESULT CALLBACK fnHkINDWORD (DWORD nCode, WPARAM wParam, LPARAM lParam, ULONG_PTR xParam, PROC xpfnProc, LPDWORD lpFlags)
LRESULT CALLBACK fnHkINLPMSG (DWORD nCode, WPARAM wParam, LPMSG lParam, ULONG_PTR xParam, PROC xpfnProc, BOOL bAnsi, LPDWORD lpFlags)
LRESULT CALLBACK fnHkOPTINLPEVENTMSG (DWORD nCode, WPARAM wParam, LPEVENTMSGMSG lParam, ULONG_PTR xParam, PROC xpfnProc)
LRESULT CALLBACK fnHkINLPDEBUGHOOKSTRUCT (DWORD nCode, WPARAM wParam, LPDEBUGHOOKINFO lParam, ULONG_PTR xParam, PROC xpfnProc)
LRESULT CALLBACK fnHkINLPMOUSEHOOKSTRUCTEX (DWORD nCode, WPARAM wParam, LPMOUSEHOOKSTRUCTEX lParam, ULONG_PTR xParam, PROC xpfnProc, LPDWORD lpFlags)
LRESULT CALLBACK fnHkINLPKBDLLHOOKSTRUCT (DWORD nCode, WPARAM wParam, LPKBDLLHOOKSTRUCT lParam, ULONG_PTR xParam, PROC xpfnProc)
LRESULT CALLBACK fnHkINLPMSLLHOOKSTRUCT (DWORD nCode, WPARAM wParam, LPMSLLHOOKSTRUCT lParam, ULONG_PTR xParam, PROC xpfnProc)
LRESULT CALLBACK fnHkINLPCBTACTIVATESTRUCT (DWORD nCode, WPARAM wParam, LPCBTACTIVATESTRUCT lParam, ULONG_PTR xParam, PROC xpfnProc)
LRESULT CALLBACK fnHkINLPCBTCSTRUCT (UINT msg, WPARAM wParam, LPCBT_CREATEWND pcbt, PROC xpfnProc, BOOL bAnsi)
LRESULT CALLBACK fnHkINLPCBTMDICCSTRUCT (UINT msg, WPARAM wParam, LPCBT_CREATEWND pcbt, PROC xpfnProc, BOOL bAnsi)
DWORD GetCPD (PVOID pWndOrCls, DWORD options, ULONG_PTR dwData)
BOOL TestWindowProcess (PWND pwnd)
DWORD GetAppCompatFlags (PTHREADINFO pti)
PVOID FASTCALL HMValidateHandle (HANDLE h, BYTE btype)
PVOID FASTCALL HMValidateHandleNoRip (HANDLE h, BYTE btype)
PVOID FASTCALL HMValidateHandleNoDesktop (HANDLE h, BYTE btype)
PVOID FASTCALL HMValidateSharedHandle (HANDLE h, BYTE bType)
PVOID FASTCALL HMValidateHandleNoSecure (HANDLE h, BYTE bType)
ULONG_PTR MapClientNeuterToClientPfn (PCLS pcls, ULONG_PTR dw, BOOL bAnsi)
ULONG_PTR MapServerToClientPfn (ULONG_PTR dw, BOOL bAnsi)
BOOL IsSysFontAndDefaultMode (HDC hdc)
int GetCharDimensions (HDC hDC, TEXTMETRICW *lpTextMetrics, LPINT lpcy)
int GetWindowBorders (LONG lStyle, DWORD dwExStyle, BOOL fWindow, BOOL fClient)
PWND SizeBoxHwnd (PWND pwnd)
VOID _GetClientRect (PWND pwnd, LPRECT prc)
void GetRealClientRect (PWND pwnd, LPRECT prc, UINT uFlags, PMONITOR pMonitor)
VOID _GetWindowRect (PWND pwnd, LPRECT prc)
PWND _GetLastActivePopup (PWND pwnd)
PWND GetTopLevelTiled (PWND pwnd)
BOOL _IsChild (PWND pwndParent, PWND pwnd)
BOOL _AdjustWindowRectEx (LPRECT lprc, LONG style, BOOL fMenu, DWORD dwExStyle)
BOOL NeedsWindowEdge (DWORD dwStyle, DWORD dwExStyle, BOOL fNewApp)
VOID _ClientToScreen (PWND pwnd, PPOINT ppt)
VOID _ScreenToClient (PWND pwnd, PPOINT ppt)
int _MapWindowPoints (PWND pwndFrom, PWND pwndTo, LPPOINT lppt, DWORD cpt)
BOOL _IsWindowVisible (PWND pwnd)
BOOL _IsDescendant (PWND pwndParent, PWND pwndChild)
BOOL IsVisible (PWND pwnd)
PWND _GetWindow (PWND pwnd, UINT cmd)
PWND _GetParent (PWND pwnd)
int FindNCHit (PWND pwnd, LONG lPt)
SHORT _GetKeyState (int vk)
PHOOK PhkNextValid (PHOOK phk)
void GetRect (PWND pwnd, LPRECT lprc, UINT uCoords)
PPROP _FindProp (PWND pwnd, PCWSTR pszKey, BOOL fInternal)
HANDLE _GetProp (PWND pwnd, PCWSTR pszKey, BOOL fInternal)
BOOL _HasCaptionIcon (PWND pwnd)
PWND GetTopLevelWindow (PWND pwnd)
BOOL _SBGetParms (PWND pwnd, int code, PSBDATA pw, LPSCROLLINFO lpsi)
BOOL PSMGetTextExtent (HDC hdc, LPCWSTR lpstr, int cch, PSIZE psize)
LONG GetPrefixCount (LPCWSTR lpstr, int cb, LPWSTR lpstrCopy, int cbCopy)
PMENU _GetSubMenu (PMENU pMenu, int nPos)
DWORD _GetMenuDefaultItem (PMENU pMenu, BOOL fByPosition, UINT uFlags)
UINT _GetMenuState (PMENU pMenu, UINT wID, UINT dwFlags)
BOOL APIENTRY CopyInflateRect (LPRECT prcDst, CONST RECT *prcSrc, int cx, int cy)
BOOL APIENTRY CopyOffsetRect (LPRECT prcDst, CONST RECT *prcSrc, int cx, int cy)
DWORD FindCharPosition (LPWSTR lpString, WCHAR ch)
LPWSTR TextAlloc (LPCWSTR lpsz)
UINT TextCopy (PLARGE_UNICODE_STRING pstr, LPWSTR lpstr, UINT size)
DWORD wcsncpycch (LPWSTR pwsDest, LPCWSTR pwszSrc, DWORD cch)
DWORD strncpycch (LPSTR pszDest, LPCSTR pszSrc, DWORD cch)
BOOL DrawFrame (HDC hdc, LPRECT prect, int clFrame, int cmd)
void DrawPushButton (HDC hdc, LPRECT lprc, UINT state, UINT flags)
BOOL ClientFrame (HDC hDC, CONST RECT *pRect, HBRUSH hBrush, DWORD patOp)
HBITMAP OwnerLoadBitmap (HANDLE hInstLoad, LPWSTR lpName, HANDLE hOwner)
PCURSOR ClassSetSmallIcon (PCLS pcls, PCURSOR pcursor, BOOL fServerCreated)
void KernelBP (void)

Variables

FPLPKTABBEDTEXTOUT fpLpkTabbedTextOut
FPLPKPSMTEXTOUT fpLpkPSMTextOut
FPLPKDRAWTEXTEX fpLpkDrawTextEx
PLPKEDITCALLOUT fpLpkEditControl
HBRUSH ahbrSystem []
HBRUSH ghbrWhite
HBRUSH ghbrBlack
HBRUSH ghbrGray
PWND _GetDesktopWindow (VOID)
PWND _GetMessageWindow (VOID)
CONST MSG_TABLE_ENTRY MessageTable []


Define Documentation

#define _GETPDESK  )     (((PDESKOBJHEAD)p)->rpdesk)
 

Definition at line 1523 of file client/nt6/user.h.

Referenced by xxxMouseActivate().

#define _GETPPI  )     (((PPROCMARKHEAD)p)->ppi)
 

Definition at line 1524 of file client/nt6/user.h.

#define _GETPTI  )     (((PTHROBJHEAD)p)->pti)
 

Definition at line 1522 of file client/nt6/user.h.

#define _HMObjectFromHandle  )     ((PVOID)(gSharedInfo.aheList[HMIndexFromHandle(h)].phead))
 

Definition at line 1472 of file client/nt6/user.h.

#define _HMPheFromObject  )     (&gSharedInfo.aheList[HMIndexFromHandle((((PHEAD)p)->h))])
 

Definition at line 1471 of file client/nt6/user.h.

#define _HW pwnd   )     ((HWND)_PtoH(pwnd))
 

Definition at line 1489 of file client/nt6/user.h.

#define _HWq pwnd   )     ((HWND)_PtoHq(pwnd))
 

Definition at line 1490 of file client/nt6/user.h.

#define _IsIconic pwnd   )     (TestWF(pwnd, WFMINIMIZED) != 0)
 

Definition at line 2580 of file client/nt6/user.h.

Referenced by IsIconic(), and xxxMNKeyDown().

#define _IsWindowEnabled pwnd   )     (TestWF(pwnd, WFDISABLED) == 0)
 

Definition at line 2579 of file client/nt6/user.h.

Referenced by IsWindowEnabled().

#define _IsZoomed pwnd   )     (TestWF(pwnd, WFMAXIMIZED) != 0)
 

Definition at line 2581 of file client/nt6/user.h.

Referenced by IsZoomed().

#define _PtoH  )     ((HANDLE)((p) == NULL ? NULL : _PtoHq(p)))
 

Definition at line 1488 of file client/nt6/user.h.

#define _PtoHq  )     ((HANDLE)(((PHEAD)p)->h))
 

Definition at line 1487 of file client/nt6/user.h.

#define ARRAY_SIZE  )     (sizeof(a) / sizeof((a)[0]))
 

Definition at line 75 of file client/nt6/user.h.

Referenced by AccessProceduresStream(), CalcWindowVisRgn(), CheckDesktopPolicy(), CreateGlobalAtomTable(), FastGetProfileIntFromID(), FastGetProfileIntsW(), FastGetProfileStringFromIDW(), FastGetProfileValue(), FastUpdateWinIni(), FastWriteProfileValue(), FindDialogProc(), FixupDlgFaceName(), GetDeskWallpaperName(), GetHardErrorText(), GetVersionInfo(), HardErrorHandler(), InitOLEFormats(), LoadVersionInfo(), MessageBoxWorker(), NtUserGetClassName(), SearchForString(), ServiceMessageBox(), SubstituteDeviceName(), SystemParametersInfo(), UserHardErrorEx(), xxxCreateThreadInfo(), xxxDesktopPaintCallback(), xxxSystemParametersInfo(), xxxTurnOffStickyKeys(), xxxUnlatchStickyKeys(), xxxUpdateModifierState(), and xxxUpdatePerUserSystemParameters().

#define BFALIGNMASK   0x0D0F
 

Definition at line 2451 of file client/nt6/user.h.

#define BFBITMAP   0x0C80
 

Definition at line 2440 of file client/nt6/user.h.

Referenced by xxxBNDrawText().

#define BFBOTTOM   0x0D08
 

Definition at line 2448 of file client/nt6/user.h.

Referenced by BNCalcRect(), and xxxBNDrawText().

#define BFCENTER   0x0D03
 

Definition at line 2445 of file client/nt6/user.h.

Referenced by BNCalcRect(), and GetAlignment().

#define BFFLAT   0x0D80
 

Definition at line 2456 of file client/nt6/user.h.

Referenced by xxxBNPaint(), xxxButtonDrawCheck(), and xxxDrawButton().

#define BFHORZMASK   0x0D03
 

Definition at line 2446 of file client/nt6/user.h.

Referenced by BNCalcRect(), GetAlignment(), and xxxBNDrawText().

#define BFICON   0x0C40
 

Definition at line 2439 of file client/nt6/user.h.

Referenced by xxxBNDrawText().

#define BFIMAGEMASK   0x0CC0
 

Definition at line 2441 of file client/nt6/user.h.

Referenced by ButtonWndProcWorker().

#define BFLEFT   0x0D01
 

Definition at line 2443 of file client/nt6/user.h.

Referenced by BNCalcRect(), GetAlignment(), and xxxBNDrawText().

#define BFMULTILINE   0x0D20
 

Definition at line 2454 of file client/nt6/user.h.

Referenced by xxxBNDrawText().

#define BFNOTIFY   0x0D40
 

Definition at line 2455 of file client/nt6/user.h.

Referenced by ButtonWndProcWorker().

#define BFPUSHLIKE   0x0D10
 

Definition at line 2453 of file client/nt6/user.h.

Referenced by ButtonWndProcWorker(), IsPushButton(), and xxxBNInitDC().

#define BFRIGHT   0x0D02
 

Definition at line 2444 of file client/nt6/user.h.

Referenced by BNCalcRect(), and xxxBNDrawText().

#define BFRIGHTBUTTON   0x0C20
 

Definition at line 2438 of file client/nt6/user.h.

Referenced by BNCalcRect().

#define BFTOP   0x0D04
 

Definition at line 2447 of file client/nt6/user.h.

Referenced by BNCalcRect(), and xxxBNDrawText().

#define BFTYPEMASK   0x0C0F
 

Definition at line 2436 of file client/nt6/user.h.

Referenced by _RealChildWindowFromPoint(), ButtonWndProcWorker(), FIsParentDude(), IsDialogMessageW(), IsPushButton(), WinHelpA(), xxxBNDrawText(), xxxBNInitDC(), xxxBNPaint(), xxxBNReleaseCapture(), xxxButtonDrawCheck(), and xxxButtonDrawNewState().

#define BFVCENTER   0x0D0C
 

Definition at line 2449 of file client/nt6/user.h.

Referenced by BNCalcRect(), and GetAlignment().

#define BFVERTMASK   0x0D0C
 

Definition at line 2450 of file client/nt6/user.h.

Referenced by BNCalcRect(), GetAlignment(), and xxxBNDrawText().

#define BI_3STATE   2
 

Definition at line 229 of file client/nt6/user.h.

#define BI_CHECKBOX   0
 

Definition at line 227 of file client/nt6/user.h.

#define BI_RADIOBUTTON   1
 

Definition at line 228 of file client/nt6/user.h.

#define BITMAPWIDTHSIZE cx,
cy,
planes,
bpp   )     (WIDTHBYTES((cx * bpp)) * (cy) * (planes))
 

Definition at line 2226 of file client/nt6/user.h.

#define BUTTONCODE   0x80
 

Definition at line 324 of file client/nt6/user.h.

Referenced by MB_AddPushButtons().

#define BYTESTOCHARS cb   )     (cb)
 

Definition at line 282 of file client/nt6/user.h.

#define CALLBACKSTACKLIMIT   (PAGE_SIZE / 2)
 

Definition at line 387 of file client/nt6/user.h.

Referenced by AllocCallbackMessage().

#define CBASYNCKEYCACHE   (CVKASYNCKEYCACHE >> 2)
 

Definition at line 496 of file client/nt6/user.h.

Referenced by NtUserGetAsyncKeyState().

#define CBFAUTOHSCROLL   0x0C40
 

Definition at line 2471 of file client/nt6/user.h.

Referenced by xxxCBCreateHandler().

#define CBFBUTTONUPTRACK   0x0D10
 

Definition at line 2477 of file client/nt6/user.h.

#define CBFDISABLENOSCROLL   0x0D08
 

Definition at line 2476 of file client/nt6/user.h.

Referenced by xxxCBCreateHandler().

#define CBFDROPDOWN   0x0C02
 

Definition at line 2460 of file client/nt6/user.h.

Referenced by SLEditWndProc(), and xxxCBCreateHandler().

#define CBFDROPDOWNLIST   0x0C03
 

Definition at line 2461 of file client/nt6/user.h.

Referenced by xxxCBCreateHandler().

#define CBFDROPPABLE   0x0C02
 

Definition at line 2464 of file client/nt6/user.h.

#define CBFDROPTYPE   0x0C03
 

Definition at line 2465 of file client/nt6/user.h.

#define CBFEDITABLE   0x0C01
 

Definition at line 2463 of file client/nt6/user.h.

#define CBFHASSTRINGS   0x0D02
 

Definition at line 2474 of file client/nt6/user.h.

Referenced by CBNcCreateHandler(), xxxCBCreateHandler(), and xxxCBInternalUpdateEditWindow().

#define CBFLOWERCASE   0x0D40
 

Definition at line 2480 of file client/nt6/user.h.

Referenced by xxxCBCreateHandler().

#define CBFNID  )     (gpsi->mpFnid_serverCBWndProc[(DWORD)((s) & ~FNID_STATUS_BITS) - FNID_START])
 

Definition at line 842 of file client/nt6/user.h.

Referenced by _GetWindowLongPtr(), _GetWindowWord(), _SetWindowWord(), InitFunctionTables(), InternalRegisterClassEx(), and xxxSetWindowLongPtr().

#define CBFNOINTEGRALHEIGHT   0x0D04
 

Definition at line 2475 of file client/nt6/user.h.

Referenced by xxxCBCreateHandler(), and xxxCBShowListBoxWindow().

#define CBFOEMCONVERT   0x0C80
 

Definition at line 2472 of file client/nt6/user.h.

Referenced by xxxCBCreateHandler().

#define CBFOWNERDRAW   0x0C30
 

Definition at line 2469 of file client/nt6/user.h.

Referenced by CBNcCreateHandler().

#define CBFOWNERDRAWFIXED   0x0C10
 

Definition at line 2467 of file client/nt6/user.h.

Referenced by xxxCBCreateHandler().

#define CBFOWNERDRAWVAR   0x0C20
 

Definition at line 2468 of file client/nt6/user.h.

Referenced by xxxCBCreateHandler().

#define CBFSIMPLE   0x0C01
 

Definition at line 2459 of file client/nt6/user.h.

#define CBFSORT   0x0D01
 

Definition at line 2473 of file client/nt6/user.h.

Referenced by xxxCBCreateHandler().

#define CBFUPPERCASE   0x0D20
 

Definition at line 2479 of file client/nt6/user.h.

Referenced by xxxCBCreateHandler().

#define CBKEYCACHE   (CVKKEYCACHE >> 2)
 

Definition at line 493 of file client/nt6/user.h.

Referenced by NtUserGetKeyState().

#define CBKEYSTATE   (CVKKEYSTATE >> 2)
 

Definition at line 2931 of file client/nt6/user.h.

Referenced by AllocQueue(), PostUpdateKeyStateEvent(), xxxInternalActivateKeyboardLayout(), xxxProcessEventMessage(), and xxxToUnicodeEx().

#define CBKEYSTATERECENTDOWN   (CVKKEYSTATE >> 3)
 

Definition at line 2932 of file client/nt6/user.h.

Referenced by PostUpdateKeyStateEvent(), ProcessUpdateKeyStateEvent(), SetForegroundThread(), and xxxSwitchDesktop().

#define CCHELLIPSIS   3
 

Definition at line 3236 of file client/nt6/user.h.

Referenced by AddEllipsisAndDrawLine(), AddPathEllipsis(), DrawTextExA(), and NeedsEndEllipsis().

#define CCHTITLEMAX   256
 

Definition at line 2735 of file client/nt6/user.h.

Referenced by DrawSwitchWndHilite(), xxxDrawCaptionTemp(), and xxxInitActivateDlg().

#define CFCACHEDSMICON   0x0304
 

Definition at line 1602 of file client/nt6/user.h.

#define CFCLASSDC   0x0040
 

Definition at line 1593 of file client/nt6/user.h.

Referenced by _GetDCEx(), CreateCacheDC(), xxxCreateWindowEx(), xxxFreeWindow(), and xxxScrollWindowEx().

#define CFDBLCLKS   0x0008
 

Definition at line 1590 of file client/nt6/user.h.

Referenced by xxxScanSysQueue().

#define CFHREDRAW   0x0002
 

Definition at line 1588 of file client/nt6/user.h.

Referenced by xxxCalcValidRects().

#define CFIME   0x0201
 

Definition at line 1600 of file client/nt6/user.h.

Referenced by GetLastTopMostWindowNoIME(), ImeCanDestroyDefIME(), ImeSetFutureOwner(), ImeSetTopmost(), IsChildSameThread(), LinkWindow(), NtUserSetImeOwnerWindow(), xxxButtonEvent(), xxxCreateDefaultImeWindow(), xxxCreateWindowEx(), xxxDestroyWindow(), and xxxFocusSetInputContext().

#define CFKANJIWINDOW   0x0004
 

Definition at line 1589 of file client/nt6/user.h.

Referenced by xxxShowOwnedWindows().

#define CFLVB   0x0104
 

Definition at line 1597 of file client/nt6/user.h.

#define CFNOCLOSE   0x0102
 

Definition at line 1596 of file client/nt6/user.h.

Referenced by xxxCreateWindowEx(), xxxDWP_ProcessVirtKey(), and xxxMNCanClose().

#define CFNOKEYCVT   0x0101
 

Definition at line 1595 of file client/nt6/user.h.

#define CFOEMCHARS   0x0140
 

Definition at line 1599 of file client/nt6/user.h.

#define CFOFFSET   (sizeof(CLS) - sizeof(COMMON_WNDCLASS))
 

Definition at line 1607 of file client/nt6/user.h.

#define CFOWNDC   0x0020
 

Definition at line 1592 of file client/nt6/user.h.

Referenced by _GetDCEx(), xxxCreateWindowEx(), xxxFreeWindow(), xxxGetUpdateRect(), and xxxScrollWindowEx().

#define CFPARENTDC   0x0080
 

Definition at line 1594 of file client/nt6/user.h.

Referenced by _GetDCEx(), InvalidateDce(), UserGetHwnd(), UT_GetParentDCClipBox(), and xxxDWPPrint().

#define CFSAVEBITS   0x0108
 

Definition at line 1598 of file client/nt6/user.h.

Referenced by xxxShowWindow(), and zzzChangeStates().

#define CFSERVERSIDEPROC   0x0010
 

Definition at line 1591 of file client/nt6/user.h.

#define CFVREDRAW   0x0001
 

Definition at line 1587 of file client/nt6/user.h.

Referenced by xxxCalcValidRects().

#define CH_ENGLISHPREFIX   0x1E
 

Definition at line 3178 of file client/nt6/user.h.

Referenced by FindMnemChar(), GetPrefixCount(), and KKGetPrefixWidth().

#define CH_KANJIPREFIX   0x1F
 

Definition at line 3179 of file client/nt6/user.h.

Referenced by GetPrefixCount(), and KKGetPrefixWidth().

#define CH_PREFIX   TEXT('&')
 

Definition at line 3172 of file client/nt6/user.h.

Referenced by DT_GetExtentMinusPrefixes(), FindMnemChar(), GetPrefixCount(), and KKGetPrefixWidth().

#define CHARSTOBYTES cch   )     (cch)
 

Definition at line 283 of file client/nt6/user.h.

Referenced by DlgDirSelectHelper().

#define CheckMsgFilter wMsg,
wMsgFilterMin,
wMsgFilterMax   ) 
 

Value:

( ((wMsgFilterMin) == 0 && (wMsgFilterMax) == 0xFFFFFFFF) \ || ( ((wMsgFilterMin) > (wMsgFilterMax)) \ ? (((wMsg) < (wMsgFilterMax)) || ((wMsg) > (wMsgFilterMin))) \ : (((wMsg) >= (wMsgFilterMin)) && ((wMsg) <= (wMsgFilterMax)))))

Definition at line 2881 of file client/nt6/user.h.

Referenced by AdjustForCoalescing(), CalcWakeMask(), FindQMsg(), SystoChar(), xxxReadPostMessage(), and xxxScanSysQueue().

#define CHILDSYSMENU   ID_CLOSEMENU
 

Definition at line 2594 of file client/nt6/user.h.

Referenced by CreateMDIChild().

#define CI_16BIT   0x00000004
 

Definition at line 549 of file client/nt6/user.h.

Referenced by ECCopy(), EditWndProc(), and MB_CopyToClipboard().

#define CI_IN_SYNC_TRANSACTION   0x00000001
 

Definition at line 547 of file client/nt6/user.h.

Referenced by DdeClientTransaction().

#define CI_INITIALIZED   0x00000008
 

Definition at line 550 of file client/nt6/user.h.

Referenced by ClientThreadSetup().

#define CI_INTERTHREAD_HOOK   0x00000010
 

Definition at line 551 of file client/nt6/user.h.

Referenced by CallNextHookEx(), fnHkINLPCWPEXSTRUCT(), fnHkINLPCWPRETEXSTRUCT(), and xxxHkCallHook().

#define CI_PROCESSING_QUEUE   0x00000002
 

Definition at line 548 of file client/nt6/user.h.

Referenced by CheckForQueuedMessages(), and SetEnableState().

#define CI_REGISTERCLASSES   0x00000020
 

Definition at line 552 of file client/nt6/user.h.

Referenced by ClientThreadSetup(), InternalRegisterClassEx(), and xxxCreateThreadInfo().

#define CLEAR_FLAG field,
flag   )     ((field) &= ~(flag))
 

Definition at line 156 of file client/nt6/user.h.

#define CLEAR_PUSIF  )     CLEAR_FLAG(gpsi->PUSIFlags, f)
 

Definition at line 1079 of file client/nt6/user.h.

#define CLEAR_RIPF  )     do{UserAssert(gpsi); CLEAR_FLAG(gpsi->wRIPFlags, f);}while (FALSE)
 

Definition at line 1179 of file client/nt6/user.h.

#define CLEAR_SRVIF  )     CLEAR_FLAG(gpsi->wSRVIFlags, f)
 

Definition at line 1153 of file client/nt6/user.h.

#define ClearAsyncKeyStateDown vk   )     ClearKeyDownBit(gafAsyncKeyState, vk)
 

Definition at line 2972 of file client/nt6/user.h.

Referenced by ResetPushState(), and UpdateAsyncKeyState().

#define ClearAsyncKeyStateRecentDown vk   )     ClearKeyRecentDownBit(gafAsyncKeyStateRecentDown, vk)
 

Definition at line 2984 of file client/nt6/user.h.

Referenced by _GetAsyncKeyState().

#define ClearAsyncKeyStateToggle vk   )     ClearKeyToggleBit(gafAsyncKeyState, vk)
 

Definition at line 2978 of file client/nt6/user.h.

Referenced by _SetKeyboardState(), ChangeForegroundKeyboardTable(), NlsClearKeyStateToggle(), UpdateAsyncKeyState(), and UpdatePerUserKeyboardIndicators().

#define ClearKeyDownBit pb,
vk   )     (pb[vk >> 2] &= ~(1 << ((vk & 3) << 1)))
 

Definition at line 2938 of file client/nt6/user.h.

Referenced by xxxToUnicodeEx().

#define ClearKeyRecentDownBit pb,
vk   )     (pb[vk >> 3] &= ~(1 << (vk & 7)))
 

Definition at line 2952 of file client/nt6/user.h.

#define ClearKeyStateDown pq,
vk   )     ClearKeyDownBit(pq->afKeyState, vk)
 

Definition at line 2959 of file client/nt6/user.h.

Referenced by _SetKeyboardState(), ProcessUpdateKeyStateEvent(), ResetPushState(), SetConvMode(), and UpdateKeyState().

#define ClearKeyStateToggle pq,
vk   )     ClearKeyToggleBit(pq->afKeyState, vk)
 

Definition at line 2965 of file client/nt6/user.h.

Referenced by _SetKeyboardState(), ChangeForegroundKeyboardTable(), NlsClearKeyStateToggle(), ProcessUpdateKeyStateEvent(), ResetPushState(), SetConvMode(), UpdateKeyState(), and UpdatePerUserKeyboardIndicators().

#define ClearKeyToggleBit pb,
vk   )     (pb[vk >> 2] &= ~(1 << (((vk & 3) << 1) + 1)))
 

Definition at line 2944 of file client/nt6/user.h.

Referenced by xxxToUnicodeEx().

#define ClearMF pmenu,
flag   )     ((pmenu)->fFlags &= ~(flag))
 

Definition at line 2775 of file client/nt6/user.h.

Referenced by MakeMenuRtoL(), UnlockDesktopMenu(), xxxDrawMenuBarUnderlines(), xxxMenuBarDraw(), xxxMenuWindowProc(), xxxMNOpenHierarchy(), xxxNextWindow(), and xxxSetLPITEMInfo().

#define ClearMFS pitem,
flag   )     ((pitem)->fState &= ~(flag))
 

Definition at line 2780 of file client/nt6/user.h.

Referenced by _SetMenuDefaultItem(), MNDrawMenu3DHotTracking(), xxxHotTrackMenu(), xxxMNInvertItem(), xxxMNSetGapState(), and xxxSetLPITEMInfo().

#define ClearMFT pitem,
flag   )     ((pitem)->fType &= ~(flag))
 

Definition at line 2784 of file client/nt6/user.h.

Referenced by MakeMenuRtoL().

#define ClrCF pcls,
flag   )     (*((BYTE *)((PWND)(hwnd))->pcls + CFOFFSET + HIBYTE(flag)) &= ~LOBYTE(flag))
 

Definition at line 1611 of file client/nt6/user.h.

#define ClrCF2 pcls,
flag   )     (*((BYTE *)(pcls) + CFOFFSET + (int)HIBYTE(flag)) &= ~LOBYTE(flag))
 

Definition at line 1615 of file client/nt6/user.h.

#define ClrWF hwnd,
flag   )     (*(((BYTE *)(hwnd)) + STATEOFFSET + (int)HIBYTE(flag)) &= ~LOBYTE(flag))
 

Definition at line 2557 of file client/nt6/user.h.

Referenced by _DeregisterShellHookWindow(), ClearHungFlag(), ClearWindowState(), ClrFTrueVis(), DestroyWindowSmIcon(), DoPaint(), FreeSpb(), GetNCUpdateRgn(), ImeSetTopmost(), ImeSetTopmostChild(), InternalInvalidate3(), PatchThreadWindows(), SelectWindowRgn(), SetDialogPointer(), SetMinimize(), SetTopmost(), SetVisible(), SfnPOWERBROADCAST(), UnsetLayeredWindow(), UserRemoveRedirectionBitmap(), xxxActivateThisWindow(), xxxBeginPaint(), xxxCalcClientRect(), xxxCheckFullScreen(), xxxCreateWindowEx(), xxxDeactivate(), xxxDefWindowProc(), xxxDispatchMessage(), xxxDrawCaptionBar(), xxxDWP_DoNCActivate(), xxxDWPPrint(), xxxEnableWindow(), xxxEndDeferWindowPosEx(), xxxEndPaint(), xxxEndScroll(), xxxFreeWindow(), xxxGetUpdateRect(), xxxGetUpdateRgn(), xxxHelpLoop(), xxxInitSendValidateMinMaxInfo(), xxxMinMaximize(), xxxMNOpenHierarchy(), xxxMS_TrackMove(), xxxRemoveFullScreen(), xxxSBWndProc(), xxxSendNCPaint(), xxxSetScrollBar(), xxxSetWindowData(), xxxSetWindowStyle(), xxxShowWindow(), xxxSimpleDoSyncPaint(), xxxTrackCaptionButton(), xxxTrackPopupMenuEx(), xxxUpdateWindow2(), zzzCancelJournalling(), zzzChangeStates(), and zzzDrawInvertScrollArea().

#define CLST_CONNECTED   0
 

Definition at line 679 of file client/nt6/user.h.

Referenced by ConnectConv(), and DDEMLClientWndProc().

#define CLST_MULT_INITIALIZING   2
 

Definition at line 681 of file client/nt6/user.h.

Referenced by DdeConnectList(), and InitiateEnumerationProc().

#define CLST_SINGLE_INITIALIZING   1
 

Definition at line 680 of file client/nt6/user.h.

Referenced by DdeConnect(), DDEMLClientWndProc(), DdeReconnect(), InitiateEnumerationProc(), and ProcessDDEMLInitiate().

#define CMS_FLASHWND   500
 

Definition at line 3511 of file client/nt6/user.h.

#define CMS_QANIMATION   165
 

Definition at line 3510 of file client/nt6/user.h.

Referenced by AnimateWindow(), MNAnimate(), and xxxCBShowListBoxWindow().

#define CMSAPPSTARTINGTIMEOUT   (3 * CMSHUNGAPPTIMEOUT) /* Must be less than WAITTOKILL. See CheckAppStarting */
 

Definition at line 3509 of file client/nt6/user.h.

Referenced by CheckAppStarting(), and SetAppStarting().

#define CMSHUNGAPPTIMEOUT   (5 * 1000)
 

Definition at line 3506 of file client/nt6/user.h.

Referenced by GetTimeouts(), IdleTimerProc(), KillProcess(), NtUserQueryWindow(), SetAppStarting(), xxxButtonEvent(), xxxCallHook2(), xxxDesktopThread(), xxxDesktopWndProc(), xxxHungAppDemon(), xxxImmUnloadLayout(), xxxInterSendMsgEx(), xxxRedrawHungWindow(), xxxSetForegroundWindow2(), and xxxSimpleDoSyncPaint().

#define CMSHUNGTOKILLCOUNT   4
 

Definition at line 3507 of file client/nt6/user.h.

#define CMSSLEEP   250
 

Definition at line 3505 of file client/nt6/user.h.

Referenced by xxxLW_LoadFonts().

#define CMSWAITTOKILLTIMEOUT   (CMSHUNGTOKILLCOUNT * CMSHUNGAPPTIMEOUT)
 

Definition at line 3508 of file client/nt6/user.h.

Referenced by xxxSendBSMtoDesktop(), xxxSendMessageTimeout(), and zzzCancelJournalling().

#define CODEBIT   0x80
 

Definition at line 323 of file client/nt6/user.h.

Referenced by InternalCreateDialog().

#define COMBOBOXCODE   0x85
 

Definition at line 329 of file client/nt6/user.h.

#define COMBOLISTBOXCODE   0x87
 

Definition at line 331 of file client/nt6/user.h.

#define COPY_FLAG fieldDst,
fieldSrc,
flag   )     ((fieldDst) ^= ((fieldDst) ^ (fieldSrc)) & (flag))
 

Definition at line 173 of file client/nt6/user.h.

Referenced by _SetDbgTag(), FindBestPos(), HardErrorHandler(), and xxxFlashWindow().

#define CopyRect   CopyRectInl
 

Definition at line 243 of file client/nt6/user.h.

Referenced by _GetWindowPlacement(), AddNextContiguousRectangle(), AlignRects(), BNMultiExtent(), CalcClientScrolling(), CenterRectangles(), ChildMinMaxInfo(), CkptRestore(), DefDlgProcWorker(), DrawGroove(), DrawSwitchWndHilite(), ECSetEditClip(), ECSize(), EditWndProc(), FindBestPos(), InternalInvalidate2(), InternalScrollDC(), MLDeleteText(), MLDrawText(), MLInsertText(), MLScroll(), MLSetCaretPosition(), RecalcTrackRect(), ResetSharedDesktops(), SLDrawLine(), SLDrawText(), SLGetClipRect(), SnapshotMonitorRects(), SoftModalMessageBox(), xxxBNDrawText(), xxxCalcClientRect(), xxxCBInternalUpdateEditWindow(), xxxCreateDesktop2(), xxxCreateWindowEx(), xxxDrawAnimatedRects(), xxxDrawDragRect(), xxxDrawSB2(), xxxEnumDisplayMonitors(), xxxInternalPaintDesktop(), xxxLBoxDrawItem(), xxxMetricsRecalc(), xxxMinMaximize(), xxxMNPositionHierarchy(), xxxMoveSize(), xxxMS_TrackMove(), xxxPressButton(), xxxRedrawHungWindow(), xxxSBTrackInit(), xxxScrollWindowEx(), xxxSetWindowPlacement(), xxxSnapWindow(), xxxSystemParametersInfo(), xxxTM_MoveDragRect(), xxxTrackInitSize(), xxxUpdateClientRect(), and zzzDrawInvertScrollArea().

#define CPD_ANSI_TO_UNICODE   0x0001 /* CPD represents ansi to U transition */
 

Definition at line 1561 of file client/nt6/user.h.

Referenced by _GetClassData(), _GetClassInfoEx(), _GetWindowLongPtr(), _SetWindowLongPtr(), GetCPD(), GetWindowData(), xxxSetClassData(), and xxxSetWindowData().

#define CPD_CLASS   0x0010 /* Get CPD for a class */
 

Definition at line 1565 of file client/nt6/user.h.

Referenced by _GetClassInfoEx(), GetCPD(), and xxxSetClassData().

#define CPD_DIALOG   0x0040
 

Definition at line 1567 of file client/nt6/user.h.

Referenced by _GetWindowLongPtr(), _SetWindowLongPtr(), GetCPD(), and NtUserGetCPD().

#define CPD_TRANSITION_TYPES   (CPD_ANSI_TO_UNICODE|CPD_UNICODE_TO_ANSI)
 

Definition at line 1563 of file client/nt6/user.h.

Referenced by NtUserGetCPD().

#define CPD_UNICODE_TO_ANSI   0x0002
 

Definition at line 1562 of file client/nt6/user.h.

Referenced by _GetClassData(), _GetClassInfoEx(), _GetWindowLongPtr(), _SetWindowLongPtr(), GetCPD(), GetWindowData(), xxxSetClassData(), xxxSetWindowData(), and xxxWrapCallWindowProc().

#define CPD_WND   0x0020
 

Definition at line 1566 of file client/nt6/user.h.

Referenced by GetCPD(), GetWindowData(), NtUserGetCPD(), and xxxSetWindowData().

#define CPD_WNDTOCLS   0x0080
 

Definition at line 1568 of file client/nt6/user.h.

Referenced by _GetClassData(), GetCPD(), and NtUserGetCPD().

#define CPDHANDLE_HI   0xFFFF
 

Definition at line 1570 of file client/nt6/user.h.

#define CSF_ANSIPROC   0x0002
 

Definition at line 1686 of file client/nt6/user.h.

Referenced by _GetClassData(), _GetClassInfoEx(), GetCPD(), InternalRegisterClassEx(), xxxCreateWindowEx(), and xxxSetClassData().

#define CSF_SERVERSIDEPROC   0x0001
 

Definition at line 1685 of file client/nt6/user.h.

Referenced by _GetClassData(), _GetClassInfoEx(), InternalRegisterClassEx(), LW_RegisterWindows(), xxxCreateWindowEx(), and xxxSetClassData().

#define CSF_SYSTEMCLASS   0x0008
 

Definition at line 1688 of file client/nt6/user.h.

Referenced by InternalRegisterClassEx(), and LW_RegisterWindows().

#define CSF_WOWCLASS   0x0010
 

Definition at line 1689 of file client/nt6/user.h.

Referenced by _GetClassData(), _WOWModuleUnload(), InternalRegisterClassEx(), ReferenceClass(), xxxRegisterClassEx(), and xxxSetClassData().

#define CSF_WOWDEFERDESTROY   0x0004
 

Definition at line 1687 of file client/nt6/user.h.

Referenced by _InnerGetClassPtr(), _WOWCleanup(), and _WOWModuleUnload().

#define CSF_WOWEXTRA   0x0020
 

Definition at line 1690 of file client/nt6/user.h.

Referenced by _GetClassData(), and xxxSetClassData().

#define CSPINBACKGROUND   100
 

Definition at line 2733 of file client/nt6/user.h.

Referenced by NtUserYieldTask(), PeekMessage(), and xxxInternalGetMessage().

#define CTIF_SYSQUEUELOCKED   (UINT)0x00000001
 

Definition at line 2875 of file client/nt6/user.h.

Referenced by PeekMessage(), xxxInternalGetMessage(), and xxxScanSysQueue().

#define CURSOR_ALWAYSDESTROY   0
 

Definition at line 2169 of file client/nt6/user.h.

Referenced by _DestroyCursor(), CopyIcoCur(), CreateAniIcon(), CreateIcoCur(), CreateIcoCurIndirect(), CreateIconIndirect(), DestroyAniIcon(), DestroyClassSmIcon(), DestroyWindowSmIcon(), LoadAniIcon(), and xxxDWP_SetIcon().

#define CURSOR_CALLFROMCLIENT   1
 

Definition at line 2170 of file client/nt6/user.h.

Referenced by _DestroyCursor(), DestroyCursor(), and StaticWndProcWorker().

#define CURSOR_THREADCLEANUP   2
 

Definition at line 2171 of file client/nt6/user.h.

Referenced by _DestroyCursor(), _SetCursorContents(), DestroyUnlockedCursor(), and zzzSetSystemImage().

#define CURSORF_ACON   0x0008
 

Definition at line 2176 of file client/nt6/user.h.

Referenced by _DestroyCursor(), _DrawIconEx(), _GetCursorFrameInfo(), _InternalGetIconInfo(), _SetCursorContents(), _SetCursorIconData(), CreateAniIcon(), FixupCursor(), NtUserDrawIconEx(), NtUserGetIconSize(), NtUserSetCursorIconData(), SearchIconCache(), zzzAnimateCursor(), zzzSetSystemImage(), and zzzUpdateCursorImage().

#define CURSORF_ACONFRAME   0x0040
 

Definition at line 2178 of file client/nt6/user.h.

Referenced by ConvertDIBIcon(), DestroyAniIcon(), FixupCursor(), and LinkCursor().

#define CURSORF_FROMRESOURCE   0x0001
 

Definition at line 2173 of file client/nt6/user.h.

Referenced by _DestroyCursor(), and ConvertDIBIcon().

#define CURSORF_GLOBAL   0x0002
 

Definition at line 2174 of file client/nt6/user.h.

Referenced by ConvertDIBIcon(), and CreateIcoCur().

#define CURSORF_LINKED   0x0100
 

Definition at line 2180 of file client/nt6/user.h.

Referenced by DestroyEmptyCursorObject(), LinkCursor(), UnlinkCursor(), and ZombieCursor().

#define CURSORF_LRSHARED   0x0004
 

Definition at line 2175 of file client/nt6/user.h.

Referenced by _DestroyCursor(), _LoadCursorsAndIcons(), ConvertDIBIcon(), LinkCursor(), and SearchIconCache().

#define CURSORF_SECRET   0x0080
 

Definition at line 2179 of file client/nt6/user.h.

Referenced by _DestroyCursor(), _GetClassInfoEx(), DestroyWindowSmIcon(), DWP_GetIcon(), xxxCreateWindowSmIcon(), and xxxDWP_SetIcon().

#define CURSORF_VALID   0x01DF
 

Definition at line 2181 of file client/nt6/user.h.

#define CURSORF_WOWCLEANUP   0x0010
 

Definition at line 2177 of file client/nt6/user.h.

#define CVKASYNCKEYCACHE   16
 

Definition at line 495 of file client/nt6/user.h.

Referenced by GetAsyncKeyState(), and UpdateAsyncKeyState().

#define CVKKEYCACHE   32
 

Definition at line 492 of file client/nt6/user.h.

Referenced by GetKeyState(), and UpdateKeyState().

#define CVKKEYSTATE   256
 

Definition at line 2930 of file client/nt6/user.h.

Referenced by _GetAsyncKeyState(), and _GetKeyState().

#define CW2_USEDEFAULT   0x8000
 

Definition at line 2743 of file client/nt6/user.h.

Referenced by DefShortToInt(), InternalCreateDialog(), MDICheckCascadeRect(), xxxCreateWindowEx(), and zzzInitTask().

#define CW_FLAGS_DIFFHMOD   0x80000000
 

Definition at line 2744 of file client/nt6/user.h.

Referenced by _CreateWindowEx(), InternalDdeInitialize(), and xxxCsDdeInitialize().

#define CWINHOOKS   (WH_MAX - WH_MIN + 1)
 

Definition at line 2143 of file client/nt6/user.h.

#define DBCS_CHARSIZE   (2)
 

Definition at line 587 of file client/nt6/user.h.

Referenced by __declspec(), CaptureAnsiCallbackData(), DrawTextExA(), and ImmReconversionWorker().

#define DbgPrint   UserDbgPrint
 

Definition at line 88 of file client/nt6/user.h.

#define DESKTOPCLASS   MAKEINTATOM(0x8001)
 

Definition at line 289 of file client/nt6/user.h.

Referenced by LW_RegisterWindows(), SetupClassAtoms(), xxxCreateDesktop(), and xxxCreateWindowStation().

#define DESTINATION   (DWORD)0x00AA0000
 

Definition at line 220 of file client/nt6/user.h.

Referenced by InnerGrayStringAorW().

#define DF3DLOOK   0x0C04
 

Definition at line 2484 of file client/nt6/user.h.

Referenced by DefDlgProcWorker(), and InternalCreateDialog().

#define DF_3DFACE   (COLOR_3DFACE << 3)
 

Definition at line 719 of file client/nt6/user.h.

Referenced by MNDrawFullNC(), and xxxDrawCaptionBar().

#define DF_3DSHADOW   (COLOR_3DSHADOW << 3)
 

Definition at line 718 of file client/nt6/user.h.

#define DF_ACTIVEBORDER   (COLOR_ACTIVEBORDER << 3)
 

Definition at line 715 of file client/nt6/user.h.

Referenced by xxxDrawCaptionBar().

#define DF_ACTIVECAPTION   (COLOR_ACTIVECAPTION << 3)
 

Definition at line 707 of file client/nt6/user.h.

#define DF_APPWORKSPACE   (COLOR_APPWORKSPACE << 3)
 

Definition at line 717 of file client/nt6/user.h.

#define DF_BACKGROUND   (COLOR_BACKGROUND << 3)
 

Definition at line 706 of file client/nt6/user.h.

#define DF_CAPTIONTEXT   (COLOR_CAPTIONTEXT << 3)
 

Definition at line 714 of file client/nt6/user.h.

#define DF_GRAY   (COLOR_MAX << 3)
 

Definition at line 720 of file client/nt6/user.h.

Referenced by DrawFrame().

#define DF_HBRMASK   ~(DF_SHIFTMASK | DF_ROPMASK)
 

Definition at line 703 of file client/nt6/user.h.

Referenced by DrawFrame().

#define DF_INACTIVEBORDER   (COLOR_INACTIVEBORDER << 3)
 

Definition at line 716 of file client/nt6/user.h.

Referenced by xxxDrawCaptionBar().

#define DF_INACTIVECAPTION   (COLOR_INACTIVECAPTION << 3)
 

Definition at line 708 of file client/nt6/user.h.

#define DF_MENU   (COLOR_MENU << 3)
 

Definition at line 709 of file client/nt6/user.h.

#define DF_MENUTEXT   (COLOR_MENUTEXT << 3)
 

Definition at line 712 of file client/nt6/user.h.

#define DF_PATCOPY   0x0000
 

Definition at line 699 of file client/nt6/user.h.

Referenced by DrawSwitchWndHilite().

#define DF_PATINVERT   0x0004
 

Definition at line 700 of file client/nt6/user.h.

#define DF_ROPMASK   (DF_PATCOPY | DF_PATINVERT)
 

Definition at line 702 of file client/nt6/user.h.

Referenced by DrawFrame().

#define DF_SCROLLBAR   (COLOR_SCROLLBAR << 3)
 

Definition at line 705 of file client/nt6/user.h.

#define DF_SHIFT0   0x0000
 

Definition at line 695 of file client/nt6/user.h.

#define DF_SHIFT1   0x0001
 

Definition at line 696 of file client/nt6/user.h.

#define DF_SHIFT2   0x0002
 

Definition at line 697 of file client/nt6/user.h.

#define DF_SHIFT3   0x0003
 

Definition at line 698 of file client/nt6/user.h.

#define DF_SHIFTMASK   (DF_SHIFT0 | DF_SHIFT1 | DF_SHIFT2 | DF_SHIFT3)
 

Definition at line 701 of file client/nt6/user.h.

#define DF_WINDOW   (COLOR_WINDOW << 3)
 

Definition at line 710 of file client/nt6/user.h.

#define DF_WINDOWFRAME   (COLOR_WINDOWFRAME << 3)
 

Definition at line 711 of file client/nt6/user.h.

Referenced by MLPaint(), SLPaint(), and xxxDrawButton().

#define DF_WINDOWTEXT   (COLOR_WINDOWTEXT << 3)
 

Definition at line 713 of file client/nt6/user.h.

#define DFCONTROL   0x0D04
 

Definition at line 2488 of file client/nt6/user.h.

Referenced by GetParentDialog(), and InternalCreateDialog().

#define DFLOCALEDIT   0x0C20
 

Definition at line 2486 of file client/nt6/user.h.

#define DFNOFAILCREATE   0x0C10
 

Definition at line 2485 of file client/nt6/user.h.

Referenced by InternalCreateDialog().

#define DFSYSMODAL   0x0C02
 

Definition at line 2483 of file client/nt6/user.h.

#define DIALOGCLASS   MAKEINTATOM(0x8002)
 

Definition at line 290 of file client/nt6/user.h.

Referenced by _HasCaptionIcon(), InternalCreateDialog(), RW_RegisterControls(), SetupClassAtoms(), and xxxCreateWindowEx().

#define DLGF_ANSI   0x01 /* lpfnDlg is an ANSI proc */
 

Definition at line 2824 of file client/nt6/user.h.

Referenced by _GetWindowLongPtr(), _SetWindowLongPtr(), DefDlgProcWorker(), and InternalCreateDialog().

#define DO_DROPFILE   0x454C4946L
 

Definition at line 3470 of file client/nt6/user.h.

Referenced by DefWindowProcWorker(), and xxxDefWindowProc().

#define DOBI_3STATE   8
 

Definition at line 956 of file client/nt6/user.h.

Referenced by GetFrameControlMetrics().

#define DOBI_CAPOFF   1
 

Definition at line 953 of file client/nt6/user.h.

Referenced by BltMe4Times(), DrawCaptionIcon(), and xxxDrawCaptionBar().

#define DOBI_CAPON   0
 

Definition at line 952 of file client/nt6/user.h.

#define DOBI_CHECK   1
 

Definition at line 948 of file client/nt6/user.h.

Referenced by xxxButtonDrawCheck().

#define DOBI_CHECKDOWN   3
 

Definition at line 950 of file client/nt6/user.h.

Referenced by xxxButtonDrawCheck().

#define DOBI_DOWN   2
 

Definition at line 949 of file client/nt6/user.h.

Referenced by xxxButtonDrawCheck().

#define DOBI_HOT   2
 

Definition at line 945 of file client/nt6/user.h.

#define DOBI_INACTIVE   3
 

Definition at line 946 of file client/nt6/user.h.

Referenced by xxxDrawCaptionBar().

#define DOBI_MBAR   OBI_CLOSE_MBAR
 

Definition at line 957 of file client/nt6/user.h.

Referenced by GetFrameControlMetrics().

#define DOBI_NORMAL   0
 

Definition at line 943 of file client/nt6/user.h.

Referenced by xxxTrackCaptionButton().

#define DOBI_PUSHED   1
 

Definition at line 944 of file client/nt6/user.h.

Referenced by xxxRealDrawMenuItem(), xxxTrackCaptionButton(), and zzzDrawInvertScrollArea().

#define DT_CHARSETDONE   3
 

Definition at line 3200 of file client/nt6/user.h.

Referenced by DrawTextExWorker().

#define DT_CHARSETDRAW   1
 

Definition at line 3198 of file client/nt6/user.h.

Referenced by DT_DrawStr(), and DT_GetExtentMinusPrefixes().

#define DT_CHARSETINIT   2
 

Definition at line 3199 of file client/nt6/user.h.

Referenced by DrawTextExWorker().

#define DT_GETNEXTWORD   4
 

Definition at line 3201 of file client/nt6/user.h.

Referenced by GetNextWordbreak().

#define DTF_NEEDSPALETTECHANGED   0x00000001
 

Definition at line 2140 of file client/nt6/user.h.

Referenced by xxxDesktopWndProc(), and xxxRealizePalette().

#define DTF_NEEDSREDRAW   0x00000002
 

Definition at line 2141 of file client/nt6/user.h.

#define EDITCODE   0x81
 

Definition at line 325 of file client/nt6/user.h.

#define EFAUTOHSCROLL   0x0C80
 

Definition at line 2496 of file client/nt6/user.h.

#define EFAUTOVSCROLL   0x0C40
 

Definition at line 2495 of file client/nt6/user.h.

#define EFCOMBOBOX   0x0D02
 

Definition at line 2498 of file client/nt6/user.h.

#define EFLOWERCASE   0x0C10
 

Definition at line 2493 of file client/nt6/user.h.

#define EFMULTILINE   0x0C04
 

Definition at line 2491 of file client/nt6/user.h.

Referenced by ECNcCreate().

#define EFNOHIDESEL   0x0D01
 

Definition at line 2497 of file client/nt6/user.h.

#define EFNUMBER   0x0D20
 

Definition at line 2502 of file client/nt6/user.h.

Referenced by MLChar(), and SLChar().

#define EFOEMCONVERT   0x0D04
 

Definition at line 2499 of file client/nt6/user.h.

#define EFPASSWORD   0x0C20
 

Definition at line 2494 of file client/nt6/user.h.

Referenced by ECSetPasswordChar(), and xxxInterSendMsgEx().

#define EFREADONLY   0x0D08
 

Definition at line 2500 of file client/nt6/user.h.

Referenced by ECNcCreate(), EditWndProc(), and xxxCBPaint().

#define EFUPPERCASE   0x0C08
 

Definition at line 2492 of file client/nt6/user.h.

#define EFWANTRETURN   0x0D10
 

Definition at line 2501 of file client/nt6/user.h.

Referenced by MLChar(), and MLKeyDown().

#define EqualRect   EqualRectInl
 

Definition at line 244 of file client/nt6/user.h.

Referenced by _MonitorFromRect(), AnimateWindow(), CalcClientScrolling(), InternalScrollDC(), PreventInterMonitorBlts(), SetMonitorData(), SmartRectInRegion(), SmoothScrollWindowEx(), xxxDrawDragRect(), xxxDrawWindowFrame(), xxxMS_TrackMove(), and xxxSystemParametersInfo().

#define FASTCALL
 

Definition at line 34 of file client/nt6/user.h.

Referenced by HMAssignmentLock(), HMAssignmentUnlock(), HMValidateHandle(), HMValidateHandleNoRip(), HMValidateHandleNoSecure(), IovSpecialIrpCallDriver(), IovSpecialIrpCompleteRequest(), KiReadyThread(), MiEnsureAvailablePageOrWait(), UserScreenAccessCheck(), ValidateHwnd(), and ValidateHwndNoRip().

#define FIELD_SIZE type,
field   )     (sizeof(((type *)0)->field))
 

Definition at line 733 of file client/nt6/user.h.

#define FLASTKEY   0x80
 

Definition at line 735 of file client/nt6/user.h.

Referenced by _CreateAcceleratorTable(), LoadAcc(), NtUserCopyAcceleratorTable(), and xxxTranslateAccelerator().

#define FNID  )     (gpsi->mpFnidPfn[((DWORD)(s) - FNID_START) & (FNID_ARRAY_SIZE - 1)])
 

Definition at line 840 of file client/nt6/user.h.

Referenced by InitFunctionTables(), and xxxFreeWindow().

#define FNID_ARRAY_SIZE   32
 

Definition at line 829 of file client/nt6/user.h.

Referenced by InitFunctionTables().

#define FNID_BUTTON   0x0000029F
 

Definition at line 793 of file client/nt6/user.h.

Referenced by _GetWindowWord(), _RealChildWindowFromPoint(), _SetWindowWord(), ButtonWndProcA(), ButtonWndProcW(), ButtonWndProcWorker(), FIsParentDude(), InitMessageTables(), IsDialogMessageW(), MDIActivateDlgSize(), RW_RegisterControls(), WinHelpA(), xxxGotoNextMnem(), and xxxSetWindowLongPtr().

#define FNID_CALLWINDOWPROC   0x000002B1
 

Definition at line 815 of file client/nt6/user.h.

Referenced by CallWindowProcAorW(), EditWndProcWorker(), InitFunctionTables(), and MESSAGECALL().

#define FNID_CLEANEDUP_BIT   0x00004000
 

Definition at line 836 of file client/nt6/user.h.

Referenced by ButtonWndProcWorker(), ECNcCreate(), ECNcDestroyHandler(), ImeWndProcWorker(), MDIClientWndProcWorker(), NtUserSetWindowFNID(), SetDialogPointer(), StaticWndProcWorker(), xxxCBNcDestroyHandler(), xxxDestroyLBox(), and xxxFreeWindow().

#define FNID_COMBOBOX   0x000002A0
 

Definition at line 794 of file client/nt6/user.h.

Referenced by _GetComboBoxInfo(), ChildWindowFromPoint(), ComboBoxWndProcA(), ComboBoxWndProcW(), ComboBoxWndProcWorker(), DefDlgProcWorker(), ECNcDestroyHandler(), InitMessageTables(), RW_RegisterControls(), xxxDestroyLBox(), xxxDlgDirListHelper(), xxxMoveSize(), and xxxSetWindowLongPtr().

#define FNID_COMBOLISTBOX   0x000002A1
 

Definition at line 795 of file client/nt6/user.h.

Referenced by _GetComboBoxInfo(), InitMessageTables(), RW_RegisterControls(), xxxDlgDirListHelper(), and xxxSetWindowLongPtr().

#define FNID_CONTROLEND   0x000002A7
 

Definition at line 803 of file client/nt6/user.h.

Referenced by MapClientNeuterToClientPfn(), NtUserSetWindowFNID(), SendMessageWorker(), and xxxFreeWindow().

#define FNID_CONTROLSTART   0x0000029F
 

Definition at line 791 of file client/nt6/user.h.

Referenced by MapClientNeuterToClientPfn(), and SendMessageWorker().

#define FNID_DDE_BIT   0x00002000
 

Definition at line 835 of file client/nt6/user.h.

Referenced by EnterReaderMode(), and RW_RegisterDDEML().

#define FNID_DEFFRAMEPROC   0x000002AA
 

Definition at line 807 of file client/nt6/user.h.

#define FNID_DEFMDICHILDPROC   0x000002AB
 

Definition at line 808 of file client/nt6/user.h.

#define FNID_DEFWINDOWPROC   0x0000029E
 

Definition at line 788 of file client/nt6/user.h.

Referenced by DefWindowProcWorker(), and InitFunctionTables().

#define FNID_DELETED_BIT   0x00008000
 

Definition at line 837 of file client/nt6/user.h.

Referenced by IsWindow(), xxxCapture(), xxxFreeWindow(), and xxxSetWindowData().

#define FNID_DESKTOP   0x0000029D
 

Definition at line 787 of file client/nt6/user.h.

Referenced by _ClientToScreen(), _GetClientRect(), _GetWindow(), _GetWindowRect(), _IsDescendant(), _IsWindowVisible(), _MapWindowPoints(), _ScreenToClient(), CalcClientScrolling(), CalcWindowVisRgn(), CheckTopLevelOnly(), ChildMinMaxInfo(), DefDlgProcWorker(), DesktopWndProcWorker(), DoPaint(), FVisCountable(), GetContextHelpId(), GetDialogMonitor(), GetRealClientRect(), GetRect(), GetWindowData(), GetWindowRgn(), InitFunctionTables(), InitMessageTables(), IsVisible(), LW_RegisterWindows(), ResetOrg(), SizeBoxHwnd(), xxxDesktopWndProc(), xxxFreeWindow(), xxxRealizeDesktop(), and xxxStaticPaint().

#define FNID_DIALOG   0x000002A2
 

Definition at line 796 of file client/nt6/user.h.

Referenced by _GetWindowWord(), _SetWindowWord(), DefDlgProcWorker(), InitMessageTables(), RW_RegisterControls(), SendMessageWorker(), SetDialogPointer(), and xxxSetWindowLongPtr().

#define FNID_EDIT   0x000002A3
 

Definition at line 797 of file client/nt6/user.h.

Referenced by _GetWindowLongPtr(), EditWndProcA(), EditWndProcW(), EditWndProcWorker(), GetWindowData(), InitMessageTables(), RW_RegisterControls(), xxxInterSendMsgEx(), xxxSetWindowData(), xxxSetWindowLongPtr(), and xxxSetWindowStyle().

#define FNID_END   0x000002B4
 

Definition at line 819 of file client/nt6/user.h.

Referenced by InitMapSharedSection(), and NtUserGetClassName().

#define FNID_HKINLPCWPEXSTRUCT   0x000002A8
 

Definition at line 805 of file client/nt6/user.h.

Referenced by CallNextHookEx(), and InitFunctionTables().

#define FNID_HKINLPCWPRETEXSTRUCT   0x000002A9
 

Definition at line 806 of file client/nt6/user.h.

Referenced by CallNextHookEx(), and InitFunctionTables().

#define FNID_ICONTITLE   0x0000029B
 

Definition at line 785 of file client/nt6/user.h.

Referenced by InitFunctionTables(), and LW_RegisterWindows().

#define FNID_IME   0x000002A7
 

Definition at line 802 of file client/nt6/user.h.

Referenced by ImeWndProcWorker(), InitMessageTables(), NtUserSetImeOwnerWindow(), RW_RegisterControls(), and xxxSetWindowLongPtr().

#define FNID_LISTBOX   0x000002A4
 

Definition at line 798 of file client/nt6/user.h.

Referenced by _GetListBoxInfo(), _SetWindowLongPtr(), ComboListBoxWndProcA(), ComboListBoxWndProcW(), InitMessageTables(), ListBoxWndProcA(), ListBoxWndProcW(), ListBoxWndProcWorker(), MDIActivateDlgSize(), RW_RegisterControls(), xxxDlgDirListHelper(), and xxxSetWindowLongPtr().

#define FNID_MB_DLGPROC   0x000002AC
 

Definition at line 809 of file client/nt6/user.h.

#define FNID_MDIACTIVATEDLGPROC   0x000002AD
 

Definition at line 810 of file client/nt6/user.h.

#define FNID_MDICLIENT   0x000002A5
 

Definition at line 799 of file client/nt6/user.h.

Referenced by _CreateWindowEx(), _GetWindowLongPtr(), _GetWindowWord(), _SetWindowWord(), DefMDIChildProcWorker(), MDIClientWndProcWorker(), RW_RegisterControls(), TranslateMDISysAccel(), xxxMetricsRecalc(), and xxxSetWindowLongPtr().

#define FNID_MENU   0x0000029C
 

Definition at line 786 of file client/nt6/user.h.

Referenced by GetMenuPwnd(), GetTopMostInsertAfter(), InitFunctionTables(), InitMessageTables(), LW_RegisterWindows(), MenuWindowProcA(), MenuWindowProcW(), MenuWndProcWorker(), MNFreePopup(), and xxxMenuWindowProc().

#define FNID_SCROLLBAR   0x0000029A
 

Definition at line 784 of file client/nt6/user.h.

Referenced by InitFunctionTables(), InitMessageTables(), LW_RegisterWindows(), ScrollBarWndProcWorker(), and xxxSBWndProc().

#define FNID_SENDMESSAGE   0x000002AE
 

Definition at line 811 of file client/nt6/user.h.

Referenced by InitFunctionTables(), and SendMessageWorker().

#define FNID_SENDMESSAGEBSM   0x000002B2
 

Definition at line 816 of file client/nt6/user.h.

Referenced by BroadcastSystemMessageWorker(), and InitFunctionTables().

#define FNID_SENDMESSAGEEX   0x000002B0
 

Definition at line 814 of file client/nt6/user.h.

Referenced by InitFunctionTables(), and SendMessageTimeoutWorker().

#define FNID_SENDMESSAGEFF   0x000002AF
 

Definition at line 813 of file client/nt6/user.h.

Referenced by InitFunctionTables(), SendMessage(), and SendMessageTimeoutWorker().

#define FNID_START   0x0000029A
 

Definition at line 781 of file client/nt6/user.h.

Referenced by InitFunctionTables(), InitMapSharedSection(), InitMessageTables(), NtUserGetClassName(), and SendMessageWorker().

#define FNID_STATIC   0x000002A6
 

Definition at line 800 of file client/nt6/user.h.

Referenced by ChopText(), InitMessageTables(), RW_RegisterControls(), StaticWndProcWorker(), and xxxSetWindowLongPtr().

#define FNID_STATUS_BITS   (FNID_CLEANEDUP_BIT | FNID_DELETED_BIT)
 

Definition at line 838 of file client/nt6/user.h.

Referenced by DefDlgProcWorker(), DialogBox2(), and ValidateDialogPwnd().

#define FNID_SWITCH   0x000002B3
 

Definition at line 817 of file client/nt6/user.h.

Referenced by Getpswi(), GetTopMostInsertAfter(), LW_RegisterWindows(), Setpswi(), and xxxSwitchWndProc().

#define FNID_TO_CLIENT_PFNA  )     (*(((ULONG_PTR *)&gpsi->apfnClientA) + (s - FNID_START)))
 

Definition at line 895 of file client/nt6/user.h.

#define FNID_TO_CLIENT_PFNW  )     (*(((ULONG_PTR *)&gpsi->apfnClientW) + (s - FNID_START)))
 

Definition at line 896 of file client/nt6/user.h.

#define FNID_TO_CLIENT_PFNWORKER  )     (*(((ULONG_PTR *)&gpsi->apfnClientWorker) + (s - FNID_CONTROLSTART)))
 

Definition at line 897 of file client/nt6/user.h.

Referenced by SendMessageWorker(), and xxxFreeWindow().

#define FNID_TOOLTIP   0x000002B4
 

Definition at line 818 of file client/nt6/user.h.

Referenced by LW_RegisterWindows(), and xxxTooltipWndProc().

#define FNID_WNDPROCEND   0x0000029E
 

Definition at line 790 of file client/nt6/user.h.

Referenced by InitFunctionTables(), MapClientToServerPfn(), MapServerToClientPfn(), PatchThreadWindows(), and xxxFreeWindow().

#define FNID_WNDPROCSTART   0x0000029A
 

Definition at line 782 of file client/nt6/user.h.

Referenced by MapClientToServerPfn(), MapServerToClientPfn(), PatchThreadWindows(), and xxxFreeWindow().

#define FTrueVis pwnd   )     (_IsWindowVisible(pwnd))
 

Definition at line 2578 of file client/nt6/user.h.

 
#define FWINABLE  )     TEST_SRVIF(SRVIF_WINEVENTHOOKS)
 

Definition at line 1265 of file client/nt6/user.h.

Referenced by ButtonWndProcWorker(), ComboBoxWndProcWorker(), DefDlgProcWorker(), DialogBox2(), ECResetTextInfo(), LBEvent(), ListBoxWndProcWorker(), MB_DlgProcWorker(), MLDeleteText(), MLInsertText(), NotifyWinEvent(), NtUserNotifyWinEvent(), SLChar(), SLKeyDown(), SLPaste(), SLReplaceSel(), SLUndo(), UpdateLayeredSprite(), xxxActivateThisWindow(), xxxCalcClientRect(), xxxCancelCoolSwitch(), xxxCapture(), xxxCreateCaret(), xxxCreateWindowEx(), xxxDefWindowProc(), xxxDestroyThreadInfo(), xxxDestroyWindow(), xxxDragObject(), xxxEnableSBCtlArrows(), xxxEnableWindow(), xxxEnableWndSBArrows(), xxxEndScroll(), xxxHelpLoop(), xxxLBButtonUp(), xxxLBInsertItem(), xxxLBoxCtlDelete(), xxxLBoxCtlKeyInput(), xxxLBSelRange(), xxxLBSetCurSel(), xxxLBSetSel(), xxxMinMaximize(), xxxMNCancel(), xxxMNCloseHierarchy(), xxxMNOpenHierarchy(), xxxMNSelectItem(), xxxMNStartMenu(), xxxMNSwitchToAlternateMenu(), xxxMoveSize(), xxxMoveSwitchWndHilite(), xxxMS_TrackMove(), xxxPressButton(), xxxSBTrackLoop(), xxxSBWndProc(), xxxScanSysQueue(), xxxSendChangedMsgs(), xxxSendFocusMessages(), xxxSendMenuSelect(), xxxSetConsoleCaretInfo(), xxxSetISelBase(), xxxSetParent(), xxxSetScrollBar(), xxxShowSwitchWindow(), xxxTrackCaptionButton(), xxxTrackMouse(), xxxTrackPopupMenuEx(), xxxWindowEvent(), zzzChangeStates(), zzzDrawInvertScrollArea(), zzzInternalDestroyCaret(), zzzInternalHideCaret(), zzzInternalShowCaret(), zzzSetCaretPos(), and zzzUpdateCursorImage().

#define GET_X_LPARAM lp   )     ((int)(short)LOWORD(lp))
 

Definition at line 143 of file client/nt6/user.h.

Referenced by ConsoleWindowProc(), DefWindowProcWorker(), ECImmSetCompositionWindow(), FindNCHit(), ListBoxWndProcWorker(), ReaderMouseMove(), ReaderWndProc(), SendHelpMessage(), TransMoveImeWindow(), TransSetConversionWindow(), xxxCallHandleMenuMessages(), xxxContScroll(), xxxDefWindowProc(), xxxDoScrollMenu(), xxxEndScroll(), xxxHandleMenuMessages(), xxxMenuWindowProc(), xxxSBTrackInit(), xxxSBWndProc(), xxxSendHelpMessage(), xxxTrackBox(), xxxTrackCaptionButton(), xxxTrackPopupMenuEx(), and xxxTrackThumb().

#define GET_Y_LPARAM lp   )     ((int)(short)HIWORD(lp))
 

Definition at line 147 of file client/nt6/user.h.

Referenced by ConsoleWindowProc(), DefWindowProcWorker(), ECImmSetCompositionWindow(), FindNCHit(), ListBoxWndProcWorker(), ReaderMouseMove(), ReaderWndProc(), SendHelpMessage(), TransMoveImeWindow(), TransSetConversionWindow(), xxxCallHandleMenuMessages(), xxxContScroll(), xxxDefWindowProc(), xxxDoScrollMenu(), xxxEndScroll(), xxxHandleMenuMessages(), xxxMenuWindowProc(), xxxSBTrackInit(), xxxSBWndProc(), xxxSendHelpMessage(), xxxTrackBox(), xxxTrackCaptionButton(), xxxTrackPopupMenuEx(), and xxxTrackThumb().

#define GetChildParent pwnd   )     (TestwndChild(pwnd) ? pwnd->spwndParent : NULL)
 

Definition at line 2568 of file client/nt6/user.h.

Referenced by DefWindowProcWorker(), xxxDefWindowProc(), and xxxDWP_SetCursor().

 
#define GetClientInfo  )     ((PCLIENTINFO)((NtCurrentTeb())->Win32ClientInfo))
 

Definition at line 192 of file client/nt6/user.h.

Referenced by _GetDesktopWindow(), CallMsgFilter(), CallNextHookEx(), CheckForQueuedMessages(), ClientThreadSetup(), CompStrAToCharA(), CompStrWToCharA(), CtxBadAppDelay(), CtxUserYieldTask(), DdeClientTransaction(), DefWindowProcWorker(), DispatchClientMessage(), DispatchMessageWorker(), DoCallback(), DT_GetExtentMinusPrefixes(), ECCopy(), EditWndProc(), fnHkINLPCWPEXSTRUCT(), fnHkINLPCWPRETEXSTRUCT(), GetAppCompatFlags(), GetAppCompatFlags2(), GetAsyncKeyState(), GetClassWOWWords(), GetCursorPos(), GetDesktopWindow(), GetInputState(), GetKeyState(), GetParent(), GetProgmanWindow(), GetShellWindow(), GetSystemMetrics(), GetTaskmanWindow(), HMValidateSharedHandle(), ImmActivateLayout(), ImmGenerateMessage(), ImmPostMessages(), ImmSetCompositionFontA(), ImmSetCompositionFontW(), InquireIme(), InSendMessage(), InSendMessageEx(), IsDialogMessageW(), LB_CreateLBLine(), LBlstrcmpi(), MB_CopyToClipboard(), MenuLoadWinTemplates(), MessageBoxWorker(), MsgWaitForMultipleObjectsEx(), PeekMessage(), PhkNextValid(), SendMessageWorker(), SendOpenStatusNotify(), SetEnableState(), SoftModalMessageBox(), ValidateHwnd(), ValidateHwndNoRip(), and xxxHkCallHook().

#define GETFNID pwnd   )     ((pwnd)->fnid & ~FNID_STATUS_BITS)
 

Definition at line 843 of file client/nt6/user.h.

Referenced by _ClientToScreen(), _CreateWindowEx(), _GetClientRect(), _GetComboBoxInfo(), _GetListBoxInfo(), _GetWindow(), _GetWindowLongPtr(), _GetWindowRect(), _GetWindowWord(), _IsDescendant(), _IsWindowVisible(), _MapWindowPoints(), _RealChildWindowFromPoint(), _ScreenToClient(), _SetWindowLongPtr(), _SetWindowWord(), CalcClientScrolling(), CalcWindowVisRgn(), CheckTopLevelOnly(), ChildMinMaxInfo(), ChildWindowFromPoint(), ChopText(), DefDlgProcWorker(), DefMDIChildProcWorker(), DoPaint(), ECNcDestroyHandler(), FIsParentDude(), FVisCountable(), GetContextHelpId(), GetDialogMonitor(), GetMenuPwnd(), Getpswi(), GetRealClientRect(), GetRect(), GetTopMostInsertAfter(), GetWindowData(), GetWindowRgn(), IsDialogMessageW(), IsVisible(), MDIActivateDlgSize(), MNFreePopup(), NtUserGetClassName(), NtUserSetImeOwnerWindow(), NtUserSetWindowFNID(), ResetOrg(), Setpswi(), SizeBoxHwnd(), TranslateMDISysAccel(), WinHelpA(), xxxDestroyLBox(), xxxDlgDirListHelper(), xxxFreeWindow(), xxxInterSendMsgEx(), xxxMenuWindowProc(), xxxMetricsRecalc(), xxxMoveSize(), xxxRealizeDesktop(), xxxSetWindowData(), xxxSetWindowLongPtr(), xxxSetWindowStyle(), and xxxStaticPaint().

#define GetFullScreen pwnd   )     (TestWF(pwnd, WFFULLSCREENMASK))
 

Definition at line 2573 of file client/nt6/user.h.

Referenced by InitSwitchWndInfo(), xxxActivateOnMinimize(), xxxbFullscreenSwitch(), xxxMakeWindowForegroundWithState(), xxxShowWindow(), and xxxSwitchDesktop().

#define GETGPSIMBPSTR  )     (LPWSTR) ((LPBYTE)gpsi->AllMBbtnStrings + *(gpsi->AllMBbtnStrings+(u)))
 

Definition at line 1269 of file client/nt6/user.h.

Referenced by IsTooltipHittest(), MB_GetString(), and xxxMB_FindLongestString().

#define GETPDESK  )     _GETPDESK(p)
 

Definition at line 1548 of file client/nt6/user.h.

Referenced by xxxFreeWindow(), xxxSendBSMtoDesktop(), xxxTooltipWndProc(), and zzzSetFMouseMoved().

#define GETPPI  )     _GETPPI(p)
 

Definition at line 1549 of file client/nt6/user.h.

Referenced by _DestroyCursor(), and DestroyAniIcon().

#define GETPTI  )     _GETPTI(p)
 

Definition at line 1547 of file client/nt6/user.h.

Referenced by _FindWindowEx(), _GetComboBoxInfo(), _GetDCEx(), _GetGUIThreadInfo(), _GetListBoxInfo(), _PostMessage(), _RegisterHotKey(), _RegisterTasklist(), _SelectPalette(), _SetClassWord(), _SetConsoleReserveKeys(), _SetSystemTimer(), _SetTimer(), _ShowWindowAsync(), _UnhookWinEvent(), AssociateInputContextEx(), CalcForegroundInsertAfter(), CancelInputState(), cDecVis(), CheckTopmost(), CheckTransferState(), ClearWindowState(), DecPaintCount(), DefWindowProcWorker(), DestroyInputContext(), DestroyProcessInfo(), DestroyThreadsObjects(), DispatchMessageWorker(), DoQueuedSyncPaint(), DWP_GetEnabledPopup(), ECGetControlBrush(), FCallerOk(), FreeDdeConv(), FreeHook(), FreeInputContext(), FreeThreadsWindowHooks(), FreeThreadsWinEvents(), GetActiveHKL(), GetActiveTrackPwnd(), GetJournallingQueue(), GetTopMostInsertAfter(), IdleTimerProc(), ImeCanDestroyDefIMEforChild(), ImeCheckTopmost(), ImeSetContextHandler(), ImeSetFutureOwner(), ImeSetTopmost(), ImmRequestMessageAorW(), ImmSetActiveContext(), IncPaintCount(), IncVisWindows(), InternalBuildHwndList(), InternalDoPaint(), InternalInvalidate2(), InternalInvalidate3(), InternalSetClipboardData(), InternalSetTimer(), IsChildSameThread(), IsTopmostRealApp(), MNEndMenuStateNotify(), NewConversation(), NtUserAlterWindowStyle(), NtUserDdeGetQualityOfService(), NtUserDdeSetQualityOfService(), NtUserGetAppImeLevel(), NtUserImpersonateDdeClientWindow(), NtUserQueryInputContext(), NtUserQueryWindow(), NtUserSetAppImeLevel(), NtUserSetImeOwnerWindow(), NtUserSetWindowFNID(), PostAccessNotification(), PseudoDestroyClassWindows(), QueryTrackMouseEvent(), SendMessageWorker(), SetDialogPointer(), SetWindowState(), TestInputContextProcess(), TestWindowProcess(), TrackBackground(), TrackMouseEvent(), UnlinkHook(), UpdateInputContext(), ValidateHwnd(), ValidateWindowPos(), WakeSomeone(), xxxActivateApp(), xxxActivateThisWindow(), xxxActivateWindow(), xxxActiveWindowTracking(), xxxAdviseData(), xxxButtonEvent(), xxxCallHook2(), xxxCancelMouseMoveTracking(), xxxCapture(), xxxChangeClipboardChain(), xxxCheckImeShowStatus(), xxxCheckImeShowStatusInThread(), xxxClientShutdown(), xxxCopyAckIn(), xxxCreateCaret(), xxxCreateDefaultImeWindow(), xxxCreateWindowEx(), xxxDDETrackPostHook(), xxxDDETrackWindowDying(), xxxDeactivate(), xxxDefWindowProc(), xxxDesktopThread(), xxxDesktopWndProc(), xxxDestroyThreadInfo(), xxxDestroyWindow(), xxxDispatchMessage(), xxxDoHotKeyStuff(), xxxDoSend(), xxxDragObject(), xxxDrawDragRect(), xxxDW_DestroyOwnedWindows(), xxxDWP_ProcessVirtKey(), xxxEndMenuLoop(), xxxExecute(), xxxExecuteAck(), xxxFlashWindow(), xxxFocusSetInputContext(), xxxFW_DestroyAllChildren(), xxxGetControlColor(), xxxHandleOwnerSwitch(), xxxHkCallHook(), xxxHungAppDemon(), xxxImmProcessKey(), xxxInternalDoSyncPaint(), xxxInternalUpdateWindow(), xxxInterSendMsgEx(), xxxKeyEvent(), xxxMakeWindowForegroundWithState(), xxxMenuWindowProc(), xxxMessageEvent(), xxxMinimizeHungWindow(), xxxMinMaximize(), xxxMNEndMenuState(), xxxMNKeyDown(), xxxMNStartMenuState(), xxxMouseActivate(), xxxMoveSize(), xxxNextWindow(), xxxNotifyImeShowStatus(), xxxNotifyIMEStatus(), xxxOldNextWindow(), xxxOpenClipboard(), xxxPoke(), xxxProcessEventMessage(), xxxProcessNotifyWinEvent(), xxxRedrawHungWindow(), xxxRequestAck(), xxxScanSysQueue(), xxxSendBSMtoDesktop(), xxxSendEraseBkgnd(), xxxSendFocusMessages(), xxxSendMessageCallback(), xxxSendMessageTimeout(), xxxSendOpenStatusNotify(), xxxSetActiveWindow(), xxxSetCapture(), xxxSetClassLongPtr(), xxxSetFocus(), xxxSetForegroundWindow(), xxxSetForegroundWindow2(), xxxSetIMEShowStatus(), xxxSetParent(), xxxSetScrollBar(), xxxSetShellWindow(), xxxSetWindowData(), xxxSetWindowLongPtr(), xxxSetWindowPlacement(), xxxSetWindowStyle(), xxxSimpleDoSyncPaint(), xxxSwitchDesktop(), xxxSwitchToThisWindow(), xxxSwpActivate(), xxxSysCommand(), xxxSystemTimerProc(), xxxTrackMouseMove(), xxxTrackPopupMenuEx(), xxxUpdateThreadsWindows(), xxxUpdateTray(), xxxWindowEvent(), xxxWindowHitTest2(), zzzAttachToQueue(), zzzChangeStates(), zzzReattachThreads(), zzzSetFMouseMoved(), zzzUnhookWindowsHook(), and zzzUnhookWindowsHookEx().

#define GETPWNDPPI  )     (GETPTI(p)->ppi)
 

Definition at line 1553 of file client/nt6/user.h.

Referenced by _DdeGetQualityOfService(), DrawSwitchWndHilite(), NtUserImpersonateDdeClientWindow(), xxxDDETrackPostHook(), and xxxDDETrackSendHook().

#define GetWindowCreator pwnd   )     (TestwndChild(pwnd) ? pwnd->spwndParent : pwnd->spwndOwner)
 

Definition at line 2569 of file client/nt6/user.h.

Referenced by EndDialog().

#define GRC_FULLSCREEN   0x0004
 

Definition at line 3045 of file client/nt6/user.h.

Referenced by GetRealClientRect().

#define GRC_MINWNDS   0x0002
 

Definition at line 3044 of file client/nt6/user.h.

Referenced by ArrangeWindows(), GetParentArrangeRect(), GetRealClientRect(), and SetTiledRect().

#define GRC_SCROLLS   0x0001
 

Definition at line 3043 of file client/nt6/user.h.

Referenced by ArrangeWindows(), GetRealClientRect(), ParkIcon(), and xxxArrangeIconicWindows().

#define GRECT_CLIENT   0x0001
 

Definition at line 3420 of file client/nt6/user.h.

Referenced by _GetScrollBarInfo(), CalcSBStuff(), GetRealClientRect(), MDICheckCascadeRect(), SBCtlSetup(), UT_GetParentDCClipBox(), xxxCalcValidRects(), and xxxScrollWindowEx().

#define GRECT_CLIENTCOORDS   0x0010
 

Definition at line 3424 of file client/nt6/user.h.

Referenced by _GetScrollBarInfo(), GetRealClientRect(), GetRect(), MDICheckCascadeRect(), SBCtlSetup(), UT_GetParentDCClipBox(), and xxxScrollWindowEx().

#define GRECT_COORDMASK   0x0070
 

Definition at line 3427 of file client/nt6/user.h.

Referenced by GetRect().

#define GRECT_PARENTCOORDS   0x0040
 

Definition at line 3426 of file client/nt6/user.h.

Referenced by GetRect(), ParkIcon(), UpdateCheckpoint(), xxxCalcValidRects(), xxxMinMaximize(), and xxxSetStaticImage().

#define GRECT_RECTMASK   0x0003
 

Definition at line 3422 of file client/nt6/user.h.

Referenced by GetRect().

#define GRECT_WINDOW   0x0002
 

Definition at line 3421 of file client/nt6/user.h.

Referenced by GetRect(), ParkIcon(), UpdateCheckpoint(), xxxCalcValidRects(), xxxDrawCaptionBar(), xxxDrawWindowFrame(), xxxMinMaximize(), and xxxSetStaticImage().

#define GRECT_WINDOWCOORDS   0x0020
 

Definition at line 3425 of file client/nt6/user.h.

Referenced by CalcSBStuff(), GetRect(), xxxDrawCaptionBar(), and xxxDrawWindowFrame().

#define GWL_CONVCONTEXT   GWLP_PCI + sizeof(PVOID)
 

Definition at line 674 of file client/nt6/user.h.

Referenced by GetConvContext(), and SetConvContext().

#define GWL_CONVSTATE   GWL_CONVCONTEXT + sizeof(CONVCONTEXT)
 

Definition at line 675 of file client/nt6/user.h.

Referenced by ConnectConv(), DDEMLClientWndProc(), and ProcessDDEMLInitiate().

#define GWLP_CHINST   GWLP_SHINST + sizeof(HANDLE)
 

Definition at line 677 of file client/nt6/user.h.

Referenced by ConnectConv(), and DDEMLClientWndProc().

#define GWLP_INSTANCE_INFO   0
 

Definition at line 668 of file client/nt6/user.h.

Referenced by InternalDdeInitialize(), and ProcessRegistrationMessage().

#define GWLP_PCI   0
 

Definition at line 673 of file client/nt6/user.h.

Referenced by AbandonEnumerateProc(), ConnectConv(), DdeConnectList(), DdeDisconnectList(), DDEMLClientWndProc(), DDEMLMotherWndProc(), DdeQueryNextServer(), EnableEnumProc(), InitiateEnumerationProc(), and UnlinkConvFromOthers().

#define GWLP_PSI   0
 

Definition at line 685 of file client/nt6/user.h.

Referenced by DDEMLServerWndProc(), DdePostAdvise(), and ProcessDDEMLInitiate().

#define GWLP_PSII   0
 

Definition at line 689 of file client/nt6/user.h.

Referenced by xxxCsDdeInitialize(), and xxxEventWndProc().

#define GWLP_SHINST   GWL_CONVSTATE + sizeof(LONG)
 

Definition at line 676 of file client/nt6/user.h.

Referenced by ConnectConv(), and ProcessDDEMLInitiate().

#define HANDLEF_DESTROY   0x01
 

Definition at line 1429 of file client/nt6/user.h.

Referenced by _WOWCleanup(), DestroyHandleTableObjects(), DestroyInputContext(), DestroyProcessesObjects(), DestroyProcessInfo(), DestroyThreadsObjects(), HMDestroyUnlockedObject(), HMMarkObjectDestroy(), HMUnlockObjectInternal(), MarkThreadsObjects(), PatchThreadWindows(), PtiWindow(), ValidateHwnd(), ValidateZorder(), xxxLoadKeyboardLayoutEx(), and xxxMNOpenHierarchy().

#define HANDLEF_FINALDESTROY   0x08
 

Definition at line 1432 of file client/nt6/user.h.

#define HANDLEF_GRANTED   0x20
 

Definition at line 1434 of file client/nt6/user.h.

Referenced by HMFreeObject(), and NtUserUserHandleGrantAccess().

#define HANDLEF_INDESTROY   0x02
 

Definition at line 1430 of file client/nt6/user.h.

Referenced by HMDestroyUnlockedObject(), HMMarkObjectDestroy(), HMUnlockObjectInternal(), and xxxFreeWindow().

#define HANDLEF_INWAITFORDEATH   0x04
 

Definition at line 1431 of file client/nt6/user.h.

#define HANDLEF_MARKED_OK   0x10
 

Definition at line 1433 of file client/nt6/user.h.

Referenced by HMMarkObjectDestroy(), and xxxLoadKeyboardLayoutEx().

#define HANDLEF_VALID   0x3F
 

Definition at line 1435 of file client/nt6/user.h.

 
#define HDCBITS  )     gpDispInfo->hdcBits
 

Definition at line 2138 of file client/nt6/user.h.

Referenced by _InternalGetIconInfo(), BitBltSysBmp(), BltMe4Times(), CreateBitmapStrip(), CreateCompatiblePublicDC(), CreateDIBPalette(), DrawCaptionButtons(), DrawCaptionIcon(), DrawMenuItemCheckMark(), InitUserScreen(), NtUserBitBltSysBmp(), RecolorDeskPattern(), SetIconMetrics(), UpdateUserScreen(), xxxDrawCaptionBar(), xxxDrawMenuBarTemp(), xxxDrawMenuItem(), xxxRealDrawMenuItem(), and xxxSetNCFonts().

#define HEVENT_REMOVEME   ((HANDLE)IntToPtr( 0xFFFFFFFF ))
 

Definition at line 196 of file client/nt6/user.h.

Referenced by MsgWaitForMultipleObjectsEx(), xxxInternalGetMessage(), xxxPollAndWaitForSingleObject(), and xxxSleepTask().

#define HF_ANSI   0x0002
 

Definition at line 2008 of file client/nt6/user.h.

Referenced by SetWindowsHookA(), SetWindowsHookExA(), xxxCallHook2(), xxxHkCallHook(), and zzzSetWindowsHookEx().

#define HF_DESTROYED   0x0080
 

Definition at line 2014 of file client/nt6/user.h.

Referenced by FreeHook(), FreeThreadsWindowHooks(), PhkFirstGlobalValid(), PhkFirstValid(), PhkNextValid(), and zzzUnhookWindowsHookEx().

#define HF_GLOBAL   0x0001
 

Definition at line 2007 of file client/nt6/user.h.

Referenced by CheckWHFBits(), FreeHook(), FreeThreadsWindowHooks(), HMChangeOwnerThread(), PhkNextValid(), UnlinkHook(), xxxCallHook2(), and zzzSetWindowsHookEx().

#define HF_HOOKFAULTED   0x0010
 

Definition at line 2011 of file client/nt6/user.h.

Referenced by xxxCallHook2().

#define HF_HUNG   0x0008
 

Definition at line 2010 of file client/nt6/user.h.

#define HF_NEEDHC_SKIP   0x0004
 

Definition at line 2009 of file client/nt6/user.h.

Referenced by xxxHkCallHook(), and xxxSkipSysMsg().

#define HF_NOPLAYBACKDELAY   0x0020
 

Definition at line 2012 of file client/nt6/user.h.

#define HF_WX86KNOWNDLL   0x0040
 

Definition at line 2013 of file client/nt6/user.h.

Referenced by SetWindowsHookExAW(), xxxCallHook2(), xxxHkCallHook(), and zzzSetWindowsHookEx().

#define HMHandleFromIndex  )     ((HANDLE)(i | (gSharedInfo.aheList[i].wUniq << HMUNIQSHIFT)))
 

Definition at line 1469 of file client/nt6/user.h.

Referenced by HMAllocObject().

#define HMINDEXBITS   0x0000FFFF
 

Definition at line 1465 of file client/nt6/user.h.

Referenced by HMAllocObject(), HMGrowHandleTable(), and HMInitHandleTable().

#define HMIndexFromHandle  )     (((ULONG_PTR)h) & HMINDEXBITS)
 

Definition at line 1470 of file client/nt6/user.h.

Referenced by GetFullUserHandle(), HMAllocObject(), NtUserUserHandleGrantAccess(), and PtiWindow().

#define HMIsMarkDestroy  )     (HMPheFromObject(p)->bFlags & HANDLEF_DESTROY)
 

Definition at line 1477 of file client/nt6/user.h.

Referenced by _UnhookWinEvent(), CkptRestore(), FreeDdeConv(), HMAssignmentLock(), TimersProc(), UnlockAndFreeCPDs(), Win32kNtUserCleanup(), xxxActivateOnMinimize(), xxxActivateThisWindow(), xxxCallHook2(), xxxDestroyThreadDDEObject(), xxxDestroyWindow(), xxxFreeWindow(), xxxGetEventProc(), xxxMakeWindowForegroundWithState(), xxxSendMessageTimeout(), xxxSetForegroundWindow2(), xxxSwitchDesktop(), and xxxWindowEvent().

#define HMObjectFlags  )     (gahti[HMObjectType(p)].bObjectCreateFlags)
 

Definition at line 1475 of file client/nt6/user.h.

Referenced by _MapDesktopObject(), HMChangeOwnerPheProcess(), and HMChangeOwnerThread().

#define HMObjectFromHandle  )     _HMObjectFromHandle(h)
 

Definition at line 1511 of file client/nt6/user.h.

Referenced by _HasCaptionIcon().

#define HMObjectType  )     (HMPheFromObject(p)->bType)
 

Definition at line 1474 of file client/nt6/user.h.

#define HMPheFromObject  )     _HMPheFromObject(p)
 

Definition at line 1510 of file client/nt6/user.h.

Referenced by DestroyInputContext(), HMChangeOwnerThread(), HMFreeObject(), HMMarkObjectDestroy(), HMUnlockObjectInternal(), ValidateZorder(), xxxCreateWindowStation(), xxxDestroyWindow(), xxxFreeWindow(), xxxLoadKeyboardLayoutEx(), xxxMNOpenHierarchy(), ZombieCursor(), and zzzSetSystemImage().

#define HMRevalidateHandle  )     HMValidateHandleNoSecure(h, TYPE_GENERIC)
 

Definition at line 1482 of file client/nt6/user.h.

#define HMRevalidateHandleNoRip  )     HMValidateHandleNoRip(h, TYPE_GENERIC)
 

Definition at line 1484 of file client/nt6/user.h.

Referenced by xxxSetClassIcon().

#define HMUNIQBITS   0xFFFF
 

Definition at line 1467 of file client/nt6/user.h.

Referenced by HMFreeObject(), and PtiWindow().

#define HMUniqFromHandle  )     ((WORD)((((ULONG_PTR)h) >> HMUNIQSHIFT) & HMUNIQBITS))
 

Definition at line 1473 of file client/nt6/user.h.

Referenced by HMValidateHandle(), HMValidateHandleNoSecure(), HMValidateSharedHandle(), and PtiWindow().

#define HMUNIQSHIFT   16
 

Definition at line 1466 of file client/nt6/user.h.

#define HRGN_EMPTY   ((HRGN)0)
 

Definition at line 3063 of file client/nt6/user.h.

#define HRGN_FULL   ((HRGN)1)
 

Definition at line 3064 of file client/nt6/user.h.

Referenced by _ExcludeUpdateRgn(), _GetDCEx(), _ScrollDC(), CreateRedirectionBitmap(), GetMonitorDC(), GetNCUpdateRgn(), InternalInvalidate2(), InternalInvalidate3(), InternalScrollDC(), LockWindowUpdate2(), OffsetChildren(), SelectWindowRgn(), SpbTransfer(), UserRedrawDesktop(), UserSetDCVisRgn(), xxxDrawAnimatedRects(), xxxDrawDragRect(), xxxEndMenuLoop(), xxxGetUpdateRect(), xxxGetUpdateRgn(), xxxInternalInvalidate(), xxxMenuWindowProc(), xxxMinMaximize(), xxxRedrawHungWindow(), xxxRedrawWindow(), xxxScrollWindowEx(), xxxSendChildNCPaint(), xxxSendNCPaint(), xxxSetWindowRgn(), xxxSystemParametersInfo(), xxxUserChangeDisplaySettings(), zzzBltValidBits(), and zzzChangeStates().

#define HRGN_MONITOR   ((HRGN)2)
 

Definition at line 3065 of file client/nt6/user.h.

Referenced by SelectWindowRgn(), and xxxMinMaximize().

#define HRGN_SPECIAL_LAST   HRGN_MONITOR
 

Definition at line 3066 of file client/nt6/user.h.

Referenced by _GetDCEx(), and DeleteMaybeSpecialRgn().

#define HW pwnd   )     _HW(pwnd)
 

Definition at line 1514 of file client/nt6/user.h.

Referenced by _GetComboBoxInfo(), _GetGUIThreadInfo(), ArrangeWindows(), ButtonWndProcWorker(), CheckTopmost(), ComboBoxWndProcWorker(), CreateNotify(), DefDlgProcWorker(), DefFrameProcWorker(), DefMDIChildProcWorker(), DefWindowProcWorker(), ECCreate(), ECResetTextInfo(), fnHkINLPCWPEXSTRUCT(), fnHkINLPCWPRETEXSTRUCT(), FullScreenCleanup(), GetCPD(), GetDesktopWindow(), GetDlgItem(), GetLastActivePopup(), GetNextDlgGroupItem(), GetNextDlgTabItem(), GetParent(), GetTopWindow(), GetWindow(), GetWindowData(), GetWindowRgn(), HWInsertAfter(), ImeSetContextHandler(), ImeSetImc(), ImeSystemHandler(), ImmRequestMessageWorker(), InternalCreateDialog(), IsDialogMessageW(), LBEvent(), ListBoxWndProcWorker(), MDIClientWndProcWorker(), MDICompleteChildCreation(), MDISetMenu(), NtUserGetThreadState(), NtUserQueryInputContext(), NtUserQuerySendMessage(), NtUserQueryWindow(), SfnINCBOXSTRING(), SfnINLBOXSTRING(), SfnOUTCBOXSTRING(), SfnOUTLBOXSTRING(), StaticNotifyParent(), StoreMessage(), StoreQMessage(), TestWindowProcess(), TrackBackground(), UserGetHwnd(), ValidateZorder(), WinHelpA(), xxxActivateThisWindow(), xxxArrangeIconicWindows(), xxxBNOwnerDraw(), xxxBNPaint(), xxxBNReleaseCapture(), xxxButtonDrawCheck(), xxxButtonNotifyParent(), xxxCalcValidRects(), xxxCallHandleMenuMessages(), xxxCapture(), xxxCBCalcControlRects(), xxxCBCreateHandler(), xxxCBInternalUpdateEditWindow(), xxxCBMessageItemHandler(), xxxChangeClipboardChain(), xxxCheckDefPushButton(), xxxCreateWindowEx(), xxxDoScroll(), xxxDragObject(), xxxDrawClipboard(), xxxFindString(), xxxGetControlColor(), xxxGetMenuBarInfo(), xxxGNM_FindNextMnem(), xxxGotoNextMnem(), xxxLBBinarySearchString(), xxxLBCreate(), xxxLBGetBrush(), xxxLBInsertItem(), xxxLBoxCtlKeyInput(), xxxLBoxDrawItem(), xxxMDIActivate(), xxxMDINext(), xxxMenuWindowProc(), xxxMNCloseHierarchy(), xxxMNLoop(), xxxMNOpenHierarchy(), xxxMouseActivate(), xxxMS_TrackMove(), xxxNextWindow(), xxxNotifyOwner(), xxxOldNextWindow(), xxxQueryInformationThread(), xxxReceiveMessage(), xxxScanSysQueue(), xxxSendFocusMessages(), xxxSendMenuSelect(), xxxSendMinRectMessages(), xxxSetActiveWindow(), xxxSetCapture(), xxxSetClipboardViewer(), xxxSetDeskWallpaper(), xxxSetFocus(), xxxSetForegroundWindow2(), xxxSetFrameTitle(), xxxSetWindowData(), xxxStaticPaint(), xxxTrackInitSize(), xxxTrackMouse(), xxxTrackPopupMenuEx(), xxxTranslateMessage(), and ZOrderByOwner2().

#define HWq pwnd   )     _HWq(pwnd)
 

Definition at line 1515 of file client/nt6/user.h.

Referenced by _DeferWindowPos(), _GetGUIThreadInfo(), _PostMessage(), _RegisterTasklist(), _ShowWindowAsync(), _UserSoundSentryWorker(), AnimateBlend(), BNReleaseDC(), BNSetFont(), ButtonWndProcWorker(), CascadeWindowsEnum(), ChildWindowFromPoint(), ChopText(), ClearWindowState(), ComboBoxDBCharHandler(), ComboBoxWndProcWorker(), CreateFade(), CreateIMEUI(), DefDlgProcWorker(), DefFrameProcWorker(), DefWindowProcWorker(), DispatchMessageWorker(), DlgDirSelectComboBoxExW(), ECNcCreate(), ECNcDestroyHandler(), EditWndProc(), EditWndProcWorker(), EndDialog(), GetProgmanWindow(), GetShellWindow(), GetTaskmanWindow(), ImeNotifyHandler(), ImeSetContextHandler(), ImeWndCreateHandler(), ImeWndProcWorker(), InternalBuildHwndList(), InternalDialogBox(), IsDialogMessageA(), IsDialogMessageW(), LBGetDC(), LBReleaseDC(), ListBoxWndProcWorker(), MDIClientWndProcWorker(), MDICompleteChildCreation(), ModifyMenuItem(), QueryTrackMouseEvent(), RecalculateScrollRanges(), SendMessageWorker(), SetupFakeMDIAppStuff(), SetWindowState(), ShiftMenuIDs(), ShowWindowNoRepaint(), StaticNotifyParent(), StaticRepaint(), StaticWndProcWorker(), ValidateDialogPwnd(), xxxActivateThisWindow(), xxxActiveWindowTracking(), xxxBNGetDC(), xxxBNInitDC(), xxxBNOwnerDraw(), xxxBNPaint(), xxxBNSetCapture(), xxxBroadcastPaletteChanged(), xxxButtonDrawCheck(), xxxButtonNotifyParent(), xxxCalcValidRects(), xxxCaretDestroy(), xxxCBCalcControlRects(), xxxCBCommandHandler(), xxxCBHideListBoxWindow(), xxxCBInternalUpdateEditWindow(), xxxCBMessageItemHandler(), xxxCBNcDestroyHandler(), xxxCBNotifyParent(), xxxCBPaint(), xxxCBPosition(), xxxCBSetDroppedSize(), xxxCBSetEditItemHeight(), xxxCBSetFontHandler(), xxxCBShowListBoxWindow(), xxxCheckDefPushButton(), xxxChildResize(), xxxCreateWindowEx(), xxxDefWindowProc(), xxxDesktopThread(), xxxDesktopWndProc(), xxxDestroyLBox(), xxxDestroyWindow(), xxxDlgDirListHelper(), xxxFindString(), xxxFlashWindow(), xxxFocusSetInputContext(), xxxFW_DestroyAllChildren(), xxxGetColorObjects(), xxxGetSysMenuHandle(), xxxGNM_FindNextMnem(), xxxGotoNextMnem(), xxxHelpLoop(), xxxInitActivateDlg(), xxxLBBinarySearchString(), xxxLBButtonUp(), xxxLBCreate(), xxxLbDir(), xxxLBGetBrush(), xxxLBInvalidateRect(), xxxLBoxCtlCharInput(), xxxLBoxCtlHScroll(), xxxLBoxCtlKeyInput(), xxxLBoxCtlScroll(), xxxLBoxDeleteItem(), xxxLBoxDrawItem(), xxxLBResetContent(), xxxLBSetFont(), xxxLBSetRedraw(), xxxLBSize(), xxxMDIActivate(), xxxMDIDestroy(), xxxMDINext(), xxxMinMaximize(), xxxMNMouseMove(), xxxMNStartMenu(), xxxMS_TrackMove(), xxxNewITopEx(), xxxNextAniIconStep(), xxxNotifyIMEStatus(), xxxNotifyOwner(), xxxPressButton(), xxxQueryDropObject(), xxxRedrawFrameAndHook(), xxxRedrawTitle(), xxxRemoveDefaultButton(), xxxSaveDlgFocus(), xxxSBTrackLoop(), xxxSBWndProc(), xxxScanSysQueue(), xxxSendFocusMessages(), xxxSendMessageCallback(), xxxSendMessageTimeout(), xxxSetFocus(), xxxSetForegroundWindow(), xxxSetLBScrollParms(), xxxSetStaticImage(), xxxStaticPaint(), xxxSysCommand(), xxxSystemTimerProc(), xxxTrackMouse(), xxxWindowHitTest2(), and zzzReattachThreads().

#define ICLS_BUTTON   0
 

Definition at line 339 of file client/nt6/user.h.

Referenced by _RealChildWindowFromPoint(), _WOWModuleUnload(), InitializeClientPfnArrays(), SetupClassAtoms(), and xxxCreateWindowEx().

#define ICLS_COMBOBOX   5
 

Definition at line 344 of file client/nt6/user.h.

Referenced by _GetComboBoxInfo(), InitializeClientPfnArrays(), InternalCreateDialog(), and xxxCreateWindowEx().

#define ICLS_COMBOLISTBOX   12
 

Definition at line 354 of file client/nt6/user.h.

Referenced by _GetComboBoxInfo(), InitializeClientPfnArrays(), xxxCBCreateHandler(), and xxxCreateWindowEx().

#define ICLS_CTL_MAX   6
 

Definition at line 346 of file client/nt6/user.h.

Referenced by SetupClassAtoms().

#define ICLS_DDEML16BIT   15
 

Definition at line 357 of file client/nt6/user.h.

Referenced by InitializeClientPfnArrays(), and RegisterService().

#define ICLS_DDEMLCLIENTA   16
 

Definition at line 358 of file client/nt6/user.h.

Referenced by ConnectConv(), InitializeClientPfnArrays(), and ProcessDDEMLInitiate().

#define ICLS_DDEMLCLIENTW   17
 

Definition at line 359 of file client/nt6/user.h.

Referenced by ConnectConv(), InitializeClientPfnArrays(), and ProcessDDEMLInitiate().

#define ICLS_DDEMLEVENT   13
 

Definition at line 355 of file client/nt6/user.h.

Referenced by InitializeClientPfnArrays(), and xxxCsDdeInitialize().

#define ICLS_DDEMLMOTHER   14
 

Definition at line 356 of file client/nt6/user.h.

Referenced by InitializeClientPfnArrays(), InternalDdeInitialize(), and RegisterService().

#define ICLS_DDEMLSERVERA   18
 

Definition at line 360 of file client/nt6/user.h.

Referenced by DDEMLClientWndProc(), InitializeClientPfnArrays(), and ProcessDDEMLInitiate().

#define ICLS_DDEMLSERVERW   19
 

Definition at line 361 of file client/nt6/user.h.

Referenced by DDEMLClientWndProc(), InitializeClientPfnArrays(), and ProcessDDEMLInitiate().

#define ICLS_DESKTOP   6
 

Definition at line 348 of file client/nt6/user.h.

Referenced by InitializeClientPfnArrays(), and SetupClassAtoms().

#define ICLS_DIALOG   7
 

Definition at line 349 of file client/nt6/user.h.

Referenced by ButtonWndProcWorker(), InitializeClientPfnArrays(), SetupClassAtoms(), StaticWndProcWorker(), xxxCreateWindowEx(), and xxxDefWindowProc().

#define ICLS_EDIT   1
 

Definition at line 340 of file client/nt6/user.h.

Referenced by InitializeClientPfnArrays(), InternalCreateDialog(), xxxCBCreateHandler(), and xxxCreateWindowEx().

#define ICLS_ICONTITLE   10
 

Definition at line 352 of file client/nt6/user.h.

Referenced by HMChangeOwnerThread(), InitializeClientPfnArrays(), SetupClassAtoms(), and xxxFreeWindow().

#define ICLS_IME   20
 

Definition at line 362 of file client/nt6/user.h.

Referenced by GetLastTopMostWindowNoIME(), ImeCanDestroyDefIME(), ImeSetFutureOwner(), ImeSetTopmost(), InitializeClientPfnArrays(), IsChildSameThread(), LinkWindow(), NtUserSetImeOwnerWindow(), xxxCheckImeShowStatus(), xxxCreateDefaultImeWindow(), xxxCreateWindowEx(), xxxDestroyWindow(), and xxxFocusSetInputContext().

#define ICLS_LISTBOX   3
 

Definition at line 342 of file client/nt6/user.h.

Referenced by _GetListBoxInfo(), InitializeClientPfnArrays(), and xxxCreateWindowEx().

#define ICLS_MAX   22
 

Definition at line 364 of file client/nt6/user.h.

Referenced by _WOWModuleUnload(), InitializeClientPfnArrays(), and NtUserGetClassName().

#define ICLS_MDICLIENT   11
 

Definition at line 353 of file client/nt6/user.h.

Referenced by InitializeClientPfnArrays(), and xxxCreateWindowEx().

#define ICLS_MENU   8
 

Definition at line 350 of file client/nt6/user.h.

Referenced by ImeSetFutureOwner(), InitializeClientPfnArrays(), IsChildSameThread(), and SetupClassAtoms().

#define ICLS_SCROLLBAR   4
 

Definition at line 343 of file client/nt6/user.h.

Referenced by InitializeClientPfnArrays().

#define ICLS_STATIC   2
 

Definition at line 341 of file client/nt6/user.h.

Referenced by InitializeClientPfnArrays(), and xxxCreateWindowEx().

#define ICLS_SWITCH   9
 

Definition at line 351 of file client/nt6/user.h.

Referenced by InitializeClientPfnArrays(), and SetupClassAtoms().

#define ICLS_TOOLTIP   21
 

Definition at line 363 of file client/nt6/user.h.

Referenced by InitializeClientPfnArrays(), and SetupClassAtoms().

#define ICON_PROP_NAME   L"SysIC"
 

Definition at line 80 of file client/nt6/user.h.

Referenced by EndTaskDlgProc().

#define ICONTITLECLASS   MAKEINTATOM(0x8004)
 

Definition at line 292 of file client/nt6/user.h.

Referenced by LW_RegisterWindows(), and SetupClassAtoms().

#define ID_CLOSEMENU   0x20
 

Definition at line 2593 of file client/nt6/user.h.

#define ID_DIALOGSYSMENU   0x30
 

Definition at line 2595 of file client/nt6/user.h.

Referenced by xxxGetSystemMenu(), xxxLoadSysMenu(), and xxxSetDialogSystemMenu().

#define ID_HELPMENU   4
 

Definition at line 2663 of file client/nt6/user.h.

Referenced by HelpMenu().

#define ID_HSCROLLMENU   0x40
 

Definition at line 2596 of file client/nt6/user.h.

Referenced by xxxGetScrollMenu().

#define ID_SYSMENU   0x10
 

Definition at line 2592 of file client/nt6/user.h.

Referenced by xxxGetSysMenuHandle(), xxxGetSystemMenu(), and xxxTranslateAccelerator().

#define ID_VSCROLLMENU   0x50
 

Definition at line 2597 of file client/nt6/user.h.

Referenced by xxxGetScrollMenu().

#define IDSYS_CARET   0x0000FFFFL
 

Definition at line 312 of file client/nt6/user.h.

Referenced by _SetCaretBlinkTime(), CaretBlinkProc(), xxxCaretDestroy(), xxxCreateCaret(), xxxLBoxCtlKeyInput(), xxxTrackMouse(), zzzInternalDestroyCaret(), and zzzSetCaretPos().

#define IDSYS_FLASHWND   0x0000FFF8L
 

Definition at line 301 of file client/nt6/user.h.

Referenced by xxxFlashWindow(), and xxxSystemTimerProc().

#define IDSYS_LBSEARCH   0x0000FFFCL
 

Definition at line 306 of file client/nt6/user.h.

Referenced by ListBoxWndProcWorker(), and xxxLBoxCtlCharInput().

#define IDSYS_MNANIMATE   0x0000FFFBL
 

Definition at line 304 of file client/nt6/user.h.

Referenced by MNAnimate(), and xxxMenuWindowProc().

#define IDSYS_MNAUTODISMISS   0x0000FFF9L
 

Definition at line 302 of file client/nt6/user.h.

Referenced by MNSetTimerToAutoDismiss(), and xxxMenuWindowProc().

#define IDSYS_MNDOWN   MFMWFP_DOWNARROW /* 0xFFFFFFFC */
 

Definition at line 305 of file client/nt6/user.h.

Referenced by xxxMenuWindowProc().

#define IDSYS_MNHIDE   0x0000FFFFL
 

Definition at line 311 of file client/nt6/user.h.

Referenced by MNSetTimerToCloseHierarchy(), xxxMenuWindowProc(), xxxMNCloseHierarchy(), xxxMNDestroyHandler(), and xxxMNSelectItem().

#define IDSYS_MNSHOW   0x0000FFFEL
 

Definition at line 309 of file client/nt6/user.h.

Referenced by MNSetTimerToOpenHierarchy(), xxxMenuWindowProc(), xxxMNDestroyHandler(), xxxMNOpenHierarchy(), xxxMNSelectItem(), and xxxTrackPopupMenuEx().

#define IDSYS_MNUP   MFMWFP_UPARROW /* 0xFFFFFFFD */
 

Definition at line 307 of file client/nt6/user.h.

Referenced by xxxMenuWindowProc().

#define IDSYS_MOUSEHOVER   0x0000FFFAL
 

Definition at line 303 of file client/nt6/user.h.

Referenced by ResetMouseHover(), TrackMouseEvent(), xxxCancelMouseMoveTracking(), and xxxSystemTimerProc().

#define IDSYS_SCROLL   0x0000FFFEL
 

Definition at line 310 of file client/nt6/user.h.

Referenced by MLEditWndProc(), MLMouseMotion(), xxxContScroll(), xxxEndScroll(), xxxLBButtonUp(), xxxTrackBox(), and xxxTrackMouse().

#define IDSYS_STANIMATE   0x0000FFFDL
 

Definition at line 308 of file client/nt6/user.h.

Referenced by StaticWndProcWorker(), xxxNextAniIconStep(), and xxxSetStaticImage().

#define IDSYS_WNDTRACKING   0x0000FFF7L
 

Definition at line 300 of file client/nt6/user.h.

Referenced by xxxSystemTimerProc(), and xxxTrackMouseMove().

#define IMM_MAGIC_CALLER_ID   (0x19650412)
 

Definition at line 594 of file client/nt6/user.h.

Referenced by ImmDllInitialize(), and User32InitializeImmEntryTable().

#define INFOCLASS   MAKEINTATOM(0x8005)
 

Definition at line 293 of file client/nt6/user.h.

#define Is300Compat dwExpWinVer   )     (LOWORD(dwExpWinVer) >= VER30)
 

Definition at line 482 of file client/nt6/user.h.

#define Is310Compat dwExpWinVer   )     (LOWORD(dwExpWinVer) >= VER31)
 

Definition at line 481 of file client/nt6/user.h.

Referenced by xxxCreateWindowEx().

#define Is400Compat dwExpWinVer   )     (LOWORD(dwExpWinVer) >= VER40)
 

Definition at line 480 of file client/nt6/user.h.

Referenced by CreateDlgFont(), InternalCreateDialog(), NtUserSetWindowPlacement(), and xxxCreateWindowEx().

#define Is500Compat dwExpWinVer   )     (LOWORD(dwExpWinVer) >= VER50)
 

Definition at line 479 of file client/nt6/user.h.

Referenced by CreateDlgFont(), xxxCreateWindowEx(), and xxxMenuWindowProc().

 
#define IS_DBCS_ENABLED  )     (TEST_SRVIF(SRVIF_DBCS))
 

Definition at line 590 of file client/nt6/user.h.

Referenced by CaptureAnsiCallbackData(), CharLowerA(), CharLowerBuffA(), CharNextA(), CharPrevA(), CharUpperA(), CharUpperBuffA(), ComboBoxWndProcWorker(), CreateDlgFont(), DrawTextExA(), DT_GetExtentMinusPrefixes(), ECInsertText(), FixupDlgLogFont(), IsCharAlphaA(), IsCharAlphaNumericA(), IsCharLowerA(), IsCharUpperA(), IsDialogMessageA(), PeekMessage(), RtlMBMessageWParamCharToWCS(), RtlWCSMessageWParamCharToMB(), SendMessageWorker(), SLChar(), Win32UserInitialize(), xxxCallJournalPlaybackHook(), and xxxLBoxCtlCharInput().

#define IS_DBCS_MESSAGE DbcsChar   )     (((DWORD)(DbcsChar)) & 0x0000FF00)
 

Definition at line 570 of file client/nt6/user.h.

Referenced by RtlWCSMessageWParamCharToMB().

 
#define IS_DBCS_SYSTEM  )     (TEST_SRVIF(SRVIF_DBCS))
 

Definition at line 589 of file client/nt6/user.h.

 
#define IS_IME_ENABLED  )     (TEST_SRVIF(SRVIF_IME))
 

Definition at line 591 of file client/nt6/user.h.

Referenced by BuildHwndList(), CalcForegroundInsertAfter(), CancelInputState(), CheckValidLayoutName(), CreateInputContext(), DefDlgProcWorker(), DestroyInputContext(), ECMenu(), ECSetIMEMenu(), GetActiveKeyboardName(), GetRemoteKeyboardLayout(), ImmAssociateContext(), ImmAssociateContextEx(), ImmCreateContext(), ImmDestroyContext(), ImmDllInitialize(), ImmGetDefaultIMEWnd(), ImmGetSaveContext(), ImmSetActiveContext(), NtUserBuildHwndList(), SLChar(), StaticWndProcWorker(), UserClientDllInitialize(), VKFromVSC(), Win32UserInitialize(), xxxButtonEvent(), xxxCheckImeShowStatusInThread(), xxxCreateThreadInfo(), xxxCreateWindowEx(), xxxDeactivate(), xxxDestroyWindow(), xxxDW_DestroyOwnedWindows(), xxxFreeWindow(), xxxImmProcessKey(), xxxInternalActivateKeyboardLayout(), xxxNotifyImeShowStatus(), xxxRestoreDlgFocus(), xxxSendFocusMessages(), xxxSetIMEShowStatus(), and zzzAttachThreadInput().

 
#define IS_MIDEAST_ENABLED  )     (TEST_SRVIF(SRVIF_MIDEAST))
 

Definition at line 598 of file client/nt6/user.h.

Referenced by DefDlgProcWorker(), StaticWndProcWorker(), and Win32UserInitialize().

#define IS_PTR  )     ((((ULONG_PTR)(p)) & ~MAXUSHORT) != 0)
 

Definition at line 410 of file client/nt6/user.h.

Referenced by _ClientFreeDDEHandle(), _CreateWindowEx(), _GetClassData(), _InternalGetIconInfo(), _LoadCursorsAndIcons(), CharLowerA(), CharLowerW(), CharUpperA(), CharUpperW(), CheckDesktopPolicy(), DestroyClass(), FastGetProfileValue(), FastWriteProfileValue(), GetProp(), InitClsMenuName(), InternalCreateDialog(), InternalRegisterClassEx(), InternalSetProp(), LoadIcoCur(), MapPropertyKey(), MessageBoxIndirectA(), MESSAGECALL(), NtUserCreateWindowEx(), NtUserfnHkINLPCBTCREATESTRUCT(), NtUserSystemParametersInfo(), RemoveProp(), RtlInitUnicodeStringOrId(), ScrollWindow(), SetClassLongPtr(), SetProp(), SoftModalMessageBox(), ThunkedMenuItemInfo(), UnregisterClass(), UserAddAtom(), ValidateMENUITEMINFO(), xxxCreateWindowEx(), xxxDWP_SetIcon(), xxxSetClassData(), xxxSetFrameTitle(), xxxSystemParametersInfo(), xxxUpdateSystemIconsFromRegistry(), and zzzSetSystemImage().

#define ISCPDTAG  )     (HIWORD((ULONG_PTR)x) == CPDHANDLE_HI)
 

Definition at line 1572 of file client/nt6/user.h.

Referenced by _SetWindowLongPtr(), CallWindowProcAorW(), GetCPD(), xxxRegisterClassEx(), xxxSetClassData(), and xxxSetWindowData().

#define LISTBOXCODE   0x83
 

Definition at line 327 of file client/nt6/user.h.

#define LOBYTE  )     ((BYTE)((w) & 0x00FF))
 

Definition at line 2553 of file client/nt6/user.h.

#define LTUPFLAG   0x0001
 

Definition at line 2690 of file client/nt6/user.h.

Referenced by _GetScrollBarInfo(), DrawThumb2(), HitTestScrollBar(), xxxDrawSB2(), and xxxSBTrackInit().

#define MAKE_CPDHANDLE  )     (MAKELONG((WORD)(ULONG_PTR)h,CPDHANDLE_HI))
 

Definition at line 1571 of file client/nt6/user.h.

Referenced by GetCPD().

#define MAKE_IR_DBCSCHAR DbcsChar   ) 
 

Value:

(IS_DBCS_MESSAGE((DbcsChar)) ? \ (MAKEWPARAM(MAKEWORD(HIBYTE((DbcsChar)),LOBYTE((DbcsChar))),0)) : \ ((WPARAM)((DbcsChar) & 0x00FF)) \ )

Definition at line 575 of file client/nt6/user.h.

#define MAKE_WPARAM_DBCSCHAR DbcsChar   ) 
 

Value:

(IS_DBCS_MESSAGE((DbcsChar)) ? \ (MAKEWPARAM(MAKEWORD(HIBYTE((DbcsChar)),LOBYTE((DbcsChar))),0)) : \ ((WPARAM)((DbcsChar) & 0x00FF)) \ )

Definition at line 581 of file client/nt6/user.h.

Referenced by RtlMBMessageWParamCharToWCS().

#define MaskWF flag   )     ((WORD)( (HIBYTE(flag) & 1) ? LOBYTE(flag) << 8 : LOBYTE(flag)))
 

Definition at line 2558 of file client/nt6/user.h.

Referenced by InternalCreateDialog(), and xxxCreateWindowEx().

#define MAX_MB_STRINGS   9
 

Definition at line 237 of file client/nt6/user.h.

Referenced by LW_LoadSomeStrings().

#define MAX_SEB_STYLES   9 /* number of SEB_* values */
 

Definition at line 3120 of file client/nt6/user.h.

Referenced by HardErrorHandler(), MB_GetString(), and xxxMB_FindLongestString().

#define MAX_SESSION_PATH   256
 

Definition at line 372 of file client/nt6/user.h.

#define MDICLIENTCODE   0x86
 

Definition at line 330 of file client/nt6/user.h.

#define MENUCHILDSYSMENU   TEXT('-') /* Hyphen */
 

Definition at line 2757 of file client/nt6/user.h.

Referenced by xxxMNKeyFilter().

#define MENUCLASS   MAKEINTATOM(0x8000) /* Public Knowledge */
 

Definition at line 295 of file client/nt6/user.h.

Referenced by LW_RegisterWindows(), SetupClassAtoms(), xxxCreateDesktop(), xxxMNOpenHierarchy(), and xxxTrackPopupMenuEx().

#define MENUSYSMENU   TEXT(' ') /* Space character */
 

Definition at line 2756 of file client/nt6/user.h.

Referenced by IsDialogMessageW(), xxxDefWindowProc(), xxxMNKeyFilter(), and xxxSysCommand().

#define MF_ALLSTATE   0x00FF
 

Definition at line 2759 of file client/nt6/user.h.

#define MF_MAINMENU   0xFFFF
 

Definition at line 2760 of file client/nt6/user.h.

Referenced by xxxSendMenuSelect().

#define MFDESKTOP   0x00000040
 

Definition at line 649 of file client/nt6/user.h.

Referenced by LockDesktopMenu(), and UnlockDesktopMenu().

#define MFINACTIVE   0x00000010
 

Definition at line 647 of file client/nt6/user.h.

Referenced by xxxDrawMenuItem(), xxxMenuBarDraw(), and xxxSendMenuDrawItemMessage().

#define MFISPOPUP   0x00000001
 

Definition at line 643 of file client/nt6/user.h.

Referenced by GetMenuPwnd(), InternalCreateMenu(), MNDrawMenu3DHotTracking(), MNItemHitTest(), xxxDrawMenuItem(), xxxGetMenuItemRect(), xxxHiliteMenuItem(), xxxInsertMenuItem(), xxxMenuBarCompute(), xxxMenuDraw(), xxxMenuItemFromPoint(), xxxMNCompute(), xxxMNInvertItem(), xxxMNItemSize(), xxxMNRecomputeBarIfNeeded(), xxxRealDrawMenuItem(), and xxxSetLPITEMInfo().

#define MFLAST   0x00000080
 

Definition at line 651 of file client/nt6/user.h.

#define MFMULTIROW   0x00000002
 

Definition at line 644 of file client/nt6/user.h.

Referenced by xxxMNCompute().

#define MFMWFP_ALTMENU   0xFFFFFFFB
 

Definition at line 2767 of file client/nt6/user.h.

Referenced by IsMFMWFPWindow(), xxxHandleMenuMessages(), xxxMNFindWindowFromPoint(), and xxxMNMouseMove().

#define MFMWFP_DOWNARROW   0xFFFFFFFC /* Warning: Also used to define IDSYS_MNDOWN */
 

Definition at line 2765 of file client/nt6/user.h.

Referenced by IsRecursedMenuState(), MNDrawFullNC(), MNItemHitTest(), xxxMNDoScroll(), xxxMNInvertItem(), and xxxMNSetTop().

#define MFMWFP_FIRSTITEM   0
 

Definition at line 2768 of file client/nt6/user.h.

#define MFMWFP_MAINMENU   0x0000FFFF
 

Definition at line 2762 of file client/nt6/user.h.

#define MFMWFP_MINVALID   0xFFFFFFFC
 

Definition at line 2766 of file client/nt6/user.h.

Referenced by xxxMenuWindowProc().

#define MFMWFP_NOITEM   0xFFFFFFFF
 

Definition at line 2763 of file client/nt6/user.h.

Referenced by _GetMenuDefaultItem(), _SetMenuDefaultItem(), AppendMenu(), AppendToWindowsMenu(), IsMFMWFPWindow(), MBC_RightJustifyMenu(), MDIAddSysMenu(), MenuLoadChicagoTemplates(), MenuLoadWinTemplates(), mndtDragOver(), MNFindItemInColumn(), MNFindNextValidItem(), MNItemHitTest(), MNLookUpItem(), MNSetTimerToOpenHierarchy(), NNDeleteAdjustIndex(), xxxHandleMenuMessages(), xxxInsertMenuItem(), xxxMenuItemFromPoint(), xxxMenuWindowProc(), xxxMNButtonUp(), xxxMNCancel(), xxxMNChar(), xxxMNCloseHierarchy(), xxxMNDragLeave(), xxxMNDragOver(), xxxMNFindChar(), xxxMNFindWindowFromPoint(), xxxMNKeyDown(), xxxMNKeyFilter(), xxxMNMouseMove(), xxxMNOpenHierarchy(), xxxMNSelectItem(), xxxMNStartMenuState(), xxxMNSwitchToAlternateMenu(), xxxMNUpdateDraggingInfo(), and xxxSendMenuSelect().

#define MFMWFP_OFFMENU   0
 

Definition at line 2761 of file client/nt6/user.h.

Referenced by ChangeMenuA(), ChangeMenuW(), IsMFMWFPWindow(), UnlockMFMWFPWindow(), xxxHandleMenuMessages(), xxxMNDragOver(), xxxMNFindWindowFromPoint(), xxxMNMouseMove(), and xxxMNUpdateDraggingInfo().

#define MFMWFP_UPARROW   0xFFFFFFFD /* Warning: Also used to define IDSYS_MNUP */
 

Definition at line 2764 of file client/nt6/user.h.

Referenced by IsRecursedMenuState(), MNDrawArrow(), MNDrawFullNC(), MNItemHitTest(), xxxMNDoScroll(), xxxMNInvertItem(), and xxxMNSetTop().

#define MFRTL   0x00000020
 

Definition at line 648 of file client/nt6/user.h.

Referenced by _SetMenuFlagRtoL(), MakeMenuRtoL(), MBC_RightJustifyMenu(), xxxInsertMenuItem(), xxxMNPositionHierarchy(), xxxMNStartMenuState(), xxxSetMenuItemInfo(), and xxxTrackPopupMenuEx().

#define MFSYSMENU   0x00000080
 

Definition at line 650 of file client/nt6/user.h.

Referenced by xxxGetSystemMenu(), xxxLoadSysDesktopMenu(), xxxMNRecomputeBarIfNeeded(), xxxMNSwitchToAlternateMenu(), and xxxSetSysMenu().

#define MFUNDERLINE   0x00000004
 

Definition at line 645 of file client/nt6/user.h.

Referenced by xxxDrawMenuBarUnderlines(), xxxMNOpenHierarchy(), xxxNextWindow(), xxxRealDrawMenuItem(), xxxSendMenuDrawItemMessage(), and xxxTrackPopupMenuEx().

#define MFWINDOWDC   0x00000008 /* Window DC vs Client area DC when drawing*/
 

Definition at line 646 of file client/nt6/user.h.

Referenced by MNEraseBackground(), and xxxMenuWindowProc().

#define MNF_DONTSKIPSEPARATORS   0x0001
 

Definition at line 2682 of file client/nt6/user.h.

Referenced by MNFindNextValidItem(), and xxxMNFindChar().

#define MONF_PALETTEDISPLAY   0x02
 

Definition at line 2055 of file client/nt6/user.h.

Referenced by UpdateUserScreen(), xxxDrawWallpaper(), and xxxInternalPaintDesktop().

#define MONF_VISIBLE   0x01
 

Definition at line 2054 of file client/nt6/user.h.

Referenced by _MonitorFromPoint(), _MonitorFromRect(), PreventInterMonitorBlts(), SetMonitorData(), SnapshotMonitorRects(), UpdateUserScreen(), xxxLoadDesktopWallpaper(), and xxxMS_TrackMove().

#define MSA_ATBOTTOM   3
 

Definition at line 2630 of file client/nt6/user.h.

Referenced by MNCheckScroll(), MNDrawArrow(), and xxxMNSetTop().

#define MSA_ATTOP   2
 

Definition at line 2629 of file client/nt6/user.h.

Referenced by MNCheckScroll(), MNDrawArrow(), and xxxMNSetTop().

#define MSA_OFF   0
 

Definition at line 2627 of file client/nt6/user.h.

Referenced by MNCheckScroll(), MNDrawArrow(), MNEraseBackground(), MNItemHitTest(), xxxMenuDraw(), xxxMenuWindowProc(), xxxMNInvertItem(), xxxMNPositionHierarchy(), xxxMNUpdateShownMenu(), and xxxSetMenuInfo().

#define MSA_ON   1
 

Definition at line 2628 of file client/nt6/user.h.

Referenced by MNCheckScroll(), and xxxMNSetTop().

#define MSGFLAG_DDE_MID_THUNK   0x80000000
 

Definition at line 2219 of file client/nt6/user.h.

Referenced by FindQMsg(), SpontaneousTerminate(), xxxAdvise(), xxxAdviseData(), xxxCopyAckIn(), xxxExecute(), xxxExecuteAck(), xxxPoke(), xxxReadPostMessage(), and xxxRequestAck().

#define MSGFLAG_DDE_SPECIAL_SEND   0x40000000
 

Definition at line 2220 of file client/nt6/user.h.

Referenced by MESSAGECALL().

#define MSGFLAG_MASK   0xFFFE0000
 

Definition at line 2217 of file client/nt6/user.h.

Referenced by NtUserMessageCall(), NtUserPostMessage(), NtUserPostThreadMessage(), NtUserSendMessageCallback(), and NtUserSendNotifyMessage().

#define MSGFLAG_SPECIAL_THUNK   0x10000000
 

Definition at line 2221 of file client/nt6/user.h.

Referenced by xxxLbDir(), xxxLbInsertFile(), and xxxLBInsertItem().

#define MSGFLAG_WOW_RESERVED   0x00010000
 

Definition at line 2218 of file client/nt6/user.h.

Referenced by DispatchMessageWorker(), IsDialogMessageW(), and xxxDispatchMessage().

#define MultDiv x,
y,
 )     (((INT)(x) * (INT)(y) + (INT)(z) / 2) / (INT)(z))
 

Definition at line 624 of file client/nt6/user.h.

Referenced by AnimInc(), ConvertDIBIcon(), CopyIcoCur(), CreateDlgFont(), CreateFontFromWinIni(), FastGetProfileIntFromID(), LBSetTabStops(), MLSetTabStops(), MNAnimate(), NormalizeRect(), SetTiledRect(), SetWindowMetricInt(), SoftModalMessageBox(), TooltipAnimate(), and xxxAnimateCaption().

#define NCHARS   256
 

Definition at line 1061 of file client/nt6/user.h.

Referenced by InitAnsiOem(), and InitOemXlateTables().

#define NCTRLS   0x20
 

Definition at line 1062 of file client/nt6/user.h.

Referenced by InitOemXlateTables().

#define NEEDSPAINT pwnd   )     (pwnd->hrgnUpdate != NULL || TestWF(pwnd, WFINTERNALPAINT))
 

Definition at line 1774 of file client/nt6/user.h.

Referenced by ClrFTrueVis(), InternalDoPaint(), InternalInvalidate3(), ParentNeedsPaint(), UpdateWindow(), xxxBeginPaint(), xxxFreeWindow(), xxxInternalUpdateWindow(), and xxxUpdateWindow2().

#define NUM_BUTTON_STATES   4
 

Definition at line 232 of file client/nt6/user.h.

Referenced by LoadBmp().

#define NUM_BUTTON_TYPES   3
 

Definition at line 231 of file client/nt6/user.h.

Referenced by LoadBmp().

#define OBI_3STATE   82
 

Definition at line 1041 of file client/nt6/user.h.

Referenced by xxxButtonDrawCheck().

#define OBI_3STATE_C   83
 

Definition at line 1042 of file client/nt6/user.h.

#define OBI_3STATE_CD   85
 

Definition at line 1044 of file client/nt6/user.h.

#define OBI_3STATE_CDI   86
 

Definition at line 1045 of file client/nt6/user.h.

#define OBI_3STATE_D   84
 

Definition at line 1043 of file client/nt6/user.h.

#define OBI_CAPBTNS   39
 

Definition at line 998 of file client/nt6/user.h.

Referenced by xxxDrawCaptionBar().

#define OBI_CAPBTNS_I   40
 

Definition at line 999 of file client/nt6/user.h.

#define OBI_CAPCACHE1   29
 

Definition at line 988 of file client/nt6/user.h.

Referenced by DrawCaptionIcon().

#define OBI_CAPCACHE1_I   30
 

Definition at line 989 of file client/nt6/user.h.

#define OBI_CAPCACHE2   31
 

Definition at line 990 of file client/nt6/user.h.

#define OBI_CAPCACHE2_I   32
 

Definition at line 991 of file client/nt6/user.h.

#define OBI_CAPCACHE3   33
 

Definition at line 992 of file client/nt6/user.h.

#define OBI_CAPCACHE3_I   34
 

Definition at line 993 of file client/nt6/user.h.

#define OBI_CAPCACHE4   35
 

Definition at line 994 of file client/nt6/user.h.

#define OBI_CAPCACHE4_I   36
 

Definition at line 995 of file client/nt6/user.h.

#define OBI_CAPCACHE5   37
 

Definition at line 996 of file client/nt6/user.h.

#define OBI_CAPCACHE5_I   38
 

Definition at line 997 of file client/nt6/user.h.

#define OBI_CHECK   72
 

Definition at line 1031 of file client/nt6/user.h.

Referenced by BNCalcRect(), LoadBmp(), and xxxButtonDrawCheck().

#define OBI_CHECK_C   73
 

Definition at line 1032 of file client/nt6/user.h.

#define OBI_CHECK_CD   75
 

Definition at line 1034 of file client/nt6/user.h.

#define OBI_CHECK_CDI   76
 

Definition at line 1035 of file client/nt6/user.h.

#define OBI_CHECK_D   74
 

Definition at line 1033 of file client/nt6/user.h.

#define OBI_CLOSE   0
 

Definition at line 959 of file client/nt6/user.h.

Referenced by DrawCaptionButtons(), xxxCalcCaptionButton(), and xxxDrawCaptionBar().

#define OBI_CLOSE_D   1
 

Definition at line 960 of file client/nt6/user.h.

#define OBI_CLOSE_H   2
 

Definition at line 961 of file client/nt6/user.h.

#define OBI_CLOSE_I   3
 

Definition at line 962 of file client/nt6/user.h.

#define OBI_CLOSE_MBAR   18
 

Definition at line 977 of file client/nt6/user.h.

Referenced by xxxRealDrawMenuItem().

#define OBI_CLOSE_MBAR_D   19
 

Definition at line 978 of file client/nt6/user.h.

#define OBI_CLOSE_MBAR_H   20
 

Definition at line 979 of file client/nt6/user.h.

#define OBI_CLOSE_MBAR_I   21
 

Definition at line 980 of file client/nt6/user.h.

Referenced by xxxRealDrawMenuItem().

#define OBI_CLOSE_PAL   41
 

Definition at line 1000 of file client/nt6/user.h.

Referenced by xxxCalcCaptionButton(), and xxxDrawCaptionBar().

#define OBI_CLOSE_PAL_D   42
 

Definition at line 1001 of file client/nt6/user.h.

#define OBI_CLOSE_PAL_H   43
 

Definition at line 1002 of file client/nt6/user.h.

#define OBI_CLOSE_PAL_I   44
 

Definition at line 1003 of file client/nt6/user.h.

#define OBI_CLOSE_POPUP   87
 

Definition at line 1047 of file client/nt6/user.h.

#define OBI_COUNT   93
 

Definition at line 1053 of file client/nt6/user.h.

Referenced by CreateBitmapStrip(), DrawStateW(), PackFrameControls(), and xxxRealDrawMenuItem().

#define OBI_DNARROW   50
 

Definition at line 1009 of file client/nt6/user.h.

Referenced by LoadBmp(), xxxDrawSB2(), and zzzDrawInvertScrollArea().

#define OBI_DNARROW_D   51
 

Definition at line 1010 of file client/nt6/user.h.

Referenced by LoadBmp().

#define OBI_DNARROW_H   52
 

Definition at line 1011 of file client/nt6/user.h.

#define OBI_DNARROW_I   53
 

Definition at line 1012 of file client/nt6/user.h.

Referenced by LoadBmp(), and xxxDrawSB2().

#define OBI_HELP   11
 

Definition at line 970 of file client/nt6/user.h.

Referenced by BitBltSysBmp(), DrawCaptionButtons(), xxxCalcCaptionButton(), and xxxDrawCaptionBar().

#define OBI_HELP_D   12
 

Definition at line 971 of file client/nt6/user.h.

Referenced by BitBltSysBmp().

#define OBI_HELP_H   13
 

Definition at line 972 of file client/nt6/user.h.

Referenced by BitBltSysBmp().

#define OBI_LFARROW   58
 

Definition at line 1017 of file client/nt6/user.h.

Referenced by LoadBmp(), xxxDrawSB2(), and zzzDrawInvertScrollArea().

#define OBI_LFARROW_D   59
 

Definition at line 1018 of file client/nt6/user.h.

Referenced by LoadBmp().

#define OBI_LFARROW_H   60
 

Definition at line 1019 of file client/nt6/user.h.

#define OBI_LFARROW_I   61
 

Definition at line 1020 of file client/nt6/user.h.

Referenced by LoadBmp(), and xxxDrawSB2().

#define OBI_MENUARROW   62
 

Definition at line 1021 of file client/nt6/user.h.

Referenced by LoadBmp(), xxxDrawMenuItem(), and xxxRealDrawMenuItem().

#define OBI_MENUARROW_L   92
 

Definition at line 1052 of file client/nt6/user.h.

Referenced by xxxDrawMenuItem(), and xxxRealDrawMenuItem().

#define OBI_MENUARROWDOWN   68
 

Definition at line 1027 of file client/nt6/user.h.

Referenced by MNDrawArrow().

#define OBI_MENUARROWDOWN_H   69
 

Definition at line 1028 of file client/nt6/user.h.

#define OBI_MENUARROWDOWN_I   70
 

Definition at line 1029 of file client/nt6/user.h.

#define OBI_MENUARROWUP   65
 

Definition at line 1024 of file client/nt6/user.h.

Referenced by MNDrawArrow().

#define OBI_MENUARROWUP_H   66
 

Definition at line 1025 of file client/nt6/user.h.

#define OBI_MENUARROWUP_I   67
 

Definition at line 1026 of file client/nt6/user.h.

#define OBI_MENUBULLET   64
 

Definition at line 1023 of file client/nt6/user.h.

Referenced by DrawMenuItemCheckMark().

#define OBI_MENUCHECK   63
 

Definition at line 1022 of file client/nt6/user.h.

Referenced by CreateBitmapStrip(), DrawMenuItemCheckMark(), LoadBmp(), MNDrawArrow(), MNRecalcTabStrings(), xxxDrawMenuBarUnderlines(), xxxMNCompute(), xxxMNItemSize(), and xxxRealDrawMenuItem().

#define OBI_NCGRIP   45
 

Definition at line 1004 of file client/nt6/user.h.

Referenced by DrawSize(), and LoadBmp().

#define OBI_NCGRIP_L   91
 

Definition at line 1051 of file client/nt6/user.h.

Referenced by DrawSize().

#define OBI_POPUPFIRST   87
 

Definition at line 1046 of file client/nt6/user.h.

Referenced by xxxRealDrawMenuItem().

#define OBI_RADIO   77
 

Definition at line 1036 of file client/nt6/user.h.

Referenced by xxxButtonDrawCheck().

#define OBI_RADIO_C   78
 

Definition at line 1037 of file client/nt6/user.h.

#define OBI_RADIO_CD   80
 

Definition at line 1039 of file client/nt6/user.h.

#define OBI_RADIO_CDI   81
 

Definition at line 1040 of file client/nt6/user.h.

#define OBI_RADIO_D   79
 

Definition at line 1038 of file client/nt6/user.h.

#define OBI_RADIOMASK   71
 

Definition at line 1030 of file client/nt6/user.h.

Referenced by LoadBmp(), and xxxButtonDrawCheck().

#define OBI_REDUCE   4
 

Definition at line 963 of file client/nt6/user.h.

Referenced by DrawCaptionButtons(), xxxCalcCaptionButton(), and xxxDrawCaptionBar().

#define OBI_REDUCE_D   5
 

Definition at line 964 of file client/nt6/user.h.

#define OBI_REDUCE_H   6
 

Definition at line 965 of file client/nt6/user.h.

#define OBI_REDUCE_I   7
 

Definition at line 966 of file client/nt6/user.h.

Referenced by xxxDrawCaptionBar().

#define OBI_REDUCE_MBAR   22
 

Definition at line 981 of file client/nt6/user.h.

Referenced by LoadBmp(), and xxxRealDrawMenuItem().

#define OBI_REDUCE_MBAR_D   23
 

Definition at line 982 of file client/nt6/user.h.

Referenced by LoadBmp().

#define OBI_REDUCE_MBAR_H   24
 

Definition at line 983 of file client/nt6/user.h.

#define OBI_REDUCE_MBAR_I   25
 

Definition at line 984 of file client/nt6/user.h.

Referenced by xxxRealDrawMenuItem().

#define OBI_REDUCE_POPUP   90
 

Definition at line 1050 of file client/nt6/user.h.

#define OBI_RESTORE   8
 

Definition at line 967 of file client/nt6/user.h.

Referenced by xxxCalcCaptionButton(), and xxxDrawCaptionBar().

#define OBI_RESTORE_D   9
 

Definition at line 968 of file client/nt6/user.h.

#define OBI_RESTORE_H   10
 

Definition at line 969 of file client/nt6/user.h.

#define OBI_RESTORE_MBAR   26
 

Definition at line 985 of file client/nt6/user.h.

Referenced by LoadBmp(), and xxxRealDrawMenuItem().

#define OBI_RESTORE_MBAR_D   27
 

Definition at line 986 of file client/nt6/user.h.

Referenced by LoadBmp().

#define OBI_RESTORE_MBAR_H   28
 

Definition at line 987 of file client/nt6/user.h.

#define OBI_RESTORE_POPUP   88
 

Definition at line 1048 of file client/nt6/user.h.

#define OBI_RGARROW   54
 

Definition at line 1013 of file client/nt6/user.h.

Referenced by LoadBmp(), xxxDrawSB2(), and zzzDrawInvertScrollArea().

#define OBI_RGARROW_D   55
 

Definition at line 1014 of file client/nt6/user.h.

Referenced by LoadBmp().

#define OBI_RGARROW_H   56
 

Definition at line 1015 of file client/nt6/user.h.

#define OBI_RGARROW_I   57
 

Definition at line 1016 of file client/nt6/user.h.

Referenced by LoadBmp(), and xxxDrawSB2().

#define OBI_UPARROW   46
 

Definition at line 1005 of file client/nt6/user.h.

Referenced by LoadBmp(), xxxDrawSB2(), and zzzDrawInvertScrollArea().

#define OBI_UPARROW_D   47
 

Definition at line 1006 of file client/nt6/user.h.

Referenced by LoadBmp().

#define OBI_UPARROW_H   48
 

Definition at line 1007 of file client/nt6/user.h.

#define OBI_UPARROW_I   49
 

Definition at line 1008 of file client/nt6/user.h.

Referenced by LoadBmp(), and xxxDrawSB2().

#define OBI_ZOOM   14
 

Definition at line 973 of file client/nt6/user.h.

Referenced by DrawCaptionButtons(), LoadBmp(), xxxCalcCaptionButton(), and xxxDrawCaptionBar().

#define OBI_ZOOM_D   15
 

Definition at line 974 of file client/nt6/user.h.

Referenced by LoadBmp().

#define OBI_ZOOM_H   16
 

Definition at line 975 of file client/nt6/user.h.

#define OBI_ZOOM_I   17
 

Definition at line 976 of file client/nt6/user.h.

Referenced by xxxDrawCaptionBar().

#define OBI_ZOOM_POPUP   89
 

Definition at line 1049 of file client/nt6/user.h.

#define OCF_DESKTOPHEAP   0x10
 

Definition at line 1347 of file client/nt6/user.h.

Referenced by _MapDesktopObject(), HMAllocObject(), HMFreeObject(), and HMInitHandleTable().

#define OCF_MARKPROCESS   0x04
 

Definition at line 1345 of file client/nt6/user.h.

Referenced by HMAllocObject(), HMChangeOwnerPheProcess(), and HMInitHandleTable().

#define OCF_PROCESSOWNED   0x02
 

Definition at line 1344 of file client/nt6/user.h.

Referenced by _QueryUserHandles(), _WOWCleanup(), DestroyHandleTableObjects(), DestroyProcessesObjects(), DestroyProcessInfo(), DestroyThreadsObjects(), HMAllocObject(), HMChangeOwnerPheProcess(), HMFreeObject(), HMInitHandleTable(), IsHandleEntrySecure(), and MarkThreadsObjects().

#define OCF_SHAREDHEAP   0x40
 

Definition at line 1349 of file client/nt6/user.h.

Referenced by HMAllocObject(), HMFreeObject(), and HMInitHandleTable().

#define OCF_THREADOWNED   0x01
 

Definition at line 1343 of file client/nt6/user.h.

Referenced by _QueryUserHandles(), DestroyHandleTableObjects(), DestroyThreadsObjects(), HMAllocObject(), HMChangeOwnerThread(), HMFreeObject(), HMInitHandleTable(), and IsHandleEntrySecure().

#define OCF_USEPOOLIFNODESKTOP   0x20
 

Definition at line 1348 of file client/nt6/user.h.

Referenced by HMAllocObject(), and HMInitHandleTable().

#define OCF_USEPOOLQUOTA   0x08
 

Definition at line 1346 of file client/nt6/user.h.

Referenced by HMAllocObject(), and HMInitHandleTable().

#define OCF_VARIABLESIZE   0
 

Definition at line 1353 of file client/nt6/user.h.

Referenced by HMAllocObject().

#define PATTERN   (DWORD)0x00F00000
 

Definition at line 222 of file client/nt6/user.h.

#define PDLG pwnd   )     (((PDIALOG)pwnd)->pdlg)
 

Definition at line 2819 of file client/nt6/user.h.

Referenced by _GetWindowLongPtr(), _SetWindowLongPtr(), DefDlgProcWorker(), DialogBox2(), EndDialog(), InternalCreateDialog(), SendMessageWorker(), xxxRestoreDlgFocus(), and xxxSaveDlgFocus().

#define PROPF_INTERNAL   0x0001
 

Definition at line 1722 of file client/nt6/user.h.

Referenced by _BuildPropList(), _DdeGetQualityOfService(), _DdeSetQualityOfService(), _FindProp(), _GetWindowContextHelpId(), _SetWindowContextHelpId(), AddConvProp(), CkptRestore(), CreateRedirectionBitmap(), DeleteProperties(), DestroyWindowSmIcon(), DWP_GetIcon(), FindDdeConv(), GetContextHelpId(), InternalSetProp(), MESSAGECALL(), NtUserSetAppImeLevel(), ParkIcon(), RemoveFlashWindowState(), UnlinkConv(), UserAssociateHwnd(), xxxArrangeIconicWindows(), xxxCalcValidRects(), xxxCleanupDdeConv(), xxxCreateWindowSmIcon(), xxxDesktopRecalc(), xxxDWP_SetIcon(), xxxFreeWindow(), xxxGetWindowSmIcon(), xxxInitSendValidateMinMaxInfo(), xxxMetricsRecalc(), xxxPaintIconsInSwitchWindow(), xxxRecreateSmallIcons(), and xxxSetClassIconEnum().

#define PROPF_NOPOOL   0x0004
 

Definition at line 1724 of file client/nt6/user.h.

Referenced by _SetWindowContextHelpId(), CreateRedirectionBitmap(), DeleteProperties(), NtUserSetAppImeLevel(), UserAssociateHwnd(), xxxCreateWindowSmIcon(), and xxxDWP_SetIcon().

#define PROPF_STRING   0x0002
 

Definition at line 1723 of file client/nt6/user.h.

Referenced by NtUserSetProp().

#define PtoH  )     _PtoH(p)
 

Definition at line 1512 of file client/nt6/user.h.

Referenced by _CreateEmptyCursorObject(), _GetClassData(), _GetClassInfoEx(), _LoadCursorsAndIcons(), AbnormalDDEPost(), AnticipatePost(), AssociateInputContext(), AssociateInputContextEx(), BuildHimcList(), DestroyInputContext(), DrawCaptionIcon(), FindQMsg(), FreeDdeConv(), GetCPD(), GetMenu(), GetSubMenu(), GetWindowData(), LW_RegisterWindows(), MDIActivateDlgSize(), MDIAddSysMenu(), MDIClientWndProcWorker(), MDICompleteChildCreation(), ModifyMenuItem(), MonitorFromPoint(), MonitorFromRect(), MonitorFromWindow(), NtUserCallHwndParam(), NtUserCallNoParam(), NtUserCallOneParam(), NtUserChildWindowFromPointEx(), NtUserCreateAcceleratorTable(), NtUserCreateInputContext(), NtUserCreateWindowEx(), NtUserDeferWindowPos(), NtUserFindExistingCursorIcon(), NtUserFindWindowEx(), NtUserGetAncestor(), NtUserGetClipboardOwner(), NtUserGetClipboardViewer(), NtUserGetCursorFrameInfo(), NtUserGetCursorInfo(), NtUserGetDC(), NtUserGetDCEx(), NtUserGetOpenClipboardWindow(), NtUserGetSystemMenu(), NtUserGetThreadState(), NtUserMinMaximize(), NtUserQueryInputContext(), NtUserQueryWindow(), NtUserRealChildWindowFromPoint(), NtUserSetActiveWindow(), NtUserSetCapture(), NtUserSetClipboardViewer(), NtUserSetCursor(), NtUserSetFocus(), NtUserSetParent(), NtUserSetWindowsHookEx(), NtUserSetWinEventHook(), NtUserWindowFromPoint(), ProcessRegistrationMessage(), ReaderFeedback(), SetClassCursor(), TestInputContextProcess(), TrackLayeredZorder(), UserGetDesktopDC(), xxxAdviseData(), xxxCalcValidRects(), xxxChildResize(), xxxCopyAckIn(), xxxCreateClassSmIcon(), xxxCreateWindowEx(), xxxCsDdeInitialize(), xxxCsEvent(), xxxDDETrackPostHook(), xxxDDETrackSendHook(), xxxDDETrackWindowDying(), xxxEnumDisplayMonitors(), xxxExecuteAck(), xxxHandleMenuMessages(), xxxHandleOwnerSwitch(), xxxImmProcessKey(), xxxMDIDestroy(), xxxMenuWindowProc(), xxxMessageEvent(), xxxMNChar(), xxxMNDestroyHandler(), xxxMNDragOver(), xxxMNKeyDown(), xxxMNMouseMove(), xxxMNStartMenu(), xxxOldNextWindow(), xxxPaintIconsInSwitchWindow(), xxxRequestAck(), xxxScanSysQueue(), xxxSendMenuDrawItemMessage(), xxxSendMenuSelect(), xxxSetClassIcon(), xxxSetTrayWindow(), xxxSetWindowData(), and xxxUpdateSystemIconsFromRegistry().

#define PtoHq  )     _PtoHq(p)
 

Definition at line 1513 of file client/nt6/user.h.

Referenced by _ConvertMemHandle(), _GetWindow(), _SetLayeredWindowAttributes(), _UpdateLayeredWindow(), CheckMenuRadioItem(), CheckRadioButton(), HMFreeObject(), InternalDialogBox(), LayerHitTest(), NtUserGetForegroundWindow(), NtUserQueryWindow(), OffsetChildren(), TrackLayeredZorder(), UnsetLayeredWindow(), UpdateLayeredSprite(), xxxCreateWindowSmIcon(), xxxDestroyWindow(), xxxGetMenuBarInfo(), xxxHkCallHook(), xxxMinMaximize(), xxxMNDismissWithNotify(), xxxMNKeyDown(), xxxMNOpenHierarchy(), xxxProcessEventMessage(), xxxSetLayeredWindow(), xxxTA_AccelerateMenu(), xxxTrackPopupMenuEx(), zzzChangeStates(), and zzzSetFMouseMoved().

#define PTR_TO_ID  )     ((USHORT)(((ULONG_PTR)(p)) & MAXUSHORT))
 

Definition at line 411 of file client/nt6/user.h.

Referenced by _InternalGetIconInfo(), _LoadCursorsAndIcons(), CheckDesktopPolicy(), ComboBoxWndProcWorker(), ConvertDIBIcon(), CopyIcoCur(), CreateAniIcon(), CreateIconIndirect(), ECNcDestroyHandler(), ECNotifyParent(), FastGetProfileIntsW(), FastGetProfileValue(), FastWriteProfileValue(), GetProp(), InternalCreateDialog(), InternalRegisterClassEx(), InternalSetProp(), LoadBmp(), LoadDIB(), LoadIcoCur(), MapPropertyKey(), ObjectFromDIBResource(), RemoveProp(), RtlLoadObjectFromDIBFile(), SetProp(), SetupClassAtoms(), SoftModalMessageBox(), StaticNotifyParent(), WinHelpA(), xxxButtonNotifyParent(), xxxCBNotifyParent(), xxxCreateClassSmIcon(), xxxCreateWindowEx(), xxxCreateWindowSmIcon(), xxxDefWindowProc(), xxxDestroyLBox(), xxxDestroyWindow(), xxxGotoNextMnem(), xxxHelpLoop(), and xxxNotifyOwner().

#define PUSIF_COMBOBOXANIMATION   0x04 /* Must match UPBOOLMask(SPI_GETCOMBOBOXANIMATION) */
 

Definition at line 1073 of file client/nt6/user.h.

Referenced by xxxCBShowListBoxWindow().

#define PUSIF_LISTBOXSMOOTHSCROLLING   0x08 /* Must match UPBOOLMask(SPI_GETLISTBOXSMOOTHSCROLLING) */
 

Definition at line 1074 of file client/nt6/user.h.

Referenced by LBGetScrollFlags().

#define PUSIF_PALETTEDISPLAY   0x01 /* Is the display palettized? */
 

Definition at line 1071 of file client/nt6/user.h.

Referenced by _SelectPalette(), BitmapFromDIB(), GetIcoCurBpp(), MungeClipData(), PasteScreenPalette(), UpdateUserScreen(), xxxActivateThisWindow(), xxxGetDummyBitmap(), xxxGetDummyDib(), xxxGetDummyDibV5(), and xxxSnapWindow().

#define PUSIF_SNAPTO   0x02 /* Is SnapTo enabled? */
 

Definition at line 1072 of file client/nt6/user.h.

Referenced by DefDlgProcWorker(), and xxxSystemParametersInfo().

#define PWCFromPCLS pcls   )     ((PWC)((PBYTE)(pcls) + sizeof(CLS) + (pcls)->cbclsExtra))
 

Definition at line 1617 of file client/nt6/user.h.

Referenced by _GetClassData(), _WOWModuleUnload(), xxxRegisterClassEx(), and xxxSetClassData().

#define PZERO  )     ((t *)&gZero)
 

Definition at line 116 of file client/nt6/user.h.

Referenced by _MapWindowPoints(), CalcVisRgn(), CalcWindowVisRgn(), CreateEmptyRgn(), SetEmptyRgn(), StartDeviceRead(), and UpdateUserScreen().

#define QF_ACTIVATIONCHANGE   (UINT)0x00040
 

Definition at line 3003 of file client/nt6/user.h.

Referenced by xxxActivateThisWindow(), xxxMNLoop(), and zzzAttachToQueue().

#define QF_ACTIVEWNDTRACKING   0x00200000
 

Definition at line 3032 of file client/nt6/user.h.

Referenced by xxxActiveWindowTracking(), xxxSystemTimerProc(), and xxxTrackMouseMove().

#define QF_CAPTURELOCKED   0x00100000
 

Definition at line 3031 of file client/nt6/user.h.

Referenced by CancelInputState(), xxxCapture(), xxxDestroyThreadInfo(), xxxHandleMenuMessages(), xxxMenuWindowProc(), xxxMNKeyDown(), xxxMNLoop(), xxxMNReleaseCapture(), xxxMNSetCapture(), xxxReleaseCapture(), xxxSetCapture(), xxxSysCommand(), xxxTrackPopupMenuEx(), and zzzAttachToQueue().

#define QF_DIALOGACTIVE   (UINT)0x04000
 

Definition at line 3022 of file client/nt6/user.h.

Referenced by DefDlgProcWorker(), NtUserSetThreadState(), and xxxScanSysQueue().

#define QF_EVENTDEACTIVATEREMOVED   (UINT)0x08000
 

Definition at line 3023 of file client/nt6/user.h.

Referenced by xxxActivateThisWindow(), xxxMouseActivate(), and xxxSetForegroundWindow2().

#define QF_FF10STATUS   (UINT)0x00010
 

Definition at line 3001 of file client/nt6/user.h.

Referenced by xxxDefWindowProc().

#define QF_FMENUSTATUS   (UINT)0x00008
 

Definition at line 3000 of file client/nt6/user.h.

Referenced by xxxDefWindowProc(), and xxxScanSysQueue().

#define QF_FMENUSTATUSBREAK   (UINT)0x00004
 

Definition at line 2999 of file client/nt6/user.h.

Referenced by xxxDefWindowProc(), and xxxScanSysQueue().

#define QF_FOCUSNULLSINCEACTIVE   (UINT)0x00800
 

Definition at line 3021 of file client/nt6/user.h.

Referenced by xxxActivateThisWindow(), and xxxSendFocusMessages().

#define QF_INDESTROY   (UINT)0x00200
 

Definition at line 3019 of file client/nt6/user.h.

Referenced by FreeQueue(), Win32kNtUserCleanup(), and zzzDestroyQueue().

#define QF_KEYSTATERESET   (UINT)0x00100
 

Definition at line 3018 of file client/nt6/user.h.

Referenced by xxxSwitchDesktop().

#define QF_LOCKNOREMOVE   (UINT)0x00400
 

Definition at line 3020 of file client/nt6/user.h.

Referenced by xxxInternalGetMessage(), and xxxScanSysQueue().

#define QF_MOUSEMOVED   (UINT)0x00020
 

Definition at line 3002 of file client/nt6/user.h.

Referenced by ClearWakeBit(), PostMove(), xxxButtonEvent(), xxxGetNextSysMsg(), xxxKeyEvent(), xxxSystemTimerProc(), and zzzSetFMouseMoved().

#define QF_TABSWITCHING   (UINT)0x00080
 

Definition at line 3012 of file client/nt6/user.h.

Referenced by xxxDefWindowProc(), and xxxKeyEvent().

#define QF_UPDATEKEYSTATE   (UINT)0x00001
 

Definition at line 2997 of file client/nt6/user.h.

Referenced by NtUserGetKeyState(), PostInputMessage(), PostUpdateKeyStateEvent(), UpdateAsyncKeyState(), and xxxSwitchDesktop().

#define RevalidateHmenu hmenuX   )     HMValidateHandleNoRip(hmenuX, TYPE_MENU)
 

Definition at line 1485 of file client/nt6/user.h.

Referenced by DefFrameProcWorker(), and xxxMNKeyDown().

#define RIPF_DEFAULT
 

Value:

Definition at line 1166 of file client/nt6/user.h.

Referenced by GetRipFlags(), UserServerDllInitialization(), and Win32UserInitialize().

#define RIPF_HIDEPID   0x0200
 

Definition at line 1164 of file client/nt6/user.h.

#define RIPF_PRINT_MASK   0x0070
 

Definition at line 1172 of file client/nt6/user.h.

#define RIPF_PRINT_SHIFT   0x04
 

Definition at line 1173 of file client/nt6/user.h.

#define RIPF_PRINTFILELINE   0x0100
 

Definition at line 1163 of file client/nt6/user.h.

#define RIPF_PRINTONERROR   0x0010
 

Definition at line 1160 of file client/nt6/user.h.

#define RIPF_PRINTONVERBOSE   0x0040
 

Definition at line 1162 of file client/nt6/user.h.

#define RIPF_PRINTONWARNING   0x0020
 

Definition at line 1161 of file client/nt6/user.h.

#define RIPF_PROMPT_MASK   0x0007
 

Definition at line 1170 of file client/nt6/user.h.

#define RIPF_PROMPT_SHIFT   0x00
 

Definition at line 1171 of file client/nt6/user.h.

#define RIPF_PROMPTONERROR   0x0001
 

Definition at line 1157 of file client/nt6/user.h.

#define RIPF_PROMPTONVERBOSE   0x0004
 

Definition at line 1159 of file client/nt6/user.h.

#define RIPF_PROMPTONWARNING   0x0002
 

Definition at line 1158 of file client/nt6/user.h.

#define RIPF_VALIDUSERFLAGS   0x0377
 

Definition at line 1174 of file client/nt6/user.h.

Referenced by _SetRipFlags(), and SetRipFlags().

#define RNDFRM_BORDER   3
 

Definition at line 3038 of file client/nt6/user.h.

#define RNDFRM_CORNER   10
 

Definition at line 3037 of file client/nt6/user.h.

#define RTDNFLAG   0x0002
 

Definition at line 2691 of file client/nt6/user.h.

Referenced by _GetScrollBarInfo(), DrawThumb2(), HitTestScrollBar(), xxxDrawSB2(), and xxxSBTrackInit().

#define RTLMENU   HMENU
 

Definition at line 3162 of file client/nt6/user.h.

Referenced by xxxLoadSysMenu().

#define SBFSIZEBOX   0x0C08
 

Definition at line 2507 of file client/nt6/user.h.

#define SBFSIZEBOXBOTTOMRIGHT   0x0C04
 

Definition at line 2506 of file client/nt6/user.h.

#define SBFSIZEBOXTOPLEFT   0x0C02
 

Definition at line 2505 of file client/nt6/user.h.

#define SBFSIZEGRIP   0x0C10
 

Definition at line 2508 of file client/nt6/user.h.

Referenced by DrawSize().

#define SCROLLBARCODE   0x84
 

Definition at line 328 of file client/nt6/user.h.

#define SEB_ABORT   6 /* Button with "&Abort" */
 

Definition at line 3127 of file client/nt6/user.h.

#define SEB_CANCEL   2 /* Button with "Cancel" */
 

Definition at line 3123 of file client/nt6/user.h.

Referenced by HardErrorHandler().

#define SEB_CLOSE   8 /* Button with "&Close" */
 

Definition at line 3129 of file client/nt6/user.h.

#define SEB_DEFBUTTON   0x8000 /* Mask to make this button default */
 

Definition at line 3132 of file client/nt6/user.h.

Referenced by HardErrorHandler().

#define SEB_HELP   9 /* Button with "&Help" */
 

Definition at line 3130 of file client/nt6/user.h.

Referenced by IsTooltipHittest().

#define SEB_IGNORE   7 /* Button with "&Ignore" */
 

Definition at line 3128 of file client/nt6/user.h.

#define SEB_NO   4 /* Button with "&No" */
 

Definition at line 3125 of file client/nt6/user.h.

#define SEB_OK   1 /* Button with "OK". */
 

Definition at line 3122 of file client/nt6/user.h.

#define SEB_RETRY   5 /* Button with "&Retry" */
 

Definition at line 3126 of file client/nt6/user.h.

#define SEB_YES   3 /* Button with "&Yes" */
 

Definition at line 3124 of file client/nt6/user.h.

#define SESSION_ROOT   L"\\Sessions"
 

Definition at line 373 of file client/nt6/user.h.

#define SET_FLAG field,
flag   )     ((field) |= (flag))
 

Definition at line 155 of file client/nt6/user.h.

Referenced by Win32UserInitialize(), and xxxReceiveMessage().

#define SET_OR_CLEAR_FLAG field,
flag,
fset   )     COPY_FLAG((field), -!!(fset), (flag))
 

Definition at line 186 of file client/nt6/user.h.

Referenced by ConvertRedirectionDCs(), SetMonitorData(), UpdateUserScreen(), xxxFlashWindow(), xxxReceiveMessage(), and xxxUpdatePerUserAccessPackSettings().

#define SET_OR_CLEAR_PUSIF f,
fSet   )     SET_OR_CLEAR_FLAG(gpsi->PUSIFlags, f, fSet)
 

Definition at line 1080 of file client/nt6/user.h.

Referenced by UpdateUserScreen(), and xxxSystemParametersInfo().

#define SET_OR_CLEAR_RIPF f,
fSet   )     do{UserAssert(gpsi); SET_OR_CLEAR_FLAG(gpsi->wRIPFlags, f, fSet);}while (FALSE)
 

Definition at line 1180 of file client/nt6/user.h.

#define SET_OR_CLEAR_SRVIF f,
fSet   )     SET_OR_CLEAR_FLAG(gpsi->wSRVIFlags, f, fSet)
 

Definition at line 1154 of file client/nt6/user.h.

Referenced by DestroyEventHook(), and Win32UserInitialize().

#define SET_PUSIF  )     SET_FLAG(gpsi->PUSIFlags, f)
 

Definition at line 1078 of file client/nt6/user.h.

#define SET_RIPF  )     do{UserAssert(gpsi); SET_FLAG(gpsi->wRIPFlags, f);}while (FALSE)
 

Definition at line 1178 of file client/nt6/user.h.

#define SET_SRVIF  )     SET_FLAG(gpsi->wSRVIFlags, f)
 

Definition at line 1152 of file client/nt6/user.h.

Referenced by _SetWinEventHook(), and Win32UserInitialize().

#define SetAsyncKeyStateDown vk   )     SetKeyDownBit(gafAsyncKeyState, vk)
 

Definition at line 2970 of file client/nt6/user.h.

Referenced by UpdateAsyncKeyState().

#define SetAsyncKeyStateRecentDown vk   )     SetKeyRecentDownBit(gafAsyncKeyStateRecentDown, vk)
 

Definition at line 2982 of file client/nt6/user.h.

Referenced by UpdateAsyncKeyState().

#define SetAsyncKeyStateToggle vk   )     SetKeyToggleBit(gafAsyncKeyState, vk)
 

Definition at line 2976 of file client/nt6/user.h.

Referenced by _SetKeyboardState(), ChangeForegroundKeyboardTable(), NlsSetKeyStateToggle(), UpdateAsyncKeyState(), and UpdatePerUserKeyboardIndicators().

#define SetCF hwnd,
flag   )     (*((BYTE *)((PWND)(hwnd))->pcls + CFOFFSET + HIBYTE(flag)) |= LOBYTE(flag))
 

Definition at line 1610 of file client/nt6/user.h.

#define SetCF2 pcls,
flag   )     (*((BYTE *)(pcls) + CFOFFSET + (int)HIBYTE(flag)) |= LOBYTE(flag))
 

Definition at line 1614 of file client/nt6/user.h.

#define SetFullScreen pwnd,
state   ) 
 

Value:

(ClrWF(pwnd, WFFULLSCREENMASK), \ SetWF(pwnd, WFFULLSCREENBASE | (state & WFFULLSCREENMASK)))

Definition at line 2574 of file client/nt6/user.h.

Referenced by xxxCreateDesktop(), xxxMakeWindowForegroundWithState(), xxxShowWindow(), and xxxSwitchDesktop().

#define SetKeyDownBit pb,
vk   )     (pb[vk >> 2] |= (1 << ((vk & 3) << 1)))
 

Definition at line 2936 of file client/nt6/user.h.

Referenced by xxxToUnicodeEx().

#define SetKeyRecentDownBit pb,
vk   )     (pb[vk >> 3] |= (1 << (vk & 7)))
 

Definition at line 2950 of file client/nt6/user.h.

Referenced by UpdateAsyncKeyState().

#define SetKeyStateDown pq,
vk   )     SetKeyDownBit(pq->afKeyState, vk)
 

Definition at line 2957 of file client/nt6/user.h.

Referenced by _SetKeyboardState(), ProcessUpdateKeyStateEvent(), SetConvMode(), and UpdateKeyState().

#define SetKeyStateToggle pq,
vk   )     SetKeyToggleBit(pq->afKeyState, vk)
 

Definition at line 2963 of file client/nt6/user.h.

Referenced by _SetKeyboardState(), ChangeForegroundKeyboardTable(), NlsSetKeyStateToggle(), ProcessUpdateKeyStateEvent(), SetConvMode(), UpdateKeyState(), and UpdatePerUserKeyboardIndicators().

#define SetKeyToggleBit pb,
vk   )     (pb[vk >> 2] |= (1 << (((vk & 3) << 1) + 1)))
 

Definition at line 2942 of file client/nt6/user.h.

Referenced by xxxToUnicodeEx().

#define SetMF pmenu,
flag   )     ((pmenu)->fFlags |= (flag))
 

Definition at line 2774 of file client/nt6/user.h.

Referenced by _SetMenuFlagRtoL(), LockDesktopMenu(), MakeMenuRtoL(), xxxDrawMenuBarUnderlines(), xxxGetSystemMenu(), xxxLoadSysDesktopMenu(), xxxMenuBarDraw(), xxxMenuWindowProc(), xxxMNOpenHierarchy(), xxxNextWindow(), xxxSetLPITEMInfo(), and xxxTrackPopupMenuEx().

#define SetMFS pitem,
flag   )     ((pitem)->fState |= (flag))
 

Definition at line 2778 of file client/nt6/user.h.

Referenced by _SetMenuDefaultItem(), MNDrawMenu3DHotTracking(), xxxHotTrackMenu(), xxxMNInvertItem(), xxxMNSetGapState(), and xxxSetLPITEMInfo().

#define SetMFT pitem,
flag   )     ((pitem)->fType |= (flag))
 

Definition at line 2782 of file client/nt6/user.h.

Referenced by MakeMenuRtoL().

#define SetRectEmpty   SetRectEmptyInl
 

Definition at line 245 of file client/nt6/user.h.

Referenced by _GetGUIThreadInfo(), BNCalcRect(), CalcClientScrolling(), CalcWindowVisRgn(), ECImmSetCompositionWindow(), GetUpdateRect(), InternalScrollDC(), IntersectRect(), LBGetItemRect(), ScrollDC(), SLGetClipRect(), SmoothScrollWindowEx(), SubtractRect(), UnionRect(), UpdateUserScreen(), xxxCalcValidRects(), xxxCBCalcControlRects(), xxxGetMenuBarInfo(), xxxGetMenuItemRect(), xxxGetTitleBarInfo(), xxxGetUpdateRect(), xxxMinimizeHungWindow(), xxxMinMaximize(), and xxxScrollWindowEx().

#define SetWF hwnd,
flag   )     (*(((BYTE *)(hwnd)) + STATEOFFSET + (int)HIBYTE(flag)) |= LOBYTE(flag))
 

Definition at line 2556 of file client/nt6/user.h.

Referenced by _RegisterShellHookWindow(), _SelectPalette(), CreateSpb(), DoPaint(), DoQueuedSyncPaint(), ImeSetTopmost(), ImeSetTopmostChild(), InternalInvalidate3(), PatchThreadWindows(), PixieHack(), SelectWindowRgn(), SetDialogPointer(), SetHungFlag(), SetMinimize(), SetMsgBox(), SetTopmost(), SetVisible(), SetWindowState(), SfnPOWERBROADCAST(), xxxActivateThisWindow(), xxxAddFullScreen(), xxxBeginPaint(), xxxCalcClientRect(), xxxCheckFullScreen(), xxxCreateWindowEx(), xxxCreateWindowSmIcon(), xxxDefWindowProc(), xxxDestroyWindow(), xxxDispatchMessage(), xxxDrawCaptionBar(), xxxDWP_DoNCActivate(), xxxDWP_SetRedraw(), xxxDWPPrint(), xxxEnableWindow(), xxxFreeWindow(), xxxFW_DestroyAllChildren(), xxxInitSendValidateMinMaxInfo(), xxxMinMaximize(), xxxMNOpenHierarchy(), xxxRedrawHungWindow(), xxxSBTrackLoop(), xxxSBWndProc(), xxxSendEraseBkgnd(), xxxSendNCPaint(), xxxSetLayeredWindow(), xxxSetParent(), xxxSetScrollBar(), xxxSetShellWindow(), xxxSetWindowData(), xxxSetWindowStyle(), xxxShowOwnedWindows(), xxxSwpActivate(), xxxTrackCaptionButton(), xxxTrackPopupMenuEx(), xxxUpdateWindow2(), zzzChangeStates(), and zzzDrawInvertScrollArea().

#define SFCENTERIMAGE   0x0D02
 

Definition at line 2514 of file client/nt6/user.h.

Referenced by StaticCallback(), xxxSetStaticImage(), and xxxStaticPaint().

#define SFEDITCONTROL   0x0D20
 

Definition at line 2518 of file client/nt6/user.h.

Referenced by StaticCallback().

#define SFELLIPSISMASK   0x0DC0
 

Definition at line 2519 of file client/nt6/user.h.

Referenced by StaticCallback().

#define SFNOPREFIX   0x0C80
 

Definition at line 2512 of file client/nt6/user.h.

Referenced by StaticCallback(), and xxxStaticPaint().

#define SFNOTIFY   0x0D01
 

Definition at line 2513 of file client/nt6/user.h.

Referenced by StaticWndProcWorker().

#define SFREALSIZEIMAGE   0x0D08
 

Definition at line 2516 of file client/nt6/user.h.

Referenced by xxxStaticLoadImage().

#define SFRIGHTJUST   0x0D04
 

Definition at line 2515 of file client/nt6/user.h.

#define SFSUNKEN   0x0D10
 

Definition at line 2517 of file client/nt6/user.h.

Referenced by StaticWndProcWorker().

#define SFTYPEMASK   0x0C1F
 

Definition at line 2511 of file client/nt6/user.h.

Referenced by StaticCallback(), StaticWndProcWorker(), xxxSetStaticImage(), xxxStaticLoadImage(), and xxxStaticPaint().

#define SFWIDELINESPACING   0x0C20
 

Definition at line 2520 of file client/nt6/user.h.

#define SOURCE   (DWORD)0x00CC0000
 

Definition at line 221 of file client/nt6/user.h.

Referenced by InnerGrayStringAorW().

#define SRVIF_CHECKED   0x0001
 

Definition at line 1144 of file client/nt6/user.h.

Referenced by Win32UserInitialize().

#define SRVIF_DBCS   0x0004
 

Definition at line 1146 of file client/nt6/user.h.

Referenced by GetSystemMetrics(), and Win32UserInitialize().

#define SRVIF_IME   0x0008
 

Definition at line 1147 of file client/nt6/user.h.

Referenced by GetSystemMetrics(), and Win32UserInitialize().

#define SRVIF_MIDEAST   0x0010
 

Definition at line 1148 of file client/nt6/user.h.

Referenced by GetSystemMetrics(), and Win32UserInitialize().

#define SRVIF_WINEVENTHOOKS   0x0002
 

Definition at line 1145 of file client/nt6/user.h.

Referenced by _SetWinEventHook(), and DestroyEventHook().

#define SSCF_FORCESOLIDCOLOR   0x00000002
 

Definition at line 1311 of file client/nt6/user.h.

Referenced by ResetSystemColors(), SetSysColor(), SetSysColors(), and xxxODI_ColorInit().

#define SSCF_NOTIFY   0x00000001
 

Definition at line 1310 of file client/nt6/user.h.

Referenced by SetSysColors(), and xxxSetSysColors().

#define SSCF_SETMAGICCOLORS   0x00000004
 

Definition at line 1312 of file client/nt6/user.h.

Referenced by ResetSystemColors(), SetSysColor(), SetSysColors(), xxxODI_ColorInit(), and xxxSetSysColors().

#define STATEOFFSET   (FIELD_OFFSET(WND, state))
 

Definition at line 2542 of file client/nt6/user.h.

#define STATICCODE   0x82
 

Definition at line 326 of file client/nt6/user.h.

Referenced by MB_UpdateDlgItem(), and SoftModalMessageBox().

#define STOCID  )     (gpsi->aStoCidPfn[(DWORD)((s) & ~FNID_STATUS_BITS) - FNID_START])
 

Definition at line 841 of file client/nt6/user.h.

Referenced by InitFunctionTables(), MapClientToServerPfn(), MapServerToClientPfn(), and PatchThreadWindows().

#define SV_CLRFTRUEVIS   0x0002
 

Definition at line 2587 of file client/nt6/user.h.

Referenced by SetVisible(), xxxDWP_SetRedraw(), xxxMDINext(), and zzzChangeStates().

#define SV_SET   0x0001
 

Definition at line 2586 of file client/nt6/user.h.

Referenced by SetVisible(), xxxCreateWindowStation(), xxxDWP_SetRedraw(), xxxDWPPrint(), xxxProcessHungThreadEvent(), xxxShowWindow(), zzzActiveCursorTracking(), and zzzChangeStates().

#define SV_UNSET   0x0000
 

Definition at line 2585 of file client/nt6/user.h.

Referenced by xxxCreateWindowEx(), xxxDesktopThread(), xxxDestroyWindow(), xxxDWP_SetRedraw(), xxxDWPPrint(), xxxFW_DestroyAllChildren(), xxxMDINext(), xxxMinimizeHungWindow(), xxxMNCloseHierarchy(), xxxShowOwnedWindows(), xxxShowWindow(), zzzActiveCursorTracking(), and zzzChangeStates().

#define SW_MDIRESTORE   0xCC /* special xxxMinMaximize() command for MDI */
 

Definition at line 2737 of file client/nt6/user.h.

Referenced by xxxChildResize(), and xxxMinMaximize().

#define SWITCHWNDCLASS   MAKEINTATOM(0x8003)
 

Definition at line 291 of file client/nt6/user.h.

Referenced by LW_RegisterWindows(), SetupClassAtoms(), xxxNextWindow(), and xxxOldNextWindow().

#define SYS_ALTERNATE   0x2000
 

Definition at line 2526 of file client/nt6/user.h.

#define SYS_PREVKEYSTATE   0x4000
 

Definition at line 2527 of file client/nt6/user.h.

Referenced by xxxDefWindowProc().

#define SYSHBR  )     ahbrSystem[COLOR_##i]
 

Definition at line 212 of file client/nt6/user.h.

Referenced by BltMe4Times(), CenterWallpaper(), CreateBitmapStrip(), DesktopBuildPaint(), DrawEdge(), DrawFrameControl(), DrawGrip(), DrawGroove(), DrawPushButton(), DrawSize(), DrawStateW(), DrawSwitchWndHilite(), FillCaptionGradient(), InitUserScreen(), LoadBmp(), MNDrawFullNC(), MNDrawInsertionBar(), MNDrawMenu3DHotTracking(), RecolorDeskPattern(), SLDrawLine(), TooltipRender(), xxxBNDrawText(), xxxCBInternalUpdateEditWindow(), xxxDesktopPaintCallback(), xxxDrawCaptionBar(), xxxDrawCaptionTemp(), xxxDrawMenuBarTemp(), xxxDrawMenuBarUnderlines(), xxxDrawMenuItem(), xxxDrawSB2(), xxxDrawState(), xxxHotTrackMenu(), xxxLBDrawLBItem(), xxxMenuBarDraw(), xxxPaintIconsInSwitchWindow(), xxxPaintSwitchWindow(), xxxRealDrawMenuItem(), xxxRedrawHungWindow(), xxxSetDeskPattern(), and xxxStaticPaint().

#define SYSHBRRTL  )     ahbrSystem[COLOR_##i]
 

Definition at line 213 of file client/nt6/user.h.

#define SYSMET  )     ((int)gpsi->aiSysMet[SM_##i])
 

Definition at line 202 of file client/nt6/user.h.

Referenced by _AdjustWindowRectEx(), _GetMouseMovePointsEx(), _LoadCursorsAndIcons(), _SwapMouseButton(), _UserSoundSentryWorker(), ArrangeWindows(), BitBltSysBmp(), BltMe4Times(), BltValidInit(), BNCalcRect(), BNMultiExtent(), CalcClientScrolling(), CalcSBStuff(), CalcSBStuff2(), CalcTrackDragRect(), CheckPlacementBounds(), ComboBoxWndProcA(), ComboBoxWndProcW(), ComboBoxWndProcWorker(), ConvertDIBBitmap(), CreateBitmapStrip(), CreateCaptionStrip(), CreateSpb(), DefFrameProcWorker(), DialogBox2(), DrawCaptionButtons(), DrawCaptionIcon(), DrawSize(), DrawStateW(), ECInvalidateClient(), ECSetEditClip(), ECSize(), GetAsyncKeyState(), GetCascadeWindowPos(), GetFrameControlMetrics(), GetIcoCurBpp(), GetIcoCurHeight(), GetIcoCurWidth(), GetMenuCheckMarkDimensions(), GetMouseCoord(), GetWindowInfo(), GetWindowNCMetrics(), InitLoadResources(), InitMice(), InitSwitchWndInfo(), InitTooltipDelay(), InitUserScreen(), InternalCreateDialog(), InternalDialogBox(), IsFontNotGood(), IsFontTooSmall(), LoadBmp(), LoadCursorsAndIcons(), LW_LoadResources(), MB_UpdateDlgHdr(), MKHideMouseCursor(), MKShowMouseCursor(), MLPaint(), MNCheckScroll(), MNDrawArrow(), MNDrawFullNC(), MNDrawInsertionBar(), MNItemHitTest(), MNPositionSysMenu(), ParkIcon(), ProcessDeviceChanges(), RecolorDeskPattern(), RepositionRect(), ResetOrg(), ScrollMDIChildren(), SetDesktopMetrics(), SetIconMetrics(), SetMinMetrics(), SetNCMetrics(), SetPointer(), SetTiledRect(), SoftModalMessageBox(), StaticWndProcWorker(), TooltipGetSize(), TooltipRender(), UpdateUserScreen(), xxxAnimateCaption(), xxxArrangeIconicWindows(), xxxBNDrawText(), xxxBroadcastDisplaySettingsChange(), xxxButtonEvent(), xxxCalcCaptionButton(), xxxCalcValidRects(), xxxCBCalcControlRects(), xxxCBCreateHandler(), xxxCBInternalUpdateEditWindow(), xxxCBSetEditItemHeight(), xxxCBShowListBoxWindow(), xxxCheckFullScreen(), xxxCreateCaret(), xxxCreateClassSmIcon(), xxxCreateWindowSmIcon(), xxxDefWindowProc(), xxxDrawButton(), xxxDrawCaptionBar(), xxxDrawCaptionTemp(), xxxDrawItemUnderline(), xxxDrawMenuBarTemp(), xxxDrawMenuBarUnderlines(), xxxDrawMenuItem(), xxxDrawSB2(), xxxDrawState(), xxxDrawWindowFrame(), xxxDWP_DoNCActivate(), xxxGetMenuBarInfo(), xxxGetTitleBarInfo(), xxxHandleMenuMessages(), xxxHelpLoop(), xxxInitSendValidateMinMaxInfo(), xxxIsDragging(), xxxLBCreate(), xxxLBSize(), xxxMenuBarCompute(), xxxMenuBarDraw(), xxxMenuDraw(), xxxMenuWindowProc(), xxxMinMaximize(), xxxMNCompute(), xxxMNFindWindowFromPoint(), xxxMNInvertItem(), xxxMNItemSize(), xxxMNOpenHierarchy(), xxxMNPositionHierarchy(), xxxMNRecomputeBarIfNeeded(), xxxMNSetGapState(), xxxMNUpdateDraggingInfo(), xxxMoveSize(), xxxMS_TrackMove(), xxxPaintIconsInSwitchWindow(), xxxPressButton(), xxxRealDrawMenuItem(), xxxSBWndProc(), xxxScanSysQueue(), xxxSetAndDrawMinMetrics(), xxxSetAndDrawNCMetrics(), xxxSetNCFonts(), xxxSetWindowNCMetrics(), xxxSnapWindow(), xxxStaticPaint(), xxxSystemParametersInfo(), xxxTrackPopupMenuEx(), xxxUpdatePerUserSystemParameters(), xxxUpdateSystemIconsFromRegistry(), xxxUserResetDisplayDevice(), zzzDrawInvertScrollArea(), zzzSetCursorPos(), and zzzSetSBCaretPos().

#define SYSMETRTL  )     ((int)gpsi->aiSysMet[SM_##i])
 

Definition at line 203 of file client/nt6/user.h.

Referenced by _GetClientRect(), _GetWindowRect(), DrawDiagonalLine(), DrawEdge(), DrawFrame(), FindNCHit(), GetRealClientRect(), and SizeBoxHwnd().

#define SYSRGB  )     gpsi->argbSystem[COLOR_##i]
 

Definition at line 204 of file client/nt6/user.h.

Referenced by AreNonClientAreasToBePainted(), CalcbfExtra(), ChangeDibColors(), DefWindowProcWorker(), DrawBox(), DrawSwitchWndHilite(), LBPrintCallback(), RecolorDeskPattern(), xxxBNDrawText(), xxxCBInternalUpdateEditWindow(), xxxDefWindowProc(), xxxDrawCaptionTemp(), xxxDrawMenuBarUnderlines(), xxxDrawMenuItem(), xxxLBDrawLBItem(), xxxLBSetCaret(), xxxSetDeskPattern(), and xxxStaticPaint().

#define SYSRGBRTL  )     gpsi->argbSystem[COLOR_##i]
 

Definition at line 205 of file client/nt6/user.h.

Referenced by DrawBox(), DrawGrip(), DrawIt(), and DrawPushButton().

#define TEST_BOOL_FLAG field,
flag   )     (((field) & (flag)) != 0)
 

Definition at line 154 of file client/nt6/user.h.

Referenced by GetSystemMetrics(), and InSendMessage().

#define TEST_BOOL_PUSIF  )     TEST_BOOL_FLAG(gpsi->PUSIFlags, f)
 

Definition at line 1077 of file client/nt6/user.h.

Referenced by xxxSystemParametersInfo().

#define TEST_BOOL_RIPF  )     TEST_BOOL_FLAG((gpsi) ? gpsi->wRIPFlags : RIPF_DEFAULT, f)
 

Definition at line 1177 of file client/nt6/user.h.

#define TEST_BOOL_SRVIF  )     TEST_BOOL_FLAG(gpsi->wSRVIFlags, f)
 

Definition at line 1151 of file client/nt6/user.h.

#define TEST_FLAG field,
flag   )     ((field) & (flag))
 

Definition at line 153 of file client/nt6/user.h.

Referenced by InSendMessageEx().

#define TEST_PUSIF  )     TEST_FLAG(gpsi->PUSIFlags, f)
 

Definition at line 1076 of file client/nt6/user.h.

Referenced by _SelectPalette(), BitmapFromDIB(), DefDlgProcWorker(), GetIcoCurBpp(), MungeClipData(), PasteScreenPalette(), xxxActivateThisWindow(), xxxGetDummyBitmap(), xxxGetDummyDib(), xxxGetDummyDibV5(), and xxxSnapWindow().

#define TEST_RIPF  )     TEST_FLAG((gpsi) ? gpsi->wRIPFlags : RIPF_DEFAULT, f)
 

Definition at line 1176 of file client/nt6/user.h.

#define TEST_SRVIF  )     TEST_FLAG(gpsi->wSRVIFlags, f)
 

Definition at line 1150 of file client/nt6/user.h.

#define TestAsyncKeyStateDown vk   )     TestKeyDownBit(gafAsyncKeyState, vk)
 

Definition at line 2968 of file client/nt6/user.h.

Referenced by _GetAsyncKeyState(), AdjustPushState(), IdleTimerProc(), ToggleKeys(), UpdateAsyncKeyState(), xxxButtonEvent(), and xxxKeyEvent().

#define TestAsyncKeyStateRecentDown vk   )     TestKeyRecentDownBit(gafAsyncKeyStateRecentDown, vk)
 

Definition at line 2980 of file client/nt6/user.h.

Referenced by _GetAsyncKeyState().

#define TestAsyncKeyStateToggle vk   )     TestKeyToggleBit(gafAsyncKeyState, vk)
 

Definition at line 2974 of file client/nt6/user.h.

Referenced by ChangeForegroundKeyboardTable(), NlsTestKeyStateToggle(), RegisterPerUserKeyboardIndicators(), ToggleKeys(), UpdateAsyncKeyState(), UpdateKeyLights(), xxxMKToggleMouseKeys(), xxxShiftLock(), xxxSystemParametersInfo(), and xxxUpdatePerUserAccessPackSettings().

#define TestCF hwnd,
flag   )     (*((BYTE *)((PWND)(hwnd))->pcls + CFOFFSET + HIBYTE(flag)) & LOBYTE(flag))
 

Definition at line 1609 of file client/nt6/user.h.

Referenced by _GetDCEx(), CreateCacheDC(), GetLastTopMostWindowNoIME(), ImeCanDestroyDefIME(), ImeSetFutureOwner(), ImeSetTopmost(), InvalidateDce(), IsChildSameThread(), LinkWindow(), NtUserSetImeOwnerWindow(), UserGetHwnd(), UT_GetParentDCClipBox(), xxxButtonEvent(), xxxCalcValidRects(), xxxCreateDefaultImeWindow(), xxxCreateWindowEx(), xxxDestroyWindow(), xxxDWP_ProcessVirtKey(), xxxDWPPrint(), xxxFocusSetInputContext(), xxxFreeWindow(), xxxGetUpdateRect(), xxxScanSysQueue(), xxxScrollWindowEx(), xxxShowOwnedWindows(), xxxShowWindow(), and zzzChangeStates().

#define TestCF2 pcls,
flag   )     (*((BYTE *)(pcls) + CFOFFSET + (int)HIBYTE(flag)) & LOBYTE(flag))
 

Definition at line 1613 of file client/nt6/user.h.

Referenced by xxxCreateWindowEx(), and xxxMNCanClose().

#define TestKeyDownBit pb,
vk   )     (pb[vk >> 2] & (1 << ((vk & 3) << 1)))
 

Definition at line 2934 of file client/nt6/user.h.

Referenced by GetAsyncKeyState(), GetKeyState(), GetModifierBits(), ProcessUpdateKeyStateEvent(), and xxxInternalToUnicode().

#define TestKeyRecentDownBit pb,
vk   )     (pb[vk >> 3] & (1 << (vk & 7)))
 

Definition at line 2948 of file client/nt6/user.h.

Referenced by GetAsyncKeyState(), and ProcessUpdateKeyStateEvent().

#define TestKeyStateDown pq,
vk   )     TestKeyDownBit(pq->afKeyState, vk)
 

Definition at line 2955 of file client/nt6/user.h.

Referenced by _GetKeyState(), AdjustPushState(), CheckImeHotKey(), GetMouseKeyFlags(), NtUserGetKeyboardState(), UpdateKeyState(), WakeSomeone(), xxxCallJournalPlaybackHook(), xxxScanSysQueue(), and xxxSkipSysMsg().

#define TestKeyStateToggle pq,
vk   )     TestKeyToggleBit(pq->afKeyState, vk)
 

Definition at line 2961 of file client/nt6/user.h.

Referenced by _GetKeyState(), NlsTestKeyStateToggle(), NtUserGetKeyboardState(), and UpdateKeyState().

#define TestKeyToggleBit pb,
vk   )     (pb[vk >> 2] & (1 << (((vk & 3) << 1) + 1)))
 

Definition at line 2940 of file client/nt6/user.h.

Referenced by GetKeyState(), and ProcessUpdateKeyStateEvent().

#define TestMF pmenu,
flag   )     ((pmenu)->fFlags & (flag))
 

Definition at line 2776 of file client/nt6/user.h.

Referenced by GetMenuPwnd(), MBC_RightJustifyMenu(), MNDrawArrow(), MNDrawMenu3DHotTracking(), MNEraseBackground(), MNItemHitTest(), MNPositionSysMenu(), UnlockDesktopMenu(), xxxDrawMenuBarUnderlines(), xxxDrawMenuItem(), xxxEnableMenuItem(), xxxGetMenuItemRect(), xxxGetSystemMenu(), xxxHiliteMenuItem(), xxxInsertMenuItem(), xxxLoadSysDesktopMenu(), xxxMenuBarCompute(), xxxMenuDraw(), xxxMenuItemFromPoint(), xxxMNCompute(), xxxMNInvertItem(), xxxMNItemSize(), xxxMNPositionHierarchy(), xxxMNRecomputeBarIfNeeded(), xxxMNStartMenu(), xxxMNStartMenuState(), xxxMNSwitchToAlternateMenu(), xxxRealDrawMenuItem(), xxxSendMenuDrawItemMessage(), xxxSetMenuItemInfo(), xxxSetSysMenu(), and xxxTrackPopupMenuEx().

#define TestMFS pitem,
flag   )     ((pitem)->fState & (flag))
 

Definition at line 2779 of file client/nt6/user.h.

Referenced by _GetMenuDefaultItem(), _SetMenuDefaultItem(), CheckMenuRadioItem(), DrawMenuItemCheckMark(), FreeItemBitmap(), mnDrawHilite(), MNDrawInsertionBar(), MNDrawMenu3DHotTracking(), MNIsCachedBmpOnly(), MNIsPopupItem(), xxxDrawMenuBarUnderlines(), xxxDrawMenuItem(), xxxHotTrackMenu(), xxxMNCanClose(), xxxMNInvertItem(), xxxMNItemSize(), xxxMNOpenHierarchy(), xxxRealDrawMenuItem(), xxxSetSysMenu(), and xxxTA_AccelerateMenu().

#define TestMFT pitem,
flag   )     ((pitem)->fType & (flag))
 

Definition at line 2783 of file client/nt6/user.h.

Referenced by _SetMenuDefaultItem(), CheckMenuRadioItem(), DrawMenuItemCheckMark(), MBC_RightJustifyMenu(), MNFindNextValidItem(), MNRecalcTabStrings(), SetMenuItemInfoStruct(), xxxDrawMenuBarUnderlines(), xxxDrawMenuItem(), xxxHotTrackMenu(), xxxInsertMenuItem(), xxxMenuDraw(), xxxMNCompute(), xxxMNInvertItem(), xxxMNItemSize(), xxxMNOpenHierarchy(), and xxxRealDrawMenuItem().

#define TESTSYNCONLYMESSAGE msg,
wParam   ) 
 

Value:

(((msg) < WM_USER) ? \ ( (MessageTable[msg].bSyncOnlyMessage) || \ (((msg) == WM_DEVICECHANGE) && ((wParam) & 0x8000))) : \ 0)

Definition at line 3526 of file client/nt6/user.h.

Referenced by _PostMessage(), _PostThreadMessage(), BroadcastSystemMessageWorker(), DispatchMessageWorker(), IsDialogMessageW(), xxxDispatchMessage(), and xxxSendMessageCallback().

#define TestWF hwnd,
flag   )     (*(((BYTE *)(hwnd)) + STATEOFFSET + (int)HIBYTE(flag)) & LOBYTE(flag))
 

Definition at line 2555 of file client/nt6/user.h.

Referenced by _ChildWindowFromPointEx(), _ClientToScreen(), _DeferWindowPos(), _FChildVisible(), _FindDlgItem(), _GetChildControl(), _GetClientRect(), _GetDCEx(), _GetNextDlgGroupItem(), _GetNextQueueWindow(), _GetScrollBarInfo(), _GetWindow(), _GetWindowDC(), _GetWindowLongPtr(), _GetWindowPlacement(), _HasCaptionIcon(), _IsTaskWindow(), _IsWindowVisible(), _MapWindowPoints(), _NextControl(), _NextSibblingOrAncestor(), _PrevControl(), _RealChildWindowFromPoint(), _RemoveNonTaskWindows(), _ScreenToClient(), _SelectPalette(), _SetLayeredWindowAttributes(), _SetWindowLongPtr(), _SetWindowWord(), _UpdateLayeredWindow(), _WOWCleanup(), _WOWModuleUnload(), AnimateWindow(), AnyPopup(), AreNonClientAreasToBePainted(), BNCalcRect(), BNMultiDraw(), BNReleaseDC(), ButtonWndProcWorker(), CalcClientScrolling(), CalcForegroundInsertAfter(), CalcMinZOrder(), CalcSBStuff(), CalcWindowVisRgn(), CancelInputState(), CBNcCreateHandler(), CheckOnTop(), CheckTopmost(), ChildMinMaxInfo(), ChildWindowFromPoint(), CkptRestore(), ClearHungFlag(), ClearWindowState(), CloseWindow(), ClrFTrueVis(), ComboBoxDBCharHandler(), ComboBoxWndProcWorker(), DDEMLClientWndProc(), DefDlgProcWorker(), DefFrameProcWorker(), DefMDIChildProcWorker(), DefWindowProcWorker(), DeleteFadeSprite(), DialogBox2(), DispatchMessageWorker(), DoPaint(), DoQueuedSyncPaint(), DrawIconCallBack(), DrawSize(), DWP_GetEnabledPopup(), DWP_SetHotKey(), ECCreate(), ECIsAncestorActive(), ECNcCreate(), EditWndProc(), EditWndProcWorker(), ExcludeWindowRects(), FAllowForegroundActivate(), FBadWindow(), FBitsTouch(), FindFakeMDIChild(), FindNCHit(), FindNCHitEx(), FIsParentDude(), FScrollEnabled(), FVisCountable(), GetActiveTrackPwnd(), GetAlignment(), GetCPD(), GetLastNonBottomMostWindow(), GetLastTopMostWindow(), GetLastTopMostWindowNoIME(), GetLayeredWindow(), GetMonitorMaxArea(), GetNCUpdateRgn(), GetParentDialog(), GetRealClientRect(), GetRect(), GetTopMostInsertAfter(), GetUpdateRect(), GetUpdateRgn(), GetWindowData(), GetWindowInfo(), GetWindowRgn(), GetWindowWord(), HitTestScrollBar(), HMChangeOwnerThread(), HotKeyToWindow(), ImeCheckTopmost(), ImeSetFutureOwner(), ImeSetTopmost(), ImeWndCreateHandler(), ImeWndProcWorker(), ImmRequestMessageWorker(), InternalCreateDialog(), InternalDialogBox(), InternalDoPaint(), InternalInvalidate2(), InternalInvalidate3(), IntersectWithParents(), InvalidateDce(), InvalidateGDIWindows(), Is31TrayWindow(), IsDialogMessageA(), IsDialogMessageW(), IsPushButton(), IsTooltipHittest(), IsTrayWindow(), IsVisible(), IsWindowUnicode(), LayerHitTest(), LinkWindow(), ListBoxWndProcWorker(), MBC_RightJustifyMenu(), MDIAddSysMenu(), MDIClientWndProcWorker(), MDICompleteChildCreation(), MDIRemoveSysMenu(), MDISetMenu(), MESSAGECALL(), MLChar(), MLKeyDown(), MLPaint(), MLScroll(), MNAnimate(), MNItemHitTest(), MNPositionSysMenu(), NextTopWindow(), NtUserGetWindowPlacement(), NtUserSetWindowPos(), NtUserShowWindow(), OffsetChildren(), OpenIcon(), ParentNeedsPaint(), ParkIcon(), PixieHack(), ProcessDDEMLInitiate(), PseudoDestroyClassWindows(), PWInsertAfter(), SelectWindowRgn(), SendMessageToUI(), SendMessageWorker(), SetDialogPointer(), SetHungFlag(), SetMinimize(), SetTopmost(), SetupFakeMDIAppStuff(), SetVisible(), SetWindowState(), SfnPOWERBROADCAST(), SizeBoxHwnd(), SizeRect(), SLChar(), SLEditWndProc(), SpeedHitTest(), StartTaskModalDialog(), StaticCallback(), StaticWndProcWorker(), SwpCalcVisRgn(), TrackBackground(), TrackLayeredZorder(), UnlockPopupMenuWindow(), UnmaximizeChildWindows(), UnsetLayeredWindow(), UpdateLayeredSprite(), UserGetClientRgn(), UserGetHwnd(), UserVisrgnFromHwnd(), UT_InvertCaret(), UT_NextGroupItem(), UT_PrevGroupItem(), ValidateDialogPwnd(), ValidateParents(), ValidatePositionableWindow(), ValidateWindowPos(), ValidateZorder(), WantImeWindow(), WinHelpA(), WPUpdateCheckPointSettings(), xxxActivateOnMinimize(), xxxActivateThisWindow(), xxxActivateWindow(), xxxAddFullScreen(), xxxAdjustSize(), xxxArrangeIconicWindows(), xxxBeginPaint(), xxxBNDrawText(), xxxBNInitDC(), xxxBNOwnerDraw(), xxxBNPaint(), xxxBNReleaseCapture(), xxxButtonDrawCheck(), xxxButtonDrawNewState(), xxxButtonEvent(), xxxCalcCaptionButton(), xxxCalcClientRect(), xxxCalcValidRects(), xxxCapture(), xxxCBCalcControlRects(), xxxCBCompleteEditWindow(), xxxCBCreateHandler(), xxxCBGetFocusHelper(), xxxCBGetTextHelper(), xxxCBHideListBoxWindow(), xxxCBInternalUpdateEditWindow(), xxxCBKillFocusHelper(), xxxCBPaint(), xxxCBShowListBoxWindow(), xxxCBUpdateListBoxWindow(), xxxCheckDefPushButton(), xxxCheckFullScreen(), xxxCheckImeShowStatus(), xxxCheckImeShowStatusInThread(), xxxChildResize(), xxxContScroll(), xxxCreateDefaultImeWindow(), xxxCreateTooltip(), xxxCreateWindowEx(), xxxDeactivate(), xxxDefWindowProc(), xxxDesktopRecalc(), xxxDesktopThread(), xxxDestroyWindow(), xxxDispatchMessage(), xxxDlgDirListHelper(), xxxDrawButton(), xxxDrawCaptionBar(), xxxDrawCaptionTemp(), xxxDrawDragRect(), xxxDrawMenuBarUnderlines(), xxxDrawWindowFrame(), xxxDWP_DoNCActivate(), xxxDWP_EraseBkgnd(), xxxDWP_NCMouse(), xxxDWP_Paint(), xxxDWP_SetCursor(), xxxDWP_SetRedraw(), xxxDWPPrint(), xxxEnableScrollBar(), xxxEnableWindow(), xxxEnableWndSBArrows(), xxxEndMenuLoop(), xxxEndPaint(), xxxEndScroll(), xxxExecute(), xxxFlashWindow(), xxxFocusSetInputContext(), xxxFreeWindow(), xxxFW_DestroyAllChildren(), xxxGetInitMenuParam(), xxxGetMenuBarInfo(), xxxGetMenuItemRect(), xxxGetSysMenuHandle(), xxxGetSystemMenu(), xxxGetTitleBarInfo(), xxxGetUpdateRect(), xxxGetWindowSmIcon(), xxxGotoNextMnem(), xxxHandleNCMouseGuys(), xxxHandleWindowPosChanged(), xxxHelpLoop(), xxxHotTrackMenu(), xxxHungAppDemon(), xxxInitActivateDlg(), xxxInitSendValidateMinMaxInfo(), xxxInternalDoSyncPaint(), xxxInternalUpdateWindow(), xxxInterSendMsgEx(), xxxKeyEvent(), xxxLBButtonUp(), xxxLBCreate(), xxxLBDrawLBItem(), xxxLBoxCtlDelete(), xxxLBoxCtlKeyInput(), xxxLBoxDrawItem(), xxxLBResetContent(), xxxLBSetCaret(), xxxLBSetFont(), xxxLBSize(), xxxMDIActivate(), xxxMDIDestroy(), xxxMDINext(), xxxMenuBarDraw(), xxxMenuWindowProc(), xxxMetricsRecalc(), xxxMinimizeHungWindow(), xxxMinMaximize(), xxxMNCancel(), xxxMNCloseHierarchy(), xxxMNCompute(), xxxMNDoubleClick(), xxxMNFindWindowFromPoint(), xxxMNInvertItem(), xxxMNKeyDown(), xxxMNKeyFilter(), xxxMNLoop(), xxxMNMouseMove(), xxxMNOpenHierarchy(), xxxMNPositionHierarchy(), xxxMNStartMenuState(), xxxMNSwitchToAlternateMenu(), xxxMouseActivate(), xxxMoveSize(), xxxMoveWindow(), xxxMS_TrackMove(), xxxNextWindow(), xxxNotifyImeShowStatus(), xxxOldNextWindow(), xxxOpenClipboard(), xxxPaintIconsInSwitchWindow(), xxxPaintSwitchWindow(), xxxProcessEventMessage(), xxxProcessHungThreadEvent(), xxxQueryDropObject(), xxxReceiveMessage(), xxxRecreateSmallIcons(), xxxRedrawHungWindow(), xxxRedrawTitle(), xxxRedrawWindow(), xxxRemoveDefaultButton(), xxxRemoveFullScreen(), xxxResetTooltip(), xxxRestoreDlgFocus(), xxxSBTrackInit(), xxxSBWndProc(), xxxScanSysQueue(), xxxScrollWindowEx(), xxxSendBSMtoDesktop(), xxxSendChildNCPaint(), xxxSendEraseBkgnd(), xxxSendFocusMessages(), xxxSendMessageCallback(), xxxSendMessageTimeout(), xxxSendNCPaint(), xxxSetClassIconEnum(), xxxSetFocus(), xxxSetInternalWindowPos(), xxxSetLayeredWindow(), xxxSetMenu(), xxxSetParent(), xxxSetScrollBar(), xxxSetShellWindow(), xxxSetStaticImage(), xxxSetSysMenu(), xxxSetSystemMenu(), xxxSetWindowData(), xxxSetWindowLongPtr(), xxxSetWindowPlacement(), xxxSetWindowPos(), xxxSetWindowStyle(), xxxShowOwnedWindows(), xxxShowSwitchWindow(), xxxShowTooltip(), xxxShowWindow(), xxxSimpleDoSyncPaint(), xxxSnapWindow(), xxxStaticLoadImage(), xxxStaticPaint(), xxxSwitchDesktop(), xxxSwitchToThisWindow(), xxxSysCommand(), xxxSystemTimerProc(), xxxTrackMouse(), xxxTrackPopupMenuEx(), xxxTranslateAccelerator(), xxxUpdateOtherThreadsWindows(), xxxUpdateTray(), xxxUpdateWindow2(), xxxWindowEvent(), xxxWindowHitTest2(), ZOrderByOwner2(), zzzActiveCursorTracking(), zzzBltValidBits(), zzzCancelJournalling(), zzzChangeStates(), and zzzInvalidateDCCache().

#define TestwndChild hwnd   )     (TestWF(hwnd, WFTYPEMASK) == LOBYTE(WFCHILD))
 

Definition at line 2561 of file client/nt6/user.h.

Referenced by _FChildVisible(), _GetChildControl(), _GetParent(), _GetWindowPlacement(), _IsChild(), ButtonWndProcWorker(), CalcForegroundInsertAfter(), DefWindowProcWorker(), FAllowForegroundActivate(), GetActiveTrackPwnd(), GetContextHelpId(), GetMenu(), GetTopLevelWindow(), GetWindowData(), InternalCreateDialog(), InternalDialogBox(), IsChildSameThread(), StaticWndProcWorker(), xxxActivateWindow(), xxxCalcClientRect(), xxxCalcValidRects(), xxxCheckFocus(), xxxCreateDefaultImeWindow(), xxxCreateWindowEx(), xxxDefWindowProc(), xxxDestroyWindow(), xxxDragObject(), xxxDrawMenuBar(), xxxDWP_NCMouse(), xxxFreeWindow(), xxxGetInitMenuParam(), xxxHelpLoop(), xxxMinMaximize(), xxxMNKeyFilter(), xxxMNStartMenuState(), xxxMouseActivate(), xxxSetFocus(), xxxSetMenu(), xxxSetParent(), xxxSetShellWindow(), xxxSetWindowData(), xxxSetWindowStyle(), xxxShowOwnedWindows(), xxxShowWindow(), xxxSimpleDoSyncPaint(), xxxSwpActivate(), and xxxWindowHitTest2().

#define TestwndFrameOn pwnd   )     (TestWF(pwnd, WFFRAMEON) && (GETPTI(pwnd)->pq == gpqForeground))
 

Definition at line 2571 of file client/nt6/user.h.

Referenced by xxxHungAppDemon(), xxxMenuBarDraw(), xxxRedrawHungWindow(), and xxxRedrawTitle().

#define TestwndHI hwnd   )     (TestwndTiled(hwnd) || TestwndIPopup(hwnd))
 

Definition at line 2566 of file client/nt6/user.h.

Referenced by xxxShowOwnedWindows().

#define TestwndIPopup hwnd   )     (TestWF(hwnd, WFTYPEMASK) == LOBYTE(WFICONICPOPUP))
 

Definition at line 2562 of file client/nt6/user.h.

#define TestwndNIPopup hwnd   )     (TestWF(hwnd, WFTYPEMASK) == LOBYTE(WFPOPUP))
 

Definition at line 2564 of file client/nt6/user.h.

#define TestwndPopup hwnd   )     (TestwndNIPopup(hwnd) || TestwndIPopup(hwnd))
 

Definition at line 2565 of file client/nt6/user.h.

Referenced by ECGetControlBrush(), xxxActivateWindow(), xxxCreateWindowEx(), xxxDefWindowProc(), and xxxGetControlBrush().

#define TestwndTiled hwnd   )     (TestWF(hwnd, WFTYPEMASK) == LOBYTE(WFTILED))
 

Definition at line 2563 of file client/nt6/user.h.

Referenced by _GetParent(), xxxAdjustSize(), and xxxCreateWindowEx().

#define TEXT_FN fn   )     fn##A
 

Definition at line 275 of file client/nt6/user.h.

Referenced by FindWindow(), FindWindowEx(), GetMenuItemInfo(), and GetMenuString().

#define TextPointer  )     ((LPWSTR)h)
 

Definition at line 3454 of file client/nt6/user.h.

Referenced by MNRecalcTabStrings(), xxxDrawMenuBarUnderlines(), xxxMNCompute(), xxxMNFindChar(), xxxMNItemSize(), and xxxRealDrawMenuItem().

 
#define THREAD_CODEPAGE  )     (GetClientInfo()->CodePage)
 

Definition at line 558 of file client/nt6/user.h.

Referenced by ComboBoxDBCharHandler(), ComboBoxWndProcWorker(), DefWindowProcWorker(), MESSAGECALL(), RtlMBMessageWParamCharToWCS(), RtlWCSMessageWParamCharToMB(), and xxxLBoxCtlCharInput().

#define TIF_16BIT   (UINT)0x00000002
 

Definition at line 2827 of file client/nt6/user.h.

Referenced by _FindWindowEx(), _GetClassInfoEx(), _ReplyMessage(), _WOWCleanup(), _WOWModuleUnload(), DirectedScheduleTask(), DispatchMessageWorker(), DT_GetExtentMinusPrefixes(), DWP_GetEnabledPopup(), FreeDDEHandle(), HMAllocObject(), HMChangeOwnerPheProcess(), HMValidateHandle(), HMValidateHandleNoSecure(), HMValidateSharedHandle(), InitiateShutdown(), InquireIme(), InternalSetTimer(), IsDialogMessageW(), LB_CreateLBLine(), LBlstrcmpi(), MenuLoadWinTemplates(), MESSAGECALL(), MsgWaitForMultipleObjectsEx(), PeekMessage(), ReceiverDied(), SetAppCompatFlags(), SetWakeBit(), SleepInputIdle(), TrackBackground(), UT_CaretSet(), xxxCallHook2(), xxxCreateWindowEx(), xxxDDETrackPostHook(), xxxDestroyThreadInfo(), xxxDirectedYield(), xxxDispatchMessage(), xxxDrawClipboard(), xxxInternalActivateKeyboardLayout(), xxxInternalGetMessage(), xxxInterSendMsgEx(), xxxOpenClipboard(), xxxPollAndWaitForSingleObject(), xxxQueryInformationThread(), xxxReceiveMessage(), xxxRegisterClassEx(), xxxScanSysQueue(), xxxSendClipboardMessage(), xxxSetActiveWindow(), xxxSetScrollBar(), xxxSleepTask(), xxxSleepThread(), xxxSysCommand(), xxxUserNotifyProcessCreate(), xxxUserYield(), zzzInitTask(), zzzRecalc2(), and zzzWakeInputIdle().

#define TIF_ALLOWFOREGROUNDACTIVATE   (UINT)0x00000020
 

Definition at line 2831 of file client/nt6/user.h.

Referenced by CalcForegroundInsertAfter(), CheckAllowForeground(), FRemoveForegroundActivate(), xxxActivateWindow(), xxxCreateThreadInfo(), xxxDragObject(), xxxEndDeferWindowPosEx(), xxxExecute(), xxxHardErrorControl(), xxxProcessEventMessage(), xxxSetForegroundWindow(), xxxSwpActivate(), and xxxUserNotifyProcessCreate().

#define TIF_ALLOWOTHERACCOUNTHOOK   (UINT)0x00800000
 

Definition at line 2849 of file client/nt6/user.h.

Referenced by xxxCallHook2(), xxxProcessNotifyWinEvent(), zzzSetDesktop(), and zzzSetWindowsHookEx().

#define TIF_ANSILENGTH   (UINT)0x10000000
 

Definition at line 2853 of file client/nt6/user.h.

#define TIF_CSRSSTHREAD   (UINT)0x00000008
 

Definition at line 2829 of file client/nt6/user.h.

Referenced by _CreateEmptyCursorObject(), CheckClipboardAccess(), FCallerOk(), InternalCreateMenu(), NtUserPostThreadMessage(), NtUserQueryWindow(), ResetSharedDesktops(), SetForegroundPriority(), xxxCallHook2(), xxxCreateThreadInfo(), xxxInternalActivateKeyboardLayout(), xxxInternalToUnicode(), xxxMouseActivate(), xxxNextWindow(), xxxProcessNotifyWinEvent(), xxxScanSysQueue(), xxxSendBSMtoDesktop(), xxxSetForegroundWindow(), and zzzSetWindowsHookEx().

#define TIF_DELAYEDEVENT   (UINT)0x00080000
 

Definition at line 2845 of file client/nt6/user.h.

Referenced by PeekMessage(), xxxInternalGetMessage(), and xxxScanSysQueue().

#define TIF_DISABLEHOOKS   (UINT)0x20000000
 

Definition at line 2855 of file client/nt6/user.h.

Referenced by xxxCallHook2(), xxxCreateDesktop(), xxxCreateWindowStation(), xxxDestroyWindow(), xxxMNOpenHierarchy(), and xxxWindowEvent().

#define TIF_DISABLEIME   (UINT)0x04000000
 

Definition at line 2851 of file client/nt6/user.h.

Referenced by CreateInputContext(), DefWindowProcWorker(), NtUserDisableThreadIme(), WantImeWindow(), xxxCreateDefaultImeWindow(), xxxCreateThreadInfo(), and xxxScanSysQueue().

#define TIF_DONTATTACHQUEUE   (UINT)0x00000040
 

Definition at line 2832 of file client/nt6/user.h.

Referenced by _RegisterTasklist(), xxxConsoleControl(), xxxCreateThreadInfo(), xxxDestroyThreadInfo(), zzzAttachThreadInput(), and zzzRegisterSystemThread().

#define TIF_DONTJOURNALATTACH   (UINT)0x00000080
 

Definition at line 2833 of file client/nt6/user.h.

Referenced by GetJournallingQueue(), RawInputThread(), zzzJournalAttach(), and zzzRegisterSystemThread().

#define TIF_DOSEMULATOR   (UINT)0x00020000
 

Definition at line 2843 of file client/nt6/user.h.

Referenced by ConnectToEmulator(), HandleFocusEvent(), UnregisterVDM(), and xxxCallHook2().

#define TIF_FIRSTIDLE   (UINT)0x00002000
 

Definition at line 2839 of file client/nt6/user.h.

Referenced by PeekMessage(), zzzInitTask(), and zzzWakeInputIdle().

#define TIF_GLOBALHOOKER   (UINT)0x00040000
 

Definition at line 2844 of file client/nt6/user.h.

Referenced by SetForegroundPriorityProcess(), zzzSetWindowsHookEx(), and zzzUnhookWindowsHookEx().

#define TIF_GUITHREADINITIALIZED   (UINT)0x02000000
 

Definition at line 2850 of file client/nt6/user.h.

Referenced by _PostThreadMessage(), _SetWinEventHook(), PtiFromThreadId(), and xxxCreateThreadInfo().

#define TIF_IGNOREPLAYBACKDELAY   (UINT)0x00400000
 

Definition at line 2848 of file client/nt6/user.h.

Referenced by xxxCallJournalPlaybackHook(), and xxxMNLoop().

#define TIF_INACTIVATEAPPMSG   (UINT)0x00000200
 

Definition at line 2835 of file client/nt6/user.h.

Referenced by xxxActivateThisWindow(), and xxxDeactivate().

#define TIF_INCLEANUP   (UINT)0x00000001
 

Definition at line 2826 of file client/nt6/user.h.

Referenced by _BlockInput(), _PostThreadMessage(), _SetWinEventHook(), FreeDdeConv(), FreeThreadsWindowHooks(), PostEventMessage(), PtiFromThreadId(), ReceiverDied(), UserThreadCallout(), WakeSomeone(), xxxCallHook2(), xxxCancelTracking(), xxxCheckImeShowStatus(), xxxCreateWindowEx(), xxxDDETrackPostHook(), xxxDeactivate(), xxxDestroyThreadInfo(), xxxDestroyWindow(), xxxDW_DestroyOwnedWindows(), xxxFocusSetInputContext(), xxxFreeListFree(), xxxFreeWindow(), xxxGetScrollMenu(), xxxGetSysMenuHandle(), xxxImmActivateAndUnloadThreadsLayout(), xxxImmActivateThreadsLayout(), xxxImmUnloadThreadsLayout(), xxxInternalActivateKeyboardLayout(), xxxInterSendMsgEx(), xxxProcessNotifyWinEvent(), xxxResetDisplayDevice(), xxxSetForegroundWindow2(), xxxSetIMEShowStatus(), xxxWindowEvent(), zzzDestroyQueue(), and zzzJournalAttach().

#define TIF_INGETTEXTLENGTH   (UINT)0x08000000
 

Definition at line 2852 of file client/nt6/user.h.

#define TIF_MOVESIZETRACKING   (UINT)0x00008000
 

Definition at line 2841 of file client/nt6/user.h.

Referenced by xxxDrawDragRect(), xxxDWP_DoCancelMode(), xxxMoveSize(), xxxReleaseCapture(), xxxScanSysQueue(), and zzzInvalidateDCCache().

#define TIF_PALETTEAWARE   (UINT)0x00000800
 

Definition at line 2837 of file client/nt6/user.h.

Referenced by _SelectPalette(), InitiateWin32kCleanup(), and xxxDestroyThreadInfo().

#define TIF_RESTRICTED   (UINT)0x40000000
 

Definition at line 2857 of file client/nt6/user.h.

Referenced by GetDesktopWindow(), GetParent(), PrepareForLogoff(), SetProcessFlags(), and xxxCreateThreadInfo().

#define TIF_SHAREDWOW   (UINT)0x00001000
 

Definition at line 2838 of file client/nt6/user.h.

Referenced by SleepInputIdle(), xxxSleepTask(), zzzInitTask(), and zzzWakeInputIdle().

#define TIF_SPINNING   (UINT)0x00000400
 

Definition at line 2836 of file client/nt6/user.h.

Referenced by CheckProcessForeground(), NtUserYieldTask(), PeekMessage(), xxxGetInputEvent(), xxxInternalGetMessage(), xxxMsgWaitForMultipleObjects(), xxxReadPostMessage(), xxxScanSysQueue(), and xxxSleepThread().

#define TIF_SYSTEMTHREAD   (UINT)0x00000004
 

Definition at line 2828 of file client/nt6/user.h.

Referenced by _CreateEmptyCursorObject(), DoPaint(), FCallerOk(), InternalRegisterClassEx(), PlayEventSound(), ResetSharedDesktops(), SetForegroundPriority(), ValidateHwnd(), xxxCallHook2(), xxxCreateThreadInfo(), xxxDestroyThreadInfo(), xxxDispatchMessage(), xxxGetScrollMenu(), xxxGetSysMenuHandle(), xxxMessageBeep(), xxxMinMaximize(), xxxNextWindow(), xxxProcessNotifyWinEvent(), xxxSetForegroundWindow(), xxxWaitForInputIdle(), and zzzSetWindowsHookEx().

#define TIF_TRACKRECTVISIBLE   (UINT)0x00000010
 

Definition at line 2830 of file client/nt6/user.h.

Referenced by xxxCancelTrackingForThread(), xxxMoveSize(), xxxMS_TrackMove(), xxxReleaseCapture(), and xxxTrackInitSize().

#define TIF_VDMAPP   (UINT)0x00010000
 

Definition at line 2842 of file client/nt6/user.h.

Referenced by HandleFocusEvent(), SrvRegisterConsoleVDM(), and UnregisterVDM().

#define TIF_WAITFORINPUTIDLE   (UINT)0x00004000
 

Definition at line 2840 of file client/nt6/user.h.

Referenced by PeekMessage(), xxxCreateThreadInfo(), and xxxWaitForInputIdle().

#define TOGGLE_FLAG field,
flag   )     ((field ^= (flag))
 

Definition at line 157 of file client/nt6/user.h.

#define TOGGLE_PUSIF  )     TOGGLE_FLAG(gpsi->PUSIFlags, f)
 

Definition at line 1081 of file client/nt6/user.h.

#define TOGGLE_RIPF  )     do{UserAssert(gpsi); TOGGLE_FLAG(gpsi->wRIPFlags, f);}while (FALSE)
 

Definition at line 1181 of file client/nt6/user.h.

#define TOGGLE_SRVIF  )     TOGGLE_FLAG(gpsi->wSRVIFlags, f)
 

Definition at line 1155 of file client/nt6/user.h.

#define ToggleKeyToggleBit pb,
vk   )     (pb[vk >> 2] ^= (1 << (((vk & 3) << 1) + 1)))
 

Definition at line 2946 of file client/nt6/user.h.

#define TOOLTIPCLASS   MAKEINTATOM(0x8006)
 

Definition at line 294 of file client/nt6/user.h.

Referenced by LW_RegisterWindows(), SetupClassAtoms(), and xxxCreateDesktop().

#define TYPE_ACCELTABLE   8
 

Definition at line 913 of file client/nt6/user.h.

Referenced by _CreateAcceleratorTable(), AddAccResource(), FindAccResource(), and HMValidateHandle().

#define TYPE_CALLPROC   7
 

Definition at line 912 of file client/nt6/user.h.

Referenced by _SetWindowLongPtr(), _WOWCleanup(), CallWindowProcAorW(), FreeDesktop(), GetCPD(), xxxRegisterClassEx(), xxxSetClassData(), xxxSetWindowData(), and xxxWrapCallWindowProc().

#define TYPE_CLIPDATA   6
 

Definition at line 911 of file client/nt6/user.h.

Referenced by _ConvertMemHandle(), MungeClipData(), NtUserCreateLocalMemHandle(), UT_FreeCBFormat(), xxxGetDummyBitmap(), xxxGetDummyDib(), xxxGetDummyDibV5(), and xxxGetDummyPalette().

#define TYPE_CTYPES   18
 

Definition at line 924 of file client/nt6/user.h.

Referenced by _QueryUserHandles(), DumpConvInfo(), FixKernelPointer(), HMInitHandleTable(), and NtUserQueryUserCounters().

#define TYPE_CURSOR   3
 

Definition at line 908 of file client/nt6/user.h.

Referenced by _CreateEmptyCursorObject(), _SetCursorIconData(), DestroyProcessesObjects(), DestroyWindowSmIcon(), DrawIconCallBack(), DWP_GetIcon(), HMChangeOwnerPheProcess(), HMValidateHandle(), SetClassCursor(), UnlinkCursor(), ValidateAndLockCursor(), xxxCreateWindowSmIcon(), xxxDWP_SetIcon(), xxxGetWindowSmIcon(), xxxPaintIconsInSwitchWindow(), and xxxQueryDropObject().

#define TYPE_DDEACCESS   9
 

Definition at line 914 of file client/nt6/user.h.

Referenced by _CsDdeUninitialize(), _CsUpdateInstance(), xxxCsDdeInitialize(), and xxxEventWndProc().

#define TYPE_DDECONV   10
 

Definition at line 915 of file client/nt6/user.h.

Referenced by AnticipatePost(), FreeDdeXact(), and NewConversation().

#define TYPE_DDEXACT   11
 

Definition at line 916 of file client/nt6/user.h.

Referenced by AnticipatePost(), Createpxs(), FindQMsg(), FreeDdeXact(), PopState(), and xxxDDETrackGetMessageHook().

#define TYPE_FREE   0
 

Definition at line 905 of file client/nt6/user.h.

Referenced by _WOWCleanup(), DestroyHandleTableObjects(), DestroyProcessesObjects(), DestroyThreadsObjects(), HMDestroyUnlockedObject(), HMFreeObject(), HMGrowHandleTable(), HMInitHandleTable(), MarkThreadsObjects(), and xxxUserProcessCallout().

#define TYPE_GENERIC   255
 

Definition at line 926 of file client/nt6/user.h.

Referenced by _MapDesktopObject(), HMAssignmentLock(), NtUserUserHandleGrantAccess(), and ValidateHandleSecure().

#define TYPE_HOOK   5
 

Definition at line 910 of file client/nt6/user.h.

Referenced by FreeDesktop(), HMChangeOwnerThread(), HMValidateHandle(), and zzzSetWindowsHookEx().

#define TYPE_INPUTCONTEXT   17
 

Definition at line 922 of file client/nt6/user.h.

Referenced by CreateInputContext(), DestroyInputContext(), ImeIsUsableContext(), ImeMarkUsedContext(), ImmCallImeConsoleIME(), and ImmLockClientImc().

#define TYPE_KBDFILE   14
 

Definition at line 919 of file client/nt6/user.h.

Referenced by LoadKeyboardLayoutFile().

#define TYPE_KBDLAYOUT   13
 

Definition at line 918 of file client/nt6/user.h.

Referenced by xxxLoadKeyboardLayoutEx().

#define TYPE_MENU   2
 

Definition at line 907 of file client/nt6/user.h.

Referenced by DestroyThreadsObjects(), FreeDesktop(), HMValidateHandle(), Idhe(), InternalCreateMenu(), IsMenu(), MenuRecalc(), and ValidateHmenu().

#define TYPE_MONITOR   12
 

Definition at line 917 of file client/nt6/user.h.

Referenced by CreateMonitor(), HMValidateHandle(), HMValidateHandleNoRip(), HMValidateHandleNoSecure(), HMValidateSharedHandle(), and ValidateHmonitor().

#define TYPE_SETWINDOWPOS   4
 

Definition at line 909 of file client/nt6/user.h.

Referenced by _BeginDeferWindowPos(), and HMValidateHandle().

#define TYPE_TIMER   16
 

Definition at line 921 of file client/nt6/user.h.

Referenced by InternalSetTimer().

#define TYPE_WINDOW   1
 

Definition at line 906 of file client/nt6/user.h.

Referenced by _WOWCleanup(), _WOWModuleUnload(), FreeDesktop(), GetFullUserHandle(), HMAllocObject(), HMChangeOwnerThread(), HMValidateHandle(), PatchThreadWindows(), ProcessRegistrationMessage(), PtiWindow(), ValidateHwnd(), ValidateHwndNoRip(), xxxCreateWindowEx(), and xxxRealDrawMenuItem().

#define TYPE_WINEVENTHOOK   15
 

Definition at line 920 of file client/nt6/user.h.

Referenced by _SetWinEventHook().

#define USER_MAJOR_VERSION   0x0005
 

Definition at line 1302 of file client/nt6/user.h.

#define USER_MINOR_VERSION   0x0000
 

Definition at line 1303 of file client/nt6/user.h.

#define USER_SOUND_CLOSE   8
 

Definition at line 3565 of file client/nt6/user.h.

Referenced by DestroyProcessInfo().

#define USER_SOUND_DEFAULT   0
 

Definition at line 3557 of file client/nt6/user.h.

Referenced by xxxMessageBeep().

#define USER_SOUND_MAX   13
 

Definition at line 3570 of file client/nt6/user.h.

Referenced by SoftModalMessageBox().

#define USER_SOUND_MAXIMIZE   12
 

Definition at line 3569 of file client/nt6/user.h.

Referenced by xxxSysCommand().

#define USER_SOUND_MENUCOMMAND   6
 

Definition at line 3563 of file client/nt6/user.h.

Referenced by xxxMNCancel().

#define USER_SOUND_MENUPOPUP   5
 

Definition at line 3562 of file client/nt6/user.h.

Referenced by xxxMenuWindowProc(), xxxMNOpenHierarchy(), and xxxTrackPopupMenuEx().

#define USER_SOUND_MINIMIZE   11
 

Definition at line 3568 of file client/nt6/user.h.

Referenced by xxxSysCommand().

#define USER_SOUND_OPEN   7
 

Definition at line 3564 of file client/nt6/user.h.

Referenced by ConsolePlaySound(), and xxxCreateThreadInfo().

#define USER_SOUND_RESTOREDOWN   10
 

Definition at line 3567 of file client/nt6/user.h.

Referenced by xxxSysCommand().

#define USER_SOUND_RESTOREUP   9
 

Definition at line 3566 of file client/nt6/user.h.

Referenced by xxxSysCommand().

#define USER_SOUND_SYSTEMASTERISK   4
 

Definition at line 3561 of file client/nt6/user.h.

Referenced by xxxMessageBeep().

#define USER_SOUND_SYSTEMEXCLAMATION   3
 

Definition at line 3560 of file client/nt6/user.h.

Referenced by xxxMessageBeep().

#define USER_SOUND_SYSTEMHAND   1
 

Definition at line 3558 of file client/nt6/user.h.

Referenced by xxxMessageBeep().

#define USER_SOUND_SYSTEMQUESTION   2
 

Definition at line 3559 of file client/nt6/user.h.

Referenced by xxxMessageBeep().

#define USERCURRENTVERSION   MAKELONG(USER_MINOR_VERSION, USER_MAJOR_VERSION)
 

Definition at line 1305 of file client/nt6/user.h.

Referenced by ClientThreadSetup(), DrvDriverFailure(), NtUserInitialize(), NtUserProcessConnect(), UserClientDllInitialize(), and UserServerDllInitialization().

#define UTCHAR   UCHAR
 

Definition at line 41 of file client/nt6/user.h.

Referenced by _PrintInxClause(), FindMnemChar(), Idimc(), InternalCreateDialog(), LoadStringExW(), and LoadStringOrError().

#define VER30   0x0300
 

Definition at line 477 of file client/nt6/user.h.

Referenced by GetWindowInfo().

#define VER31   0x030A
 

Definition at line 476 of file client/nt6/user.h.

Referenced by GetWindowInfo(), SetAppImeCompatFlags(), SoftModalMessageBox(), xxxCreateDesktop(), xxxCreateWindowStation(), and xxxCsDdeInitialize().

#define VER40   0x0400
 

Definition at line 475 of file client/nt6/user.h.

Referenced by _AdjustWindowRectEx(), _CreateWindowEx(), _GetClassInfoEx(), BMPtoDIB(), CreateMDIChild(), DefWindowProcWorker(), DispatchMessageWorker(), DrawTextExWorker(), ECGetBrush(), ECSetFont(), GetSizeDialogTemplate(), GetSystemMetrics(), GetWindowInfo(), ImmGenerateMessage(), ImmPostMessages(), ImmSetCompositionFontA(), ImmSetCompositionFontW(), InternalCreateDialog(), InternalRegisterClassEx(), LoadBmp(), LoadIcoCur(), LoadImageW(), MessageBoxWorker(), MLKeyDown(), NtUserCreateWindowEx(), NtUserSystemParametersInfo(), SendOpenStatusNotify(), xxxButtonEvent(), xxxCBShowListBoxWindow(), xxxCreateDefaultImeWindow(), xxxCreateThreadInfo(), xxxDDETrackPostHook(), xxxDDETrackWindowDying(), xxxDrawMenuBarUnderlines(), xxxDrawMenuItemText(), xxxInternalToUnicode(), xxxMenuBarDraw(), xxxMenuDraw(), xxxMenuWindowProc(), xxxMNCompute(), xxxMouseEventDirect(), xxxNextWindow(), xxxOldNextWindow(), xxxRealDrawMenuItem(), xxxSendOpenStatusNotify(), xxxSetWindowStyle(), and zzzHideCursorNoCapture().

#define VER50   0x0500
 

Definition at line 474 of file client/nt6/user.h.

Referenced by ECInsertText(), and GetWindowInfo().

#define WEFACCEPTFILES   0x0810
 

Definition at line 2361 of file client/nt6/user.h.

Referenced by xxxDefWindowProc().

#define WEFAPPWINDOW   0x0A04
 

Definition at line 2379 of file client/nt6/user.h.

Referenced by _IsTaskWindow(), _RemoveNonTaskWindows(), IsTrayWindow(), and xxxCreateWindowEx().

#define WEFCLIENTEDGE   0x0902
 

Definition at line 2366 of file client/nt6/user.h.

Referenced by CBNcCreateHandler(), FindNCHit(), and xxxCalcClientRect().

#define WEFCONTEXTHELP   0x0904
 

Definition at line 2368 of file client/nt6/user.h.

Referenced by FindNCHit(), xxxCalcCaptionButton(), xxxDrawCaptionBar(), xxxGetTitleBarInfo(), and xxxInitSendValidateMinMaxInfo().

#define WEFCONTROLPARENT   0x0A01
 

Definition at line 2377 of file client/nt6/user.h.

Referenced by _GetChildControl(), _NextControl(), _NextSibblingOrAncestor(), _PrevControl(), _RemoveNonTaskWindows(), DefDlgProcWorker(), FIsParentDude(), GetParentDialog(), IsDialogMessageA(), IsDialogMessageW(), xxxCheckDefPushButton(), and xxxRemoveDefaultButton().

#define WEFDLGMODALFRAME   0x0801
 

Definition at line 2357 of file client/nt6/user.h.

Referenced by _HasCaptionIcon(), FindNCHit(), SLEditWndProc(), xxxDrawCaptionBar(), xxxDrawWindowFrame(), and xxxSetSysMenu().

#define WEFDRAGOBJECT   0x0802
 

Definition at line 2358 of file client/nt6/user.h.

Referenced by xxxTrackMouse().

#define WEFEDGEMASK   0x0903
 

Definition at line 2367 of file client/nt6/user.h.

Referenced by CBNcCreateHandler(), ECNcCreate(), xxxDrawCaptionBar(), and xxxMenuBarDraw().

#define WEFLEFTSCROLL   0x0940
 

Definition at line 2374 of file client/nt6/user.h.

Referenced by CalcSBStuff(), DrawSize(), FindNCHit(), and xxxCalcClientRect().

#define WEFMDICHILD   0x0840
 

Definition at line 2363 of file client/nt6/user.h.

Referenced by xxxGetWindowSmIcon().

#define WEFNOPARENTNOTIFY   0x0804
 

Definition at line 2359 of file client/nt6/user.h.

Referenced by xxxCreateWindowEx(), xxxDestroyWindow(), and xxxMouseActivate().

#define WEFRIGHT   0x0910
 

Definition at line 2372 of file client/nt6/user.h.

Referenced by ButtonWndProcWorker(), ComboBoxWndProcWorker(), ECCreate(), ListBoxWndProcWorker(), StaticWndProcWorker(), xxxCBCreateHandler(), xxxDrawCaptionTemp(), and xxxLBCreate().

#define WEFROUNDFRAME   0x0A08
 

Definition at line 2380 of file client/nt6/user.h.

#define WEFRTLREADING   0x0920
 

Definition at line 2373 of file client/nt6/user.h.

Referenced by BNReleaseDC(), ComboBoxWndProcWorker(), IsDialogMessageW(), ListBoxWndProcWorker(), xxxBNInitDC(), xxxCBCreateHandler(), xxxDrawCaptionTemp(), xxxLBCreate(), xxxMNStartMenuState(), and xxxStaticPaint().

#define WEFSTATICEDGE   0x0A02
 

Definition at line 2378 of file client/nt6/user.h.

Referenced by StaticWndProcWorker(), xxxDrawCaptionBar(), and xxxDrawWindowFrame().

#define WEFTOOLWINDOW   0x0880
 

Definition at line 2364 of file client/nt6/user.h.

Referenced by _GetNextQueueWindow(), _GetWindowPlacement(), _HasCaptionIcon(), _IsTaskWindow(), _RemoveNonTaskWindows(), _SelectPalette(), FindNCHit(), Is31TrayWindow(), IsTrayWindow(), MNPositionSysMenu(), NextTopWindow(), ValidatePositionableWindow(), xxxActivateOnMinimize(), xxxCalcCaptionButton(), xxxCalcValidRects(), xxxCheckFullScreen(), xxxCreateWindowEx(), xxxDesktopRecalc(), xxxDrawCaptionBar(), xxxGetMenuBarInfo(), xxxGetTitleBarInfo(), xxxInitSendValidateMinMaxInfo(), xxxMoveSize(), xxxMS_TrackMove(), xxxSetSysMenu(), xxxSetWindowPlacement(), and xxxUpdateTray().

#define WEFTOPMOST   0x0808
 

Definition at line 2360 of file client/nt6/user.h.

Referenced by _GetNextQueueWindow(), _GetWindow(), CalcForegroundInsertAfter(), CalcMinZOrder(), CheckOnTop(), CheckTopmost(), GetLastTopMostWindow(), GetLastTopMostWindowNoIME(), GetTopMostInsertAfter(), ImeCheckTopmost(), ImeSetTopmost(), ImeSetTopmostChild(), LinkWindow(), SetTopmost(), TrackBackground(), ValidatePositionableWindow(), ValidateZorder(), xxxCalcValidRects(), xxxCreateWindowEx(), xxxMNOpenHierarchy(), xxxMouseActivate(), xxxMoveSize(), xxxMS_TrackMove(), xxxNextWindow(), xxxOldNextWindow(), xxxSetParent(), xxxSetShellWindow(), xxxSwitchToThisWindow(), and zzzChangeStates().

#define WEFTRANSPARENT   0x0820
 

Definition at line 2362 of file client/nt6/user.h.

Referenced by _ChildWindowFromPointEx(), ExcludeWindowRects(), InternalDoPaint(), InternalInvalidate2(), InternalInvalidate3(), LayerHitTest(), xxxCalcValidRects(), xxxInternalUpdateWindow(), and xxxUpdateWindow2().

#define WEFWINDOWEDGE   0x0901
 

Definition at line 2365 of file client/nt6/user.h.

Referenced by xxxCreateWindowEx(), xxxDrawCaptionBar(), xxxDrawWindowFrame(), and xxxSetWindowStyle().

#define WFALWAYSSENDNCPAINT   0x0640
 

Definition at line 2337 of file client/nt6/user.h.

Referenced by InternalInvalidate2(), and xxxCreateWindowEx().

#define WFANSICREATOR   0x0320
 

Definition at line 2302 of file client/nt6/user.h.

Referenced by DefWindowProcWorker(), ECNcCreate(), EditWndProcWorker(), xxxCBCreateHandler(), xxxCreateWindowEx(), and xxxDefWindowProc().

#define WFANSIPROC   0x0208
 

Definition at line 2286 of file client/nt6/user.h.

Referenced by ComboBoxDBCharHandler(), DDEMLClientWndProc(), DispatchMessageWorker(), GetCPD(), GetWindowData(), ImmRequestMessageWorker(), IsWindowUnicode(), MESSAGECALL(), PatchThreadWindows(), ProcessDDEMLInitiate(), SendMessageWorker(), xxxCBCompleteEditWindow(), xxxCBGetFocusHelper(), xxxCBInternalUpdateEditWindow(), xxxCBKillFocusHelper(), xxxCreateWindowEx(), xxxDispatchMessage(), xxxExecute(), and xxxSetWindowData().

#define WFANYHUNGREDRAW   0x0318
 

Definition at line 2300 of file client/nt6/user.h.

Referenced by ClearHungFlag(), and SetHungFlag().

#define WFBEINGACTIVATED   0x0210
 

Definition at line 2287 of file client/nt6/user.h.

Referenced by xxxActivateThisWindow().

#define WFBORDER   0x0E80
 

Definition at line 2410 of file client/nt6/user.h.

Referenced by CBNcCreateHandler(), ECNcCreate(), and xxxCreateWindowEx().

#define WFBORDERMASK   0x0EC0
 

Definition at line 2411 of file client/nt6/user.h.

Referenced by _HasCaptionIcon(), DefFrameProcWorker(), FindNCHit(), PixieHack(), xxxCalcClientRect(), xxxCheckFullScreen(), xxxDrawCaptionBar(), xxxDrawWindowFrame(), xxxGetTitleBarInfo(), xxxRedrawTitle(), xxxSetSysMenu(), xxxSetWindowPos(), and xxxShowWindow().

#define WFBOTTOMMOST   0x0420
 

Definition at line 2310 of file client/nt6/user.h.

Referenced by _DeferWindowPos(), _GetNextQueueWindow(), CalcForegroundInsertAfter(), CalcMinZOrder(), GetLastNonBottomMostWindow(), ImeSetFutureOwner(), ImeSetTopmost(), LinkWindow(), ValidateZorder(), xxxActivateWindow(), xxxCalcValidRects(), xxxSetShellWindow(), xxxSwitchToThisWindow(), and ZOrderByOwner2().

#define WFCAPTION   0x0EC0
 

Definition at line 2412 of file client/nt6/user.h.

Referenced by DefFrameProcWorker(), FindNCHit(), PixieHack(), xxxCalcClientRect(), xxxCheckFullScreen(), xxxCreateWindowEx(), xxxGetTitleBarInfo(), xxxInitSendValidateMinMaxInfo(), xxxRedrawTitle(), xxxSetWindowPos(), and xxxShowWindow().

#define WFCEPRESENT   0x0410
 

Definition at line 2309 of file client/nt6/user.h.

Referenced by xxxCalcClientRect(), and xxxDrawWindowFrame().

#define WFCHILD   0x0F40
 

Definition at line 2421 of file client/nt6/user.h.

Referenced by DoQueuedSyncPaint(), DWP_SetHotKey(), ECIsAncestorActive(), FindFakeMDIChild(), GetParentDialog(), GetRect(), ImeSetFutureOwner(), InternalCreateDialog(), IsDialogMessageA(), IsDialogMessageW(), SizeBoxHwnd(), SizeRect(), ValidateParents(), xxxActivateThisWindow(), xxxAddFullScreen(), xxxCalcValidRects(), xxxCheckFullScreen(), xxxCreateWindowEx(), xxxDestroyWindow(), xxxDWP_EraseBkgnd(), xxxGetMenuBarInfo(), xxxInternalDoSyncPaint(), xxxKeyEvent(), xxxMetricsRecalc(), xxxMinMaximize(), xxxMNKeyDown(), xxxNextWindow(), xxxProcessEventMessage(), xxxSetParent(), xxxSetSysMenu(), xxxSetWindowPos(), xxxSetWindowStyle(), xxxSnapWindow(), xxxSysCommand(), and xxxTranslateAccelerator().

#define WFCLIPCHILDREN   0x0F02
 

Definition at line 2416 of file client/nt6/user.h.

Referenced by _GetDCEx(), AnimateWindow(), DoPaint(), DoQueuedSyncPaint(), InternalInvalidate2(), InvalidateDce(), ParentNeedsPaint(), PixieHack(), UserGetHwnd(), ValidateParents(), xxxCreateWindowEx(), xxxInternalDoSyncPaint(), xxxRedrawHungWindow(), xxxScrollWindowEx(), xxxUpdateOtherThreadsWindows(), zzzBltValidBits(), and zzzInvalidateDCCache().

#define WFCLIPSIBLINGS   0x0F04
 

Definition at line 2417 of file client/nt6/user.h.

Referenced by _GetDCEx(), CalcWindowVisRgn(), InternalInvalidate2(), InvalidateDce(), InvalidateGDIWindows(), SwpCalcVisRgn(), UserGetClientRgn(), UserGetHwnd(), UserVisrgnFromHwnd(), xxxCreateWindowEx(), xxxRedrawHungWindow(), xxxSetParent(), and zzzInvalidateDCCache().

#define WFCLOSEBUTTONDOWN   0x0510
 

Definition at line 2326 of file client/nt6/user.h.

Referenced by xxxGetTitleBarInfo(), and xxxTrackCaptionButton().

#define WFCPRESENT   0x0008
 

Definition at line 2262 of file client/nt6/user.h.

Referenced by ECIsAncestorActive(), GetMonitorMaxArea(), SizeBoxHwnd(), ValidatePositionableWindow(), xxxCalcClientRect(), xxxDrawCaptionBar(), xxxGetMenuBarInfo(), xxxGetTitleBarInfo(), xxxInitSendValidateMinMaxInfo(), xxxMetricsRecalc(), and xxxSetWindowStyle().

#define WFDESTROYED   0x0380
 

Definition at line 2304 of file client/nt6/user.h.

Referenced by CalcWindowVisRgn(), FVisCountable(), HMChangeOwnerThread(), ImeWndProcWorker(), LinkWindow(), PWInsertAfter(), SendMessageToUI(), SetVisible(), UnlockPopupMenuWindow(), ValidateWindowPos(), ValidateZorder(), xxxActivateThisWindow(), xxxCreateWindowEx(), xxxDestroyWindow(), xxxFocusSetInputContext(), xxxFW_DestroyAllChildren(), xxxOpenClipboard(), xxxRedrawHungWindow(), xxxSendFocusMessages(), xxxSetParent(), xxxSetWindowLongPtr(), xxxTrackPopupMenuEx(), and xxxWindowEvent().

#define WFDIALOGWINDOW   0x0201
 

Definition at line 2282 of file client/nt6/user.h.

Referenced by _GetWindowLongPtr(), _SetWindowLongPtr(), _SetWindowWord(), DefDlgProcWorker(), FIsParentDude(), GetParentDialog(), GetWindowWord(), SetDialogPointer(), ValidateDialogPwnd(), xxxRedrawHungWindow(), and xxxSetWindowLongPtr().

#define WFDISABLED   0x0F08
 

Definition at line 2418 of file client/nt6/user.h.

Referenced by _ChildWindowFromPointEx(), _GetNextDlgGroupItem(), _GetNextQueueWindow(), _IsTaskWindow(), _NextControl(), ComboBoxWndProcWorker(), DefDlgProcWorker(), DWP_GetEnabledPopup(), ECNcCreate(), FBadWindow(), GetActiveTrackPwnd(), ImeWndCreateHandler(), InternalDialogBox(), IsDialogMessageW(), MDISetMenu(), NextTopWindow(), StartTaskModalDialog(), ValidatePositionableWindow(), xxxActivateOnMinimize(), xxxBNDrawText(), xxxBNOwnerDraw(), xxxBNPaint(), xxxButtonDrawCheck(), xxxCBCreateHandler(), xxxCBInternalUpdateEditWindow(), xxxCBPaint(), xxxCheckDefPushButton(), xxxDefWindowProc(), xxxEnableScrollBar(), xxxEnableWindow(), xxxGotoNextMnem(), xxxHelpLoop(), xxxInitActivateDlg(), xxxLBDrawLBItem(), xxxLBoxDrawItem(), xxxMDIActivate(), xxxMDINext(), xxxMouseActivate(), xxxQueryDropObject(), xxxSetFocus(), xxxShowOwnedWindows(), xxxStaticPaint(), xxxSysCommand(), xxxTranslateAccelerator(), xxxWindowHitTest2(), and zzzCancelJournalling().

#define WFDLGFRAME   0x0E40
 

Definition at line 2408 of file client/nt6/user.h.

Referenced by _HasCaptionIcon(), FindNCHit(), and xxxSetSysMenu().

#define WFDONTVALIDATE   0x0402
 

Definition at line 2306 of file client/nt6/user.h.

Referenced by InternalInvalidate3(), xxxBeginPaint(), and xxxEndPaint().

#define WFERASEBKGND   0x0104
 

Definition at line 2271 of file client/nt6/user.h.

Referenced by xxxBeginPaint(), xxxSendEraseBkgnd(), and xxxSimpleDoSyncPaint().

#define WFFRAMEON   0x0040
 

Definition at line 2267 of file client/nt6/user.h.

Referenced by ECIsAncestorActive(), GetWindowInfo(), xxxActivateThisWindow(), xxxDeactivate(), xxxDefWindowProc(), xxxDrawWindowFrame(), xxxDWP_DoNCActivate(), xxxDWPPrint(), xxxEndMenuLoop(), xxxFlashWindow(), xxxMDIActivate(), xxxSendNCPaint(), and zzzChangeStates().

#define WFFRAMEPRESENTMASK   0x000F
 

Definition at line 2263 of file client/nt6/user.h.

Referenced by xxxCalcClientRect().

#define WFFULLSCREEN   0x0440
 

Definition at line 2311 of file client/nt6/user.h.

Referenced by xxxAddFullScreen(), xxxCheckFullScreen(), xxxDesktopRecalc(), xxxRemoveFullScreen(), and zzzChangeStates().

#define WFFULLSCREENBASE   0x0700
 

Definition at line 2343 of file client/nt6/user.h.

#define WFFULLSCREENMASK   0x0707
 

Definition at line 2344 of file client/nt6/user.h.

#define WFGOTQUERYSUSPENDMSG   0x0301
 

Definition at line 2291 of file client/nt6/user.h.

Referenced by SfnPOWERBROADCAST().

#define WFGOTSUSPENDMSG   0x0302
 

Definition at line 2292 of file client/nt6/user.h.

Referenced by SfnPOWERBROADCAST().

#define WFGROUP   0x0E02
 

Definition at line 2403 of file client/nt6/user.h.

Referenced by UT_NextGroupItem(), and UT_PrevGroupItem().

#define WFHASPALETTE   0x0220
 

Definition at line 2288 of file client/nt6/user.h.

Referenced by _SelectPalette(), xxxDestroyWindow(), xxxFreeWindow(), and xxxMinMaximize().

#define WFHASSPB   0x0080
 

Definition at line 2268 of file client/nt6/user.h.

Referenced by CreateSpb(), FreeSpb(), OffsetChildren(), xxxDrawDragRect(), xxxFreeWindow(), and zzzBltValidBits().

#define WFHELPBUTTONDOWN   0x0580
 

Definition at line 2329 of file client/nt6/user.h.

Referenced by xxxGetTitleBarInfo(), xxxHelpLoop(), and xxxTrackCaptionButton().

#define WFHIDDENPOPUP   0x0140
 

Definition at line 2275 of file client/nt6/user.h.

Referenced by xxxDefWindowProc(), and xxxShowOwnedWindows().

#define WFHPRESENT   0x0004
 

Definition at line 2261 of file client/nt6/user.h.

Referenced by _GetScrollBarInfo(), CalcSBStuff(), FindNCHit(), FindNCHitEx(), FScrollEnabled(), GetRealClientRect(), SLEditWndProc(), xxxCalcClientRect(), xxxDrawWindowFrame(), xxxEnableWndSBArrows(), and xxxSetScrollBar().

#define WFHSCROLL   0x0E10
 

Definition at line 2406 of file client/nt6/user.h.

Referenced by _GetScrollBarInfo(), CalcClientScrolling(), CBNcCreateHandler(), MDIClientWndProcWorker(), MLCreate(), MLScroll(), xxxCalcClientRect(), xxxDefWindowProc(), xxxLBoxCtlKeyInput(), and xxxSetScrollBar().

#define WFICONIC   WFMINIMIZED
 

Definition at line 2425 of file client/nt6/user.h.

Referenced by xxxTranslateAccelerator().

#define WFICONICPOPUP   0x0FC0
 

Definition at line 2424 of file client/nt6/user.h.

#define WFINDESTROY   0x0480
 

Definition at line 2312 of file client/nt6/user.h.

Referenced by ImeSetFutureOwner(), ImeWndProcWorker(), NtUserSetWindowPos(), NtUserShowWindow(), SendMessageToUI(), SetVisible(), xxxButtonEvent(), xxxCheckImeShowStatus(), xxxCheckImeShowStatusInThread(), xxxDestroyWindow(), xxxFreeWindow(), xxxNotifyImeShowStatus(), xxxProcessEventMessage(), and xxxSetWindowStyle().

#define WFINTERNALPAINT   0x0110
 

Definition at line 2273 of file client/nt6/user.h.

Referenced by ClrFTrueVis(), DoPaint(), GetNCUpdateRgn(), InternalInvalidate3(), xxxBeginPaint(), xxxFreeWindow(), and xxxUpdateWindow2().

#define WFLINEDNBUTTONDOWN   0x0608
 

Definition at line 2333 of file client/nt6/user.h.

Referenced by _GetScrollBarInfo(), and zzzDrawInvertScrollArea().

#define WFLINEUPBUTTONDOWN   0x0601
 

Definition at line 2330 of file client/nt6/user.h.

Referenced by _GetScrollBarInfo(), and zzzDrawInvertScrollArea().

#define WFMAXBOX   0x0E01
 

Definition at line 2400 of file client/nt6/user.h.

Referenced by FindNCHit(), GetMonitorMaxArea(), InternalCreateDialog(), IsTooltipHittest(), MDIClientWndProcWorker(), xxxCalcCaptionButton(), xxxCheckFullScreen(), xxxDrawCaptionBar(), xxxGetTitleBarInfo(), xxxHandleNCMouseGuys(), xxxInitSendValidateMinMaxInfo(), xxxMDIActivate(), and xxxSetSysMenu().

#define WFMAXFAKEREGIONAL   0x0508
 

Definition at line 2323 of file client/nt6/user.h.

Referenced by GetWindowRgn(), OffsetChildren(), SelectWindowRgn(), xxxDesktopRecalc(), xxxFreeWindow(), xxxMinMaximize(), and zzzChangeStates().

#define WFMAXIMIZED   0x0F01
 

Definition at line 2415 of file client/nt6/user.h.

Referenced by _GetWindowPlacement(), CalcClientScrolling(), CkptRestore(), DefFrameProcWorker(), DefMDIChildProcWorker(), DefWindowProcWorker(), FindFakeMDIChild(), IsTooltipHittest(), MDIClientWndProcWorker(), MDICompleteChildCreation(), SelectWindowRgn(), SizeBoxHwnd(), UnmaximizeChildWindows(), xxxCalcCaptionButton(), xxxCheckFullScreen(), xxxCreateWindowEx(), xxxDefWindowProc(), xxxDesktopRecalc(), xxxDrawCaptionBar(), xxxHandleNCMouseGuys(), xxxHandleWindowPosChanged(), xxxMetricsRecalc(), xxxMinMaximize(), xxxMS_TrackMove(), xxxSetInternalWindowPos(), xxxSetSysMenu(), xxxSetWindowPlacement(), xxxShowWindow(), and xxxSysCommand().

#define WFMENUDRAW   0x0180
 

Definition at line 2276 of file client/nt6/user.h.

Referenced by xxxDefWindowProc(), xxxDrawWindowFrame(), and xxxDWPPrint().

#define WFMINBOX   0x0E02
 

Definition at line 2402 of file client/nt6/user.h.

Referenced by DefFrameProcWorker(), FindNCHit(), InternalCreateDialog(), IsTooltipHittest(), MDIAddSysMenu(), xxxCalcCaptionButton(), xxxDrawCaptionBar(), xxxGetTitleBarInfo(), xxxInitSendValidateMinMaxInfo(), and xxxSetSysMenu().

#define WFMINIMIZED   0x0F20
 

Definition at line 2420 of file client/nt6/user.h.

Referenced by _GetClientRect(), _GetDCEx(), _GetWindowDC(), _GetWindowPlacement(), AreNonClientAreasToBePainted(), CalcClientScrolling(), CancelInputState(), CkptRestore(), CloseWindow(), DefFrameProcWorker(), DefWindowProcWorker(), DoPaint(), FindNCHit(), FVisCountable(), InternalInvalidate2(), IntersectWithParents(), InvalidateDce(), IsDialogMessageW(), IsTooltipHittest(), IsVisible(), MDICompleteChildCreation(), MNPositionSysMenu(), OpenIcon(), ParkIcon(), PixieHack(), SetMinimize(), ValidatePositionableWindow(), WPUpdateCheckPointSettings(), xxxActivateOnMinimize(), xxxActivateThisWindow(), xxxAdjustSize(), xxxArrangeIconicWindows(), xxxCalcCaptionButton(), xxxCalcClientRect(), xxxCalcValidRects(), xxxCreateWindowEx(), xxxDeactivate(), xxxDefWindowProc(), xxxDrawCaptionBar(), xxxDrawDragRect(), xxxDrawWindowFrame(), xxxEnableWndSBArrows(), xxxGetInitMenuParam(), xxxGetTitleBarInfo(), xxxHandleNCMouseGuys(), xxxHandleWindowPosChanged(), xxxMetricsRecalc(), xxxMinimizeHungWindow(), xxxMinMaximize(), xxxMNFindWindowFromPoint(), xxxMNInvertItem(), xxxMNKeyDown(), xxxMNMouseMove(), xxxMNPositionHierarchy(), xxxMoveSize(), xxxMS_TrackMove(), xxxOldNextWindow(), xxxProcessEventMessage(), xxxProcessHungThreadEvent(), xxxQueryDropObject(), xxxRestoreDlgFocus(), xxxScrollWindowEx(), xxxSendEraseBkgnd(), xxxSetFocus(), xxxSetInternalWindowPos(), xxxSetMenu(), xxxSetSysMenu(), xxxSetWindowPlacement(), xxxSetWindowStyle(), xxxShowOwnedWindows(), xxxShowWindow(), xxxSwitchToThisWindow(), xxxSysCommand(), xxxUpdateWindow2(), xxxWindowHitTest2(), and zzzInvalidateDCCache().

#define WFMPRESENT   0x0001
 

Definition at line 2259 of file client/nt6/user.h.

Referenced by FindNCHit(), FindNCHitEx(), SLEditWndProc(), xxxCalcClientRect(), xxxDrawMenuBarUnderlines(), xxxDrawWindowFrame(), xxxDWP_DoNCActivate(), xxxHotTrackMenu(), xxxMetricsRecalc(), and xxxSetWindowStyle().

#define WFMSGBOX   0x0020
 

Definition at line 2266 of file client/nt6/user.h.

Referenced by DialogBox2(), SetMsgBox(), and xxxFreeWindow().

#define WFNOANIMATE   0x0A10
 

Definition at line 2381 of file client/nt6/user.h.

Referenced by xxxMDIActivate(), and xxxMinMaximize().

#define WFNOIDLEMSG   0x0D01
 

Definition at line 2487 of file client/nt6/user.h.

#define WFNONCPAINT   0x0101
 

Definition at line 2269 of file client/nt6/user.h.

Referenced by InternalInvalidate3(), xxxActivateThisWindow(), xxxDrawWindowFrame(), xxxDWP_DoNCActivate(), xxxEndDeferWindowPosEx(), xxxSendNCPaint(), and xxxSwpActivate().

#define WFOLDUI   0x0408
 

Definition at line 2308 of file client/nt6/user.h.

Referenced by EditWndProc(), MDIAddSysMenu(), MDIRemoveSysMenu(), xxxCreateWindowEx(), xxxDrawCaptionBar(), xxxGetWindowSmIcon(), xxxMenuBarDraw(), xxxMNOpenHierarchy(), and xxxTrackPopupMenuEx().

#define WFPAGEDNBUTTONDOWN   0x0604
 

Definition at line 2332 of file client/nt6/user.h.

Referenced by _GetScrollBarInfo(), and zzzDrawInvertScrollArea().

#define WFPAGEUPBUTTONDOWN   0x0602
 

Definition at line 2331 of file client/nt6/user.h.

Referenced by _GetScrollBarInfo(), and zzzDrawInvertScrollArea().

#define WFPAINTNOTPROCESSED   0x0240
 

Definition at line 2289 of file client/nt6/user.h.

Referenced by GetUpdateRect(), GetUpdateRgn(), xxxBeginPaint(), xxxDispatchMessage(), xxxSimpleDoSyncPaint(), and xxxUpdateWindow2().

#define WFPIXIEHACK   0x0680
 

Definition at line 2338 of file client/nt6/user.h.

Referenced by InternalInvalidate3(), PixieHack(), xxxSendNCPaint(), and xxxSimpleDoSyncPaint().

#define WFPOPUP   0x0F80
 

Definition at line 2422 of file client/nt6/user.h.

Referenced by ImeWndCreateHandler(), and xxxDestroyWindow().

#define WFREALLYMAXIMIZABLE   0x0340
 

Definition at line 2303 of file client/nt6/user.h.

Referenced by _GetWindowPlacement(), CkptRestore(), SelectWindowRgn(), xxxCheckFullScreen(), xxxInitSendValidateMinMaxInfo(), and xxxSetWindowPlacement().

#define WFREDRAWFRAMEIFHUNG   0x0310
 

Definition at line 2299 of file client/nt6/user.h.

Referenced by xxxDrawCaptionBar(), xxxFreeWindow(), xxxHungAppDemon(), and xxxSetForegroundWindow2().

#define WFREDRAWIFHUNG   0x0308
 

Definition at line 2298 of file client/nt6/user.h.

Referenced by InternalInvalidate3(), xxxBeginPaint(), xxxFreeWindow(), xxxHungAppDemon(), xxxRedrawHungWindow(), and xxxSimpleDoSyncPaint().

#define WFREDUCEBUTTONDOWN   0x0540
 

Definition at line 2328 of file client/nt6/user.h.

Referenced by xxxGetTitleBarInfo(), and xxxTrackCaptionButton().

#define WFSCROLLBUTTONDOWN   0x0610
 

Definition at line 2334 of file client/nt6/user.h.

Referenced by _GetScrollBarInfo(), and xxxEndScroll().

#define WFSENDERASEBKGND   0x0102
 

Definition at line 2270 of file client/nt6/user.h.

Referenced by DoQueuedSyncPaint(), GetUpdateRect(), GetUpdateRgn(), InternalInvalidate3(), xxxBeginPaint(), xxxFreeWindow(), xxxRedrawHungWindow(), xxxSendEraseBkgnd(), and xxxSimpleDoSyncPaint().

#define WFSENDNCPAINT   0x0108
 

Definition at line 2272 of file client/nt6/user.h.

Referenced by DoQueuedSyncPaint(), GetUpdateRect(), GetUpdateRgn(), InternalInvalidate3(), PixieHack(), xxxBeginPaint(), xxxDWP_SetRedraw(), xxxFreeWindow(), xxxRedrawHungWindow(), xxxSendChildNCPaint(), xxxSendNCPaint(), xxxSimpleDoSyncPaint(), and zzzChangeStates().

#define WFSENDSIZEMOVE   0x0010
 

Definition at line 2265 of file client/nt6/user.h.

Referenced by xxxCreateWindowEx(), and xxxShowWindow().

#define WFSERVERSIDEPROC   0x0204
 

Definition at line 2285 of file client/nt6/user.h.

Referenced by _WOWCleanup(), _WOWModuleUnload(), DefWindowProcWorker(), DispatchMessageWorker(), GetWindowData(), PatchThreadWindows(), PseudoDestroyClassWindows(), SendMessageWorker(), SetDialogPointer(), WantImeWindow(), xxxCreateDefaultImeWindow(), xxxCreateWindowEx(), xxxDispatchMessage(), xxxFreeWindow(), xxxReceiveMessage(), xxxSendMessageCallback(), xxxSendMessageTimeout(), and xxxSetWindowData().

#define WFSHELLHOOKWND   0x0A80
 

Definition at line 2383 of file client/nt6/user.h.

Referenced by _DeregisterShellHookWindow(), _RegisterShellHookWindow(), and xxxFreeWindow().

#define WFSIZEBOX   0x0E04
 

Definition at line 2404 of file client/nt6/user.h.

Referenced by AreNonClientAreasToBePainted(), FindNCHit(), InternalCreateDialog(), MLPaint(), SizeBoxHwnd(), SLEditWndProc(), ValidatePositionableWindow(), xxxAdjustSize(), xxxDrawCaptionBar(), xxxDrawDragRect(), xxxDrawWindowFrame(), xxxInitSendValidateMinMaxInfo(), xxxMetricsRecalc(), xxxMNInvertItem(), xxxMoveSize(), xxxSBWndProc(), xxxSetSysMenu(), and xxxWindowHitTest2().

#define WFSMQUERYDRAGICON   0x0A20
 

Definition at line 2382 of file client/nt6/user.h.

Referenced by DestroyWindowSmIcon(), xxxCreateWindowSmIcon(), xxxRecreateSmallIcons(), and xxxSetClassIconEnum().

#define WFSPRITE   0x0708
 

Definition at line 2346 of file client/nt6/user.h.

#define WFSTARTPAINT   0x0404
 

Definition at line 2307 of file client/nt6/user.h.

Referenced by DoPaint(), xxxBeginPaint(), xxxDWP_Paint(), xxxEndPaint(), and xxxRedrawHungWindow().

#define WFSYNCPAINTPENDING   0x0280
 

Definition at line 2290 of file client/nt6/user.h.

Referenced by DoQueuedSyncPaint(), ValidateParents(), and xxxDefWindowProc().

#define WFSYSMENU   0x0E08
 

Definition at line 2405 of file client/nt6/user.h.

Referenced by DefFrameProcWorker(), FindNCHit(), InternalCreateDialog(), MDIAddSysMenu(), MDIRemoveSysMenu(), xxxDrawCaptionBar(), xxxDrawCaptionTemp(), xxxDWP_NCMouse(), xxxDWP_SetCursor(), xxxGetMenuBarInfo(), xxxGetSysMenuHandle(), xxxGetSystemMenu(), xxxGetTitleBarInfo(), xxxHandleNCMouseGuys(), xxxInitSendValidateMinMaxInfo(), xxxMNKeyDown(), xxxMNKeyFilter(), xxxMNStartMenuState(), xxxMNSwitchToAlternateMenu(), xxxSetSystemMenu(), and xxxTranslateAccelerator().

#define WFTABSTOP   0x0E01
 

Definition at line 2401 of file client/nt6/user.h.

Referenced by ButtonWndProcWorker(), and xxxSBWndProc().

#define WFTILED   0x0F00
 

Definition at line 2414 of file client/nt6/user.h.

Referenced by xxxFreeWindow().

#define WFTITLESET   0x0202
 

Definition at line 2284 of file client/nt6/user.h.

Referenced by xxxCreateWindowEx(), and xxxDefWindowProc().

#define WFTOGGLETOPMOST   0x0304
 

Definition at line 2293 of file client/nt6/user.h.

Referenced by LinkWindow(), SetTopmost(), ValidateZorder(), xxxCalcValidRects(), and zzzChangeStates().

#define WFTOPLEVEL   0x0E40
 

Definition at line 2409 of file client/nt6/user.h.

Referenced by xxxMinMaximize().

#define WFTYPEMASK   0x0FC0
 

Definition at line 2423 of file client/nt6/user.h.

Referenced by InternalCreateDialog(), xxxCreateWindowEx(), and xxxFreeWindow().

#define WFUPDATEDIRTY   0x0120
 

Definition at line 2274 of file client/nt6/user.h.

Referenced by DoPaint(), GetNCUpdateRgn(), GetUpdateRect(), GetUpdateRgn(), InternalInvalidate3(), xxxBeginPaint(), xxxGetUpdateRect(), xxxGetUpdateRgn(), xxxRedrawHungWindow(), and xxxUpdateWindow2().

#define WFVERTSCROLLTRACK   0x0620
 

Definition at line 2335 of file client/nt6/user.h.

Referenced by _GetScrollBarInfo(), xxxEndScroll(), and xxxSBTrackLoop().

#define WFVISIBLE   0x0F10
 

Definition at line 2419 of file client/nt6/user.h.

Referenced by _ChildWindowFromPointEx(), _FChildVisible(), _GetDCEx(), _GetNextDlgGroupItem(), _GetNextQueueWindow(), _IsTaskWindow(), _IsWindowVisible(), _NextControl(), _RealChildWindowFromPoint(), AnyPopup(), ButtonWndProcWorker(), CalcClientScrolling(), CalcForegroundInsertAfter(), ClrFTrueVis(), ComboBoxWndProcWorker(), DialogBox2(), DoQueuedSyncPaint(), DrawIconCallBack(), DWP_GetEnabledPopup(), ExcludeWindowRects(), FBadWindow(), FBitsTouch(), FindFakeMDIChild(), GetActiveTrackPwnd(), HMChangeOwnerThread(), HotKeyToWindow(), InternalCreateDialog(), InternalInvalidate2(), IntersectWithParents(), InvalidateDce(), IsVisible(), MDISetMenu(), MNAnimate(), NextTopWindow(), ParkIcon(), SetMinimize(), SetVisible(), SpeedHitTest(), StaticWndProcWorker(), SwpCalcVisRgn(), UnmaximizeChildWindows(), UnsetLayeredWindow(), ValidatePositionableWindow(), xxxActivateOnMinimize(), xxxActivateThisWindow(), xxxAddFullScreen(), xxxArrangeIconicWindows(), xxxCalcValidRects(), xxxChildResize(), xxxCreateTooltip(), xxxCreateWindowEx(), xxxDefWindowProc(), xxxDesktopThread(), xxxDestroyWindow(), xxxDWP_DoNCActivate(), xxxDWP_SetRedraw(), xxxDWPPrint(), xxxFreeWindow(), xxxFW_DestroyAllChildren(), xxxInitActivateDlg(), xxxMDIDestroy(), xxxMDINext(), xxxMenuWindowProc(), xxxMinimizeHungWindow(), xxxMinMaximize(), xxxMNCloseHierarchy(), xxxMNLoop(), xxxMNMouseMove(), xxxMNOpenHierarchy(), xxxPaintSwitchWindow(), xxxProcessHungThreadEvent(), xxxRedrawHungWindow(), xxxRedrawTitle(), xxxResetTooltip(), xxxSetFocus(), xxxSetLayeredWindow(), xxxSetStaticImage(), xxxSetWindowPos(), xxxShowOwnedWindows(), xxxShowSwitchWindow(), xxxShowWindow(), xxxSimpleDoSyncPaint(), xxxSwitchDesktop(), xxxUpdateTray(), xxxWindowHitTest2(), zzzActiveCursorTracking(), and zzzChangeStates().

#define WFVPRESENT   0x0002
 

Definition at line 2260 of file client/nt6/user.h.

Referenced by _GetScrollBarInfo(), CalcSBStuff(), FindNCHit(), FindNCHitEx(), FScrollEnabled(), GetRealClientRect(), SLEditWndProc(), xxxCalcClientRect(), xxxDrawWindowFrame(), xxxEnableWndSBArrows(), and xxxSetScrollBar().

#define WFVSCROLL   0x0E20
 

Definition at line 2407 of file client/nt6/user.h.

Referenced by _GetScrollBarInfo(), CalcClientScrolling(), CBNcCreateHandler(), MDIClientWndProcWorker(), MLScroll(), xxxCalcClientRect(), xxxDefWindowProc(), xxxLBSize(), and xxxSetScrollBar().

#define WFWIN31COMPAT   0x0501
 

Definition at line 2318 of file client/nt6/user.h.

Referenced by _GetDCEx(), ButtonWndProcWorker(), GetWindowInfo(), InternalInvalidate2(), InternalInvalidate3(), InvalidateDce(), UT_InvertCaret(), xxxCalcValidRects(), xxxCBGetTextHelper(), xxxCBHideListBoxWindow(), xxxCreateWindowEx(), xxxDWP_SetRedraw(), xxxGetUpdateRect(), xxxLBButtonUp(), xxxLBoxDrawItem(), xxxLBResetContent(), xxxMDIActivate(), xxxMNCancel(), xxxMoveWindow(), xxxScrollWindowEx(), xxxSendEraseBkgnd(), xxxSetWindowPos(), xxxShowWindow(), zzzBltValidBits(), and zzzChangeStates().

#define WFWIN40COMPAT   0x0502
 

Definition at line 2319 of file client/nt6/user.h.

Referenced by _FindDlgItem(), _GetClientRect(), _GetWindowDC(), _HasCaptionIcon(), BNCalcRect(), ButtonWndProcWorker(), CBNcCreateHandler(), ChildWindowFromPoint(), ComboBoxWndProcWorker(), DefDlgProcWorker(), DefWindowProcWorker(), DoPaint(), ECIsAncestorActive(), FindNCHit(), GetWindowInfo(), InternalCreateDialog(), IsTrayWindow(), ListBoxWndProcWorker(), MBC_RightJustifyMenu(), MDIClientWndProcWorker(), MLScroll(), NtUserGetWindowPlacement(), SetupFakeMDIAppStuff(), xxxBNInitDC(), xxxCalcClientRect(), xxxCapture(), xxxCBCalcControlRects(), xxxCBCreateHandler(), xxxCBInternalUpdateEditWindow(), xxxCBPaint(), xxxCBShowListBoxWindow(), xxxCBUpdateListBoxWindow(), xxxCheckDefPushButton(), xxxCheckFullScreen(), xxxCreateWindowEx(), xxxDefWindowProc(), xxxDlgDirListHelper(), xxxDrawButton(), xxxDrawCaptionBar(), xxxGetTitleBarInfo(), xxxGetWindowSmIcon(), xxxLBButtonUp(), xxxLBCreate(), xxxLBoxCtlDelete(), xxxLBSetFont(), xxxLBSize(), xxxMDIActivate(), xxxMinMaximize(), xxxMNCompute(), xxxMNDoubleClick(), xxxMouseActivate(), xxxPaintIconsInSwitchWindow(), xxxRedrawHungWindow(), xxxSBWndProc(), xxxSendBSMtoDesktop(), xxxSetWindowStyle(), xxxStaticLoadImage(), xxxUpdateTray(), and xxxUpdateWindow2().

#define WFWIN50COMPAT   0x0504
 

Definition at line 2320 of file client/nt6/user.h.

Referenced by GetWindowInfo(), xxxCreateWindowEx(), xxxGetMenuItemRect(), and xxxSetWindowPos().

#define WFWINCOMPATMASK   0x0507
 

Definition at line 2321 of file client/nt6/user.h.

#define WFWMPAINTSENT   0x0401
 

Definition at line 2305 of file client/nt6/user.h.

Referenced by DoPaint(), InternalInvalidate3(), xxxDispatchMessage(), and xxxEndPaint().

#define WFZOOMBUTTONDOWN   0x0520
 

Definition at line 2327 of file client/nt6/user.h.

Referenced by xxxGetTitleBarInfo(), and xxxTrackCaptionButton().

#define WHF_CALLWNDPROC   WHF_FROM_WH(WH_CALLWNDPROC)
 

Definition at line 2035 of file client/nt6/user.h.

Referenced by SendMessageWorker(), xxxReceiveMessage(), xxxSendMessageCallback(), and xxxSendMessageTimeout().

#define WHF_CALLWNDPROCRET   WHF_FROM_WH(WH_CALLWNDPROCRET)
 

Definition at line 2036 of file client/nt6/user.h.

Referenced by SendMessageWorker(), xxxReceiveMessage(), xxxSendMessageCallback(), and xxxSendMessageTimeout().

#define WHF_CBT   WHF_FROM_WH(WH_CBT)
 

Definition at line 2037 of file client/nt6/user.h.

Referenced by GetCursorPos(), xxxActivateThisWindow(), xxxCreateWindowEx(), xxxDestroyWindow(), xxxMinMaximize(), xxxScanSysQueue(), xxxSetFocus(), and xxxSysCommand().

#define WHF_DEBUG   WHF_FROM_WH(WH_DEBUG)
 

Definition at line 2041 of file client/nt6/user.h.

Referenced by xxxCallHook2().

#define WHF_FOREGROUNDIDLE   WHF_FROM_WH(WH_FOREGROUNDIDLE)
 

Definition at line 2043 of file client/nt6/user.h.

Referenced by xxxGetInputEvent(), xxxMsgWaitForMultipleObjects(), xxxSleepTask(), and xxxSleepThread().

#define WHF_FROM_WH n   )     (1 << (n + 1))
 

Definition at line 2025 of file client/nt6/user.h.

Referenced by CheckWHFBits(), GetJournallingQueue(), xxxCapture(), xxxMoveEventAbsolute(), zzzInvalidateDCCache(), and zzzSetWindowsHookEx().

#define WHF_GETMESSAGE   WHF_FROM_WH(WH_GETMESSAGE)
 

Definition at line 2034 of file client/nt6/user.h.

Referenced by xxxInternalGetMessage().

#define WHF_HARDWARE   WHF_FROM_WH(WH_HARDWARE)
 

Definition at line 2040 of file client/nt6/user.h.

#define WHF_JOURNALPLAYBACK   WHF_FROM_WH(WH_JOURNALPLAYBACK)
 

Definition at line 2032 of file client/nt6/user.h.

#define WHF_JOURNALRECORD   WHF_FROM_WH(WH_JOURNALRECORD)
 

Definition at line 2031 of file client/nt6/user.h.

#define WHF_KEYBOARD   WHF_FROM_WH(WH_KEYBOARD)
 

Definition at line 2033 of file client/nt6/user.h.

Referenced by xxxScanSysQueue().

#define WHF_MOUSE   WHF_FROM_WH(WH_MOUSE)
 

Definition at line 2039 of file client/nt6/user.h.

Referenced by xxxScanSysQueue().

#define WHF_MSGFILTER   WHF_FROM_WH(WH_MSGFILTER)
 

Definition at line 2030 of file client/nt6/user.h.

Referenced by _CallMsgFilter().

#define WHF_SHELL   WHF_FROM_WH(WH_SHELL)
 

Definition at line 2042 of file client/nt6/user.h.

Referenced by xxxDefWindowProc(), xxxInternalActivateKeyboardLayout(), xxxInternalUnloadKeyboardLayout(), xxxLoadKeyboardLayoutEx(), xxxNotifyIMEStatus(), xxxProcessEventMessage(), xxxSendMinRectMessages(), and xxxSetFocus().

#define WHF_SYSMSGFILTER   WHF_FROM_WH(WH_SYSMSGFILTER)
 

Definition at line 2038 of file client/nt6/user.h.

Referenced by _CallMsgFilter().

#define WIDTHBYTES  )     ((((i) + 31) & ~31) >> 3)
 

Definition at line 2223 of file client/nt6/user.h.

Referenced by BMPtoDIB(), DIBFromBitmap(), DIBtoDIBV5(), and SizeOfDib().

#define WINSTA_DIR   L"\\Windows\\WindowStations"
 

Definition at line 369 of file client/nt6/user.h.

Referenced by UserClientDllInitialize(), and UserInitialize().

#define WINSTA_NAME   L"Service-0x0000-0000$"
 

Definition at line 371 of file client/nt6/user.h.

Referenced by CommonOpenWindowStation().

#define WINSTA_SESSION_DIR   L"\\Sessions\\xxxxxxxxxxx\\Windows\\WindowStations"
 

Definition at line 370 of file client/nt6/user.h.

#define WMCR_IR_DBCSCHAR   0x80000000
 

Definition at line 566 of file client/nt6/user.h.

Referenced by CompStrAToCharA(), CompStrWToCharA(), and RtlMBMessageWParamCharToWCS().

#define WMCS_CONSOLE   0x0020
 

Definition at line 608 of file client/nt6/user.h.

Referenced by CreateCtrlThread(), EndTaskDlgProc(), SetEndTaskDlgStatus(), and ThreadShutdownNotify().

#define WMCS_CONTEXTLOGOFF   0x0008
 

Definition at line 606 of file client/nt6/user.h.

Referenced by ThreadShutdownNotify(), UserClientShutdown(), and xxxClientShutdown2().

#define WMCS_ENDTASK   0x0010
 

Definition at line 607 of file client/nt6/user.h.

Referenced by _EndTask(), and ThreadShutdownNotify().

#define WMCS_EXIT   0x0001
 

Definition at line 603 of file client/nt6/user.h.

Referenced by ThreadShutdownNotify(), UserClientShutdown(), and xxxClientShutdown2().

#define WMCS_LOGOFF   ENDSESSION_LOGOFF /* from winuser.w */
 

Definition at line 611 of file client/nt6/user.h.

Referenced by UserClientShutdown().

#define WMCS_NODLGIFHUNG   0x0040
 

Definition at line 609 of file client/nt6/user.h.

Referenced by ThreadShutdownNotify(), and UserClientShutdown().

#define WMCS_NORETRY   0x0080
 

Definition at line 610 of file client/nt6/user.h.

Referenced by ThreadShutdownNotify(), UserClientShutdown(), and xxxQueryInformationThread().

#define WMCS_QUERYEND   0x0002
 

Definition at line 604 of file client/nt6/user.h.

Referenced by ThreadShutdownNotify(), UserClientShutdown(), and xxxClientShutdown().

#define WMCS_SHUTDOWN   0x0004
 

Definition at line 605 of file client/nt6/user.h.

#define WMCSR_ALLOWSHUTDOWN   1
 

Definition at line 616 of file client/nt6/user.h.

Referenced by ThreadShutdownNotify(), xxxClientShutdown(), and xxxClientShutdown2().

#define WMCSR_CANCEL   3
 

Definition at line 618 of file client/nt6/user.h.

Referenced by ThreadShutdownNotify(), and xxxClientShutdown2().

#define WMCSR_DONE   2
 

Definition at line 617 of file client/nt6/user.h.

Referenced by ThreadShutdownNotify(), and xxxClientShutdown().

#define WS_EX_ANSICREATOR   0x80000000L
 

Definition at line 728 of file client/nt6/user.h.

Referenced by _CreateWindowEx(), CreateWindowEx(), InternalCreateDialog(), and xxxCreateWindowEx().

#define WS_EX_MDICHILD   0x00000040L
 

Definition at line 727 of file client/nt6/user.h.

Referenced by _CreateWindowEx(), CreateMDIWindowA(), CreateMDIWindowW(), CreateWindowEx(), InternalCreateDialog(), and MDIClientWndProcWorker().

#define XDUFromXPix x,
cxChar   )     MultDiv(x, 4, cxChar)
 

Definition at line 2990 of file client/nt6/user.h.

Referenced by MB_UpdateDlgHdr(), and MB_UpdateDlgItem().

#define XPixFromXDU x,
cxChar   )     MultDiv(x, cxChar, 4)
 

Definition at line 2988 of file client/nt6/user.h.

Referenced by InternalCreateDialog(), MapDialogRect(), MB_AddPushButtons(), SoftModalMessageBox(), and xxxSetNCFonts().

#define xxxRtlSetMenuInfo   NtUserThunkedMenuInfo
 

Definition at line 3163 of file client/nt6/user.h.

Referenced by xxxLoadSysMenu().

#define xxxRtlSetMenuItemInfo rtlMenu,
uId,
pmii   )     NtUserThunkedMenuItemInfo(rtlMenu, uId, FALSE, FALSE, pmii, NULL)
 

Definition at line 3164 of file client/nt6/user.h.

Referenced by xxxLoadSysMenu().

#define YDUFromYPix y,
cyChar   )     MultDiv(y, 8, cyChar)
 

Definition at line 2991 of file client/nt6/user.h.

Referenced by MB_UpdateDlgHdr(), and MB_UpdateDlgItem().

#define YPixFromYDU y,
cyChar   )     MultDiv(y, cyChar, 8)
 

Definition at line 2989 of file client/nt6/user.h.

Referenced by InternalCreateDialog(), MapDialogRect(), MB_AddPushButtons(), and SoftModalMessageBox().

#define ZERO  )     ((*(t *)&gZero))
 

Definition at line 115 of file client/nt6/user.h.


Typedef Documentation

typedef union tagALWAYSZERO ALWAYSZERO
 

typedef struct tagBUTN BUTN
 

Referenced by ButtonWndProcWorker().

typedef struct tagBUTNWND BUTNWND
 

Referenced by RW_RegisterControls().

typedef struct _CALLBACKSTATUS CALLBACKSTATUS
 

typedef struct _CALLBACKWND CALLBACKWND
 

typedef struct _CALLPROCDATA CALLPROCDATA
 

Referenced by GetCPD().

typedef struct _CAPTUREBUF CAPTUREBUF
 

typedef struct tagCARET CARET
 

typedef struct tagCBox CBOX
 

Referenced by ComboBoxWndProcWorker().

typedef struct _CLIENTINFO CLIENTINFO
 

Referenced by xxxCreateThreadInfo().

typedef struct tagCLIENTTHREADINFO CLIENTTHREADINFO
 

Referenced by zzzSetDesktop().

typedef struct tagCLS CLS
 

Referenced by ReferenceClass().

typedef struct tagCLSMENUNAME CLSMENUNAME
 

Referenced by SetClassLongPtr().

typedef struct tagCOMBOWND COMBOWND
 

Referenced by RW_RegisterControls().

typedef struct tagCOMMON_WNDCLASS COMMON_WNDCLASS
 

Referenced by InternalRegisterClassEx().

typedef struct _CTLCOLOR CTLCOLOR
 

typedef struct tagCURSORDATA CURSORDATA
 

Referenced by CreateAniIcon(), and NtUserSetCursorIconData().

typedef struct tagCURSORFIND CURSORFIND
 

Referenced by LoadIcoCur(), and NtUserFindExistingCursorIcon().

typedef struct _DESKHEAD DESKHEAD
 

typedef struct _DESKOBJHEAD DESKOBJHEAD
 

Referenced by HMInitHandleTable().

typedef struct tagDESKTOPINFO DESKTOPINFO
 

Referenced by ClientThreadSetup().

typedef struct _DIALOG DIALOG
 

typedef struct tagDISPLAYINFO DISPLAYINFO
 

Referenced by xxxCreateDesktop2().

typedef struct _DLG DLG
 

Referenced by ValidateDialogPwnd().

typedef struct tagDLGENUMDATA DLGENUMDATA
 

Referenced by WinHelpA().

typedef struct _DOCONNECTDATA DOCONNECTDATA
 

Referenced by NtUserRemoteConnect(), and W32WinStationDoConnect().

typedef struct _DORECONNECTDATA DORECONNECTDATA
 

Referenced by W32WinStationDoReconnect().

typedef struct _DRAWICONEXDATA DRAWICONEXDATA
 

Referenced by DrawIconEx(), and NtUserDrawIconEx().

typedef struct tagEVENT_PACKET EVENT_PACKET
 

Referenced by DoCallback().

typedef void(* FnDestroyUserObject)(void *)
 

Definition at line 1362 of file client/nt6/user.h.

typedef int(* FPLPKDRAWTEXTEX)(HDC, int, int, LPCWSTR, int, BOOL, UINT, LPDRAWTEXTDATA, UINT, int)
 

Definition at line 3228 of file client/nt6/user.h.

Referenced by DT_InitDrawTextInfo(), and InitializeLpkHooks().

typedef void(* FPLPKPSMTEXTOUT)(HDC, int, int, LPWSTR, int)
 

Definition at line 3225 of file client/nt6/user.h.

Referenced by InitializeLpkHooks().

typedef LONG(* FPLPKTABBEDTEXTOUT)(HDC, int, int, LPCWSTR, int, int, LPINT, int, BOOL, int, int, int)
 

Definition at line 3222 of file client/nt6/user.h.

Referenced by InitializeLpkHooks().

typedef struct tagGETCLIPBDATA GETCLIPBDATA
 

Referenced by GetClipboardData(), and NtUserGetClipboardData().

typedef struct _HANDLEENTRY HANDLEENTRY
 

Referenced by AnticipatePost(), and InitCreateSharedSection().

typedef struct tagHANDLETYPEINFO HANDLETYPEINFO
 

typedef struct _HEAD HEAD
 

Referenced by _GetComboBoxInfo().

typedef struct tagHOOK HOOK
 

typedef DWORD ICH
 

Definition at line 626 of file client/nt6/user.h.

Referenced by ECAdjustIch(), ECAdjustIchNext(), ECCchInWidth(), ECCopy(), ECCreate(), ECDeleteText(), ECFindTabA(), ECFindTabW(), ECGetText(), ECImeComposition(), ECInsertText(), ECNextIch(), ECPrevIch(), ECSetText(), ECWord(), EditWndProc(), HanjaKeyHandler(), MLBuildchLines(), MLCalcXOffset(), MLChangeSelection(), MLDeleteText(), MLDrawText(), MLEditWndProc(), MLGetLine(), MLIchToLine(), MLIchToXYPos(), MLInsertCrCrLf(), MLInsertText(), MLKeyDown(), MLLine(), MLLineIndex(), MLLineLength(), MLMouseMotion(), MLMouseToIch(), MLMoveSelection(), MLMoveSelectionRestricted(), MLPaint(), MLPasteText(), MLReplaceSel(), MLSetCaretPosition(), MLSetHandle(), MLUndo(), NextWordCallBack(), SLCalcXOffsetSpecial(), SLChangeSelection(), SLDrawLine(), SLDrawText(), SLEditWndProc(), SLInsertText(), SLKeyDown(), SLMouseMotion(), SLMouseToIch(), SLMoveSelectionRestricted(), SLPasteText(), SLScrollText(), and SLUndo().

typedef struct tagIMC IMC
 

typedef struct tagIMEUI IMEUI
 

typedef struct tagIMEWND IMEWND
 

Referenced by RW_RegisterControls().

typedef struct tagITEM ITEM
 

Referenced by MNIsPopupItem(), xxxInsertMenuItem(), and xxxRemoveDeleteMenuHelper().

typedef struct _LARGE_ANSI_STRING LARGE_ANSI_STRING
 

typedef struct _LARGE_STRING LARGE_STRING
 

Referenced by xxxCreateWindowEx().

typedef struct _LARGE_UNICODE_STRING LARGE_UNICODE_STRING
 

typedef struct tagLBIV LBIV
 

Referenced by ListBoxWndProcWorker().

typedef struct tagLBWND LBWND
 

Referenced by RW_RegisterControls().

typedef * LPBROADCASTSYSTEMMSGPARAMS
 

Referenced by xxxSendBSMtoDesktop(), and xxxWrapSendMessageBSM().

typedef struct tagCLS * LPCLS
 

typedef const SIZERECT* LPCSIZERECT
 

Definition at line 133 of file client/nt6/user.h.

typedef * LPDRAWTEXTDATA
 

Referenced by DrawTextExWorker(), and GetNextWordbreak().

typedef void(FAR * LPFNTEXTDRAW)(HDC, int, int, LPWSTR, int)
 

Definition at line 3203 of file client/nt6/user.h.

Referenced by DT_InitDrawTextInfo().

typedef ICH* LPICH
 

Definition at line 627 of file client/nt6/user.h.

Referenced by MLCreate(), and MLInsertchLine().

typedef struct tagITEM * LPITEM
 

Referenced by xxxMNGetBitmapSize().

typedef struct tagLPKEDITCALLOUT LPKEDITCALLOUT
 

typedef ICH LpkEditCchInWidth(PED ped, HDC hdc, PSTR pText, ICH cch, int width)
 

Definition at line 3267 of file client/nt6/user.h.

typedef BOOL LpkEditCreate(PED ped, HWND hWnd)
 

Definition at line 3261 of file client/nt6/user.h.

typedef int LpkEditCreateCaret(PED ped, HDC hdc, INT nWidth, INT nHeight, UINT hkl)
 

Definition at line 3285 of file client/nt6/user.h.

typedef void LpkEditDrawText(PED ped, HDC hdc, PSTR pText, INT cch, INT iMinSel, INT iMaxSel, INT iY)
 

Definition at line 3271 of file client/nt6/user.h.

typedef INT LpkEditGetLineWidth(PED ped, HDC hdc, PSTR pText, ICH cch)
 

Definition at line 3269 of file client/nt6/user.h.

typedef BOOL LpkEditHScroll(PED ped, HDC hdc, PSTR pText)
 

Definition at line 3273 of file client/nt6/user.h.

typedef int LpkEditIchToXY(PED ped, HDC hDC, PSTR pText, ICH cch, ICH ichPos)
 

Definition at line 3263 of file client/nt6/user.h.

typedef ICH LpkEditMouseToIch(PED ped, HDC hDC, PSTR pText, ICH cch, INT iX)
 

Definition at line 3265 of file client/nt6/user.h.

typedef ICH LpkEditMoveSelection(PED ped, HDC hdc, PSTR pText, ICH ich, BOOL fLeft)
 

Definition at line 3275 of file client/nt6/user.h.

typedef void LpkEditNextWord(PED ped, HDC hdc, PSTR pText, ICH ichStart, BOOL fLeft, ICH *pichMin, ICH *pichMax)
 

Definition at line 3279 of file client/nt6/user.h.

typedef int LpkEditProcessMenu(PED ped, UINT idMenuItem)
 

Definition at line 3283 of file client/nt6/user.h.

typedef void LpkEditSetMenu(PED ped, HMENU hMenu)
 

Definition at line 3281 of file client/nt6/user.h.

typedef int LpkEditVerifyText(PED ped, HDC hdc, PSTR pText, ICH ichInsert, PSTR pInsertText, ICH cchInsert)
 

Definition at line 3277 of file client/nt6/user.h.

typedef struct _MSGBOXDATA * LPMSGBOXDATA
 

typedef * LPPOINT5
 

Referenced by MESSAGECALL().

typedef struct tagSBWND * LPSBWND
 

typedef struct tagSIZERECT * LPSIZERECT
 

typedef struct tagMENU MENU
 

Referenced by LoadBmp().

typedef struct tagMNDRAGOVERINFO MNDRAGOVERINFO
 

Referenced by mndtDragOver().

typedef struct tagMONITOR MONITOR
 

typedef struct tagMSG_TABLE_ENTRY MSG_TABLE_ENTRY
 

typedef struct _MSGBOXDATA MSGBOXDATA
 

Referenced by HardErrorHandler().

typedef struct tagNAMELIST NAMELIST
 

Referenced by NtUserBuildNameList().

typedef struct tagOEMBITMAPINFO OEMBITMAPINFO
 

typedef struct tagBUTN * PBUTN
 

typedef struct tagBUTNWND * PBUTNWND
 

Referenced by ButtonWndProcWorker().

typedef struct _CALLBACKSTATUS * PCALLBACKSTATUS
 

Referenced by CopyOutputString().

typedef struct _CALLBACKWND * PCALLBACKWND
 

typedef struct _CALLPROCDATA * PCALLPROCDATA
 

Referenced by xxxRegisterClassEx().

typedef struct _CAPTUREBUF * PCAPTUREBUF
 

Referenced by AllocCallbackMessage(), and FixupCallbackPointers().

typedef struct tagCARET * PCARET
 

Referenced by xxxScrollWindowEx().

typedef struct tagCBox * PCBOX
 

Referenced by ChildWindowFromPoint().

typedef struct _CLIENTINFO * PCLIENTINFO
 

Definition at line 71 of file client/nt6/user.h.

Referenced by CtxBadAppDelay().

typedef struct tagCLIENTTHREADINFO * PCLIENTTHREADINFO
 

Definition at line 61 of file client/nt6/user.h.

Referenced by MsgWaitForMultipleObjectsEx().

typedef struct tagCLS * PCLS
 

typedef struct tagCLSMENUNAME * PCLSMENUNAME
 

Referenced by InitClsMenuName(), and xxxRegisterClassEx().

typedef struct tagCOMBOWND * PCOMBOWND
 

Referenced by ChildWindowFromPoint().

typedef const SIZERECT* PCSIZERECT
 

Definition at line 132 of file client/nt6/user.h.

Referenced by RECTFromSIZERECT().

typedef struct _CTLCOLOR * PCTLCOLOR
 

typedef struct tagCURSOR* PCURSOR
 

Definition at line 54 of file client/nt6/user.h.

typedef struct tagCURSORDATA * PCURSORDATA
 

Referenced by _SetCursorIconData().

typedef struct tagCURSORFIND * PCURSORFIND
 

Referenced by CopyImageFromRes().

typedef struct tagDCE* PDCE
 

Definition at line 62 of file client/nt6/user.h.

typedef struct _DESKHEAD * PDESKHEAD
 

typedef struct _DESKOBJHEAD * PDESKOBJHEAD
 

Referenced by _MapDesktopObject().

typedef struct tagDESKTOP* PDESKTOP
 

Definition at line 50 of file client/nt6/user.h.

typedef struct tagDESKTOPINFO * PDESKTOPINFO
 

Definition at line 59 of file client/nt6/user.h.

typedef struct _DIALOG * PDIALOG
 

Referenced by DefDlgProcWorker().

typedef struct tagDISPLAYINFO * PDISPLAYINFO
 

Definition at line 60 of file client/nt6/user.h.

typedef struct _DLG * PDLG
 

Referenced by ValidateDialogPwnd().

typedef struct tagDLGENUMDATA * PDLGENUMDATA
 

Referenced by EnumPwndDlgChildProc().

typedef struct _DOCONNECTDATA * PDOCONNECTDATA
 

Referenced by RemoteConnect().

typedef struct _DORECONNECTDATA * PDORECONNECTDATA
 

Referenced by xxxRemoteReconnect().

typedef struct tagED* PED
 

Definition at line 3259 of file client/nt6/user.h.

typedef struct tagPERUSERSERVERINFO PERUSERSERVERINFO
 

typedef struct _ETHREAD* PETHREAD
 

Definition at line 58 of file client/nt6/user.h.

typedef struct tagEVENT_PACKET * PEVENT_PACKET
 

Referenced by DoCallback().

typedef struct _PFNCLIENT PFNCLIENT
 

typedef struct _PFNCLIENTWORKER PFNCLIENTWORKER
 

typedef struct tagGETCLIPBDATA * PGETCLIPBDATA
 

Referenced by NtUserGetClipboardData(), and xxxGetDummyBitmap().

typedef struct tagHANDLETYPEINFO * PHANDLETYPEINFO
 

typedef struct _HANDLEENTRY * PHE
 

Referenced by zzzSetSystemImage().

typedef struct _HEAD * PHEAD
 

Referenced by HMAssignmentLock().

typedef struct tagHOOK * PHOOK
 

Referenced by HMChangeOwnerThread().

typedef struct tagIMC * PIMC
 

typedef struct tagIMEUI * PIMEUI
 

Referenced by DefWindowProcWorker().

typedef struct tagIMEWND * PIMEWND
 

Referenced by DefWindowProcWorker().

typedef struct tagITEM * PITEM
 

typedef struct _LARGE_ANSI_STRING * PLARGE_ANSI_STRING
 

Referenced by _DefSetText(), and RtlInitLargeAnsiString().

typedef struct _LARGE_STRING * PLARGE_STRING
 

Referenced by xxxCreateWindowEx().

typedef struct _LARGE_UNICODE_STRING * PLARGE_UNICODE_STRING
 

Referenced by RtlInitLargeUnicodeString().

typedef struct tagLBIV * PLBIV
 

Referenced by ComboBoxWndProcWorker().

typedef struct tagLBWND * PLBWND
 

Referenced by ComboBoxWndProcWorker().

typedef struct tagLPKEDITCALLOUT * PLPKEDITCALLOUT
 

typedef struct _LOCKRECORD* PLR
 

Definition at line 48 of file client/nt6/user.h.

typedef struct tagMENU PMENU
 

typedef struct tagMNDRAGOVERINFO * PMNDRAGOVERINFO
 

Referenced by xxxMNDragOver().

typedef struct tagMONITOR * PMONITOR
 

typedef struct _MOVESIZEDATA* PMOVESIZEDATA
 

Definition at line 53 of file client/nt6/user.h.

typedef struct _MSGBOXDATA * PMSGBOXDATA
 

typedef struct tagNAMELIST * PNAMELIST
 

Referenced by InternalEnumObjects(), and NtUserBuildNameList().

typedef struct tagOEMBITMAPINFO * POEMBITMAPINFO
 

Referenced by xxxButtonDrawCheck().

typedef struct tagCLS ** PPCLS
 

typedef struct tagPERUSERDATA* PPERUSERDATA
 

Definition at line 68 of file client/nt6/user.h.

typedef struct tagPERUSERSERVERINFO * PPERUSERSERVERINFO
 

Definition at line 69 of file client/nt6/user.h.

typedef struct _PFNCLIENT * PPFNCLIENT
 

Referenced by xxxHkCallHook().

typedef struct _PFNCLIENTWORKER * PPFNCLIENTWORKER
 

typedef struct tagPOPUPMENU* PPOPUPMENU
 

Definition at line 55 of file client/nt6/user.h.

typedef struct _PROCDESKHEAD * PPROCDESKHEAD
 

typedef struct tagPROCESSINFO* PPROCESSINFO
 

Definition at line 66 of file client/nt6/user.h.

Referenced by JobCalloutAddProcess(), and zzzSetSystemImage().

typedef struct _PROCMARKHEAD * PPROCMARKHEAD
 

Referenced by HMAllocObject().

typedef struct _PROCOBJHEAD * PPROCOBJHEAD
 

Referenced by _WOWCleanup().

typedef struct tagPROP * PPROP
 

typedef struct tagPROPLIST * PPROPLIST
 

typedef struct _PROPSET * PPROPSET
 

Referenced by InternalEnumProps(), and NtUserBuildPropList().

typedef struct tagQ* PQ
 

Definition at line 64 of file client/nt6/user.h.

typedef struct tagQMSG* PQMSG
 

Definition at line 56 of file client/nt6/user.h.

typedef struct _PROCDESKHEAD PROCDESKHEAD
 

Referenced by HMInitHandleTable().

typedef struct _PROCMARKHEAD PROCMARKHEAD
 

typedef struct _PROCOBJHEAD PROCOBJHEAD
 

Referenced by HMInitHandleTable().

typedef struct tagPROP PROP
 

Referenced by CreateProp().

typedef struct tagPROPLIST PROPLIST
 

Referenced by CreateProp().

typedef struct _PROPSET PROPSET
 

Referenced by InternalEnumProps().

typedef struct tagSBCALC * PSBCALC
 

typedef struct tagSBDATA * PSBDATA
 

Referenced by NtUserSBGetParms(), and ScrollBarWndProcWorker().

typedef struct tagSBINFO * PSBINFO
 

typedef struct tagSBTRACK * PSBTRACK
 

Referenced by xxxDWP_DoCancelMode().

typedef struct tagSBWND * PSBWND
 

Referenced by _GetScrollBarInfo(), and ScrollBarWndProcWorker().

typedef struct _SCROLLPOS * PSCROLLPOS
 

Referenced by xxxSetLBScrollParms().

typedef struct tagSERVERINFO * PSERVERINFO
 

typedef struct tagSETCLIPBDATA * PSETCLIPBDATA
 

Referenced by NtUserSetClipboardData().

typedef struct tagSHAREDINFO * PSHAREDINFO
 

typedef struct tagSIZERECT * PSIZERECT
 

Referenced by SIZERECTFromRECT().

typedef struct tagSNDMSGTIMEOUT * PSNDMSGTIMEOUT
 

typedef struct tagSPB* PSPB
 

Definition at line 63 of file client/nt6/user.h.

typedef struct tagSVR_INSTANCE_INFO* PSVR_INSTANCE_INFO
 

Definition at line 52 of file client/nt6/user.h.

typedef struct tagTDB* PTDB
 

Definition at line 51 of file client/nt6/user.h.

typedef struct tagTERMINAL* PTERMINAL
 

Definition at line 70 of file client/nt6/user.h.

Referenced by PostRitSound().

typedef struct _THRDESKHEAD * PTHRDESKHEAD
 

typedef struct tagTHREADINFO* PTHREADINFO
 

Definition at line 65 of file client/nt6/user.h.

Referenced by GetThreadsWithPKL().

typedef struct _THROBJHEAD * PTHROBJHEAD
 

Referenced by PatchThreadWindows().

typedef struct _TL* PTL
 

Definition at line 49 of file client/nt6/user.h.

Referenced by xxxFreeWindow().

typedef struct _USERCONNECT * PUSERCONNECT
 

Referenced by InitMapSharedSection().

typedef struct tagWINDOWSTATION* PWINDOWSTATION
 

Definition at line 47 of file client/nt6/user.h.

typedef struct tagWND* PWND
 

Definition at line 57 of file client/nt6/user.h.

Referenced by DrawCtlThumb(), ExpandWindowList(), ResizeVisExcludeMemory(), VWPLAdd(), and xxxSBWndProc().

typedef struct _WNDMSG * PWNDMSG
 

Referenced by SendMessageWorker().

typedef struct tagWOWTHREADINFO* PWOWTHREADINFO
 

Definition at line 67 of file client/nt6/user.h.

typedef struct tagSBCALC SBCALC
 

Referenced by HitTestScrollBar().

typedef struct tagSBDATA SBDATA
 

typedef struct tagSBINFO SBINFO
 

Referenced by _InitPwSB().

typedef struct tagSBTRACK SBTRACK
 

typedef struct tagSBWND SBWND
 

Referenced by InitFunctionTables(), and LW_RegisterWindows().

typedef struct _SCROLLPOS SCROLLPOS
 

typedef struct tagSERVERINFO SERVERINFO
 

Referenced by Win32UserInitialize().

typedef struct tagSETCLIPBDATA SETCLIPBDATA
 

Referenced by GetClipboardData(), and NtUserSetClipboardData().

typedef struct tagSHAREDINFO SHAREDINFO
 

typedef struct tagSIZERECT SIZERECT
 

Referenced by xxxCreateWindowEx().

typedef struct tagSNDMSGTIMEOUT SNDMSGTIMEOUT
 

Referenced by SendMessageTimeoutWorker(), and xxxSendMessageEx().

typedef struct _THRDESKHEAD THRDESKHEAD
 

Referenced by HMInitHandleTable().

typedef struct _THROBJHEAD THROBJHEAD
 

typedef VOID(APIENTRY * TIMERPROC_PWND)(PWND, UINT, UINT, LPARAM)
 

Definition at line 848 of file client/nt6/user.h.

Referenced by NtUserSetTimer(), and UserSetTimer().

typedef struct _USERCONNECT USERCONNECT
 

Referenced by NtUserProcessConnect(), UserClientConnect(), and UserClientDllInitialize().

typedef struct tagWND WND
 

Referenced by InternalRegisterClassEx().

typedef BOOL(APIENTRY * WNDENUMPROC_PWND)(PWND, LPARAM)
 

Definition at line 847 of file client/nt6/user.h.

Referenced by CancelInputState(), xxxActivateThisWindow(), xxxDeactivate(), and xxxInternalEnumWindow().

typedef struct _WNDMSG WNDMSG
 

typedef LRESULT(APIENTRY * WNDPROC_PWND)(PWND, UINT, WPARAM, LPARAM)
 

Definition at line 845 of file client/nt6/user.h.

Referenced by _WOWCleanup(), _WOWModuleUnload(), InitFunctionTables(), InternalRegisterClassEx(), MapServerToClientPfn(), PseudoDestroyClassWindows(), xxxCreateWindowEx(), xxxDispatchMessage(), xxxSetClassData(), and xxxSetWindowData().

typedef LRESULT(APIENTRY * WNDPROC_PWNDEX)(PWND, UINT, WPARAM, LPARAM, ULONG_PTR)
 

Definition at line 846 of file client/nt6/user.h.


Enumeration Type Documentation

anonymous enum
 

Enumeration values:
TYPE_NORMAL 
TYPE_POPUP 
TYPE_TCARD 

Definition at line 2666 of file client/nt6/user.h.

02666 { 02667 TYPE_NORMAL, 02668 TYPE_POPUP, 02669 TYPE_TCARD 02670 };


Function Documentation

BOOL _AdjustWindowRectEx LPRECT  lprc,
LONG  style,
BOOL  fMenu,
DWORD  dwExStyle
 

Definition at line 604 of file winmgrc.c.

00609 { 00610 // 00611 // Here we add on the appropriate 3D borders for old and new apps. 00612 // 00613 // Rules: 00614 // (1) Do nothing for windows that have 3D border styles. 00615 // (2) If the window has a dlgframe border (has a caption or is a 00616 // a dialog), then add on the window edge style. 00617 // (3) We NEVER add on the CLIENT STYLE. New apps can create 00618 // it if they want. This is because it screws up alignment 00619 // when the app doesn't know about it. 00620 // 00621 00622 if (NeedsWindowEdge(style, dwExStyle, GETAPPVER() >= VER40)) 00623 dwExStyle |= WS_EX_WINDOWEDGE; 00624 else 00625 dwExStyle &= ~WS_EX_WINDOWEDGE; 00626 00627 // 00628 // Space for a menu bar 00629 // 00630 if (fMenu) 00631 lprc->top -= SYSMET(CYMENU); 00632 00633 // 00634 // Space for a caption bar 00635 // 00636 if ((HIWORD(style) & HIWORD(WS_CAPTION)) == HIWORD(WS_CAPTION)) { 00637 lprc->top -= (dwExStyle & WS_EX_TOOLWINDOW) ? SYSMET(CYSMCAPTION) : SYSMET(CYCAPTION); 00638 } 00639 00640 // 00641 // Space for borders (window AND client) 00642 // 00643 { 00644 int cBorders; 00645 00646 // 00647 // Window AND Client borders 00648 // 00649 00650 if (cBorders = GetWindowBorders(style, dwExStyle, TRUE, TRUE)) 00651 InflateRect(lprc, cBorders*SYSMET(CXBORDER), cBorders*SYSMET(CYBORDER)); 00652 } 00653 00654 return TRUE; 00655 }

VOID _ClientToScreen PWND  pwnd,
PPOINT  ppt
 

Definition at line 893 of file rtl/wow.c.

00896 { 00897 /* 00898 * Client and screen coordinates are the same for the 00899 * desktop window. 00900 */ 00901 if (GETFNID(pwnd) != FNID_DESKTOP) { 00902 #ifdef USE_MIRRORING 00903 if (TestWF(pwnd, WEFLAYOUTRTL)) { 00904 ppt->x = pwnd->rcClient.right - ppt->x; 00905 } else 00906 #endif 00907 { 00908 ppt->x += pwnd->rcClient.left; 00909 } 00910 ppt->y += pwnd->rcClient.top; 00911 } 00912 }

BOOL _FChildVisible PWND  pwnd  ) 
 

Definition at line 294 of file rtl/winmgr.c.

00296 { 00297 while (TestwndChild(pwnd)) { 00298 pwnd = REBASEPWND(pwnd, spwndParent); 00299 if (pwnd == NULL) 00300 break; 00301 if (!TestWF(pwnd, WFVISIBLE)) 00302 return FALSE; 00303 } 00304 00305 return TRUE; 00306 }

PPROP _FindProp PWND  pwnd,
PCWSTR  pszKey,
BOOL  fInternal
 

Definition at line 46 of file rtl/winprop.c.

00050 { 00051 UINT i; 00052 PPROPLIST ppropList; 00053 PPROP pprop; 00054 ATOM atomKey; 00055 00056 /* 00057 * Make sure we have a property list. 00058 */ 00059 ppropList = REBASE(pwnd, ppropList); 00060 if (ppropList == NULL) 00061 return NULL; 00062 00063 /* 00064 * Call to the appropriate routine to verify the key name. 00065 */ 00066 atomKey = MapPropertyKey(pszKey); 00067 if (atomKey == 0) 00068 return NULL; 00069 00070 /* 00071 * Now we've got the atom, search the list for a property with the 00072 * same atom/name. Make sure to only return internal properties if 00073 * the fInternal flag is set. Do the same for external properties. 00074 */ 00075 pprop = ppropList->aprop; 00076 for (i = ppropList->iFirstFree; i > 0; i--) { 00077 if (pprop->atomKey == atomKey) { 00078 if (fInternal) { 00079 if (pprop->fs & PROPF_INTERNAL) 00080 return pprop; 00081 } else { 00082 if (!(pprop->fs & PROPF_INTERNAL)) 00083 return pprop; 00084 } 00085 } 00086 pprop++; 00087 } 00088 00089 /* 00090 * Property not found, too bad. 00091 */ 00092 return NULL; 00093 }

VOID _GetClientRect PWND  pwnd,
LPRECT  prc
 

Definition at line 924 of file rtl/wow.c.

00927 { 00928 /* 00929 * If this is a 3.1 app, and it's minimized, then we need to return 00930 * a rectangle other than the real-client-rect. This is necessary since 00931 * there is no client-rect-size in Win4.0. Apps such as PackRat 1.0 00932 * will GPF if returned a empty-rect. 00933 */ 00934 if (TestWF(pwnd, WFMINIMIZED) && !TestWF(pwnd, WFWIN40COMPAT)) { 00935 prc->left = 0; 00936 prc->top = 0; 00937 prc->right = SYSMETRTL(CXMINIMIZED); 00938 prc->bottom = SYSMETRTL(CYMINIMIZED); 00939 00940 } else { 00941 00942 if (GETFNID(pwnd) != FNID_DESKTOP) { 00943 *prc = pwnd->rcClient; 00944 OffsetRect(prc, -pwnd->rcClient.left, -pwnd->rcClient.top); 00945 } else { 00946 /* 00947 * For compatibility, return the rect of the primary 00948 * monitor for the desktop window. 00949 */ 00950 prc->left = prc->top = 0; 00951 prc->right = SYSMETRTL(CXSCREEN); 00952 prc->bottom = SYSMETRTL(CYSCREEN); 00953 } 00954 } 00955 }

SHORT _GetKeyState int  vk  ) 
 

Definition at line 27 of file keyboard.c.

Referenced by xxxDWP_ProcessVirtKey().

00029 { 00030 UINT wKeyState; 00031 PTHREADINFO pti; 00032 00033 if ((UINT)vk >= CVKKEYSTATE) { 00034 RIPERR1(ERROR_INVALID_PARAMETER, 00035 RIP_WARNING, 00036 "Invalid parameter \"vk\" (%ld) to _GetKeyState", 00037 vk); 00038 00039 return 0; 00040 } 00041 00042 pti = PtiCurrentShared(); 00043 00044 #ifdef LATER 00045 // 00046 // note - anything that accesses the pq structure is a bad idea since it 00047 // can be changed between any two instructions. 00048 // 00049 #endif 00050 00051 wKeyState = 0; 00052 00053 /* 00054 * Set the toggle bit. 00055 */ 00056 if (TestKeyStateToggle(pti->pq, vk)) 00057 wKeyState = 0x0001; 00058 00059 /* 00060 * Set the keyup/down bit. 00061 */ 00062 if (TestKeyStateDown(pti->pq, vk)) { 00063 /* 00064 * Used to be wKeyState|= 0x8000.Fix for bug 28820; Ctrl-Enter 00065 * accelerator doesn't work on Nestscape Navigator Mail 2.0 00066 */ 00067 wKeyState |= 0xff80; // This is what 3.1 returned!!!! 00068 } 00069 00070 return (SHORT)wKeyState; 00071 }

PWND _GetLastActivePopup PWND  pwnd  ) 
 

Definition at line 490 of file rtl/winmgr.c.

00492 { 00493 if (pwnd->spwndLastActive == NULL) 00494 return pwnd; 00495 00496 return REBASEPWND(pwnd, spwndLastActive); 00497 }

DWORD _GetMenuDefaultItem PMENU  pMenu,
BOOL  fByPosition,
UINT  uFlags
 

Definition at line 26 of file ntuser/rtl/menu.c.

00027 { 00028 int iItem; 00029 int cItems; 00030 PITEM pItem; 00031 PMENU pSubMenu; 00032 00033 pItem = REBASEALWAYS(pMenu, rgItems); 00034 cItems = pMenu->cItems; 00035 00036 /* 00037 * Walk the list of items sequentially until we find one that has 00038 * MFS_DEFAULT set. 00039 */ 00040 for (iItem = 0; iItem < cItems; iItem++, pItem++) { 00041 if (TestMFS(pItem, MFS_DEFAULT)) { 00042 if ((uFlags & GMDI_USEDISABLED) || !TestMFS(pItem, MFS_GRAYED)) { 00043 if ((uFlags & GMDI_GOINTOPOPUPS) && (pItem->spSubMenu != NULL)) { 00044 DWORD id; 00045 00046 /* 00047 * Is there a valid submenu default? If not, we'll use 00048 * this one. 00049 */ 00050 pSubMenu = REBASEPTR(pMenu, pItem->spSubMenu); 00051 id = _GetMenuDefaultItem(pSubMenu, fByPosition, uFlags); 00052 if (id != MFMWFP_NOITEM) 00053 return(id); 00054 } 00055 00056 break; 00057 } 00058 } 00059 } 00060 00061 if (iItem < cItems) { 00062 return (fByPosition ? iItem : pItem->wID); 00063 } else { 00064 return (MFMWFP_NOITEM); 00065 } 00066 }

UINT _GetMenuState PMENU  pMenu,
UINT  wID,
UINT  dwFlags
 

Definition at line 583 of file rtl/wow.c.

00587 { 00588 PITEM pItem; 00589 DWORD fFlags; 00590 00591 /* 00592 * If the item does not exist, leave 00593 */ 00594 if ((pItem = MNLookUpItem(pMenu, wId, (BOOL) (dwFlags & MF_BYPOSITION), NULL)) == NULL) 00595 return (UINT)-1; 00596 00597 fFlags = pItem->fState | pItem->fType; 00598 00599 #ifndef _USERK_ 00600 /* 00601 * Add old MFT_BITMAP flag to keep old apps happy 00602 */ 00603 if ((pItem->hbmp != NULL) && (pItem->lpstr == NULL)) { 00604 fFlags |= MFT_BITMAP; 00605 } 00606 #endif 00607 00608 if (pItem->spSubMenu != NULL) { 00609 /* 00610 * If the item is a popup, return item count in high byte and 00611 * popup flags in low byte 00612 */ 00613 00614 fFlags = ((fFlags | MF_POPUP) & 0x00FF) + 00615 (((PMENU)REBASEPTR(pMenu, pItem->spSubMenu))->cItems << 8); 00616 } 00617 00618 return fFlags; 00619 }

PWND _GetParent PWND  pwnd  ) 
 

Definition at line 762 of file rtl/wow.c.

00764 { 00765 /* 00766 * For 1.03 compatibility reasons, we should return NULL 00767 * for top level "tiled" windows and owner for other popups. 00768 * pwndOwner is set to NULL in xxxCreateWindow for top level 00769 * "tiled" windows. 00770 */ 00771 if (!(TestwndTiled(pwnd))) { 00772 if (TestwndChild(pwnd)) 00773 pwnd = REBASEPWND(pwnd, spwndParent); 00774 else 00775 pwnd = REBASEPWND(pwnd, spwndOwner); 00776 return pwnd; 00777 } 00778 00779 /* 00780 * The window was not a child window; they may have been just testing 00781 * if it was 00782 */ 00783 return NULL; 00784 }

HANDLE _GetProp PWND  pwnd,
PCWSTR  pszKey,
BOOL  fInternal
 

Definition at line 106 of file rtl/winprop.c.

00110 { 00111 PPROP pprop; 00112 00113 /* 00114 * A quick little optimization for that case where the window has no 00115 * properties at all. 00116 */ 00117 if (pwnd->ppropList == NULL) 00118 return NULL; 00119 00120 /* 00121 * FindProp does all the work, including converting pszKey to an atom 00122 * (if necessary) for property lookup. 00123 */ 00124 pprop = _FindProp(pwnd, pszKey, fInternal); 00125 if (pprop == NULL) 00126 return NULL; 00127 00128 return pprop->hData; 00129 }

PMENU _GetSubMenu PMENU  pMenu,
int  nPos
 

Definition at line 796 of file rtl/wow.c.

00799 { 00800 PITEM pItem; 00801 PMENU pPopup = NULL; 00802 00803 /* 00804 * Make sure nPos refers to a valid popup 00805 */ 00806 if ((UINT)nPos < (UINT)((PMENU)pMenu)->cItems) { 00807 pItem = &((PITEM)REBASEALWAYS(pMenu, rgItems))[nPos]; 00808 if (pItem->spSubMenu != NULL) 00809 pPopup = (PMENU)REBASEPTR(pMenu, pItem->spSubMenu); 00810 00811 } 00812 00813 return (PVOID)pPopup; 00814 }

PWND _GetWindow PWND  pwnd,
UINT  cmd
 

Definition at line 668 of file rtl/wow.c.

00671 { 00672 PWND pwndT; 00673 BOOL fRebase = FALSE; 00674 00675 /* 00676 * If this is a desktop window, return NULL for sibling or 00677 * parent information. 00678 */ 00679 if (GETFNID(pwnd) == FNID_DESKTOP) { 00680 switch (cmd) { 00681 case GW_CHILD: 00682 break; 00683 00684 default: 00685 return NULL; 00686 break; 00687 } 00688 } 00689 00690 /* 00691 * Rebase the returned window at the end of the routine 00692 * to avoid multiple test for pwndT == NULL. 00693 */ 00694 pwndT = NULL; 00695 switch (cmd) { 00696 case GW_HWNDNEXT: 00697 pwndT = pwnd->spwndNext; 00698 fRebase = TRUE; 00699 break; 00700 00701 case GW_HWNDFIRST: 00702 if (pwnd->spwndParent) { 00703 pwndT = REBASEPWND(pwnd, spwndParent); 00704 pwndT = REBASEPWND(pwndT, spwndChild); 00705 if (GetAppCompatFlags(NULL) & GACF_IGNORETOPMOST) { 00706 while (pwndT != NULL) { 00707 if (!TestWF(pwndT, WEFTOPMOST)) 00708 break; 00709 pwndT = REBASEPWND(pwndT, spwndNext); 00710 } 00711 } 00712 } 00713 break; 00714 00715 case GW_HWNDLAST: 00716 pwndT = GetPrevPwnd(pwnd, NULL); 00717 break; 00718 00719 case GW_HWNDPREV: 00720 pwndT = GetPrevPwnd(pwnd, pwnd); 00721 break; 00722 00723 case GW_OWNER: 00724 pwndT = pwnd->spwndOwner; 00725 fRebase = TRUE; 00726 break; 00727 00728 case GW_CHILD: 00729 pwndT = pwnd->spwndChild; 00730 fRebase = TRUE; 00731 break; 00732 00733 #if !defined(_USERK_) 00734 case GW_ENABLEDPOPUP: 00735 pwndT = (PWND)NtUserCallHwnd(PtoHq(pwnd), SFI_DWP_GETENABLEDPOPUP); 00736 fRebase = TRUE; 00737 break; 00738 #endif 00739 00740 default: 00741 RIPERR0(ERROR_INVALID_GW_COMMAND, RIP_VERBOSE, ""); 00742 return NULL; 00743 } 00744 00745 if (pwndT != NULL && fRebase) 00746 pwndT = REBASEPTR(pwnd, pwndT); 00747 00748 return pwndT; 00749 }

VOID _GetWindowRect PWND  pwnd,
LPRECT  prc
 

Definition at line 967 of file rtl/wow.c.

00970 { 00971 00972 if (GETFNID(pwnd) != FNID_DESKTOP) { 00973 *prc = pwnd->rcWindow; 00974 } else { 00975 /* 00976 * For compatibility, return the rect of the primary 00977 * monitor for the desktop window. 00978 */ 00979 prc->left = 0; 00980 prc->top = 0; 00981 prc->right = SYSMETRTL(CXSCREEN); 00982 prc->bottom = SYSMETRTL(CYSCREEN); 00983 } 00984 }

BOOL _HasCaptionIcon PWND  pwnd  ) 
 

Definition at line 763 of file rtl/winmgr.c.

00764 { 00765 HICON hIcon; 00766 PCLS pcls; 00767 00768 if (TestWF(pwnd, WEFTOOLWINDOW)) 00769 // it's a tool window -- it doesn't get an icon 00770 return(FALSE); 00771 00772 if ((TestWF(pwnd, WFBORDERMASK) != (BYTE)LOBYTE(WFDLGFRAME)) && 00773 !TestWF(pwnd, WEFDLGMODALFRAME)) 00774 // they are not trying to look like a dialog, they get an icon 00775 return TRUE; 00776 00777 if (!TestWF(pwnd, WFWIN40COMPAT) && 00778 (((PCLS)REBASEALWAYS(pwnd, pcls))->atomClassName == (ATOM)(ULONG_PTR)DIALOGCLASS)) 00779 // it's an older REAL dialog -- it doesn't get an icon 00780 return(FALSE); 00781 00782 hIcon = (HICON) _GetProp(pwnd, MAKEINTATOM(gpsi->atomIconSmProp), TRUE); 00783 00784 if (hIcon) { 00785 // it's a 4.0 dialog with a small icon -- if that small icon is 00786 // something other than the generic small windows icon, it gets an icon 00787 return(hIcon != gpsi->hIconSmWindows); 00788 } 00789 hIcon = (HICON) _GetProp(pwnd, MAKEINTATOM(gpsi->atomIconProp), TRUE); 00790 00791 if (hIcon && (hIcon != gpsi->hIcoWindows)) 00792 // it's a 4.0 dialog with no small icon, but instead a large icon 00793 // that's not the generic windows icon -- it gets an icon 00794 return(TRUE); 00795 00796 pcls = REBASEALWAYS(pwnd, pcls); 00797 if (pcls->spicnSm) { 00798 if (pcls->spicnSm != HMObjectFromHandle(gpsi->hIconSmWindows)) { 00799 // it's a 4.0 dialog with a class icon that's not the generic windows 00800 // icon -- it gets an icon 00801 return(TRUE); 00802 } 00803 } 00804 00805 // it's a 4.0 dialog with no small or large icon -- it doesn't get an icon 00806 return(FALSE); 00807 }

BOOL _IsChild PWND  pwndParent,
PWND  pwnd
 

Definition at line 826 of file rtl/wow.c.

00829 { 00830 /* 00831 * Don't need a test to get out of the loop because the 00832 * desktop is not a child. 00833 */ 00834 while (pwnd != NULL) { 00835 if (!TestwndChild(pwnd)) 00836 return FALSE; 00837 00838 pwnd = REBASEPWND(pwnd, spwndParent); 00839 if (pwndParent == pwnd) 00840 return TRUE; 00841 } 00842 return FALSE; 00843 }

BOOL _IsDescendant PWND  pwndParent,
PWND  pwndChild
 

Definition at line 513 of file rtl/winmgr.c.

00516 { 00517 while (1) { 00518 if (pwndParent == pwndChild) 00519 return TRUE; 00520 if (GETFNID(pwndChild) == FNID_DESKTOP) 00521 break; 00522 pwndChild = REBASEPWND(pwndChild, spwndParent); 00523 } 00524 00525 return FALSE; 00526 }

BOOL _IsWindowVisible PWND  pwnd  ) 
 

Definition at line 860 of file rtl/wow.c.

00862 { 00863 /* 00864 * Check if this is the iconic window being moved around with a mouse 00865 * If so, return a TRUE, though, strictly speaking, it is hidden. 00866 * This helps the Tracer guys from going crazy! 00867 * Fix for Bug #57 -- SANKAR -- 08-08-89 -- 00868 */ 00869 if (pwnd == NULL) 00870 return TRUE; 00871 00872 for (;;) { 00873 if (!TestWF(pwnd, WFVISIBLE)) 00874 return FALSE; 00875 if (GETFNID(pwnd) == FNID_DESKTOP) 00876 break; 00877 pwnd = REBASEPWND(pwnd, spwndParent); 00878 } 00879 00880 return TRUE; 00881 }

int _MapWindowPoints PWND  pwndFrom,
PWND  pwndTo,
LPPOINT  lppt,
DWORD  cpt
 

Definition at line 316 of file rtl/winmgr.c.

00321 { 00322 #ifdef USE_MIRRORING 00323 int dx = 0, dy = 0; 00324 int SaveLeft, Sign = 1; 00325 RECT *pR = (RECT *)lppt; 00326 BOOL bMirrored = FALSE; 00327 #else 00328 int dx, dy; 00329 LPPOINT pptFrom, pptTo; 00330 #endif 00331 00332 /* 00333 * If a window is NULL, use the desktop window. 00334 * If the window is the desktop, don't offset by 00335 * the client rect, since it won't work if the screen 00336 * origin is not (0,0) - use zero instead. 00337 */ 00338 00339 /* 00340 * Compute deltas 00341 */ 00342 #ifdef USE_MIRRORING 00343 if (pwndFrom && GETFNID(pwndFrom) != FNID_DESKTOP) { 00344 if (TestWF(pwndFrom, WEFLAYOUTRTL)) { 00345 Sign = -Sign; 00346 dx = -pwndFrom->rcClient.right; 00347 bMirrored = (cpt == 2); 00348 } else { 00349 dx = pwndFrom->rcClient.left; 00350 } 00351 dy = pwndFrom->rcClient.top; 00352 } 00353 00354 if (pwndTo && GETFNID(pwndTo) != FNID_DESKTOP) { 00355 if (TestWF(pwndTo, WEFLAYOUTRTL)) { 00356 Sign = -Sign; 00357 dx = dx + Sign * pwndTo->rcClient.right; 00358 bMirrored = (cpt == 2); 00359 } else { 00360 dx = dx - Sign * pwndTo->rcClient.left; 00361 } 00362 dy = dy - pwndTo->rcClient.top; 00363 } 00364 00365 #else 00366 if (pwndFrom == NULL || GETFNID(pwndFrom) == FNID_DESKTOP) { 00367 pptFrom = PZERO(POINT); 00368 } else { 00369 pptFrom = (LPPOINT) &pwndFrom->rcClient; 00370 } 00371 00372 if (pwndTo == NULL || GETFNID(pwndTo) == FNID_DESKTOP) { 00373 pptTo = PZERO(POINT); 00374 } else { 00375 pptTo = (LPPOINT) &pwndTo->rcClient; 00376 } 00377 dx = pptFrom->x - pptTo->x; 00378 dy = pptFrom->y - pptTo->y; 00379 #endif 00380 00381 /* 00382 * Map the points 00383 */ 00384 while (cpt--) { 00385 lppt->x += dx; 00386 #ifdef USE_MIRRORING 00387 lppt->x *= Sign; 00388 #endif 00389 lppt->y += dy; 00390 ++lppt; 00391 } 00392 00393 #ifdef USE_MIRRORING 00394 if (bMirrored) { //Special case for Rect 00395 SaveLeft = min (pR->left, pR->right); 00396 pR->right = max (pR->left, pR->right); 00397 pR->left = SaveLeft; 00398 } 00399 #endif 00400 return MAKELONG(dx, dy); 00401 }

BOOL _MNCanClose PWND  pwnd  ) 
 

PMONITOR _MonitorFromPoint POINT  pt,
DWORD  dwFlags
 

Definition at line 56 of file mmrtl.c.

00057 { 00058 PMONITOR pMonitor, pMonitorResult; 00059 int dx; 00060 int dy; 00061 00062 UserAssert(dwFlags == MONITOR_DEFAULTTONULL || 00063 dwFlags == MONITOR_DEFAULTTOPRIMARY || 00064 dwFlags == MONITOR_DEFAULTTONEAREST); 00065 00066 if (GetDispInfo()->cMonitors == 1 && dwFlags != MONITOR_DEFAULTTONULL) 00067 return GetPrimaryMonitor(); 00068 00069 switch (dwFlags) { 00070 case MONITOR_DEFAULTTONULL: 00071 case MONITOR_DEFAULTTOPRIMARY: 00072 /* 00073 * Return the monitor the point is in. 00074 */ 00075 00076 BEGIN_EXCEPTION_HANDLER 00077 00078 for ( pMonitor = REBASESHAREDPTRALWAYS(GetDispInfo()->pMonitorFirst); 00079 pMonitor; 00080 pMonitor = REBASESHAREDPTR(pMonitor->pMonitorNext)) { 00081 00082 if (!(pMonitor->dwMONFlags & MONF_VISIBLE)) 00083 continue; 00084 00085 if (PtInRect(&((MONITOR *)pMonitor)->rcMonitor, pt)) { 00086 return pMonitor; 00087 } 00088 } 00089 00090 END_EXCEPTION_HANDLER_EMPTY 00091 00092 /* 00093 * Return what the user wants if it's not found. 00094 */ 00095 switch (dwFlags) { 00096 case MONITOR_DEFAULTTONULL: 00097 return NULL; 00098 00099 case MONITOR_DEFAULTTOPRIMARY: 00100 return GetPrimaryMonitor(); 00101 00102 default: 00103 UserAssertMsg0(FALSE, "Logic error in _MonitorFromPoint"); 00104 break; 00105 } 00106 00107 case MONITOR_DEFAULTTONEAREST: 00108 00109 #define MONITORFROMPOINTALGORITHM(SUMSQUARESMAX, SUMSQUARESTYPE, POINTMULTIPLY) \ 00110 SUMSQUARESTYPE sumsquare; \ 00111 SUMSQUARESTYPE leastsumsquare; \ 00112 leastsumsquare = SUMSQUARESMAX; \ 00113 for ( pMonitor = REBASESHAREDPTRALWAYS(GetDispInfo()->pMonitorFirst); \ 00114 pMonitor; \ 00115 pMonitor = REBASESHAREDPTR(pMonitor->pMonitorNext)) { \ 00116 \ 00117 if (!(pMonitor->dwMONFlags & MONF_VISIBLE)) \ 00118 continue; \ 00119 \ 00120 /* \ 00121 * Determine distance from monitor along x axis. \ 00122 */ \ 00123 if (pt.x < pMonitor->rcMonitor.left) { \ 00124 dx = pMonitor->rcMonitor.left - pt.x; \ 00125 } else if (pt.x < pMonitor->rcMonitor.right) { \ 00126 dx = 0; \ 00127 } else { \ 00128 /* \ 00129 * Monitor rectangles do not include the rightmost edge. \ 00130 */ \ 00131 dx = pt.x - (pMonitor->rcMonitor.right - 1); \ 00132 } \ 00133 \ 00134 /* \ 00135 * Skip this monitor if dx is greater than dx^2 + dy^2. \ 00136 * We do this check to avoid multiplication operations. \ 00137 */ \ 00138 if ((SUMSQUARESTYPE) dx >= leastsumsquare) \ 00139 continue; \ 00140 \ 00141 /* \ 00142 * Determine distance from monitor along y axis. \ 00143 */ \ 00144 if (pt.y < pMonitor->rcMonitor.top) { \ 00145 dy = pMonitor->rcMonitor.top - pt.y; \ 00146 } else if (pt.y < pMonitor->rcMonitor.bottom) { \ 00147 /* \ 00148 * The point is in the monitor and we're done \ 00149 * if both dx and dy are zero. \ 00150 */ \ 00151 if (dx == 0) \ 00152 return pMonitor; \ 00153 \ 00154 dy = 0; \ 00155 } else { \ 00156 dy = pt.y - (pMonitor->rcMonitor.bottom - 1); \ 00157 } \ 00158 \ 00159 /* \ 00160 * Calculate dx^2. Skip this monitor if dx is greater \ 00161 * than dx^2 + dy^2. We do this check to avoid \ 00162 * multiplication operations. \ 00163 */ \ 00164 sumsquare = POINTMULTIPLY(dx, dx); \ 00165 if (sumsquare >= leastsumsquare) \ 00166 continue; \ 00167 \ 00168 /* \ 00169 * Skip this monitor if dx^2 + y is greater than dx^2 + dy^2. \ 00170 * We do this check to avoid multiplication operations. \ 00171 */ \ 00172 if (sumsquare + (SUMSQUARESTYPE) dy >= leastsumsquare) \ 00173 continue; \ 00174 \ 00175 /* \ 00176 * Compute dx^2 + dy^2. Skip this monitor if it's not the least. \ 00177 */ \ 00178 sumsquare += (SUMSQUARESTYPE) POINTMULTIPLY(dy, dy); \ 00179 if (sumsquare >= leastsumsquare) \ 00180 continue; \ 00181 \ 00182 /* \ 00183 * This is the closest monitor so far. \ 00184 */ \ 00185 leastsumsquare = sumsquare; \ 00186 pMonitorResult = pMonitor; \ 00187 } 00188 00189 #if DBG 00190 pMonitorResult = (PMONITOR) -1; 00191 #endif 00192 00193 if ( pt.x < SHRT_MIN || SHRT_MAX < pt.x || 00194 pt.y < SHRT_MIN || SHRT_MAX < pt.y) { 00195

PMONITOR _MonitorFromRect LPCRECT  lprc,
DWORD  dwFlags
 

Definition at line 221 of file mmrtl.c.

00227 : 00228 * lprc - The rect. 00229 * dwFlags - One of: 00230 * MONITOR_DEFAULTTONULL - If the rect doesn't intersect a monitor, 00231 * return NULL. 00232 * 00233 * MONITOR_DEFAULTTOPRIMARY - If the rect doesn't intersect a monitor, 00234 * return the primary monitor. 00235 * 00236 * MONITOR_DEFAULTTONEAREST - Return the monitor nearest the rect. 00237 * 00238 * History: 00239 * 22-Sep-1996 adams Created. 00240 * 29-Mar-1997 adams Moved to rtl. 00241 \***************************************************************************/ 00242 00243 PMONITOR 00244 _MonitorFromRect(LPCRECT lprc, DWORD dwFlags) 00245 { 00246 PDISPLAYINFO pDispInfo; 00247 PMONITOR pMonitor, pMonitorResult; 00248 RECT rc; 00249 int area, areaMost; 00250 00251 UserAssert(dwFlags == MONITOR_DEFAULTTONULL || 00252 dwFlags == MONITOR_DEFAULTTOPRIMARY || 00253 dwFlags == MONITOR_DEFAULTTONEAREST); 00254 00255 /* 00256 * Special case the most common case - 1 monitor. 00257 */ 00258 pDispInfo = GetDispInfo(); 00259 if (pDispInfo->cMonitors == 1 && dwFlags != MONITOR_DEFAULTTONULL) 00260 return GetPrimaryMonitor(); 00261 00262 /* 00263 * If rect is empty, use topleft point. 00264 */ 00265 if (IsRectEmpty(lprc)) { 00266 return _MonitorFromPoint(*(LPPOINT)lprc, dwFlags); 00267 } 00268 00269 /* 00270 * Return the primary monitor if the rectangle covers the desktop. 00271 */ 00272 if ( lprc->left <= pDispInfo->rcScreen.left && 00273 lprc->top <= pDispInfo->rcScreen.top && 00274 lprc->right >= pDispInfo->rcScreen.right && 00275 lprc->bottom >= pDispInfo->rcScreen.bottom) { 00276 00277 return GetPrimaryMonitor(); 00278 } 00279 00280 /* 00281 * Calculate the nearest rectangle by determining which 00282 * monitor has the greatest intersection with the rectangle. 00283 */ 00284 00285 BEGIN_EXCEPTION_HANDLER 00286 00287 areaMost = 0; 00288 for ( pMonitor = REBASESHAREDPTRALWAYS(GetDispInfo()->pMonitorFirst); 00289 pMonitor; 00290 pMonitor = REBASESHAREDPTR(pMonitor->pMonitorNext)) { 00291 00292 if (!(pMonitor->dwMONFlags & MONF_VISIBLE)) 00293 continue; 00294 00295 if (IntersectRect(&rc, lprc, &((MONITOR *)pMonitor)->rcMonitor)) { 00296 if (EqualRect(&rc, lprc)) 00297 return pMonitor; 00298 00299 /* 00300 * Calculate the area of the intersection. Note that 00301 * the intersection must be in 16bit coordinats, since 00302 * we limit monitor rects to 16bit coordinate space. 00303 * So the result of any area calculation will fit in 00304 * in an int. 00305 */ 00306 area = (rc.right - rc.left) * (rc.bottom - rc.top); 00307 if (area > areaMost) { 00308 areaMost = area; 00309 pMonitorResult = pMonitor; 00310 } 00311 } 00312 } 00313 00314 END_EXCEPTION_HANDLER 00315 00316 UserAssert(areaMost >= 0); 00317 if (areaMost > 0) 00318 return pMonitorResult; 00319 00320 00321 switch (dwFlags) { 00322 case MONITOR_DEFAULTTONULL: 00323 return NULL; 00324 00325 case MONITOR_DEFAULTTOPRIMARY: 00326 return GetPrimaryMonitor(); 00327 00328 case MONITOR_DEFAULTTONEAREST: 00329 { 00330 int dx, dy; 00331 00332 #define MONITORFROMRECTALGORITHM(SUMSQUARESMAX, SUMSQUARESTYPE, POINTMULTIPLY) \ 00333 SUMSQUARESTYPE sumsquare; \ 00334 SUMSQUARESTYPE leastsumsquare; \ 00335 leastsumsquare = SUMSQUARESMAX; \ 00336 for ( pMonitor = REBASESHAREDPTRALWAYS(GetDispInfo()->pMonitorFirst); \ 00337 pMonitor; \ 00338 pMonitor = REBASESHAREDPTR(pMonitor->pMonitorNext)) { \ 00339 \ 00340 if (!(pMonitor->dwMONFlags & MONF_VISIBLE)) \ 00341 continue; \ 00342 \ 00343 /* \ 00344 * Determine distance from monitor along x axis. \ 00345 */ \ 00346 if (lprc->right <= pMonitor->rcMonitor.left) { \ 00347 /* \ 00348 * Add 1 because rectangles do not include the rightmost edge. \ 00349 */ \ 00350 dx = pMonitor->rcMonitor.left - lprc->right + 1; \ 00351 } else if (lprc->left < pMonitor->rcMonitor.right) { \ 00352 dx = 0; \ 00353 } else { \ 00354 /* \ 00355 * Add 1 because rectangles do not include the rightmost edge. \ 00356 */ \ 00357 dx = lprc->left - (pMonitor->rcMonitor.right - 1); \ 00358 } \ 00359 \ 00360 /* \ 00361 * Skip this monitor if dx is greater than dx^2 + dy^2. \ 00362 * We do this check to avoid multiplication operations. \ 00363 */ \ 00364 if ((SUMSQUARESTYPE) dx >= leastsumsquare) \ 00365 continue; \ 00366 \ 00367 /* \ 00368 * Determine distance from monitor along y axis. \ 00369 */ \ 00370 if (lprc->bottom <= pMonitor->rcMonitor.top) { \ 00371 /* \ 00372 * Add 1 because rectangles do not include the bottommost edge. \ 00373 */ \ 00374 dy = pMonitor->rcMonitor.top - lprc->bottom + 1; \ 00375 } else if (lprc->top < pMonitor->rcMonitor.bottom) { \ 00376 UserAssert(dx != 0 && "This rectangle intersects a monitor, so we shouldn't be here."); \ 00377 dy = 0; \ 00378 } else { \ 00379 /* \ 00380 * Add 1 because rectangles do not include the bottommost edge. \ 00381 */ \ 00382 dy = lprc->top - pMonitor->rcMonitor.bottom + 1; \ 00383 } \ 00384 \ 00385 /* \ 00386 * Calculate dx^2. Skip this monitor if dx is greater \ 00387 * than dx^2 + dy^2. We do this check to avoid \ 00388 * multiplication operations. \ 00389 */ \ 00390 sumsquare = POINTMULTIPLY(dx, dx); \ 00391 if (sumsquare >= leastsumsquare) \ 00392 continue; \ 00393 \ 00394 /* \ 00395 * Skip this monitor if dx^2 + y is greater than dx^2 + dy^2. \ 00396 * We do this check to avoid multiplication operations. \ 00397 */ \ 00398 if (sumsquare + (SUMSQUARESTYPE) dy >= leastsumsquare) \ continue; \

PMONITOR _MonitorFromWindow PWND  pwnd,
DWORD  dwFlags
 

Definition at line 426 of file mmrtl.c.

00428 { 00429 00430 BEGIN_EXCEPTION_HANDLER 00431 MONITORFROMRECTALGORITHM(UINT_MAX, UINT, Int32x32To32) 00432 END_EXCEPTION_HANDLER 00433 00434 } 00435 00436 UserAssert(pMonitorResult != (PMONITOR) -1); 00437 return pMonitorResult; 00438 } 00439 00440 default: 00441 UserAssertMsg0(0, "Logic error in _MonitorFromWindow, shouldn't have gotten here."); 00442 break; 00443 } 00444 00445 UserAssertMsg0(0, "Logic error in _MonitorFromWindow, shouldn't have gotten here."); 00446 return NULL; 00447 } 00448 00449 00450 00451 /***************************************************************************\ 00452 * _MonitorFromWindow 00453 * 00454 * Calculate the monitor that a window is in or is nearest to. We use 00455 * the center of the window to determine its location. If the window 00456 * is minimized, use its normal position. 00457 * 00458 * Arguments: 00459 * pwnd - The window. 00460 * dwFlags - One of: 00461 * MONITOR_DEFAULTTONULL - If the window doesn't intersect a monitor, 00462 * return NULL. 00463 * 00464 * MONITOR_DEFAULTTOPRIMARY - If the window doesn't intersect a monitor, 00465 * return the primary monitor. 00466 * 00467 * MONITOR_DEFAULTTONEAREST - Return the monitor nearest the window. 00468 * 00469 * History: 00470 * 22-Sep-1996 adams Created. 00471 * 29-Mar-1997 adams Moved to rtl. 00472 \***************************************************************************/ 00473 00474 PMONITOR 00475 _MonitorFromWindow(PWND pwnd, DWORD dwFlags) 00476 { 00477 PWND pwndParent; 00478 00479 UserAssert(dwFlags == MONITOR_DEFAULTTONULL || 00480 dwFlags == MONITOR_DEFAULTTOPRIMARY || 00481 dwFlags == MONITOR_DEFAULTTONEAREST); 00482 00483 if (GetDispInfo()->cMonitors == 1 && dwFlags != MONITOR_DEFAULTTONULL) { 00484 return GetPrimaryMonitor(); 00485 } 00486 00487 if (!pwnd) 00488 goto NoWindow; 00489 00490 /* 00491 * Handle minimized windows. 00492 */ 00493 if (TestWF(pwnd, WFMINIMIZED)) 00494 { 00495 #ifdef _USERK_ 00496 CHECKPOINT * pcp;

BOOL _RegisterServicesProcess DWORD  dwProcessId  ) 
 

BOOL _SBGetParms PWND  pwnd,
int  code,
PSBDATA  pw,
LPSCROLLINFO  lpsi
 

Definition at line 140 of file sbctl.c.

00145 { 00146 PSBTRACK pSBTrack; 00147 00148 pSBTrack = PWNDTOPSBTRACK(pwnd); 00149 00150 00151 if (lpsi->fMask & SIF_RANGE) { 00152 lpsi->nMin = pw->posMin; 00153 lpsi->nMax = pw->posMax; 00154 } 00155 00156 if (lpsi->fMask & SIF_PAGE) 00157 lpsi->nPage = pw->page; 00158 00159 if (lpsi->fMask & SIF_POS) { 00160 lpsi->nPos = pw->pos; 00161 } 00162 00163 if (lpsi->fMask & SIF_TRACKPOS) 00164 { 00165 if (pSBTrack && (pSBTrack->nBar == code) && (pSBTrack->spwndTrack == pwnd)) { 00166 // posNew is in the context of psbiSB's window and bar code 00167 lpsi->nTrackPos = pSBTrack->posNew; 00168 } else { 00169 lpsi->nTrackPos = pw->pos; 00170 } 00171 } 00172 return ((lpsi->fMask & SIF_ALL) ? TRUE : FALSE); 00173 }

VOID _ScreenToClient PWND  pwnd,
PPOINT  ppt
 

Definition at line 995 of file rtl/wow.c.

00998 { 00999 /* 01000 * Client and screen coordinates are the same for the 01001 * desktop window. 01002 */ 01003 if (GETFNID(pwnd) != FNID_DESKTOP) { 01004 #ifdef USE_MIRRORING 01005 if (TestWF(pwnd, WEFLAYOUTRTL)) { 01006 ppt->x = pwnd->rcClient.right - ppt->x; 01007 } else 01008 #endif 01009 { 01010 ppt->x -= pwnd->rcClient.left; 01011 } 01012 ppt->y -= pwnd->rcClient.top; 01013 } 01014 }

UINT CalcWakeMask UINT  wMsgFilterMin,
UINT  wMsgFilterMax,
UINT  fsWakeMaskFilter
 

Definition at line 43 of file ntuser/rtl/input.c.

00047 { 00048 UINT fsWakeMask; 00049 00050 /* 00051 * New for NT5: wake mask filter. 00052 * In addition to the message filter, the application can also provide 00053 * a wake mask directly. 00054 * If none is provided, default to NT4 mask (plus QS_SENDMESSAGE). 00055 */ 00056 if (fsWakeMaskFilter == 0) { 00057 fsWakeMask = (QS_ALLINPUT | QS_EVENT | QS_ALLPOSTMESSAGE); 00058 } else { 00059 /* 00060 * If the caller wants input, we force all input events. The 00061 * same goes for posted messages. We do this to keep NT4 00062 * compatibility as much as possible. 00063 */ 00064 if (fsWakeMaskFilter & QS_INPUT) { 00065 fsWakeMaskFilter |= (QS_INPUT | QS_EVENT); 00066 } 00067 if (fsWakeMaskFilter & (QS_POSTMESSAGE | QS_TIMER | QS_HOTKEY)) { 00068 fsWakeMaskFilter |= (QS_POSTMESSAGE | QS_TIMER | QS_HOTKEY); 00069 } 00070 fsWakeMask = fsWakeMaskFilter; 00071 } 00072 00073 #ifndef _USERK_ 00074 /* 00075 * The client PeekMessage in client\cltxt.h didn't used to 00076 * call CalcWakeMask if wMsgFilterMax was 0. We call it now 00077 * to take care of fsWakeMaskFilter but still bail before 00078 * messing with the message filter. 00079 */ 00080 if (wMsgFilterMax == 0) { 00081 return fsWakeMask; 00082 } 00083 #endif 00084 00085 /* 00086 * Message filter. 00087 * If the filter doesn't match certain ranges, we take out bits one by one. 00088 * First check for a 0, 0 filter which means we want all input. 00089 */ 00090 if (wMsgFilterMin == 0 && wMsgFilterMax == ((UINT)-1)) { 00091 return fsWakeMask; 00092 } 00093 00094 /* 00095 * We're not looking at all posted messages. 00096 */ 00097 fsWakeMask &= ~QS_ALLPOSTMESSAGE; 00098 00099 /* 00100 * Check for mouse move messages. 00101 */ 00102 if ((CheckMsgFilter(WM_NCMOUSEMOVE, wMsgFilterMin, wMsgFilterMax) == FALSE) && 00103 (CheckMsgFilter(WM_MOUSEMOVE, wMsgFilterMin, wMsgFilterMax) == FALSE)) { 00104 fsWakeMask &= ~QS_MOUSEMOVE; 00105 } 00106 00107 /* 00108 * First check to see if mouse buttons messages are in the filter range. 00109 */ 00110 if ((CheckMsgRange(WM_NCLBUTTONDOWN, WM_NCMBUTTONDBLCLK, wMsgFilterMin, 00111 wMsgFilterMax) == FALSE) && (CheckMsgRange(WM_MOUSEFIRST + 1, 00112 WM_MOUSELAST, wMsgFilterMin, wMsgFilterMax) == FALSE)) { 00113 fsWakeMask &= ~QS_MOUSEBUTTON; 00114 } 00115 00116 /* 00117 * Check for key messages. 00118 */ 00119 if (CheckMsgRange(WM_KEYFIRST, WM_KEYLAST, 00120 wMsgFilterMin, wMsgFilterMax) == FALSE) { 00121 fsWakeMask &= ~QS_KEY; 00122 } 00123 00124 /* 00125 * Check for paint messages. 00126 */ 00127 if (CheckMsgFilter(WM_PAINT, wMsgFilterMin, wMsgFilterMax) == FALSE) { 00128 fsWakeMask &= ~QS_PAINT; 00129 } 00130 00131 /* 00132 * Check for timer messages. 00133 */ 00134 if ((CheckMsgFilter(WM_TIMER, wMsgFilterMin, wMsgFilterMax) == FALSE) && 00135 (CheckMsgFilter(WM_SYSTIMER, 00136 wMsgFilterMin, wMsgFilterMax) == FALSE)) { 00137 fsWakeMask &= ~QS_TIMER; 00138 } 00139 00140 /* 00141 * Check also for WM_QUEUESYNC which maps to all input bits. 00142 * This was added for CBT/EXCEL processing. Without it, a 00143 * xxxPeekMessage(.... WM_QUEUESYNC, WM_QUEUESYNC, FALSE) would 00144 * not see the message. (bobgu 4/7/87) 00145 * Since the user can provide a wake mask now (fsWakeMaskFilter), 00146 * we also add QS_EVENT in this case (it was always set on NT4). 00147 */ 00148 if (wMsgFilterMin == WM_QUEUESYNC) { 00149 fsWakeMask |= (QS_INPUT | QS_EVENT); 00150 } 00151 00152 return fsWakeMask; 00153 }

PCURSOR ClassSetSmallIcon PCLS  pcls,
PCURSOR  pcursor,
BOOL  fServerCreated
 

BOOL ClientFrame HDC  hDC,
CONST RECT *  pRect,
HBRUSH  hBrush,
DWORD  patOp
 

BOOL APIENTRY CopyInflateRect LPRECT  prcDst,
CONST RECT *  prcSrc,
int  cx,
int  cy
 

Definition at line 52 of file rect.c.

00056 { 00057 prcDst->left = prcSrc->left - cx; 00058 prcDst->right = prcSrc->right + cx; 00059 prcDst->top = prcSrc->top - cy; 00060 prcDst->bottom = prcSrc->bottom + cy; 00061 return TRUE; 00062 }

BOOL APIENTRY CopyOffsetRect LPRECT  prcDst,
CONST RECT *  prcSrc,
int  cx,
int  cy
 

Definition at line 73 of file rect.c.

00077 { 00078 prcDst->left = prcSrc->left + cx; 00079 prcDst->right = prcSrc->right + cx; 00080 prcDst->top = prcSrc->top + cy; 00081 prcDst->bottom = prcSrc->bottom + cy; 00082 return TRUE; 00083 }

__inline void CopyRectInl LPRECT  prcDest,
LPCRECT  prcSrc
 

Definition at line 248 of file client/nt6/user.h.

00249 { 00250 *prcDest = *prcSrc; 00251 }

DECLARE_HANDLE HQ   ) 
 

BOOL DrawFrame HDC  hdc,
LPRECT  prect,
int  clFrame,
int  cmd
 

void DrawPushButton HDC  hdc,
LPRECT  lprc,
UINT  state,
UINT  flags
 

Definition at line 1125 of file rtl/draw.c.

01130 { 01131 RECT rc; 01132 HBRUSH hbrMiddle; 01133 DWORD rgbBack; 01134 DWORD rgbFore; 01135 BOOL fDither; 01136 01137 rc = *lprc; 01138 01139 DrawEdge(hdc, 01140 &rc, 01141 (state & (DFCS_PUSHED | DFCS_CHECKED)) ? EDGE_SUNKEN : EDGE_RAISED, 01142 (UINT)(BF_ADJUST | BF_RECT | (flags & (BF_SOFT | BF_FLAT | BF_MONO)))); 01143 01144 /* 01145 * BOGUS 01146 * On monochrome, need to do something to make pushed buttons look 01147 * better. 01148 */ 01149 01150 /* 01151 * Fill in middle. If checked, use dither brush (gray brush) with 01152 * black becoming normal color. 01153 */ 01154 fDither = FALSE; 01155 01156 if (state & DFCS_CHECKED) { 01157 01158 if ((gpsi->BitCount < 8) || (SYSRGBRTL(3DHILIGHT) == RGB(255,255,255))) { 01159 hbrMiddle = gpsi->hbrGray; 01160 rgbBack = UserSetBkColor(hdc, SYSRGBRTL(3DHILIGHT)); 01161 rgbFore = UserSetTextColor(hdc, SYSRGBRTL(3DFACE)); 01162 fDither = TRUE; 01163 } else { 01164 hbrMiddle = SYSHBR(3DHILIGHT); 01165 } 01166 01167 } else { 01168 hbrMiddle = SYSHBR(3DFACE); 01169 } 01170 01171 FillRect(hdc, &rc, hbrMiddle); 01172 01173 if (fDither) { 01174 UserSetBkColor(hdc, rgbBack); 01175 UserSetTextColor(hdc, rgbFore); 01176 } 01177 01178 if (flags & BF_ADJUST) 01179 *lprc = rc; 01180 }

int DrawTextExWorker HDC  hdc,
LPWSTR  lpchText,
int  cchText,
LPRECT  lprc,
UINT  dwDTformat,
LPDRAWTEXTPARAMS  lpDTparams,
int  iCharset
 

Definition at line 1708 of file rtl/drawtext.c.

01716 { 01717 DRAWTEXTDATA DrawInfo; 01718 WORD wFormat = LOWORD(dwDTformat); 01719 LPWSTR lpchTextBegin; 01720 LPWSTR lpchEnd; 01721 LPWSTR lpchNextLineSt; 01722 int iLineLength; 01723 int iySign; 01724 int yLine; 01725 int yLastLineHeight; 01726 HRGN hrgnClip; 01727 int iLineCount; 01728 RECT rc; 01729 BOOL fLastLine; 01730 WCHAR ch; 01731 UINT oldAlign; 01732 01733 #if DBG 01734 if (dwDTformat & ~DT_VALID) 01735 RIPMSG0 (RIP_WARNING, "DrawTextExW: Invalid dwDTformat flags"); 01736 #endif 01737 01738 if (lpchText == NULL) { 01739 return 1; 01740 } 01741 01742 if (cchText == 0 && *lpchText) { 01743 /* 01744 * infoview.exe passes lpchText that points to '\0' 01745 * 01746 * "Microsoft Expedia Streets and Trips 2000" and "MS MapPoint 2000" 01747 * tries cchText == 0 to detect if DrawTextW is supported. 01748 */ 01749 01750 /* Added by Chicago: 01751 * Lotus Notes doesn't like getting a zero return here 01752 */ 01753 return 1; 01754 } 01755 01756 if (cchText == -1) 01757 cchText = wcslen(lpchText); 01758 01759 01760 01761 if ((lpDTparams) && (lpDTparams->cbSize != sizeof(DRAWTEXTPARAMS))) { 01762 RIPERR1(ERROR_INVALID_PARAMETER, RIP_WARNING, "DrawTextEx: cbSize %ld is invalid", 01763 lpDTparams->cbSize); 01764 return 0; 01765 } 01766 01767 01768 #ifdef LATER 01769 /* 01770 * If DT_MODIFYSTRING is specified, then check for read-write pointer. 01771 */ 01772 if (MODIFYSTRING(dwDTformat) && 01773 (ENDELLIPSIS(dwDTformat) || PATHELLIPSIS(dwDTformat))) { 01774 if(IsBadWritePtr(lpchText, cchText)) { 01775 RIPERR0(ERROR_INVALID_PARAMETER, RIP_WARNING, "DrawTextEx: For DT_MODIFYSTRING, lpchText must be read-write"); 01776 return(0); 01777 } 01778 } 01779 #endif 01780 01781 /* 01782 * Initialize the DrawInfo structure. 01783 */ 01784 if (!DT_InitDrawTextInfo(hdc, lprc, dwDTformat, (LPDRAWTEXTDATA)&DrawInfo, lpDTparams)) 01785 return 0; 01786 01787 DrawInfo.iCharset = iCharset; 01788 /* 01789 * If the rect is too narrow or the margins are too wide.....Just forget it! 01790 * 01791 * If wordbreak is specified, the MaxWidth must be a reasonable value. 01792 * This check is sufficient because this will allow CALCRECT and NOCLIP 01793 * cases. --SANKAR. 01794 * 01795 * This also fixed all of our known problems with AppStudio. 01796 */ 01797 if (DrawInfo.cxMaxWidth <= 0) { 01798 01799 /* 01800 * We used to return a non-zero value in win31. 01801 * If the kernel calls this we are always Ver 4.0 or above 01802 */ 01803 #ifdef _USERK_ 01804 if (0) { 01805 #else 01806 if (GETAPPVER() < VER40) { 01807 #endif 01808 if((DrawInfo.cxMaxWidth == 0) && !CALCRECT(wFormat)) { 01809 return(1); 01810 } 01811 } else { 01812 if (WORDBREAK(wFormat)) { 01813 RIPMSG0 (RIP_WARNING, "DrawTextExW: FAILURE DrawInfo.cxMaxWidth <=0"); 01814 return (1); 01815 } 01816 } 01817 } 01818 01819 /* 01820 * if we're not doing the drawing, initialise the lpk-dll 01821 */ 01822 if (RTLREADING(dwDTformat)) { 01823 oldAlign = UserSetTextAlign(hdc, TA_RTLREADING | UserGetTextAlign(hdc)); 01824 } 01825 01826 if (DrawInfo.bCharsetDll) { 01827 #ifdef _USERK_ 01828 PTHREADINFO ptiCurrent = PtiCurrentShared(); 01829 01830 if(CALL_LPK(ptiCurrent)) 01831 #endif // _USERK_ 01832 (*UserLpkDrawTextEx)(hdc, 0, 0, lpchText, cchText, FALSE, dwDTformat, 01833 (LPDRAWTEXTDATA)&DrawInfo, DT_CHARSETINIT, iCharset); 01834 } 01835 01836 /* 01837 * If we need to clip, let us do that. 01838 */ 01839 if (!NOCLIP(wFormat)) { 01840 // 01841 // Save clipping region so we can restore it later. 01842 // 01843 // hrgnSave = SaveClipRgn(hdc); 01844 // IntersectClipRect(hdc, lprc->left, lprc->top, lprc->right, lprc->bottom); 01845 01846 hrgnClip = UserCreateRectRgn(0,0,0,0); 01847 if (hrgnClip != NULL) { 01848 if (UserGetClipRgn(hdc, hrgnClip) != 1) { 01849 UserDeleteObject(hrgnClip); 01850 hrgnClip = (HRGN)-1; 01851 } 01852 rc = *lprc; 01853 UserIntersectClipRect(hdc, rc.left, rc.top, rc.right, rc.bottom); 01854 } 01855 } else { 01856 hrgnClip = NULL; 01857 } 01858 01859 lpchTextBegin = lpchText; 01860 lpchEnd = lpchText + cchText; 01861 01862 ProcessDrawText: 01863 01864 iLineCount = 0; // Reset number of lines to 1. 01865 yLine = lprc->top; 01866 01867 if (SINGLELINE(wFormat)) { 01868 iLineCount = 1; // It is a single line. 01869 01870 01871 /* 01872 * Process single line DrawText. 01873 */ 01874 switch (wFormat & DT_VFMTMASK) { 01875 case DT_BOTTOM: 01876 yLine = lprc->bottom - DrawInfo.cyLineHeight; 01877 break; 01878 01879 case DT_VCENTER: 01880 yLine = lprc->top + ((lprc->bottom - lprc->top - DrawInfo.cyLineHeight) / 2); 01881 break; 01882 } 01883 01884 cchText = AddEllipsisAndDrawLine(hdc, yLine, lpchText, cchText, dwDTformat, &DrawInfo, iCharset); 01885 yLine += DrawInfo.cyLineHeight; 01886 lpchText += cchText; 01887 } else { 01888 01889 /* 01890 * Multiline 01891 * If the height of the rectangle is not an integral multiple of the 01892 * average char height, then it is possible that the last line drawn 01893 * is only partially visible. However, if DT_EDITCONTROL style is 01894 * specified, then we must make sure that the last line is not drawn if 01895 * it is going to be partially visible. This will help imitate the 01896 * appearance of an edit control. 01897 */ 01898 if (EDITCONTROL(wFormat)) 01899 yLastLineHeight = DrawInfo.cyLineHeight; 01900 else 01901 yLastLineHeight = 0; 01902 01903 iySign = DrawInfo.iYSign; 01904 fLastLine = FALSE; 01905 // Process multiline DrawText. 01906 while ((lpchText < lpchEnd) && (!fLastLine)) { 01907 // Check if the line we are about to draw is the last line that needs 01908 // to be drawn. 01909 // Let us check if the display goes out of the clip rect and if so 01910 // let us stop here, as an optimisation; 01911 if (!CALCRECT(wFormat) && // We don't need to calc rect? 01912 (!NOCLIP(wFormat)) && // Must we clip the display ? 01913 // Are we outside the rect? 01914 ((yLine + DrawInfo.cyLineHeight + yLastLineHeight)*iySign > (lprc->bottom*iySign))) { 01915 fLastLine = TRUE; // Let us quit this loop 01916 } 01917 01918 01919 /* 01920 * We do the Ellipsis processing only for the last line. 01921 */ 01922 if (fLastLine && (ENDELLIPSIS(dwDTformat) || PATHELLIPSIS(dwDTformat))) { 01923 lpchText += AddEllipsisAndDrawLine(hdc, yLine, lpchText, cchText, dwDTformat, &DrawInfo, iCharset); 01924 } else { 01925 lpchNextLineSt = (LPWSTR)DT_GetLineBreak(hdc, lpchText, cchText, dwDTformat, &iLineLength, &DrawInfo, iCharset); 01926 01927 /* 01928 * Check if we need to put ellipsis at the end of this line. 01929 * Also check if this is the last line. 01930 */ 01931 if (WORDELLIPSIS(dwDTformat) || 01932 ((lpchNextLineSt >= lpchEnd) && (ENDELLIPSIS(dwDTformat) || PATHELLIPSIS(dwDTformat)))) 01933 AddEllipsisAndDrawLine(hdc, yLine, lpchText, iLineLength, dwDTformat, &DrawInfo, iCharset); 01934 else 01935 DT_DrawJustifiedLine(hdc, yLine, lpchText, iLineLength, dwDTformat, &DrawInfo, iCharset); 01936 cchText -= (int)((PBYTE)lpchNextLineSt - (PBYTE)lpchText) / sizeof(WCHAR); 01937 lpchText = lpchNextLineSt; 01938 } 01939 iLineCount++; // We draw one more line. 01940 yLine += DrawInfo.cyLineHeight; 01941 } 01942 01943 01944 /* 01945 * For Win3.1 and NT compatibility, if the last char is a CR or a LF 01946 * then the height returned includes one more line. 01947 */ 01948 if (!EDITCONTROL(dwDTformat) && 01949 (lpchEnd > lpchTextBegin) && // If zero length it will fault. 01950 (((ch = (*(lpchEnd-1))) == CR) || (ch == LF))) 01951 yLine += DrawInfo.cyLineHeight; 01952 } 01953 01954 01955 /* 01956 * If DT_CALCRECT, modify width and height of rectangle to include 01957 * all of the text drawn. 01958 */ 01959 if (CALCRECT(wFormat)) { 01960 DrawInfo.rcFormat.right = DrawInfo.rcFormat.left + DrawInfo.cxMaxExtent * DrawInfo.iXSign; 01961 lprc->right = DrawInfo.rcFormat.right + DrawInfo.cxRightMargin; 01962 01963 // If the Width is more than what was provided, we have to redo all 01964 // the calculations, because, the number of lines can be less now. 01965 // (We need to do this only if we have more than one line). 01966 if((iLineCount > 1) && (DrawInfo.cxMaxExtent > DrawInfo.cxMaxWidth)) { 01967 DrawInfo.cxMaxWidth = DrawInfo.cxMaxExtent; 01968 lpchText = lpchTextBegin; 01969 cchText = (int)((PBYTE)lpchEnd - (PBYTE)lpchTextBegin)/sizeof(WCHAR); 01970 goto ProcessDrawText; // Start all over again! 01971 } 01972 lprc->bottom = yLine; 01973 } 01974 01975 // if (!NOCLIP(wFormat)) 01976 // { 01977 // RestoreClipRgn(hdc, hrgnClip); 01978 // } 01979 01980 if (hrgnClip != NULL) { 01981 if (hrgnClip == (HRGN)-1) { 01982 UserExtSelectClipRgn(hdc, NULL, RGN_COPY); 01983 } else { 01984 UserExtSelectClipRgn(hdc, hrgnClip, RGN_COPY); 01985 UserDeleteObject(hrgnClip); 01986 } 01987 } 01988 01989 if(DrawInfo.bCharsetDll) { 01990 #ifdef _USERK_ 01991 PTHREADINFO ptiCurrent = PtiCurrentShared(); 01992 01993 if(CALL_LPK(ptiCurrent)) 01994 #endif // _USERK_ 01995 (*UserLpkDrawTextEx)(hdc, 0, 0, lpchText, cchText, FALSE, dwDTformat, 01996 (LPDRAWTEXTDATA)&DrawInfo, DT_CHARSETDONE, iCharset); 01997 } 01998 01999 if (RTLREADING(dwDTformat)) 02000 UserSetTextAlign(hdc, oldAlign); 02001 02002 /* 02003 * Copy the number of characters actually drawn 02004 */ 02005 if(lpDTparams != NULL) 02006 lpDTparams->uiLengthDrawn = (UINT)((PBYTE)lpchText - (PBYTE)lpchTextBegin)/sizeof(WCHAR); 02007 02008 if (yLine == lprc->top) 02009 return 1; 02010 02011 return (yLine - lprc->top); 02012 }

BOOL CALLBACK EnumPwndDlgChildProc PWND  pwnd,
LPARAM  lParam
 

Definition at line 54 of file rtl/help.c.

Referenced by xxxHelpLoop().

00055 { 00056 PDLGENUMDATA pDlgEnumData = (PDLGENUMDATA)lParam; 00057 00058 if (pwnd != pDlgEnumData->pwndDialog && IsVisible(pwnd) && 00059 PtInRect(&((WND *)pwnd)->rcWindow, pDlgEnumData->ptCurHelp)) { 00060 /* 00061 * If it's a group box, keep enumerating. This takes care of 00062 * the case where we have a disabled control in a group box. 00063 * We'll find the group box first, and keep enumerating until we 00064 * hit the disabled control. 00065 */ 00066 pDlgEnumData->pwndControl = pwnd; 00067 return (FIsParentDude(pwnd)); 00068 } 00069 return TRUE; 00070 }

__inline DWORD EqualRectInl LPCRECT  prc1,
LPCRECT  prc2
 

Definition at line 254 of file client/nt6/user.h.

00255 { 00256 return RtlEqualMemory(prc1, prc2, sizeof(*prc1)); 00257 }

DWORD FindCharPosition LPWSTR  lpString,
WCHAR  ch
 

Definition at line 80 of file w32/ntuser/rtl/random.c.

00083 { 00084 DWORD dwPos = 0L; 00085 00086 while (*lpString && *lpString != ch) { 00087 ++lpString; 00088 ++dwPos; 00089 } 00090 return dwPos; 00091 }

int FindNCHit PWND  pwnd,
LONG  lPt
 

Definition at line 19 of file rtl/winmgr.c.

Referenced by xxxTrackMouse().

00022 { 00023 POINT pt; 00024 RECT rcWindow; 00025 RECT rcClient; 00026 RECT rcClientAdj; 00027 int cBorders; 00028 int dxButton; 00029 00030 pt.x = GET_X_LPARAM(lPt); 00031 pt.y = GET_Y_LPARAM(lPt); 00032 00033 if (!PtInRect(&((WND *)pwnd)->rcWindow, pt)) 00034 return HTNOWHERE; 00035 00036 if (TestWF(pwnd, WFMINIMIZED)) { 00037 CopyInflateRect(&rcWindow, &((WND *)pwnd)->rcWindow, 00038 -(SYSMETRTL(CXFIXEDFRAME) + SYSMETRTL(CXBORDER)), -(SYSMETRTL(CYFIXEDFRAME) + SYSMETRTL(CYBORDER))); 00039 00040 if (!PtInRect(&rcWindow, pt)) 00041 return HTCAPTION; 00042 00043 goto CaptionHit; 00044 } 00045 00046 // Get client rectangle 00047 rcClient = pwnd->rcClient; 00048 if (PtInRect(&rcClient, pt)) 00049 return HTCLIENT; 00050 00051 // Are we in "pseudo" client, i.e. the client & scrollbars & border 00052 if (TestWF(pwnd, WEFCLIENTEDGE)) 00053 CopyInflateRect(&rcClientAdj, &rcClient, SYSMETRTL(CXEDGE), SYSMETRTL(CYEDGE)); 00054 else 00055 rcClientAdj = rcClient; 00056 00057 if (TestWF(pwnd, WFVPRESENT)) { 00058 #ifdef USE_MIRRORING 00059 if ((!!TestWF(pwnd, WEFLEFTSCROLL)) ^ (!!TestWF(pwnd, WEFLAYOUTRTL))) 00060 #else 00061 if (TestWF(pwnd, WEFLEFTSCROLL)) 00062 #endif 00063 rcClientAdj.left -= SYSMETRTL(CXVSCROLL); 00064 else 00065 rcClientAdj.right += SYSMETRTL(CXVSCROLL); 00066 } 00067 if (TestWF(pwnd, WFHPRESENT)) 00068 rcClientAdj.bottom += SYSMETRTL(CYHSCROLL); 00069 00070 if (!PtInRect(&rcClientAdj, pt)) 00071 { 00072 // Subtract out window borders 00073 cBorders = GetWindowBorders(pwnd->style, pwnd->ExStyle, TRUE, FALSE); 00074 CopyInflateRect(&rcWindow, &((WND *)pwnd)->rcWindow, 00075 -cBorders*SYSMETRTL(CXBORDER), -cBorders*SYSMETRTL(CYBORDER)); 00076 00077 // Are we on the border? 00078 if (!PtInRect(&rcWindow, pt)) 00079 { 00080 // On a sizing border? 00081 if (!TestWF(pwnd, WFSIZEBOX)) { 00082 // 00083 // Old compatibility thing: For 3.x windows that just had 00084 // a border, we returned HTNOWHERE, believe it or not, 00085 // because our hit-testing code was so brain dead. 00086 // 00087 if (!TestWF(pwnd, WFWIN40COMPAT) && 00088 !TestWF(pwnd, WFDLGFRAME) && 00089 !TestWF(pwnd, WEFDLGMODALFRAME)) { 00090 return(HTNOWHERE); 00091 00092 } else { 00093 return(HTBORDER); // We are on a dlg frame. 00094 } 00095 } else { 00096 00097 int ht; 00098 00099 // 00100 // Note this improvement. The HT codes are numbered so that 00101 // if you subtract HTSIZEFIRST-1 from them all, they sum up. I.E., 00102 // (HTLEFT - HTSIZEFIRST + 1) + (HTTOP - HTSIZEFIRST + 1) == 00103 // (HTTOPLEFT - HTSIZEFIRST + 1). 00104 // 00105 00106 if (TestWF(pwnd, WEFTOOLWINDOW)) 00107 InflateRect(&rcWindow, -SYSMETRTL(CXSMSIZE), -SYSMETRTL(CYSMSIZE)); 00108 else 00109 InflateRect(&rcWindow, -SYSMETRTL(CXSIZE), -SYSMETRTL(CYSIZE)); 00110 00111 if (pt.y < rcWindow.top) 00112 ht = (HTTOP - HTSIZEFIRST + 1); 00113 else if (pt.y >= rcWindow.bottom) 00114 ht = (HTBOTTOM - HTSIZEFIRST + 1); 00115 else 00116 ht = 0; 00117 00118 if (pt.x < rcWindow.left) 00119 ht += (HTLEFT - HTSIZEFIRST + 1); 00120 else if (pt.x >= rcWindow.right) 00121 ht += (HTRIGHT - HTSIZEFIRST + 1); 00122 00123 return (ht + HTSIZEFIRST - 1); 00124 } 00125 } 00126 00127 // Are we above the client area? 00128 if (pt.y < rcClientAdj.top) 00129 { 00130 // Are we in the caption? 00131 if (TestWF(pwnd, WFBORDERMASK) == LOBYTE(WFCAPTION)) 00132 { 00133 CaptionHit: 00134 00135 #ifdef USE_MIRRORING 00136 if (TestWF(pwnd, WEFLAYOUTRTL)) { 00137 pt.x = pwnd->rcWindow.right - (pt.x - pwnd->rcWindow.left); 00138 } 00139 #endif 00140 00141 if (pt.y >= rcWindow.top) 00142 { 00143 if (TestWF(pwnd, WEFTOOLWINDOW)) 00144 { 00145 rcWindow.top += SYSMETRTL(CYSMCAPTION); 00146 dxButton = SYSMETRTL(CXSMSIZE); 00147 } 00148 else 00149 { 00150 rcWindow.top += SYSMETRTL(CYCAPTION); 00151 dxButton = SYSMETRTL(CXSIZE); 00152 } 00153 00154 if ((pt.y >= rcWindow.top) && TestWF(pwnd, WFMPRESENT)) 00155 return(HTMENU); 00156 00157 if ((pt.x >= rcWindow.left) && 00158 (pt.x < rcWindow.right) && 00159 (pt.y < rcWindow.top)) 00160 { 00161 // Are we in the window menu? 00162 if (TestWF(pwnd, WFSYSMENU)) 00163 { 00164 rcWindow.left += dxButton; 00165 if (pt.x < rcWindow.left) 00166 { 00167 if (!_HasCaptionIcon(pwnd)) 00168 // iconless windows have no sysmenu hit rect 00169 return(HTCAPTION); 00170 00171 return(HTSYSMENU); 00172 } 00173 } 00174 else if (TestWF(pwnd, WFWIN40COMPAT)) 00175 return(HTCAPTION); 00176 00177 // only a close button if window has a system menu 00178 00179 // Are we in the close button? 00180 rcWindow.right -= dxButton; 00181 if (pt.x >= rcWindow.right) 00182 return HTCLOSE; 00183 00184 if ((pt.x < rcWindow.right) && !TestWF(pwnd, WEFTOOLWINDOW)) 00185 { 00186 // Are we in the maximize/restore button? 00187 if (TestWF(pwnd, (WFMAXBOX | WFMINBOX))) 00188 { 00189 // Note that sizing buttons are same width for both 00190 // big captions and small captions. 00191 rcWindow.right -= dxButton; 00192 if (pt.x >= rcWindow.right) 00193 return HTZOOM; 00194 00195 // Are we in the minimize button? 00196 rcWindow.right -= dxButton; 00197 if (pt.x >= rcWindow.right) 00198 return HTREDUCE; 00199 } 00200 else if (TestWF(pwnd, WEFCONTEXTHELP)) 00201 { 00202 rcWindow.right -= dxButton; 00203 if (pt.x >= rcWindow.right) 00204 return HTHELP; 00205 } 00206 } 00207 } 00208 } 00209 00210 // We're in the caption proper 00211 return HTCAPTION; 00212 } 00213 00214 // 00215 // Are we in the menu? 00216 // 00217 if (TestWF(pwnd, WFMPRESENT)) 00218 return HTMENU; 00219 } 00220 } 00221 else 00222 { 00223 // 00224 // NOTE: 00225 // We can only be here if we are on the client edge, horz scroll, 00226 // sizebox, or vert scroll. Hence, if we are not on the first 3, 00227 // we must be on the last one. 00228 // 00229 00230 // 00231 // Are we on the client edge? 00232 // 00233 if (TestWF(pwnd, WEFCLIENTEDGE)) 00234 { 00235 InflateRect(&rcClientAdj, -SYSMETRTL(CXEDGE), -SYSMETRTL(CYEDGE)); 00236 if (!PtInRect(&rcClientAdj, pt)) 00237 return(HTBORDER); 00238 } 00239 00240 // 00241 // Are we on the scrollbars? 00242 // 00243 if (TestWF(pwnd, WFHPRESENT) && (pt.y >= rcClient.bottom)) 00244 { 00245 int iHitTest=HTHSCROLL; 00246 UserAssert(pt.y < rcClientAdj.bottom); 00247 00248 if (TestWF(pwnd, WFVPRESENT)) { 00249 PWND pwndSizeBox = SizeBoxHwnd(pwnd); 00250 00251 if(pt.x >= rcClient.right) 00252 return(pwndSizeBox ? HTBOTTOMRIGHT : HTGROWBOX); 00253 #ifdef USE_MIRRORING 00254 // 00255 // Mirror the grip box location so that it becomes 00256 // on the bottom-left side if this is a RTL mirrrored 00257 // windows. 00258 // 00259 else if (TestWF(pwnd, WEFLAYOUTRTL) && (pt.x < rcClient.left)) 00260 return(pwndSizeBox ? HTBOTTOMLEFT : HTGROWBOX); 00261 #endif 00262 } 00263 00264 return(iHitTest); 00265 } 00266 else 00267 { 00268 UserAssert(TestWF(pwnd, WFVPRESENT)); 00269 #ifdef USE_MIRRORING 00270 if ((!!TestWF(pwnd, WEFLEFTSCROLL)) ^ (!!TestWF(pwnd, WEFLAYOUTRTL))) { 00271 #else 00272 if (TestWF(pwnd, WEFLEFTSCROLL)) { 00273 #endif 00274 UserAssert(pt.x < rcClient.left); 00275 UserAssert(pt.x >= rcClientAdj.left); 00276 } else { 00277 UserAssert(pt.x >= rcClient.right); 00278 UserAssert(pt.x < rcClientAdj.right); 00279 } 00280 return(HTVSCROLL); 00281 } 00282 } 00283 00284 // 00285 // We give up. 00286 // 00287 // Win31 returned HTNOWHERE in this case; For compatibility, we will 00288 // keep it that way. 00289 // 00290 return(HTNOWHERE); 00291 00292 }

BOOL FIsParentDude PWND  pwnd  ) 
 

Definition at line 12 of file rtl/help.c.

00013 { 00014 return(TestWF(pwnd, WEFCONTROLPARENT) || TestWF(pwnd, WFDIALOGWINDOW) || 00015 ((GETFNID(pwnd) == FNID_BUTTON) && 00016 (TestWF(pwnd, BFTYPEMASK) == BS_GROUPBOX))); 00017 }

LRESULT CALLBACK fnHkINDWORD DWORD  nCode,
WPARAM  wParam,
LPARAM  lParam,
ULONG_PTR  xParam,
PROC  xpfnProc,
LPDWORD  lpFlags
 

LRESULT CALLBACK fnHkINLPCBTACTIVATESTRUCT DWORD  nCode,
WPARAM  wParam,
LPCBTACTIVATESTRUCT  lParam,
ULONG_PTR  xParam,
PROC  xpfnProc
 

LRESULT CALLBACK fnHkINLPCBTCSTRUCT UINT  msg,
WPARAM  wParam,
LPCBT_CREATEWND  pcbt,
PROC  xpfnProc,
BOOL  bAnsi
 

LRESULT CALLBACK fnHkINLPCBTMDICCSTRUCT UINT  msg,
WPARAM  wParam,
LPCBT_CREATEWND  pcbt,
PROC  xpfnProc,
BOOL  bAnsi
 

LRESULT CALLBACK fnHkINLPDEBUGHOOKSTRUCT DWORD  nCode,
WPARAM  wParam,
LPDEBUGHOOKINFO  lParam,
ULONG_PTR  xParam,
PROC  xpfnProc
 

LRESULT CALLBACK fnHkINLPKBDLLHOOKSTRUCT DWORD  nCode,
WPARAM  wParam,
LPKBDLLHOOKSTRUCT  lParam,
ULONG_PTR  xParam,
PROC  xpfnProc
 

LRESULT CALLBACK fnHkINLPMOUSEHOOKSTRUCTEX DWORD  nCode,
WPARAM  wParam,
LPMOUSEHOOKSTRUCTEX  lParam,
ULONG_PTR  xParam,
PROC  xpfnProc,
LPDWORD  lpFlags
 

LRESULT CALLBACK fnHkINLPMSG DWORD  nCode,
WPARAM  wParam,
LPMSG  lParam,
ULONG_PTR  xParam,
PROC  xpfnProc,
BOOL  bAnsi,
LPDWORD  lpFlags
 

LRESULT CALLBACK fnHkINLPMSLLHOOKSTRUCT DWORD  nCode,
WPARAM  wParam,
LPMSLLHOOKSTRUCT  lParam,
ULONG_PTR  xParam,
PROC  xpfnProc
 

LRESULT CALLBACK fnHkINLPRECT DWORD  nCode,
WPARAM  wParam,
LPRECT  lParam,
ULONG_PTR  xParam,
PROC  xpfnProc
 

LRESULT CALLBACK fnHkOPTINLPEVENTMSG DWORD  nCode,
WPARAM  wParam,
LPEVENTMSGMSG  lParam,
ULONG_PTR  xParam,
PROC  xpfnProc
 

DWORD GetAppCompatFlags PTHREADINFO  pti  ) 
 

Definition at line 494 of file winmgrc.c.

00496 { 00497 UNREFERENCED_PARAMETER(pti); 00498 00499 ConnectIfNecessary(); 00500 00501 return GetClientInfo()->dwCompatFlags; 00502 }

int GetCharDimensions HDC  hDC,
TEXTMETRICW *  lpTextMetrics,
LPINT  lpcy
 

DWORD GetContextHelpId PWND  pwnd  ) 
 

Definition at line 28 of file rtl/help.c.

00030 { 00031 DWORD dwContextId; 00032 00033 while (!(dwContextId = (DWORD)(ULONG_PTR)_GetProp(pwnd, 00034 MAKEINTATOM(gpsi->atomContextHelpIdProp), PROPF_INTERNAL))) { 00035 pwnd = (TestwndChild(pwnd) ? 00036 REBASEPWND(pwnd, spwndParent) : 00037 REBASEPWND(pwnd, spwndOwner)); 00038 if (!pwnd || (GETFNID(pwnd) == FNID_DESKTOP)) 00039 break; 00040 } 00041 00042 return dwContextId; 00043 }

DWORD GetCPD PVOID  pWndOrCls,
DWORD  options,
ULONG_PTR  dwData
 

Definition at line 1789 of file clmsg.c.

01793 { 01794 return NtUserGetCPD(HW(pWndOrCls), options, dwData); 01795 }

__inline WORD GetInputBits PCLIENTTHREADINFO  pcti,
WORD  fsWakeMask,
BOOL  fAvailable
 

Definition at line 2894 of file client/nt6/user.h.

References tagCLIENTTHREADINFO::fsChangeBits, and tagCLIENTTHREADINFO::fsWakeBits.

02895 { 02896 return (pcti->fsChangeBits | (fAvailable ? pcti->fsWakeBits : 0)) & fsWakeMask; 02897 }

LONG GetPrefixCount LPCWSTR  lpstr,
int  cb,
LPWSTR  lpstrCopy,
int  cbCopy
 

Definition at line 806 of file rtl/drawtext.c.

00811 { 00812 int chprintpos = 0; /* Num of chars that will be printed */ 00813 int chcount = 0; /* Num of prefix chars that will be removed */ 00814 int chprefixloc = -1; /* Pos (in printed chars) of the prefix */ 00815 WCHAR ch; 00816 00817 /* 00818 * If not copying, use a large bogus count... 00819 */ 00820 if (lpstrCopy == NULL) 00821 charcopycount = 32767; 00822 00823 while ((cch-- > 0) && *lpstr && charcopycount-- != 0) { 00824 00825 /* 00826 * Is this guy a prefix character ? 00827 */ 00828 if ((ch = *lpstr++) == CH_PREFIX) { 00829 00830 /* 00831 * Yup - increment the count of characters removed during print. 00832 */ 00833 chcount++; 00834 00835 /* 00836 * Is the next also a prefix char? 00837 */ 00838 if (*lpstr != CH_PREFIX) { 00839 00840 /* 00841 * Nope - this is a real one, mark its location. 00842 */ 00843 chprefixloc = chprintpos; 00844 00845 } else { 00846 00847 /* 00848 * yup - simply copy it if copying. 00849 */ 00850 if (lpstrCopy != NULL) 00851 *(lpstrCopy++) = CH_PREFIX; 00852 cch--; 00853 lpstr++; 00854 chprintpos++; 00855 } 00856 } else if (ch == CH_ENGLISHPREFIX) { // Still needs to be parsed 00857 /* 00858 * Yup - increment the count of characters removed during print. 00859 */ 00860 chcount++; 00861 00862 /* 00863 * Next character is a real one, mark its location. 00864 */ 00865 chprefixloc = chprintpos; 00866 00867 } else if (ch == CH_KANJIPREFIX) { // Still needs to be parsed 00868 /* 00869 * We only support Alpha Numeric(CH_ENGLISHPREFIX). 00870 * no support for Kana(CH_KANJIPREFIX). 00871 */ 00872 /* 00873 * Yup - increment the count of characters removed during print. 00874 */ 00875 chcount++; 00876 00877 if(cch) { 00878 /* don't copy the character */ 00879 chcount++; 00880 lpstr++; 00881 cch--; 00882 } 00883 } else { 00884 00885 /* 00886 * Nope - just inc count of char. that will be printed 00887 */ 00888 chprintpos++; 00889 if (lpstrCopy != NULL) 00890 *(lpstrCopy++) = ch; 00891 } 00892 } 00893 00894 if (lpstrCopy != NULL) 00895 *lpstrCopy = 0; 00896 00897 /* 00898 * Return the character counts 00899 */ 00900 return MAKELONG(chprefixloc, chcount); 00901 }

PWND GetPrevPwnd PWND  pwndList,
PWND  pwndFind
 

Definition at line 631 of file rtl/wow.c.

00634 { 00635 PWND pwndFound, pwndNext; 00636 00637 if (pwndList == NULL) 00638 return NULL; 00639 00640 if (pwndList->spwndParent == NULL) 00641 return NULL; 00642 00643 pwndNext = REBASEPWND(pwndList, spwndParent); 00644 pwndNext = REBASEPWND(pwndNext, spwndChild); 00645 pwndFound = NULL; 00646 00647 while (pwndNext != NULL) { 00648 if (pwndNext == pwndFind) 00649 break; 00650 pwndFound = pwndNext; 00651 pwndNext = REBASEPWND(pwndNext, spwndNext); 00652 } 00653 00654 return (pwndNext == pwndFind) ? pwndFound : NULL; 00655 }

void GetRealClientRect PWND  pwnd,
LPRECT  prc,
UINT  uFlags,
PMONITOR  pMonitor
 

Definition at line 417 of file rtl/winmgr.c.

00423 { 00424 if (GETFNID(pwnd) == FNID_DESKTOP) { 00425 if (!pMonitor) { 00426 pMonitor = GetPrimaryMonitor(); 00427 } 00428 *prc = (uFlags & GRC_FULLSCREEN) ? pMonitor->rcMonitor : pMonitor->rcWork; 00429 } else { 00430 GetRect(pwnd, prc, GRECT_CLIENT | GRECT_CLIENTCOORDS); 00431 if (uFlags & GRC_SCROLLS) { 00432 if (TestWF(pwnd, WFHPRESENT)){ 00433 prc->bottom += SYSMETRTL(CYHSCROLL); 00434 } 00435 00436 if (TestWF(pwnd, WFVPRESENT)) { 00437 prc->right += SYSMETRTL(CXVSCROLL); 00438 } 00439 } 00440 } 00441 00442 if (uFlags & GRC_MINWNDS) { 00443 switch (SYSMETRTL(ARRANGE) & ~ARW_HIDE) { 00444 case ARW_TOPLEFT | ARW_RIGHT: 00445 case ARW_TOPRIGHT | ARW_LEFT: 00446 // 00447 // Leave space on top for one row of min windows 00448 // 00449 prc->top += SYSMETRTL(CYMINSPACING); 00450 break; 00451 00452 case ARW_TOPLEFT | ARW_DOWN: 00453 case ARW_BOTTOMLEFT | ARW_UP: 00454 // 00455 // Leave space on left for one column of min windows 00456 // 00457 prc->left += SYSMETRTL(CXMINSPACING); 00458 break; 00459 00460 case ARW_TOPRIGHT | ARW_DOWN: 00461 case ARW_BOTTOMRIGHT | ARW_UP: 00462 // 00463 // Leave space on right for one column of min windows 00464 // 00465 prc->right -= SYSMETRTL(CXMINSPACING); 00466 break; 00467 00468 case ARW_BOTTOMLEFT | ARW_RIGHT: 00469 case ARW_BOTTOMRIGHT | ARW_LEFT: 00470 // 00471 // Leave space on bottom for one row of min windows 00472 // 00473 prc->bottom -= SYSMETRTL(CYMINSPACING); 00474 break; 00475 } 00476 } 00477 }

void GetRect PWND  pwnd,
LPRECT  lprc,
UINT  uCoords
 

Definition at line 856 of file rtl/winmgr.c.

00857 { 00858 PWND pwndParent; 00859 LPRECT lprcOffset; 00860 00861 UserAssert(lprc); 00862 UserAssert((uCoords & ~(GRECT_COORDMASK | GRECT_RECTMASK)) == 0); 00863 UserAssert(uCoords & GRECT_COORDMASK); 00864 UserAssert(uCoords & GRECT_RECTMASK); 00865 00866 *lprc = (uCoords & GRECT_WINDOW) ? pwnd->rcWindow : pwnd->rcClient; 00867 00868 /* 00869 * If this is the desktop window, we have what we want, whether we 00870 * are asking for GRECT_PARENTCOORDS, WINDOWCOORD or CLIENTCOORDS 00871 */ 00872 if (GETFNID(pwnd) == FNID_DESKTOP) 00873 return; 00874 00875 switch (uCoords & GRECT_COORDMASK) { 00876 case GRECT_PARENTCOORDS: 00877 pwndParent = REBASEPWND(pwnd, spwndParent); 00878 if (GETFNID(pwndParent) == FNID_DESKTOP) 00879 return; 00880 00881 lprcOffset = &pwndParent->rcClient; 00882 00883 #if defined(USE_MIRRORING) 00884 // 00885 // Let's mirror the edges of the child's window since the parent 00886 // is mirrored, so should the child window be. [samera] 00887 // 00888 if (TestWF(pwndParent,WEFLAYOUTRTL) && 00889 (uCoords & GRECT_WINDOW) && 00890 (TestWF(pwnd,WFCHILD))) { 00891 int iLeft; 00892 00893 // 00894 // I am using OffsetRect instead of implementing a new 00895 // OffsetMirrorRect API since this is the only place I am 00896 // doing it in. 00897 // 00898 // Since screen coordinates are not mirrored, the rect offsetting 00899 // should be done relative to prcOffset->right since it is the 00900 // leading edge for mirrored windows. [samera] 00901 // 00902 00903 UserVerify(OffsetRect(lprc, -lprcOffset->right, -lprcOffset->top)); 00904 00905 iLeft = lprc->left; 00906 lprc->left = (lprc->right * -1); 00907 lprc->right = (iLeft * -1); 00908 00909 return; 00910 } 00911 #endif 00912 00913 break; 00914 00915 case GRECT_WINDOWCOORDS: 00916 lprcOffset = &pwnd->rcWindow; 00917 break; 00918 00919 case GRECT_CLIENTCOORDS: 00920 lprcOffset = &pwnd->rcClient; 00921 break; 00922 00923 default: 00924 UserAssert(0 && "Logic error in _GetRect - invalid uCoords"); 00925 } 00926 00927 UserVerify(OffsetRect(lprc, -lprcOffset->left, -lprcOffset->top)); 00928 }

PMENU GetSysMenuHandle PWND  pwnd  ) 
 

PWND GetTopLevelTiled PWND  pwnd  ) 
 

PWND GetTopLevelWindow PWND  pwnd  ) 
 

Definition at line 817 of file rtl/winmgr.c.

00819 { 00820 if (pwnd != NULL) { 00821 while (TestwndChild(pwnd)) 00822 pwnd = REBASEPWND(pwnd, spwndParent); 00823 } 00824 00825 return pwnd; 00826 }

int GetWindowBorders LONG  lStyle,
DWORD  dwExStyle,
BOOL  fWindow,
BOOL  fClient
 

Definition at line 582 of file rtl/winmgr.c.

00583 { 00584 int cBorders = 0; 00585 00586 if (fWindow) { 00587 // 00588 // Is there a 3D border around the window? 00589 // 00590 if (dwExStyle & WS_EX_WINDOWEDGE) 00591 cBorders += 2; 00592 else if (dwExStyle & WS_EX_STATICEDGE) 00593 ++cBorders; 00594 00595 // 00596 // Is there a single flat border around the window? This is true for 00597 // WS_BORDER, WS_DLGFRAME, and WS_EX_DLGMODALFRAME windows. 00598 // 00599 if ( (lStyle & WS_CAPTION) || (dwExStyle & WS_EX_DLGMODALFRAME) ) 00600 ++cBorders; 00601 00602 // 00603 // Is there a sizing flat border around the window? 00604 // 00605 if (lStyle & WS_SIZEBOX) 00606 cBorders += gpsi->gclBorder; 00607 } 00608 00609 if (fClient) { 00610 // 00611 // Is there a 3D border around the client? 00612 // 00613 if (dwExStyle & WS_EX_CLIENTEDGE) 00614 cBorders += 2; 00615 } 00616 00617 return(cBorders); 00618 }

PVOID FASTCALL HMValidateHandle HANDLE  h,
BYTE  btype
 

Definition at line 150 of file rtl/wow.c.

00153 { 00154 DWORD dwError; 00155 KERNEL_PVOID pobj = NULL; 00156 PCLIENTINFO pci; 00157 00158 GET_CURRENT_CLIENTINFO(); 00159 00160 #if DBG != 0 && !defined(_USERK_) 00161 /* 00162 * We don't want 32 bit apps passing 16 bit handles 00163 * we should consider failing this before we get 00164 * stuck supporting it (Some VB apps do this). 00165 */ 00166 if (pci && (h != NULL) 00167 && (HMUniqFromHandle(h) == 0) 00168 && !(pci->dwTIFlags & TIF_16BIT)) { 00169 RIPMSG3(RIP_WARNING, "HMValidateHandle: 32bit process [%d] using 16 bit handle [%#p] bType:%#lx", 00170 HandleToUlong(NtCurrentTeb()->ClientId.UniqueProcess), h, (DWORD)bType); 00171 } 00172 #endif 00173 00174 /* 00175 * Object can't be located in shared memory. 00176 */ 00177 UserAssert(bType != TYPE_MONITOR); 00178 00179 /* 00180 * Validation macro. Falls through if the handle is invalid. 00181 */ 00182 ValidateHandleMacro(pci, pobj, h, bType); 00183 00184 /* 00185 * check for secure process 00186 */ 00187 CHECK_RESTRICTED(); 00188 00189 if (pobj != NULL) { 00190 return pobj; 00191 } 00192 00193 switch (bType) { 00194 00195 case TYPE_WINDOW: 00196 dwError = ERROR_INVALID_WINDOW_HANDLE; 00197 break; 00198 00199 case TYPE_MENU: 00200 dwError = ERROR_INVALID_MENU_HANDLE; 00201 break; 00202 00203 case TYPE_CURSOR: 00204 dwError = ERROR_INVALID_CURSOR_HANDLE; 00205 break; 00206 00207 case TYPE_ACCELTABLE: 00208 dwError = ERROR_INVALID_ACCEL_HANDLE; 00209 break; 00210 00211 case TYPE_HOOK: 00212 dwError = ERROR_INVALID_HOOK_HANDLE; 00213 break; 00214 00215 case TYPE_SETWINDOWPOS: 00216 dwError = ERROR_INVALID_DWP_HANDLE; 00217 break; 00218 00219 default: 00220 dwError = ERROR_INVALID_HANDLE; 00221 break; 00222 } 00223 00224 RIPERR2(dwError, 00225 RIP_WARNING, 00226 "HMValidateHandle: Invalid:%#p Type:%#lx", 00227 h, (DWORD)bType); 00228 00229 /* 00230 * If we get here, it's an error. 00231 */ 00232 return NULL; 00233 }

PVOID FASTCALL HMValidateHandleNoDesktop HANDLE  h,
BYTE  btype
 

PVOID FASTCALL HMValidateHandleNoRip HANDLE  h,
BYTE  btype
 

Definition at line 353 of file rtl/wow.c.

00356 { 00357 KERNEL_PVOID pobj = NULL; 00358 PCLIENTINFO pci; 00359 00360 /* 00361 * This is the fastest way way to do validation, because 00362 * unlike HMValidateHandle, this function doesn't set the 00363 * last error. 00364 * 00365 * Validation macro. Falls through if the handle is invalid. 00366 */ 00367 00368 GET_CURRENT_CLIENTINFO(); 00369 00370 /* 00371 * Object can't be located in shared memory. 00372 */ 00373 UserAssert(bType != TYPE_MONITOR); 00374 00375 ValidateHandleMacro(pci, pobj, h, bType); 00376 00377 /* 00378 * check for secure process 00379 */ 00380 CHECK_RESTRICTED(); 00381 00382 return pobj; 00383 }

PVOID FASTCALL HMValidateHandleNoSecure HANDLE  h,
BYTE  bType
 

Definition at line 242 of file rtl/wow.c.

00245 { 00246 KERNEL_PVOID pobj = NULL; 00247 PCLIENTINFO pci; 00248 00249 GET_CURRENT_CLIENTINFO(); 00250 00251 #if !defined(_USERK_) 00252 /* 00253 * We don't want 32 bit apps passing 16 bit handles 00254 * we should consider failing this before we get 00255 * stuck supporting it (Some VB apps do this). 00256 */ 00257 if (pci && (h != NULL) 00258 && (HMUniqFromHandle(h) == 0) 00259 && !(pci->dwTIFlags & TIF_16BIT)) { 00260 RIPMSG3(RIP_WARNING, "HMValidateHandle: 32bit process [%d] using 16 bit handle [%#p] bType:%#lx", 00261 HandleToUlong(NtCurrentTeb()->ClientId.UniqueProcess), h, (DWORD)bType); 00262 } 00263 #endif 00264 00265 /* 00266 * Object can't be located in shared memory. 00267 */ 00268 UserAssert(bType != TYPE_MONITOR); 00269 00270 /* 00271 * Validation macro. 00272 */ 00273 ValidateHandleMacro(pci, pobj, h, bType); 00274 00275 return pobj; 00276 }

PVOID FASTCALL HMValidateSharedHandle HANDLE  h,
BYTE  bType
 

Definition at line 419 of file rtl/wow.c.

00422 { 00423 DWORD dwError; 00424 KERNEL_PVOID pobj = NULL; 00425 00426 #if DBG != 0 && !defined(_USERK_) 00427 00428 /* 00429 * We don't want 32 bit apps passing 16 bit handles 00430 * we should consider failing this before we get 00431 * stuck supporting it (Some VB apps do this). 00432 */ 00433 if ((h != NULL) 00434 && (HMUniqFromHandle(h) == 0) 00435 && !(GetClientInfo()->dwTIFlags & TIF_16BIT)) { 00436 RIPMSG3(RIP_WARNING, "HMValidateHandle: 32bit process [%d] using 16 bit handle [%#p] bType:%#lx", 00437 HandleToUlong(NtCurrentTeb()->ClientId.UniqueProcess), h, (DWORD)bType); 00438 } 00439 #endif 00440 00441 /* 00442 * Validation macro. Falls through if the handle is invalid. 00443 */ 00444 ValidateSharedHandleMacro(pobj, h, bType); 00445 00446 if (pobj != NULL) 00447 return pobj; 00448 00449 switch (bType) { 00450 case TYPE_MONITOR: 00451 dwError = ERROR_INVALID_MONITOR_HANDLE; 00452 break; 00453 00454 default: 00455 UserAssertMsg0(0, "Logic error in HMValidateSharedHandle"); 00456 break; 00457 } 00458 00459 RIPERR2(dwError, 00460 RIP_WARNING, 00461 "HMValidateSharedHandle: Invalid:%#p Type:%#lx", 00462 h, (DWORD)bType); 00463 00464 /* 00465 * If we get here, it's an error. 00466 */ 00467 return NULL; 00468 }

__inline BOOL IsEmptyString PVOID  p,
ULONG  bAnsi
 

Definition at line 441 of file client/nt6/user.h.

References BOOL.

00442 { 00443 return (BOOL)!(bAnsi ? *(LPSTR)p : *(LPWSTR)p); 00444 }

BOOL IsSysFontAndDefaultMode HDC  hdc  ) 
 

Definition at line 2027 of file rtl/drawtext.c.

02028 { 02029 return((UserGetHFONT(hdc) == ghFontSys) && (UserGetMapMode(hdc) == MM_TEXT)); 02030 }

BOOL IsVisible PWND  pwnd  ) 
 

Definition at line 537 of file rtl/winmgr.c.

Referenced by CalcVisRgn().

00539 { 00540 PWND pwndT; 00541 00542 for (pwndT = pwnd; pwndT; pwndT = REBASEPWND(pwndT, spwndParent)) { 00543 00544 /* 00545 * Invisible windows are always invisible 00546 */ 00547 if (!TestWF(pwndT, WFVISIBLE)) 00548 return FALSE; 00549 00550 if (TestWF(pwndT, WFMINIMIZED)) { 00551 00552 /* 00553 * Children of minimized windows are always invisible. 00554 */ 00555 if (pwndT != pwnd) 00556 return FALSE; 00557 } 00558 00559 /* 00560 * If we're at the desktop, then we don't want to go any further. 00561 */ 00562 if (GETFNID(pwndT) == FNID_DESKTOP) 00563 break; 00564 } 00565 00566 return TRUE; 00567 }

void KernelBP void   ) 
 

ULONG_PTR MapClientNeuterToClientPfn PCLS  pcls,
ULONG_PTR  dw,
BOOL  bAnsi
 

ULONG_PTR MapServerToClientPfn ULONG_PTR  dw,
BOOL  bAnsi
 

LPWSTR MB_GetString UINT  wBtn  ) 
 

Definition at line 1627 of file msgbox.c.

01629 { 01630 if (wBtn < MAX_SEB_STYLES) 01631 return GETGPSIMBPSTR(wBtn); 01632 01633 RIPMSG1(RIP_ERROR, "Invalid wBtn: %d", wBtn); 01634 01635 return NULL; 01636 }

PITEM MNLookUpItem PMENU  pMenu,
UINT  wCmd,
BOOL  fByPosition,
PMENU ppMenuItemIsOn
 

Definition at line 486 of file rtl/wow.c.

00491 { 00492 PITEM pItem; 00493 PITEM pItemRet = NULL; 00494 PITEM pItemMaybe; 00495 PMENU pMenuMaybe = NULL; 00496 int i; 00497 00498 if (ppMenuItemIsOn != NULL) 00499 *ppMenuItemIsOn = NULL; 00500 00501 if (pMenu == NULL || !pMenu->cItems || wCmd == MFMWFP_NOITEM) { 00502 // RIPERR0(ERROR_INVALID_PARAMETER, RIP_WARNING, "MNLookUpItem: invalid item"); 00503 return NULL; 00504 } 00505 00506 /* 00507 * dwFlags determines how we do the search 00508 */ 00509 if (fByPosition) { 00510 if (wCmd < (UINT)pMenu->cItems) { 00511 pItemRet = &((PITEM)REBASEALWAYS(pMenu, rgItems))[wCmd]; 00512 if (ppMenuItemIsOn != NULL) 00513 *ppMenuItemIsOn = pMenu; 00514 return (pItemRet); 00515 } else 00516 return NULL; 00517 } 00518 /* 00519 * Walk down the menu and try to find an item with an ID of wCmd. 00520 * The search procedes from the end of the menu (as was done in 00521 * assembler). 00522 */ 00523 00524 /* this is the Chicago code, which walks from the front of the menu -- Fritz */ 00525 00526 00527 // for (pItem = &pMenu->rgItems[i - 1]; pItemRet == NULL && i--; --pItem) { 00528 for (i = 0, pItem = REBASEALWAYS(pMenu, rgItems); i < (int)pMenu->cItems; 00529 i++, pItem++) { 00530 00531 /* 00532 * If the item is a popup, recurse down the tree 00533 */ 00534 if (pItem->spSubMenu != NULL) { 00535 // 00536 // COMPAT: 00537 // Allow apps to pass in menu handle as ID in menu APIs. We 00538 // remember that this popup had a menu handle with the same ID 00539 // value. This is a 2nd choice though. We still want to see 00540 // if there's some actual command that has this ID value first. 00541 // 00542 if (pItem->wID == wCmd) { 00543 pMenuMaybe = pMenu; 00544 pItemMaybe = pItem; 00545 } 00546 00547 pItemRet = MNLookUpItem((PMENU)REBASEPTR(pMenu, pItem->spSubMenu), 00548 wCmd, FALSE, ppMenuItemIsOn); 00549 if (pItemRet != NULL) 00550 return pItemRet; 00551 } else if (pItem->wID == wCmd) { 00552 00553 /* 00554 * Found the item, now save things for later 00555 */ 00556 if (ppMenuItemIsOn != NULL) 00557 *ppMenuItemIsOn = pMenu; 00558 return pItem; 00559 } 00560 } 00561 00562 if (pMenuMaybe) { 00563 // no non popup menu match found -- use the 2nd choice popup menu 00564 // match 00565 if (ppMenuItemIsOn != NULL) 00566 *ppMenuItemIsOn = pMenuMaybe; 00567 return(pItemMaybe); 00568 } 00569 00570 return(NULL); 00571 }

BOOL NeedsWindowEdge DWORD  dwStyle,
DWORD  dwExStyle,
BOOL  fNewApp
 

Definition at line 727 of file rtl/winmgr.c.

00728 { 00729 BOOL fGetsWindowEdge; 00730 00731 fGetsWindowEdge = FALSE; 00732 00733 if (dwExStyle & WS_EX_DLGMODALFRAME) 00734 fGetsWindowEdge = TRUE; 00735 else if (dwExStyle & WS_EX_STATICEDGE) 00736 fGetsWindowEdge = FALSE; 00737 else if (dwStyle & WS_THICKFRAME) 00738 fGetsWindowEdge = TRUE; 00739 else switch (dwStyle & WS_CAPTION) 00740 { 00741 case WS_DLGFRAME: 00742 fGetsWindowEdge = TRUE; 00743 break; 00744 00745 case WS_CAPTION: 00746 fGetsWindowEdge = fNewApp; 00747 break; 00748 } 00749 00750 return(fGetsWindowEdge); 00751 }

__inline void NullTerminateString PVOID  p,
ULONG  bAnsi
 

Definition at line 445 of file client/nt6/user.h.

References CHAR.

00446 { 00447 if (bAnsi) *(LPSTR)p = (CHAR)0; else *(LPWSTR)p = (WCHAR)0; 00448 }

HBITMAP OwnerLoadBitmap HANDLE  hInstLoad,
LPWSTR  lpName,
HANDLE  hOwner
 

Definition at line 20 of file rmcreate.c.

00024 { 00025 // LATER port this huge hunk of code 00026 return NULL; 00027 }

PHOOK PhkNextValid PHOOK  phk  ) 
 

Definition at line 1031 of file rtl/wow.c.

01032 { 01033 01034 #if DBG 01035 int iHook = phk->iHook; 01036 #ifdef _USERK_ 01037 CheckCritInShared(); 01038 #endif 01039 #endif 01040 01041 do { 01042 /* 01043 * If this hook is marked as destroyed, it must be either 01044 * locked or we should be in the process of destroying it 01045 */ 01046 UserAssert(!(phk->flags & HF_DESTROYED) 01047 || (((PHEAD)phk)->cLockObj != 0) 01048 || (phk->flags & HF_INCHECKWHF)); 01049 /* 01050 * Get the next hook 01051 */ 01052 if (phk->phkNext != NULL) { 01053 phk = REBASEALWAYS(phk, phkNext); 01054 } else if (!(phk->flags & HF_GLOBAL)) { 01055 #ifdef _USERK_ 01056 phk = PtiCurrent()->pDeskInfo->aphkStart[phk->iHook + 1]; 01057 #else 01058 PCLIENTINFO pci = GetClientInfo(); 01059 phk = pci->pDeskInfo->aphkStart[phk->iHook + 1]; 01060 /* 01061 * If it found a pointer, rebase it. 01062 */ 01063 if (phk != NULL) { 01064 (KPBYTE)phk -= pci->ulClientDelta; 01065 } 01066 #endif 01067 UserAssert((phk == NULL) || (phk->flags & HF_GLOBAL)); 01068 } else { 01069 return NULL; 01070 } 01071 /* 01072 * If destroyed, keep looking. 01073 */ 01074 } while ((phk != NULL) && (phk->flags & HF_DESTROYED)); 01075 01076 #ifdef _USERK_ 01077 DbgValidateHooks(phk, iHook); 01078 #endif 01079 01080 return phk; 01081 }

BOOL PSMGetTextExtent HDC  hdc,
LPCWSTR  lpstr,
int  cch,
PSIZE  psize
 

Definition at line 72 of file rtl/text.c.

00077 { 00078 int result; 00079 WCHAR szTemp[255], *pchOut; 00080 00081 if (cch > sizeof(szTemp)/sizeof(WCHAR)) { 00082 pchOut = (WCHAR*)UserLocalAlloc(0, (cch+1) * sizeof(WCHAR)); 00083 if (pchOut == NULL) 00084 return FALSE; 00085 } else { 00086 pchOut = szTemp; 00087 } 00088 00089 result = HIWORD(GetPrefixCount(lpstr, cch, pchOut, cch)); 00090 00091 if (result) { 00092 lpstr = pchOut; 00093 cch -= result; 00094 } 00095 00096 UserGetTextExtentPointW(hdc, lpstr, cch, psize); 00097 00098 if (pchOut != szTemp) 00099 UserLocalFree(pchOut); 00100 00101 /* 00102 * IanJa everyone seems to ignore the ret val 00103 */ 00104 return TRUE; 00105 }

void RECTFromSIZERECT PRECT  prc,
PCSIZERECT  psrc
 

Definition at line 448 of file rect.c.

00449 { 00450 prc->left = psrc->x; 00451 prc->top = psrc->y; 00452 prc->right = psrc->x + psrc->cx; 00453 prc->bottom = psrc->y + psrc->cy; 00454 }

DWORD RtlGetExpWinVer HANDLE  hmod  ) 
 

Definition at line 28 of file w32/ntuser/rtl/random.c.

00030 { 00031 PIMAGE_NT_HEADERS pnthdr; 00032 DWORD dwMajor = 3; 00033 DWORD dwMinor = 0xA; 00034 00035 /* 00036 * If it doesn't look like a valid 32bit hmod, use the default 00037 * (i.e., assuming all 16bit hmods are 0x30a) 00038 */ 00039 if ((hmod != NULL) && (LOWORD(HandleToUlong(hmod)) == 0)) { 00040 try { 00041 pnthdr = RtlImageNtHeader((PVOID)hmod); 00042 dwMajor = pnthdr->OptionalHeader.MajorSubsystemVersion; 00043 /* 00044 * Still need this hack 'cuz the linker still puts 00045 * version 1.00 in the header of some things. 00046 */ 00047 if (dwMajor == 1) { 00048 dwMajor = 0x3; 00049 } else { 00050 dwMinor = pnthdr->OptionalHeader.MinorSubsystemVersion; 00051 } 00052 } except (W32ExceptionHandler(FALSE, RIP_WARNING)) { 00053 dwMajor = 3; // just to be safe 00054 dwMinor = 0xA; 00055 } 00056 } 00057 00058 00059 /* 00060 * Return this is a win3.1 compatible format: 00061 * 00062 * 0x030A == win3.1 00063 * 0x0300 == win3.0 00064 * 0x0200 == win2.0, etc. 00065 */ 00066 00067 return (DWORD)MAKELONG(MAKEWORD((BYTE)dwMinor, (BYTE)dwMajor), 0); 00068 }

VOID RtlInitLargeAnsiString PLARGE_ANSI_STRING  plstr,
LPCSTR  psz,
UINT  cchLimit
 

Definition at line 608 of file chartran.c.

00612 { 00613 ULONG Length; 00614 00615 plstr->Buffer = (PSTR)psz; 00616 plstr->bAnsi = TRUE; 00617 if (ARGUMENT_PRESENT( psz )) { 00618 Length = strlen( psz ); 00619 plstr->Length = min(Length, cchLimit); 00620 plstr->MaximumLength = min((Length + 1), cchLimit); 00621 } else { 00622 plstr->MaximumLength = 0; 00623 plstr->Length = 0; 00624 } 00625 }

VOID RtlInitLargeUnicodeString PLARGE_UNICODE_STRING  plstr,
LPCWSTR  psz,
UINT  cchLimit
 

Definition at line 636 of file chartran.c.

00640 { 00641 ULONG Length; 00642 00643 plstr->Buffer = (PWSTR)psz; 00644 plstr->bAnsi = FALSE; 00645 if (ARGUMENT_PRESENT( psz )) { 00646 Length = wcslen( psz ) * sizeof( WCHAR ); 00647 plstr->Length = min(Length, cchLimit); 00648 plstr->MaximumLength = min((Length + sizeof(UNICODE_NULL)), cchLimit); 00649 } else { 00650 plstr->MaximumLength = 0; 00651 plstr->Length = 0; 00652 } 00653 }

BOOL RtlMBMessageWParamCharToWCS DWORD  msg,
WPARAM *  pWParam
 

Definition at line 490 of file chartran.c.

00491 { 00492 DWORD dwUni; 00493 NTSTATUS Status; 00494 // FE_SB (RtlMBMessageWParamCharToWCS) 00495 BOOL bWmCrIrDbcsChar = FALSE; 00496 WORD wAnsi = LOWORD(*pWParam); 00497 // end FE_SB (RtlMBMessageWParamCharToWCS) 00498 WORD CodePage = THREAD_CODEPAGE(); 00499 00500 /* 00501 * Only these messages have CHARs: others are passed through 00502 */ 00503 00504 switch(msg) { 00505 // FE_SB (RtlMBMessageWParamCharToWCS) 00506 case WM_CHAR: 00507 // 00508 // WM_CHAR's wParam format for WM_IME_REPORT:IR_DBCSCHAR 00509 // 00510 if (IS_DBCS_ENABLED() && (*pWParam & WMCR_IR_DBCSCHAR)) { 00511 // 00512 // Mark this message is sent as IR_DBCSCHAR format. 00513 // 00514 bWmCrIrDbcsChar = TRUE; 00515 } 00516 00517 // 00518 // Fall through.... 00519 // 00520 #ifdef FE_IME 00521 case WM_IME_CHAR: 00522 case WM_IME_COMPOSITION: 00523 // 00524 // We need to re-align for Unicode convertsion.. 00525 // WM_CHAR/WM_IME_CHAR/WM_IME_COMPOSITION's wParam format : 00526 // 00527 // ReAlign IR_DBCS char format to regular sequence. 00528 // 00529 // From: 00530 // 00531 // HIWORD(wParam) = 0; 00532 // HIBYTE(LOWORD(wParam)) = DBCS LeadingByte. 00533 // LOBYTE(LOWORD(wParan)) = DBCS TrailingByte or SBCS character. 00534 // 00535 // To: 00536 // HIWORD(wParam) = 0; 00537 // HIBYTE(LOWORD(wParam)) = DBCS TrailingByte. 00538 // LOBYTE(LOWORD(wParam)) = DBCS LeadingByte or SBCS character. 00539 // 00540 if (IS_DBCS_ENABLED()) { 00541 *pWParam = MAKE_WPARAM_DBCSCHAR(wAnsi); 00542 } 00543 #endif 00544 // 00545 // Fall through... 00546 // 00547 // end FE_SB (RtlMBMessageWParamCharToWCS) 00548 case WM_CHARTOITEM: 00549 case EM_SETPASSWORDCHAR: 00550 case WM_DEADCHAR: 00551 case WM_SYSCHAR: 00552 case WM_SYSDEADCHAR: 00553 case WM_MENUCHAR: 00554 00555 dwUni = 0; 00556 00557 if (IS_ACP(CodePage)) { 00558 Status = RtlMultiByteToUnicodeN((LPWSTR)&dwUni, sizeof(dwUni), 00559 NULL, (LPSTR)pWParam, 2 * sizeof(CHAR)); 00560 if (!NT_SUCCESS(Status)) 00561 return FALSE; 00562 } else { 00563 int cwch; 00564 #ifdef _USERK_ 00565 cwch = EngMultiByteToWideChar(CodePage, 00566 (LPWSTR)&dwUni, sizeof(dwUni), 00567 (LPSTR)pWParam, 2); 00568 #else 00569 cwch = MultiByteToWideChar(CodePage, 0, 00570 (LPSTR)pWParam, 2, 00571 (LPWSTR)&dwUni, sizeof(dwUni) / sizeof(WCHAR)); 00572 #endif // _USERK_ 00573 // KdPrint(("0x%02x -> 0x%04x (%d)\n", *pWParam, dwUni, CodePage)); 00574 if (cwch == 0) { 00575 return FALSE; 00576 } 00577 } 00578 00579 // FE_SB (RtlMBMessageWParamCharToWCS) 00580 // 00581 // if this character is sent for WM_IME_REPORT:IR_DBCSCHAR, we mark it. 00582 // 00583 if (bWmCrIrDbcsChar) 00584 dwUni |= WMCR_IR_DBCSCHAR; 00585 // else FE_SB (RtlMBMessageWParamCharToWCS) 00586 #if DBG 00587 if ((dwUni == 0) || (dwUni > 0xFF)) { 00588 RIPMSG1(RIP_VERBOSE, "msgA -> msgW: wchar = 0x%lX\n", dwUni); 00589 } 00590 #endif 00591 // end FE_SB 00592 *pWParam = dwUni; 00593 break; 00594 } 00595 00596 return TRUE; 00597 }

BOOL RtlWCSMessageWParamCharToMB DWORD  msg,
WPARAM *  pWParam
 

Definition at line 361 of file chartran.c.

00362 { 00363 DWORD dwAnsi; 00364 NTSTATUS Status; 00365 WORD CodePage; 00366 int nbWch; 00367 00368 #ifdef FE_SB // RtlWCSMessageWParamCharToMB() 00369 // 00370 // Format of *pWParam here... 00371 // 00372 // LOWORD(*pWParam) = Unicode CodePoint... 00373 // HIWORD(*pWParam) = Has some information for DBCS messaging 00374 // (ex. WPARAM_IR_DBCSCHAR) 00375 // 00376 // Then we need to convert ONLY loword of wParam to Unicode... 00377 // 00378 #endif // FE_SB 00379 #ifndef FE_SB 00380 // NtBug #3135 (Closed 02/04/93) 00381 // Publisher Posts WM_CHAR messages with wParam > 0xFF (not a valid ANSI char)! 00382 // 00383 // It does this to disable TranslateAccelerator for that char. 00384 // MSPub's winproc must get the non-ANSI 'character' value, so PostMessage must 00385 // translate *two* characters of wParam for character messages, and PeekMessage 00386 // must translate *two* Unicode chars of wParam for ANSI app. 00387 #endif 00388 00389 /* 00390 * Only these messages have CHARs: others are passed through 00391 */ 00392 00393 switch(msg) { 00394 #ifdef FE_IME // RtlWCSMessageWParamCharToMB() 00395 case WM_IME_CHAR: 00396 case WM_IME_COMPOSITION: 00397 #endif // FE_IME 00398 case WM_CHAR: 00399 case WM_CHARTOITEM: 00400 case EM_SETPASSWORDCHAR: 00401 case WM_DEADCHAR: 00402 case WM_SYSCHAR: 00403 case WM_SYSDEADCHAR: 00404 case WM_MENUCHAR: 00405 00406 CodePage = THREAD_CODEPAGE(); 00407 dwAnsi = 0; 00408 00409 nbWch = IS_DBCS_ENABLED() ? 1 * sizeof(WCHAR) : 2 * sizeof(WCHAR); 00410 00411 if (IS_ACP(CodePage)) { 00412 // HACK HACK HACK HACK (for NtBug #3135) 00413 // to allow applications that store data in high word of wParam 00414 // Jan/06/96 hiroyama 00415 Status = RtlUnicodeToMultiByteN((LPSTR)&dwAnsi, sizeof(dwAnsi), 00416 NULL, (LPWSTR)pWParam, nbWch); 00417 if (!NT_SUCCESS(Status)) { 00418 // LATER IanJa: returning FALSE makes GetMessage fail, which 00419 // terminates the app. We should use some default 'bad character' 00420 // I use 0x00 for now. 00421 *pWParam = 0x00; 00422 return TRUE; 00423 } 00424 } else { 00425 int cwch; 00426 // assuming little endian 00427 #ifdef _USERK_ 00428 cwch = EngWideCharToMultiByte(CodePage, 00429 (LPWSTR)pWParam, nbWch, 00430 (LPSTR)&dwAnsi, sizeof(dwAnsi)); 00431 #else 00432 cwch = WideCharToMultiByte(CodePage, 0, 00433 (LPCWSTR)pWParam, nbWch / sizeof(WCHAR), 00434 (LPSTR)&dwAnsi, sizeof(dwAnsi), NULL, NULL); 00435 #endif // _USERK_ 00436 // KdPrint(("0x%04x -> 0x%02x (%d)\n", *pWParam, dwAnsi, CodePage)); 00437 if (cwch == 0) { 00438 *pWParam = 0x00; 00439 return TRUE; 00440 } 00441 } 00442 if (IS_DBCS_ENABLED()) { 00443 WORD wAnsi = LOWORD(dwAnsi); 00444 // 00445 // From: 00446 // HIBYTE(wAnsi) = Dbcs TrailingByte. 00447 // LOBYTE(wAnsi) = Dbcs LeadingByte or Sbcs character. 00448 // 00449 // To: 00450 // HIWORD(*pWParam) = Original Data (information for DBCS messgaing). 00451 // HIBYTE(LOWORD(*pWParam)) = Dbcs LeadingByte Byte. 00452 // LOBYTE(LOWORD(*pWParam)) = Dbcs TrailingByte or Sbcs character. 00453 // 00454 if (IS_DBCS_MESSAGE(wAnsi)) { 00455 // 00456 // It's a DBCS character. 00457 // 00458 *pWParam = MAKEWPARAM(MAKEWORD(HIBYTE(wAnsi),LOBYTE(wAnsi)),HIWORD(*pWParam)); 00459 } else { 00460 // 00461 // It's a SBCS character. 00462 // 00463 *pWParam = MAKEWPARAM(MAKEWORD(LOBYTE(wAnsi),0),0); 00464 } 00465 } else { 00466 #if DBG 00467 if ((dwAnsi == 0) || (dwAnsi > 0xFF)) { 00468 RIPMSG1(RIP_VERBOSE, "msgW -> msgA: char = 0x%.4lX\n", dwAnsi); 00469 } 00470 #endif 00471 *pWParam = dwAnsi; 00472 } 00473 break; 00474 } 00475 00476 return TRUE; 00477 }

__inline void SetRectEmptyInl LPRECT  prc  ) 
 

Definition at line 260 of file client/nt6/user.h.

00261 { 00262 RtlZeroMemory(prc, sizeof(*prc)); 00263 }

PWND SizeBoxHwnd PWND  pwnd  ) 
 

Definition at line 636 of file rtl/winmgr.c.

00638 { 00639 #ifdef USE_MIRRORING 00640 BOOL bMirroredSizeBox = (BOOL) TestWF(pwnd, WEFLAYOUTRTL); 00641 #endif 00642 00643 int xbrChild; 00644 int ybrChild = pwnd->rcWindow.bottom; 00645 00646 #ifdef USE_MIRRORING 00647 if (bMirroredSizeBox) { 00648 xbrChild = pwnd->rcWindow.left; 00649 } else 00650 #endif 00651 { 00652 xbrChild = pwnd->rcWindow.right; 00653 } 00654 00655 while (GETFNID(pwnd) != FNID_DESKTOP) { 00656 if (TestWF(pwnd, WFSIZEBOX)) { 00657 // First sizeable parent found 00658 int xbrParent; 00659 int ybrParent; 00660 00661 if (TestWF(pwnd, WFMAXIMIZED)) 00662 return(NULL); 00663 00664 #ifdef USE_MIRRORING 00665 if (bMirroredSizeBox) { 00666 xbrParent = pwnd->rcClient.left; 00667 } else 00668 #endif 00669 { 00670 xbrParent = pwnd->rcClient.right; 00671 } 00672 ybrParent = pwnd->rcClient.bottom; 00673 00674 /* If the sizebox dude is within an EDGE of the client's bottom 00675 * right corner (left corner for mirrored windows), let this succeed. 00676 * That way people who draw their own sunken clients will be happy. 00677 */ 00678 #ifdef USE_MIRRORING 00679 if (bMirroredSizeBox) { 00680 if ((xbrChild - SYSMETRTL(CXEDGE) > xbrParent) || (ybrChild + SYSMETRTL(CYEDGE) < ybrParent)) { 00681 // 00682 // Child's bottom, left corner of SIZEBOX isn't close enough 00683 // to bottom left of parent's client. 00684 // 00685 return(NULL); 00686 } 00687 } else 00688 #endif 00689 { 00690 if ((xbrChild + SYSMETRTL(CXEDGE) < xbrParent) || (ybrChild + SYSMETRTL(CYEDGE) < ybrParent)) { 00691 // 00692 // Child's bottom, right corner of SIZEBOX isn't close enough 00693 // to bottom right of parent's client. 00694 // 00695 return(NULL); 00696 } 00697 } 00698 00699 return(pwnd); 00700 } 00701 00702 if (!TestWF(pwnd, WFCHILD) || TestWF(pwnd, WFCPRESENT)) 00703 break; 00704 00705 pwnd = REBASEPWND(pwnd, spwndParent); 00706 } 00707 return(NULL); 00708 }

void SIZERECTFromRECT PSIZERECT  psrc,
LPCRECT  prc
 

Definition at line 467 of file rect.c.

00468 { 00469 psrc->x = prc->left; 00470 psrc->y = prc->top; 00471 psrc->cx = prc->right - prc->left; 00472 psrc->cy = prc->bottom - prc->top; 00473 }

int SoftModalMessageBox LPMSGBOXDATA  lpmb  ) 
 

Definition at line 730 of file msgbox.c.

00730 { 00731 LPBYTE lpDlgTmp; 00732 int cyIcon, cxIcon; 00733 int cxButtons; 00734 int cxMBMax; 00735 int cxText, cyText, xText; 00736 int cxBox, cyBox; 00737 int cxFoo, cxCaption; 00738 int xMB, yMB; 00739 HDC hdc; 00740 DWORD wIconOrdNum; 00741 DWORD wCaptionLen; 00742 DWORD wTextLen; 00743 WORD OrdNum[2]; // Must be an array or WORDs 00744 RECT rc; 00745 RECT rcWork; 00746 HCURSOR hcurOld; 00747 DWORD dwStyleMsg, dwStyleText; 00748 DWORD dwExStyleMsg = 0; 00749 DWORD dwStyleDlg; 00750 HWND hwndOwner; 00751 LPWSTR lpsz; 00752 int iRetVal = 0; 00753 HICON hIcon; 00754 HGLOBAL hTemplate = NULL; 00755 HGLOBAL hCaption = NULL; 00756 HGLOBAL hText = NULL; 00757 HINSTANCE hInstMsg = lpmb->hInstance; 00758 SIZE size; 00759 HFONT hFontOld = NULL; 00760 int cntMBox; 00761 PMONITOR pMonitor; 00762 00763 ConnectIfNecessary(); 00764 00765 dwStyleMsg = lpmb->dwStyle; 00766 00767 // 00768 // This code is disabled since Mirroring will take care of this. 00769 // 00770 #ifndef USE_MIRRORING 00771 if (dwStyleMsg & MB_RTLREADING) { 00772 dwExStyleMsg |= WS_EX_RTLREADING; 00773 } 00774 #endif 00775 if (dwStyleMsg & MB_RIGHT) { 00776 dwExStyleMsg |= WS_EX_RIGHT; 00777 } 00778 00779 if (!IS_PTR(lpmb->lpszCaption)) { 00780 00781 // won't ever be NULL because MessageBox sticks "Error!" in in that case 00782 if (hInstMsg && (hCaption = LocalAlloc(LPTR, MAX_RES_STRING * sizeof(WCHAR)))) { 00783 lpsz = (LPWSTR) hCaption; 00784 LoadString(hInstMsg, PTR_TO_ID(lpmb->lpszCaption), lpsz, MAX_RES_STRING); 00785 } else 00786 lpsz = NULL; 00787 00788 lpmb->lpszCaption = lpsz ? lpsz : szEmpty; 00789 } 00790 00791 if (!IS_PTR(lpmb->lpszText)) { 00792 // NULL not allowed 00793 if (hInstMsg && (hText = LocalAlloc(LPTR, MAX_RES_STRING * sizeof(WCHAR)))) { 00794 lpsz = (LPWSTR) hText; 00795 LoadString(hInstMsg, PTR_TO_ID(lpmb->lpszText), lpsz, MAX_RES_STRING); 00796 } else 00797 lpsz = NULL; 00798 00799 lpmb->lpszText = lpsz ? lpsz : szEmpty; 00800 } 00801 00802 #ifdef USE_MIRRORING 00803 // 00804 // Mirroring of MessageBox'es is only enabled if :- 00805 // 00806 // * MB_RTLREADING style has been specified in the MessageBox styles OR 00807 // * The first two code points of the MessageBox text are Right-To-Left 00808 // marks (RLMs = U+200f). 00809 // The feature of enable RTL mirroring if two consecutive RLMs are found 00810 // in the MB text is to acheive a no-code-change for localization of 00811 // of MessageBoxes for BiDi Apps. [samera] 00812 // 00813 if ((dwStyleMsg & MB_RTLREADING) || 00814 (lpmb->lpszText != NULL && (lpmb->lpszText[0] == UNICODE_RLM) && 00815 (lpmb->lpszText[1] == UNICODE_RLM))) { 00816 // 00817 // Set Mirroring so that MessageBox and its child controls 00818 // get mirrored. Otherwise, the message box and its child controls 00819 // are Left-To-Right. 00820 // 00821 dwExStyleMsg |= WS_EX_LAYOUTRTL; 00822 00823 // 00824 // And turn off any conflicting flags. 00825 // 00826 dwExStyleMsg &= ~WS_EX_RIGHT; 00827 if (dwStyleMsg & MB_RTLREADING) { 00828 dwStyleMsg &= ~MB_RTLREADING; 00829 dwStyleMsg ^= MB_RIGHT; 00830 } 00831 } 00832 #endif 00833 00834 00835 if ((dwStyleMsg & MB_ICONMASK) == MB_USERICON) 00836 hIcon = LoadIcon(hInstMsg, lpmb->lpszIcon); 00837 else 00838 hIcon = NULL; 00839 00840 // For compatibility reasons, we still allow the message box to come up. 00841 hwndOwner = lpmb->hwndOwner; 00842 00843 // For PowerBuilder4.0, we must make their messageboxes owned popups. Or, else 00844 // they get WM_ACTIVATEAPP and they install multiple keyboard hooks and get into 00845 // infinite loop later. 00846 // Bug #15896 -- WIN95B -- 2/17/95 -- SANKAR -- 00847 if(!hwndOwner) 00848 { 00849 WCHAR pwszLibFileName[MAX_PATH]; 00850 static WCHAR szPB040[] = L"PB040"; // Module name of PowerBuilder4.0 00851 WCHAR *pw1; 00852 00853 //Is this a win3.1 or older app? 00854 if(GetClientInfo()->dwExpWinVer <= VER31) 00855 { 00856 if (GetModuleFileName(NULL, pwszLibFileName, sizeof(pwszLibFileName)/sizeof(WCHAR)) == 0) goto getthedc; 00857 pw1 = pwszLibFileName + wcslen(pwszLibFileName) - 1; 00858 while (pw1 > pwszLibFileName) { 00859 if (*pw1 == TEXT('.')) *pw1-- = 0; 00860 else if (*pw1 == TEXT(':')) {pw1++; break;} 00861 else if (*pw1 == TEXT('\\')) {pw1++; break;} 00862 else pw1--; 00863 } 00864 // Is this the PowerBuilder 4.0 module? 00865 if(!_wcsicmp(pw1, szPB040)) 00866 hwndOwner = NtUserGetForegroundWindow(); // Make the MsgBox owned. 00867 } 00868 } 00869 getthedc: 00870 // Check if we're out of cache DCs until robustness... 00871 if (!(hdc = NtUserGetDCEx(NULL, NULL, DCX_WINDOW | DCX_CACHE))) { 00872 00873 /* 00874 * The above call might fail for TIF_RESTRICTED processes 00875 * so check for the DC from the owner window 00876 */ 00877 if (!(hdc = NtUserGetDCEx(hwndOwner, NULL, DCX_WINDOW | DCX_CACHE))) 00878 goto SMB_Exit; 00879 } 00880 00881 // Figure out the types and dimensions of buttons 00882 00883 cxButtons = (lpmb->cButtons * gpsi->wMaxBtnSize) + ((lpmb->cButtons - 1) * XPixFromXDU(DU_BTNGAP, gpsi->cxMsgFontChar)); 00884 00885 // Ditto for the icon, if there is one. If not, cxIcon & cyIcon are 0. 00886 00887 if (wIconOrdNum = MB_GetIconOrdNum(dwStyleMsg)) { 00888 cxIcon = SYSMET(CXICON) + XPixFromXDU(DU_INNERMARGIN, gpsi->cxMsgFontChar); 00889 cyIcon = SYSMET(CYICON); 00890 } else 00891 cxIcon = cyIcon = 0; 00892 00893 hFontOld = SelectObject(hdc, gpsi->hCaptionFont); 00894 00895 // Find the max between the caption text and the buttons 00896 wCaptionLen = wcslen(lpmb->lpszCaption); 00897 GetTextExtentPoint(hdc, lpmb->lpszCaption, wCaptionLen, &size); 00898 cxCaption = size.cx + 2*SYSMET(CXSIZE); 00899 00900 // 00901 // The max width of the message box is 5/8 of the work area for most 00902 // countries. We will then try 6/8 and 7/8 if it won't fit. Then 00903 // we will use whole screen. 00904 // 00905 pMonitor = GetDialogMonitor(hwndOwner, MONITOR_DEFAULTTOPRIMARY); 00906 CopyRect(&rcWork, &pMonitor->rcWork); 00907 cxMBMax = MultDiv(rcWork.right - rcWork.left, 5, 8); 00908 00909 cxFoo = 2*XPixFromXDU(DU_OUTERMARGIN, gpsi->cxMsgFontChar); 00910 00911 SelectObject(hdc, gpsi->hMsgFont); 00912 00913 // 00914 // If the text doesn't fit in 5/8, try 7/8 of the screen 00915 // 00916 ReSize: 00917 // 00918 // The message box is as big as needed to hold the caption/text/buttons, 00919 // but not bigger than the maximum width. 00920 // 00921 00922 cxBox = cxMBMax - 2*SYSMET(CXFIXEDFRAME); 00923 00924 // Ask DrawText for the right cx and cy 00925 rc.left = 0; 00926 rc.top = 0; 00927 rc.right = cxBox - cxFoo - cxIcon; 00928 rc.bottom = rcWork.bottom - rcWork.top; 00929 cyText = DrawTextExW(hdc, (LPWSTR)lpmb->lpszText, -1, &rc, 00930 DT_CALCRECT | DT_WORDBREAK | DT_EXPANDTABS | 00931 DT_NOPREFIX | DT_EXTERNALLEADING | DT_EDITCONTROL, NULL); 00932 // 00933 // Make sure we have enough width to hold the buttons, in addition to 00934 // the icon+text. Always force the buttons. If they don't fit, it's 00935 // because the working area is small. 00936 // 00937 // 00938 // The buttons are centered underneath the icon/text. 00939 // 00940 cxText = rc.right - rc.left + cxIcon + cxFoo; 00941 cxBox = min(cxBox, max(cxText, cxCaption)); 00942 cxBox = max(cxBox, cxButtons + cxFoo); 00943 cxText = cxBox - cxFoo - cxIcon; 00944 00945 // 00946 // Now we know the text width for sure. Really calculate how high the 00947 // text will be. 00948 // 00949 rc.left = 0; 00950 rc.top = 0; 00951 rc.right = cxText; 00952 rc.bottom = rcWork.bottom - rcWork.top; 00953 cyText = DrawTextExW(hdc, (LPWSTR)lpmb->lpszText, -1, &rc, DT_CALCRECT | DT_WORDBREAK 00954 | DT_EXPANDTABS | DT_NOPREFIX | DT_EXTERNALLEADING | DT_EDITCONTROL, NULL); 00955 00956 // Find the window size. 00957 cxBox += 2*SYSMET(CXFIXEDFRAME); 00958 cyBox = 2*SYSMET(CYFIXEDFRAME) + SYSMET(CYCAPTION) + YPixFromYDU(2*DU_OUTERMARGIN + 00959 DU_INNERMARGIN + DU_BTNHEIGHT, gpsi->cyMsgFontChar); 00960 00961 cyBox += max(cyIcon, cyText); 00962 00963 // 00964 // If the message box doesn't fit on the working area, we'll try wider 00965 // sizes successively: 6/8 of work then 7/8 of screen. 00966 // 00967 if (cyBox > rcWork.bottom - rcWork.top) 00968 { 00969 int cxTemp; 00970 00971 cxTemp = MultDiv(rcWork.right - rcWork.left, 6, 8); 00972 00973 if (cxMBMax == MultDiv(rcWork.right - rcWork.left, 5, 8)) 00974 { 00975 cxMBMax = cxTemp; 00976 goto ReSize; 00977 } 00978 else if (cxMBMax == cxTemp) 00979 { 00980 // then let's try with rcMonitor 00981 CopyRect(&rcWork, &pMonitor->rcMonitor); 00982 cxMBMax = MultDiv(rcWork.right - rcWork.left, 7, 8); 00983 goto ReSize; 00984 } 00985 } 00986 00987 if (hFontOld) 00988 SelectFont(hdc, hFontOld); 00989 NtUserReleaseDC(NULL, hdc); 00990 00991 // Find the window position 00992 cntMBox = GetClientInfo()->pDeskInfo->cntMBox; 00993 00994 xMB = (rcWork.left + rcWork.right - cxBox) / 2 + (cntMBox * SYSMET(CXSIZE)); 00995 xMB = max(xMB, rcWork.left); 00996 yMB = (rcWork.top + rcWork.bottom - cyBox) / 2 + (cntMBox * SYSMET(CYSIZE)); 00997 yMB = max(yMB, rcWork.top); 00998 00999 // Bottom, right justify if we're going off the screen--but leave a 01000 // little gap 01001 01002 if (xMB + cxBox > rcWork.right) 01003 xMB = rcWork.right - SYSMET(CXEDGE) - cxBox; 01004 01005 // 01006 // Pin to the working area. If it won't fit, then pin to the screen 01007 // height. Bottom justify it at least if too big even for that, so 01008 // that the buttons are visible. 01009 // 01010 if (yMB + cyBox > rcWork.bottom) { 01011 yMB = rcWork.bottom - SYSMET(CYEDGE) - cyBox; 01012 if (yMB < rcWork.top) { 01013 yMB = pMonitor->rcMonitor.bottom - SYSMET(CYEDGE) - cyBox; 01014 } 01015 } 01016 01017 wTextLen = wcslen(lpmb->lpszText); 01018 01019 // Find out the memory required for the Dlg template and try to alloc it 01020 hTemplate = LocalAlloc(LMEM_ZEROINIT, MB_FindDlgTemplateSize(lpmb)); 01021 01022 if (!hTemplate) 01023 goto SMB_Exit; 01024 01025 lpDlgTmp = (LPBYTE) hTemplate; 01026 01027 // 01028 // Setup the dialog style for the message box 01029 // 01030 dwStyleDlg = WS_POPUPWINDOW | WS_CAPTION | DS_ABSALIGN | DS_NOIDLEMSG | 01031 DS_SETFONT | DS_3DLOOK; 01032 01033 if ((dwStyleMsg & MB_MODEMASK) == MB_SYSTEMMODAL) 01034 dwStyleDlg |= DS_SYSMODAL | DS_SETFOREGROUND; 01035 else 01036 dwStyleDlg |= DS_MODALFRAME | WS_SYSMENU; 01037 01038 if (dwStyleMsg & MB_SETFOREGROUND) 01039 dwStyleDlg |= DS_SETFOREGROUND; 01040 01041 // Add the Header of the Dlg Template 01042 // BOGUS !!! don't ADD bools 01043 lpDlgTmp = MB_UpdateDlgHdr((LPDLGTEMPLATE) lpDlgTmp, dwStyleDlg, dwExStyleMsg, 01044 (BYTE) (lpmb->cButtons + (wIconOrdNum != 0) + (lpmb->lpszText != NULL)), 01045 xMB, yMB, cxBox, cyBox, (LPWSTR)lpmb->lpszCaption, wCaptionLen); 01046 01047 // 01048 // Center the buttons 01049 // 01050 01051 cxFoo = (cxBox - 2*SYSMET(CXFIXEDFRAME) - cxButtons) / 2; 01052 01053 lpDlgTmp = MB_AddPushButtons((LPDLGITEMTEMPLATE)lpDlgTmp, lpmb, cxFoo, 01054 cyBox - SYSMET(CYCAPTION) - (2 * SYSMET(CYFIXEDFRAME)) - 01055 YPixFromYDU(DU_OUTERMARGIN, gpsi->cyMsgFontChar), dwStyleMsg); 01056 01057 // Add Icon, if any, to the Dlg template 01058 // 01059 // The icon is always top justified. If the text is shorter than the 01060 // height of the icon, we center it. Otherwise the text will start at 01061 // the top. 01062 // 01063 if (wIconOrdNum) { 01064 OrdNum[0] = 0xFFFF; // To indicate that an Ordinal number follows 01065 OrdNum[1] = (WORD) wIconOrdNum; 01066 01067 lpDlgTmp = MB_UpdateDlgItem((LPDLGITEMTEMPLATE)lpDlgTmp, IDUSERICON, // Control Id 01068 SS_ICON | WS_GROUP | WS_CHILD | WS_VISIBLE, 0, 01069 XPixFromXDU(DU_OUTERMARGIN, gpsi->cxMsgFontChar), // X co-ordinate 01070 YPixFromYDU(DU_OUTERMARGIN, gpsi->cyMsgFontChar), // Y co-ordinate 01071 0, 0, // For Icons, CX and CY are ignored, can be zero 01072 OrdNum, // Ordinal number of Icon 01073 sizeof(OrdNum)/sizeof(WCHAR), // Length of OrdNum 01074 STATICCODE); 01075 } 01076 01077 // Add the Text of the Message to the Dlg Template 01078 if (lpmb->lpszText) { 01079 // 01080 // Center the text if shorter than the icon. 01081 // 01082 if (cyText >= cyIcon) 01083 cxFoo = 0; 01084 else 01085 cxFoo = (cyIcon - cyText) / 2; 01086 01087 dwStyleText = SS_NOPREFIX | WS_GROUP | WS_CHILD | WS_VISIBLE | SS_EDITCONTROL; 01088 if (dwStyleMsg & MB_RIGHT) { 01089 dwStyleText |= SS_RIGHT; 01090 xText = cxBox - (SYSMET(CXSIZE) + cxText); 01091 } else { 01092 dwStyleText |= SS_LEFT; 01093 xText = cxIcon + XPixFromXDU(DU_INNERMARGIN, gpsi->cxMsgFontChar); 01094 } 01095 01096 MB_UpdateDlgItem((LPDLGITEMTEMPLATE)lpDlgTmp, -1, dwStyleText, dwExStyleMsg, xText, 01097 YPixFromYDU(DU_OUTERMARGIN, gpsi->cyMsgFontChar) + cxFoo, 01098 cxText, cyText, 01099 (LPWSTR)lpmb->lpszText, wTextLen, STATICCODE); 01100 } 01101 01102 // The dialog template is ready 01103 01104 // 01105 // Set the normal cursor 01106 // 01107 hcurOld = NtUserSetCursor(LoadCursor(NULL, IDC_ARROW)); 01108 01109 lpmb->lpszIcon = (LPWSTR) hIcon; // BUGBUG - How to diff this from a resource? 01110 01111 if (!(lpmb->dwStyle & MB_USERICON)) 01112 { 01113 int wBeep = (LOWORD(lpmb->dwStyle & MB_ICONMASK)) >> MB_MASKSHIFT; 01114 if (wBeep < USER_SOUND_MAX) { 01115 NtUserCallOneParam(wBeep, SFI_PLAYEVENTSOUND); 01116 } 01117 } 01118 01119 iRetVal = (int)InternalDialogBox(hmodUser, hTemplate, hwndOwner, 01120 MB_DlgProcW, (LPARAM) lpmb, FALSE); 01121 01122 // 01123 // Fix up return value 01124 if (iRetVal == -1) 01125 iRetVal = 0; /* Messagebox should also return error */ 01126 01127 // 01128 // If the messagebox contains only OK button, then its ID is changed as 01129 // IDCANCEL in MB_DlgProc; So, we must change it back to IDOK irrespective 01130 // of whether ESC is pressed or Carriage return is pressed; 01131 // 01132 if (((dwStyleMsg & MB_TYPEMASK) == MB_OK) && iRetVal) 01133 iRetVal = IDOK; 01134 01135 01136 // 01137 // Restore the previous cursor 01138 // 01139 if (hcurOld) 01140 NtUserSetCursor(hcurOld); 01141 01142 SMB_Exit: 01143 if (hTemplate) 01144 UserLocalFree(hTemplate); 01145 01146 if (hCaption) { 01147 UserLocalFree(hCaption); 01148 } 01149 01150 if (hText) { 01151 UserLocalFree(hText); 01152 } 01153 01154 return(iRetVal); 01155 }

__inline UINT StringLength PVOID  p,
ULONG  bAnsi
 

Definition at line 449 of file client/nt6/user.h.

References strlen(), and UINT.

Referenced by AlGetString(), CookedRead(), FE_StreamWriteToScreenBuffer(), FindDialogProc(), IopRegMultiSzToUnicodeStrings(), MyInvert(), RtlLengthSidAsUnicodeString(), SearchForString(), StoreSelection(), and WndProc().

00450 { 00451 return (bAnsi ? strlen((LPSTR)p) : wcslen((LPWSTR)p)); 00452 }

DWORD strncpycch LPSTR  pszDest,
LPCSTR  pszSrc,
DWORD  cch
 

Definition at line 184 of file w32/ntuser/rtl/random.c.

00189 { 00190 LPSTR start = dest; 00191 00192 while (count && (*dest++ = *source++)) /* copy string */ 00193 count--; 00194 00195 return (DWORD)(dest - start); 00196 }

BOOL TestWindowProcess PWND  pwnd  ) 
 

Definition at line 551 of file winmgrc.c.

00553 { 00554 /* 00555 * If the threads are the same, don't bother going to the kernel 00556 * to get the window's process id. 00557 */ 00558 if (GETPTI(pwnd) == PtiCurrent()) { 00559 return TRUE; 00560 } 00561 00562 return (GetWindowProcess(HW(pwnd)) == GETPROCESSID()); 00563 }

LPWSTR TextAlloc LPCWSTR  lpsz  ) 
 

Definition at line 164 of file w32/ntuser/client/random.c.

00166 { 00167 LPWSTR pszT; 00168 DWORD cbString; 00169 00170 if (lpszSrc == NULL) 00171 return NULL; 00172 00173 cbString = (wcslen(lpszSrc) + 1) * sizeof(WCHAR); 00174 00175 if (pszT = (LPWSTR)UserLocalAlloc(HEAP_ZERO_MEMORY, cbString)) { 00176 00177 RtlCopyMemory(pszT, lpszSrc, cbString); 00178 } 00179 00180 return pszT; 00181 }

UINT TextCopy PLARGE_UNICODE_STRING  pstr,
LPWSTR  lpstr,
UINT  size
 

Definition at line 108 of file w32/ntuser/rtl/random.c.

00112 { 00113 if (cchMax != 0) { 00114 cchMax = min(pstr->Length / sizeof(WCHAR), cchMax - 1); 00115 RtlCopyMemory(pszDst, (PVOID)pstr->Buffer, cchMax * sizeof(WCHAR)); 00116 pszDst[cchMax] = 0; 00117 } 00118 00119 return cchMax; 00120 }

VOID User32InitializeImmEntryTable DWORD  dwMagic  ) 
 

Definition at line 344 of file fareast.c.

00345 { 00346 if (magic != IMM_MAGIC_CALLER_ID) { 00347 RIPMSG1(RIP_WARNING, "User32InitializeImmEntryTable: magic # does not match: 0x%08x", magic); 00348 return FALSE; 00349 } 00350 00351 if (((PVOID)gImmApiEntries.ImmWINNLSEnableIME) != ((PVOID)fakeImm_wd2)) { 00352 // already initialized 00353 return TRUE; 00354 } 00355 00356 _InitializeImmEntryTable(); 00357 00358 if (ghImm32 == NULL) { 00359 if (!bImmInitializing) { 00360 // increment the load counter of IMM32.DLL; application may call FreeLibrary later 00361 WCHAR wszImmFile[MAX_PATH]; 00362 GetImmFileName(wszImmFile); 00363 ghImm32 = LoadLibraryW(wszImmFile); 00364 } 00365 } 00366 // for IMM initialization 00367 return fpImmRegisterClient(&gSharedInfo, ghImm32); 00368 }

WORD VersionFromWindowFlag PWND  pwnd  ) 
 

DWORD wcsncpycch LPWSTR  pwsDest,
LPCWSTR  pwszSrc,
DWORD  cch
 

Definition at line 146 of file w32/ntuser/rtl/random.c.

00151 { 00152 LPWSTR start = dest; 00153 00154 while (count && (*dest++ = *source++)) /* copy string */ 00155 count--; 00156 00157 return (DWORD)(dest - start); 00158 }

RTLMENU xxxLoadSysMenu UINT  uMenuId  ) 
 

Definition at line 117 of file ntuser/rtl/menu.c.

00118 { 00119 RTLMENU rtlMenu; 00120 MENUINFO mi; 00121 MENUITEMINFO mii; 00122 TL tlMenu; 00123 00124 #ifdef _USERK_ 00125 UNICODE_STRING strMenuName; 00126 RtlInitUnicodeStringOrId(&strMenuName, MAKEINTRESOURCE(uMenuId)); 00127 rtlMenu = xxxClientLoadMenu(NULL, &strMenuName); 00128 #else 00129 rtlMenu = LoadMenu(hmodUser, MAKEINTRESOURCE(uMenuId)); 00130 #endif 00131 00132 if (rtlMenu == NULL) { 00133 RIPMSG1(RIP_WARNING, "xxxLoadSysMenu failed to load:%#lx", uMenuId); 00134 return NULL; 00135 } 00136 00137 ThreadLockAlways(rtlMenu, &tlMenu); 00138 /* 00139 * Add the checkorbmp style. (draw bitmaps and checkmarks on the 00140 * same column) 00141 */ 00142 mi.cbSize = sizeof(mi); 00143 mi.fMask = MIM_STYLE | MIM_APPLYTOSUBMENUS; 00144 mi.dwStyle = MNS_CHECKORBMP; 00145 xxxRtlSetMenuInfo(rtlMenu, &mi); 00146 /* 00147 * Add the bitmaps for close, minimize, maximize and restore items. 00148 */ 00149 mii.cbSize = sizeof(mii); 00150 mii.fMask = MIIM_BITMAP; 00151 mii.hbmpItem = HBMMENU_POPUP_CLOSE; 00152 xxxRtlSetMenuItemInfo (rtlMenu, SC_CLOSE, &mii); 00153 if (uMenuId != ID_DIALOGSYSMENU) { 00154 mii.hbmpItem = HBMMENU_POPUP_MINIMIZE; 00155 xxxRtlSetMenuItemInfo (rtlMenu, SC_MINIMIZE, &mii); 00156 mii.hbmpItem = HBMMENU_POPUP_MAXIMIZE; 00157 xxxRtlSetMenuItemInfo (rtlMenu, SC_MAXIMIZE, &mii); 00158 mii.hbmpItem = HBMMENU_POPUP_RESTORE; 00159 xxxRtlSetMenuItemInfo (rtlMenu, SC_RESTORE, &mii); 00160 } 00161 00162 ThreadUnlock(&tlMenu); 00163 return rtlMenu; 00164 }


Variable Documentation

PWND _GetDesktopWindow(VOID)
 

Referenced by GetLastTopMostWindowNoIME(), xxxCleanupDesktopMenu(), and xxxLBCreate().

PWND _GetMessageWindow(VOID)
 

HBRUSH ahbrSystem[]
 

Definition at line 3359 of file client/nt6/user.h.

FPLPKDRAWTEXTEX fpLpkDrawTextEx
 

Definition at line 3232 of file client/nt6/user.h.

PLPKEDITCALLOUT fpLpkEditControl
 

Definition at line 3304 of file client/nt6/user.h.

FPLPKPSMTEXTOUT fpLpkPSMTextOut
 

Definition at line 3231 of file client/nt6/user.h.

FPLPKTABBEDTEXTOUT fpLpkTabbedTextOut
 

Definition at line 3230 of file client/nt6/user.h.

HBRUSH ghbrBlack
 

Definition at line 3362 of file client/nt6/user.h.

Referenced by CleanupGDI(), ClientThreadSetup(), CtxInitUser32(), DrawBox(), LW_BrushInit(), xxxDesktopPaintCallback(), and xxxDrawState().

HBRUSH ghbrGray
 

Definition at line 3363 of file client/nt6/user.h.

HBRUSH ghbrWhite
 

Definition at line 3361 of file client/nt6/user.h.

Referenced by CleanupGDI(), ClientThreadSetup(), CtxInitUser32(), DrawBox(), DrawMenuMark(), LW_BrushInit(), and UT_InvertCaret().

CONST MSG_TABLE_ENTRY MessageTable[]
 

Definition at line 3524 of file client/nt6/user.h.

Referenced by CallWindowProcAorW(), ClientThreadSetup(), EditWndProcWorker(), NtUserMessageCall(), SendMessageWorker(), and xxxDispatchMessage().


Generated on Sat May 15 19:45:53 2004 for test by doxygen 1.3.7