Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

user32.cpp File Reference

#include <odin.h>
#include <odinwrap.h>
#include <os2sel.h>
#include <os2win.h>
#include <misc.h>
#include <winuser32.h>
#include "user32.h"
#include <winicon.h>
#include "syscolor.h"
#include "pmwindow.h"
#include "oslibgdi.h"
#include "oslibwin.h"
#include "oslibprf.h"
#include <wchar.h>
#include <stdlib.h>
#include <string.h>
#include <win32wnd.h>
#include <winuser.h>
#include "initterm.h"
#include "dbglocal.h"

Include dependency graph for user32.cpp:

Include dependency graph

Go to the source code of this file.

Defines

#define DBG_LOCALLOG   DBG_user32
#define COLOR_MAX   COLOR_GRADIENTINACTIVECAPTION

Functions

BOOL WIN32API CopyRect (PRECT lprcDst, const RECT *lprcSrc)
BOOL WIN32API EqualRect (const RECT *lprc1, const RECT *lprc2)
BOOL WIN32API InflateRect (PRECT lprc, int dx, int dy)
BOOL WIN32API IntersectRect (PRECT lprcDst, const RECT *lprcSrc1, const RECT *lprcSrc2)
BOOL WIN32API IsRectEmpty (const RECT *lprc)
BOOL WIN32API OffsetRect (PRECT lprc, int x, int y)
BOOL WIN32API PtInRect (const RECT *lprc, POINT pt)
BOOL WIN32API SetRect (PRECT lprc, int nLeft, int nTop, int nRight, int nBottom)
BOOL WIN32API SetRectEmpty (PRECT lprc)
BOOL WIN32API SubtractRect (PRECT lprcDest, const RECT *lprcSrc1, const RECT *lprcSrc2)
BOOL WIN32API UnionRect (PRECT lprcDst, const RECT *lprcSrc1, const RECT *lprcSrc2)
BOOL WINAPI ExitWindowsEx (UINT uFlags, DWORD dwReserved)
BOOL WIN32API MessageBeep (UINT uType)
VOID WIN32API SetLastErrorEx (DWORD dwErrCode, DWORD dwType)
int WIN32API GetSystemMetrics (int nIndex)
BOOL WIN32API SystemParametersInfoA (UINT uiAction, UINT uiParam, PVOID pvParam, UINT fWinIni)
BOOL WIN32API SystemParametersInfoW (UINT uiAction, UINT uiParam, PVOID pvParam, UINT fWinIni)
BOOL WIN32API WinHelpA (HWND hwnd, LPCSTR lpszHelp, UINT uCommand, DWORD dwData)
BOOL WIN32API WinHelpW (HWND hwnd, LPCWSTR lpszHelp, UINT uCommand, DWORD dwData)
BOOL WIN32API PaintDesktop (HDC hdc)
int WIN32API FillRect (HDC hDC, const RECT *lprc, HBRUSH hbr)
int WIN32API FrameRect (HDC hDC, const RECT *lprc, HBRUSH hbr)
BOOL WIN32API InvertRect (HDC hDC, const RECT *lprc)
HDESK WIN32API GetThreadDesktop (DWORD dwThreadId)
BOOL WIN32API CloseDesktop (HDESK hDesktop)
BOOL WIN32API CloseWindowStation (HWINSTA hWinSta)
HDESK WIN32API CreateDesktopA (LPCTSTR lpszDesktop, LPCTSTR lpszDevice, LPDEVMODEA pDevMode, DWORD dwFlags, DWORD dwDesiredAccess, LPSECURITY_ATTRIBUTES lpsa)
HDESK WIN32API CreateDesktopW (LPCTSTR lpszDesktop, LPCTSTR lpszDevice, LPDEVMODEW pDevMode, DWORD dwFlags, DWORD dwDesiredAccess, LPSECURITY_ATTRIBUTES lpsa)
HWINSTA WIN32API CreateWindowStationA (LPTSTR lpWinSta, DWORD dwReserved, DWORD dwDesiredAccess, LPSECURITY_ATTRIBUTES lpsa)
HWINSTA WIN32API CreateWindowStationW (LPWSTR lpWinSta, DWORD dwReserved, DWORD dwDesiredAccess, LPSECURITY_ATTRIBUTES lpsa)
BOOL WIN32API EnumDesktopWindows (HDESK hDesktop, WNDENUMPROC lpfn, LPARAM lParam)
BOOL WIN32API EnumDesktopsA (HWINSTA hWinSta, DESKTOPENUMPROCA lpEnumFunc, LPARAM lParam)
BOOL WIN32API EnumDesktopsW (HWINSTA hWinSta, DESKTOPENUMPROCW lpEnumFunc, LPARAM lParam)
BOOL WIN32API EnumWindowStationsA (WINSTAENUMPROCA lpEnumFunc, LPARAM lParam)
BOOL WIN32API EnumWindowStationsW (WINSTAENUMPROCW lpEnumFunc, LPARAM lParam)
HWINSTA WIN32API GetProcessWindowStation (VOID)
BOOL WIN32API GetUserObjectInformationA (HANDLE hObj, int nIndex, PVOID pvInfo, DWORD nLength, LPDWORD lpnLengthNeeded)
BOOL WIN32API GetUserObjectInformationW (HANDLE hObj, int nIndex, PVOID pvInfo, DWORD nLength, LPDWORD lpnLengthNeeded)
BOOL WIN32API GetUserObjectSecurity (HANDLE hObj, PSECURITY_INFORMATION pSIRequested, PSECURITY_DESCRIPTOR pSID, DWORD nLength, LPDWORD lpnLengthNeeded)
HDESK WIN32API OpenDesktopA (LPCTSTR lpszDesktopName, DWORD dwFlags, BOOL fInherit, DWORD dwDesiredAccess)
HDESK WIN32API OpenDesktopW (LPCTSTR lpszDesktopName, DWORD dwFlags, BOOL fInherit, DWORD dwDesiredAccess)
HDESK WIN32API OpenInputDesktop (DWORD dwFlags, BOOL fInherit, DWORD dwDesiredAccess)
HWINSTA WIN32API OpenWindowStationA (LPCTSTR lpszWinStaName, BOOL fInherit, DWORD dwDesiredAccess)
HWINSTA WIN32API OpenWindowStationW (LPCTSTR lpszWinStaName, BOOL fInherit, DWORD dwDesiredAccess)
BOOL WIN32API SetProcessWindowStation (HWINSTA hWinSta)
BOOL WIN32API SetThreadDesktop (HDESK hDesktop)
BOOL WIN32API SetUserObjectInformationA (HANDLE hObject, int nIndex, PVOID lpvInfo, DWORD cbInfo)
BOOL WIN32API SetUserObjectInformationW (HANDLE hObject, int nIndex, PVOID lpvInfo, DWORD cbInfo)
BOOL WIN32API SetUserObjectSecurity (HANDLE hObject, PSECURITY_INFORMATION psi, PSECURITY_DESCRIPTOR psd)
BOOL WIN32API SwitchDesktop (HDESK hDesktop)
VOID WIN32API SetDebugErrorLevel (DWORD dwLevel)
DWORD WIN32API DragObject (HWND x1, HWND x2, UINT x3, DWORD x4, HCURSOR x5)
BOOL WIN32API SetShellWindow (DWORD x1)
BOOL WIN32API PlaySoundEvent (DWORD x1)
BOOL WIN32API SetSysColorsTemp (void)
BOOL WIN32API RegisterNetworkCapabilities (DWORD x1, DWORD x2)
BOOL WIN32API EndTask (DWORD x1, DWORD x2, DWORD x3)
BOOL WIN32API GetNextQueueWindow (DWORD x1, DWORD x2)
BOOL WIN32API YieldTask (void)
BOOL WIN32API WinOldAppHackoMatic (DWORD x1)
BOOL WIN32API RegisterSystemThread (DWORD x1, DWORD x2)
BOOL WIN32API IsHungThread (DWORD x1)
BOOL WIN32API UserSignalProc (DWORD x1, DWORD x2, DWORD x3, DWORD x4)
HWND WIN32API GetShellWindow (void)
DWORD WIN32API RegisterTasklist (DWORD x)
DWORD WIN32API SetLogonNotifyWindow (HWINSTA hwinsta, HWND hwnd)
DWORD WIN32API GetGUIThreadInfo (DWORD arg1, DWORD arg2)


Define Documentation

#define DBG_LOCALLOG   DBG_user32
 

Definition at line 53 of file user32.cpp.

#define COLOR_MAX   COLOR_GRADIENTINACTIVECAPTION
 

Definition at line 1110 of file user32.cpp.


Function Documentation

BOOL WIN32API CopyRect PRECT    lprcDst,
const RECT *    lprcSrc
 

Definition at line 97 of file user32.cpp.

Referenced by CBCalcPlacement(), CBPaintBorder(), COMBO_EraseBackground(), EDIT_EM_GetRect(), and EDIT_SetRectNP().

BOOL WIN32API EqualRect const RECT *    lprc1,
const RECT *    lprc2
 

Definition at line 111 of file user32.cpp.

Referenced by RECT_EQUAL(), and SubtractRect().

BOOL WIN32API InflateRect PRECT    lprc,
int    dx,
int    dy
 

Definition at line 127 of file user32.cpp.

Referenced by AdjustWindowRectEx(), BUTTON_DrawPushButton(), CBCalcPlacement(), CBPaintBorder(), CBPaintText(), COMBO_EraseBackground(), and UB_Paint().

BOOL WIN32API IntersectRect PRECT    lprcDst,
const RECT *    lprcSrc1,
const RECT *    lprcSrc2
 

Definition at line 145 of file user32.cpp.

Referenced by CB_Paint(), EDIT_Draw(), EDIT_EM_LineScroll(), EDIT_ML_InvalidateText(), EDIT_SL_InvalidateText(), EnumDisplayMonitors(), ScrollDC(), ScrollWindowEx(), and SubtractRect().

BOOL WIN32API IsRectEmpty const RECT *    lprc
 

Definition at line 175 of file user32.cpp.

Referenced by COMBO_Paint(), IntersectRect(), ScrollDC(), SubtractRect(), UITOOLS95_DrawDiagEdge(), UITOOLS95_DrawRectEdge(), and UnionRect().

BOOL WIN32API OffsetRect PRECT    lprc,
int    x,
int    y
 

Definition at line 187 of file user32.cpp.

Referenced by DBG_LOCALLOG(), DrawDisabledText(), EnumDisplayMonitors(), MENU_DrawMenuBar(), and ScrollDC().

BOOL WIN32API PtInRect const RECT *    lprc,
POINT    pt
 

Definition at line 205 of file user32.cpp.

Referenced by BUTTON_LButtonUp(), BUTTON_MouseMove(), COMBO_LButtonDown(), COMBO_MouseMove(), ChildWindowFromPointEx(), ComboLBWndProc(), EDIT_EM_CharFromPos(), LISTBOX_HandleLButtonDownCombo(), SCROLL_HandleScrollEvent(), SCROLL_HitTest(), and SCROLL_PtInRectEx().

BOOL WIN32API SetRect PRECT    lprc,
int    nLeft,
int    nTop,
int    nRight,
int    nBottom
 

Definition at line 221 of file user32.cpp.

Referenced by EDIT_WM_Size(), ICONTITLE_GetTitlePos(), LISTBOX_Draw(), LISTBOX_GetItemRect(), MENU_CalcItemSize(), MENU_GetMenuBarHeight(), and SystemParametersInfoA().

BOOL WIN32API SetRectEmpty PRECT    lprc
 

Definition at line 238 of file user32.cpp.

Referenced by CB_Paint(), CalcChildScroll(), IntersectRect(), SubtractRect(), and UnionRect().

BOOL WIN32API SubtractRect PRECT    lprcDest,
const RECT *    lprcSrc1,
const RECT *    lprcSrc2
 

Definition at line 252 of file user32.cpp.

BOOL WIN32API UnionRect PRECT    lprcDst,
const RECT *    lprcSrc1,
const RECT *    lprcSrc2
 

Definition at line 293 of file user32.cpp.

Referenced by CBRollUp(), and CalcChildScroll().

BOOL WINAPI ExitWindowsEx UINT    uFlags,
DWORD    dwReserved
 

Definition at line 345 of file user32.cpp.

BOOL WIN32API MessageBeep UINT    uType
 

Definition at line 366 of file user32.cpp.

Referenced by EDIT_EM_ReplaceSel(), EDIT_WM_Char(), MENU_TrackKbdMenuBar(), MENU_TrackMenu(), and SCROLL_HandleScrollEvent().

VOID WIN32API SetLastErrorEx DWORD    dwErrCode,
DWORD    dwType
 

Definition at line 397 of file user32.cpp.

int WIN32API GetSystemMetrics int    nIndex
 

Definition at line 405 of file user32.cpp.

Referenced by AdjustWindowRectEx(), ArrangeIconicWindows(), CBCalcPlacement(), CURSORICON_ExtCopy(), CreateMDIMenuBitmap(), DBG_LOCALLOG(), DrawCaptionTemp(), DrawIconEx(), EDIT_SetRectNP(), EnumDisplayMonitors(), GET_SHORT(), GetMonitorInfoA(), GetMonitorInfoW(), ICONTITLE_GetTitlePos(), LoadImageW(), LookupIconIdFromDirectory(), MDICascade(), MDITile(), MDI_AugmentFrameMenu(), MDI_CalcDefaultChildPos(), MENU_DrawMenuBar(), MENU_GetMenuBarHeight(), MENU_ShowPopup(), MENU_ShowSubPopup(), MonitorFromPoint(), MonitorFromRect(), PMDRV_MONITOR_GetHeight(), PMDRV_MONITOR_GetWidth(), Paint_DrawState(), RECT_EQUAL(), RegisterClassA(), RegisterClassW(), SCROLL_Create(), SCROLL_GetScrollBarRect(), SCROLL_GetSizeBox(), SCROLL_GetThumbVal(), ScrollChildren(), SystemParametersInfoA(), WINPOS_FindIconPos(), and Win32MDIChildWindow::calcDefaultChildPos().

BOOL WIN32API SystemParametersInfoA UINT    uiAction,
UINT    uiParam,
PVOID    pvParam,
UINT    fWinIni
 

Definition at line 624 of file user32.cpp.

Referenced by DrawCaptionTemp(), GetMonitorInfoA(), ICONTITLE_Init(), MENU_Init(), MSGBOX_OnInit(), and SystemParametersInfoW().

BOOL WIN32API SystemParametersInfoW UINT    uiAction,
UINT    uiParam,
PVOID    pvParam,
UINT    fWinIni
 

Definition at line 872 of file user32.cpp.

Referenced by EDIT_WM_MouseWheel(), GetMonitorInfoW(), and LISTBOX_HandleMouseWheel().

BOOL WIN32API WinHelpA HWND    hwnd,
LPCSTR    lpszHelp,
UINT    uCommand,
DWORD    dwData
 

Definition at line 979 of file user32.cpp.

Referenced by WinHelpW().

BOOL WIN32API WinHelpW HWND    hwnd,
LPCWSTR    lpszHelp,
UINT    uCommand,
DWORD    dwData
 

Definition at line 1069 of file user32.cpp.

BOOL WIN32API PaintDesktop HDC    hdc
 

Definition at line 1099 of file user32.cpp.

int WIN32API FillRect HDC    hDC,
const RECT *    lprc,
HBRUSH    hbr
 

Definition at line 1112 of file user32.cpp.

Referenced by BUTTON_SetFont(), BUTTON_SetText(), CBPaintText(), CB_Paint(), COMBO_EraseBackground(), DrawCaptionTemp(), DrawIconEx(), EDIT_Draw(), EDIT_WM_EraseBkGnd(), LISTBOX_EraseBackground(), MENU_DrawMenuBar(), MENU_DrawMenuItem(), Paint_DrawState(), SCROLL_DrawInterior(), SCROLL_DrawScrollBar(), STATIC_PaintBitmapfn(), STATIC_PaintIconfn(), STATIC_PaintMetafilefn(), STATIC_PaintRectfn(), STATIC_PaintTextfn(), UB_Paint(), UITOOLS95_DFC_ButtonCheck(), UITOOLS95_DFC_ButtonPush(), UITOOLS95_DFC_ButtonRadio(), UITOOLS95_DrawFrameMenu(), UITOOLS95_DrawRectEdge(), and UITOOLS_DrawCheckedRect().

int WIN32API FrameRect HDC    hDC,
const RECT *    lprc,
HBRUSH    hbr
 

Definition at line 1127 of file user32.cpp.

Referenced by MENU_TrackMouseMenuBar_MouseMove(), and STATIC_PaintRectfn().

BOOL WIN32API InvertRect HDC    hDC,
const RECT *    lprc
 

Definition at line 1134 of file user32.cpp.

HDESK WIN32API GetThreadDesktop DWORD    dwThreadId
 

Definition at line 1160 of file user32.cpp.

BOOL WIN32API CloseDesktop HDESK    hDesktop
 

Definition at line 1184 of file user32.cpp.

BOOL WIN32API CloseWindowStation HWINSTA    hWinSta
 

Definition at line 1204 of file user32.cpp.

HDESK WIN32API CreateDesktopA LPCTSTR    lpszDesktop,
LPCTSTR    lpszDevice,
LPDEVMODEA    pDevMode,
DWORD    dwFlags,
DWORD    dwDesiredAccess,
LPSECURITY_ATTRIBUTES    lpsa
 

Definition at line 1231 of file user32.cpp.

HDESK WIN32API CreateDesktopW LPCTSTR    lpszDesktop,
LPCTSTR    lpszDevice,
LPDEVMODEW    pDevMode,
DWORD    dwFlags,
DWORD    dwDesiredAccess,
LPSECURITY_ATTRIBUTES    lpsa
 

Definition at line 1268 of file user32.cpp.

HWINSTA WIN32API CreateWindowStationA LPTSTR    lpWinSta,
DWORD    dwReserved,
DWORD    dwDesiredAccess,
LPSECURITY_ATTRIBUTES    lpsa
 

Definition at line 1305 of file user32.cpp.

HWINSTA WIN32API CreateWindowStationW LPWSTR    lpWinSta,
DWORD    dwReserved,
DWORD    dwDesiredAccess,
LPSECURITY_ATTRIBUTES    lpsa
 

Definition at line 1338 of file user32.cpp.

BOOL WIN32API EnumDesktopWindows HDESK    hDesktop,
WNDENUMPROC    lpfn,
LPARAM    lParam
 

Definition at line 1368 of file user32.cpp.

BOOL WIN32API EnumDesktopsA HWINSTA    hWinSta,
DESKTOPENUMPROCA    lpEnumFunc,
LPARAM    lParam
 

Definition at line 1397 of file user32.cpp.

BOOL WIN32API EnumDesktopsW HWINSTA    hWinSta,
DESKTOPENUMPROCW    lpEnumFunc,
LPARAM    lParam
 

Definition at line 1426 of file user32.cpp.

BOOL WIN32API EnumWindowStationsA WINSTAENUMPROCA    lpEnumFunc,
LPARAM    lParam
 

Definition at line 1453 of file user32.cpp.

BOOL WIN32API EnumWindowStationsW WINSTAENUMPROCW    lpEnumFunc,
LPARAM    lParam
 

Definition at line 1478 of file user32.cpp.

HWINSTA WIN32API GetProcessWindowStation VOID   
 

Definition at line 1503 of file user32.cpp.

BOOL WIN32API GetUserObjectInformationA HANDLE    hObj,
int    nIndex,
PVOID    pvInfo,
DWORD    nLength,
LPDWORD    lpnLengthNeeded
 

Definition at line 1527 of file user32.cpp.

BOOL WIN32API GetUserObjectInformationW HANDLE    hObj,
int    nIndex,
PVOID    pvInfo,
DWORD    nLength,
LPDWORD    lpnLengthNeeded
 

Definition at line 1560 of file user32.cpp.

BOOL WIN32API GetUserObjectSecurity HANDLE    hObj,
PSECURITY_INFORMATION    pSIRequested,
PSECURITY_DESCRIPTOR    pSID,
DWORD    nLength,
LPDWORD    lpnLengthNeeded
 

Definition at line 1593 of file user32.cpp.

HDESK WIN32API OpenDesktopA LPCTSTR    lpszDesktopName,
DWORD    dwFlags,
BOOL    fInherit,
DWORD    dwDesiredAccess
 

Definition at line 1628 of file user32.cpp.

HDESK WIN32API OpenDesktopW LPCTSTR    lpszDesktopName,
DWORD    dwFlags,
BOOL    fInherit,
DWORD    dwDesiredAccess
 

Definition at line 1661 of file user32.cpp.

HDESK WIN32API OpenInputDesktop DWORD    dwFlags,
BOOL    fInherit,
DWORD    dwDesiredAccess
 

Definition at line 1692 of file user32.cpp.

HWINSTA WIN32API OpenWindowStationA LPCTSTR    lpszWinStaName,
BOOL    fInherit,
DWORD    dwDesiredAccess
 

Definition at line 1720 of file user32.cpp.

HWINSTA WIN32API OpenWindowStationW LPCTSTR    lpszWinStaName,
BOOL    fInherit,
DWORD    dwDesiredAccess
 

Definition at line 1750 of file user32.cpp.

BOOL WIN32API SetProcessWindowStation HWINSTA    hWinSta
 

Definition at line 1778 of file user32.cpp.

BOOL WIN32API SetThreadDesktop HDESK    hDesktop
 

Definition at line 1800 of file user32.cpp.

BOOL WIN32API SetUserObjectInformationA HANDLE    hObject,
int    nIndex,
PVOID    lpvInfo,
DWORD    cbInfo
 

Definition at line 1824 of file user32.cpp.

BOOL WIN32API SetUserObjectInformationW HANDLE    hObject,
int    nIndex,
PVOID    lpvInfo,
DWORD    cbInfo
 

Definition at line 1854 of file user32.cpp.

BOOL WIN32API SetUserObjectSecurity HANDLE    hObject,
PSECURITY_INFORMATION    psi,
PSECURITY_DESCRIPTOR    psd
 

Definition at line 1883 of file user32.cpp.

BOOL WIN32API SwitchDesktop HDESK    hDesktop
 

Definition at line 1910 of file user32.cpp.

VOID WIN32API SetDebugErrorLevel DWORD    dwLevel
 

Definition at line 1932 of file user32.cpp.

DWORD WIN32API DragObject HWND    x1,
HWND    x2,
UINT    x3,
DWORD    x4,
HCURSOR    x5
 

Definition at line 1951 of file user32.cpp.

BOOL WIN32API SetShellWindow DWORD    x1
 

Definition at line 1976 of file user32.cpp.

BOOL WIN32API PlaySoundEvent DWORD    x1
 

Definition at line 1994 of file user32.cpp.

BOOL WIN32API SetSysColorsTemp void   
 

Definition at line 2012 of file user32.cpp.

BOOL WIN32API RegisterNetworkCapabilities DWORD    x1,
DWORD    x2
 

Definition at line 2029 of file user32.cpp.

BOOL WIN32API EndTask DWORD    x1,
DWORD    x2,
DWORD    x3
 

Definition at line 2049 of file user32.cpp.

BOOL WIN32API GetNextQueueWindow DWORD    x1,
DWORD    x2
 

Definition at line 2071 of file user32.cpp.

BOOL WIN32API YieldTask void   
 

Definition at line 2091 of file user32.cpp.

BOOL WIN32API WinOldAppHackoMatic DWORD    x1
 

Definition at line 2108 of file user32.cpp.

BOOL WIN32API RegisterSystemThread DWORD    x1,
DWORD    x2
 

Definition at line 2126 of file user32.cpp.

BOOL WIN32API IsHungThread DWORD    x1
 

Definition at line 2146 of file user32.cpp.

BOOL WIN32API UserSignalProc DWORD    x1,
DWORD    x2,
DWORD    x3,
DWORD    x4
 

Definition at line 2164 of file user32.cpp.

HWND WIN32API GetShellWindow void   
 

Definition at line 2188 of file user32.cpp.

DWORD WIN32API RegisterTasklist DWORD    x
 

Definition at line 2197 of file user32.cpp.

DWORD WIN32API SetLogonNotifyWindow HWINSTA    hwinsta,
HWND    hwnd
 

Definition at line 2207 of file user32.cpp.

DWORD WIN32API GetGUIThreadInfo DWORD    arg1,
DWORD    arg2
 

Definition at line 2215 of file user32.cpp.


Generated on Wed Jan 23 23:20:22 2002 for ODIN-user32 by doxygen1.2.11.1 written by Dimitri van Heesch, © 1997-2001