Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenundocuser.h
Go to the documentation of this file.
00001 #ifndef _UNDOCUSER_H 00002 #define _UNDOCUSER_H 00003 00004 /* Built in class atoms */ 00005 #define WC_MENU (MAKEINTATOM(0x8000)) 00006 #define WC_DESKTOP (MAKEINTATOM(0x8001)) 00007 #define WC_DIALOG (MAKEINTATOM(0x8002)) 00008 #define WC_SWITCH (MAKEINTATOM(0x8003)) 00009 #define WC_ICONTITLE (MAKEINTATOM(0x8004)) 00010 00011 /* Non SDK Styles */ 00012 #define ES_COMBO 0x200 /* Parent is a combobox */ 00013 #define WS_MAXIMIZED WS_MAXIMIZE 00014 #define WS_MINIMIZED WS_MINIMIZE 00015 00016 /* Non SDK ExStyles */ 00017 #define WS_EX_DRAGDETECT 0x00000002 00018 #define WS_EX_MAKEVISIBLEWHENUNGHOSTED 0x00000800 00019 #define WS_EX_FORCELEGACYRESIZENCMETR 0x00800000 00020 #define WS_EX_UISTATEACTIVE 0x04000000 00021 #define WS_EX_REDIRECTED 0x20000000 00022 #define WS_EX_UISTATEKBACCELHIDDEN 0x40000000 00023 #define WS_EX_UISTATEFOCUSRECTHIDDEN 0x80000000 00024 #define WS_EX_SETANSICREATOR 0x80000000 // For WNDS_ANSICREATOR 00025 00026 /* Non SDK Window Message types. */ 00027 #define WM_SETVISIBLE 0x00000009 00028 #define WM_ALTTABACTIVE 0x00000029 00029 #define WM_ISACTIVEICON 0x00000035 00030 #define WM_QUERYPARKICON 0x00000036 00031 #define WM_CLIENTSHUTDOWN 0x0000003B 00032 #define WM_COPYGLOBALDATA 0x00000049 00033 #define WM_LOGONNOTIFY 0x0000004C 00034 #define WM_KEYF1 0x0000004D 00035 #define WM_NCUAHDRAWCAPTION 0x000000AE 00036 #define WM_NCUAHDRAWFRAME 0x000000AF 00037 #define WM_SYSTIMER 0x00000118 00038 #define WM_LBTRACKPOINT 0x00000131 00039 #define LB_CARETON 0x000001a3 00040 #define LB_CARETOFF 0x000001a4 00041 #define WM_DROPOBJECT 0x0000022A 00042 #define WM_QUERYDROPOBJECT 0x0000022B 00043 #define WM_BEGINDRAG 0x0000022C 00044 #define WM_DRAGLOOP 0x0000022D 00045 #define WM_DRAGSELECT 0x0000022E 00046 #define WM_DRAGMOVE 0x0000022F 00047 #define WM_POPUPSYSTEMMENU 0x00000313 00048 #define WM_UAHINIT 0x0000031b 00049 #define WM_CBT 0x000003FF // ReactOS only. 00050 #define WM_MAXIMUM 0x0001FFFF 00051 00052 /* Non SDK DCE types.*/ 00053 #define DCX_USESTYLE 0x00010000 00054 #define DCX_KEEPCLIPRGN 0x00040000 00055 #define DCX_KEEPLAYOUT 0x40000000 00056 #define DCX_PROCESSOWNED 0x80000000 00057 00058 /* NtUserCreateWindowEx dwFlags bits. */ 00059 #define NUCWE_ANSI 0x00000001 00060 #define NUCWE_SIDEBYSIDE 0x40000000 00061 00062 /* Caret timer ID */ 00063 #define IDCARETTIMER (0xffff) 00064 #define ID_TME_TIMER (0xFFFA) 00065 00066 /* SetWindowPos undocumented flags */ 00067 #define SWP_NOCLIENTSIZE 0x0800 00068 #define SWP_NOCLIENTMOVE 0x1000 00069 #define SWP_STATECHANGED 0x8000 00070 00071 /* Non SDK Queue state flags. */ 00072 #define QS_SMRESULT 0x8000 /* see "Undoc. Windows" */ 00073 00074 // 00075 // Definitions used by WM_CLIENTSHUTDOWN 00076 // 00077 // Client Shutdown messages 00078 #define MCS_SHUTDOWNTIMERS 1 00079 #define MCS_QUERYENDSESSION 2 00080 // Client Shutdown returns 00081 #define MCSR_GOODFORSHUTDOWN 1 00082 #define MCSR_SHUTDOWNFINISHED 2 00083 #define MCSR_DONOTSHUTDOWN 3 00084 00085 // 00086 // Definitions used by WM_LOGONNOTIFY 00087 // 00088 #define LN_SHELL_EXITED 0x2 00089 #define LN_START_TASK_MANAGER 0x4 00090 #define LN_LOCK_WORKSTATION 0x5 00091 #define LN_UNLOCK_WORKSTATION 0x6 00092 #define LN_MESSAGE_BEEP 0x9 00093 #define LN_START_SCREENSAVE 0xA 00094 00095 #define STARTF_SCRNSAVER 0x80000000 00096 00097 #define CW_USEDEFAULT16 ((short)0x8000) 00098 00099 #define SBRG_SCROLLBAR 0 /* the scrollbar itself */ 00100 #define SBRG_TOPRIGHTBTN 1 /* the top or right button */ 00101 #define SBRG_PAGEUPRIGHT 2 /* the page up or page right region */ 00102 #define SBRG_SCROLLBOX 3 /* the scroll box */ 00103 #define SBRG_PAGEDOWNLEFT 4 /* the page down or page left region */ 00104 #define SBRG_BOTTOMLEFTBTN 5 /* the bottom or left button */ 00105 00106 BOOL WINAPI UpdatePerUserSystemParameters(DWORD dwReserved, BOOL bEnable); 00107 BOOL WINAPI SetLogonNotifyWindow(HWND Wnd, HWINSTA WinSta); 00108 BOOL WINAPI KillSystemTimer(HWND,UINT_PTR); 00109 UINT_PTR WINAPI SetSystemTimer(HWND,UINT_PTR,UINT,TIMERPROC); 00110 DWORD_PTR WINAPI SetSysColorsTemp(const COLORREF *, const HBRUSH *, DWORD_PTR); 00111 BOOL WINAPI SetDeskWallPaper(LPCSTR); 00112 VOID WINAPI ScrollChildren(HWND,UINT,WPARAM,LPARAM); 00113 void WINAPI CalcChildScroll(HWND, INT); 00114 BOOL WINAPI RegisterLogonProcess(DWORD,BOOL); 00115 DWORD WINAPI GetAppCompatFlags(HTASK hTask); 00116 DWORD WINAPI GetAppCompatFlags2(HTASK hTask); 00117 LONG WINAPI CsrBroadcastSystemMessageExW(DWORD dwflags, 00118 LPDWORD lpdwRecipients, 00119 UINT uiMessage, 00120 WPARAM wParam, 00121 LPARAM lParam, 00122 PBSMINFO pBSMInfo); 00123 BOOL WINAPI CliImmSetHotKey(DWORD dwID, UINT uModifiers, UINT uVirtualKey, HKL hKl); 00124 HWND WINAPI GetTaskmanWindow(VOID); 00125 HWND WINAPI GetProgmanWindow(VOID); 00126 00127 // 00128 // User api hook 00129 // 00130 00131 typedef LRESULT(CALLBACK *WNDPROC_OWP)(HWND,UINT,WPARAM,LPARAM,ULONG_PTR,PDWORD); 00132 typedef int (WINAPI *SETWINDOWRGN)(HWND hWnd, HRGN hRgn, BOOL bRedraw); 00133 00134 typedef struct _UAHOWP 00135 { 00136 BYTE* MsgBitArray; 00137 DWORD Size; 00138 } UAHOWP, *PUAHOWP; 00139 00140 #define UAH_HOOK_MESSAGE(uahowp, msg) uahowp.MsgBitArray[msg/8] |= (1 << (msg % 8)); 00141 #define UAH_IS_MESSAGE_HOOKED(uahowp, msg) (uahowp.MsgBitArray[msg/8] & (1 << (msg % 8))) 00142 #define UAHOWP_MAX_SIZE WM_USER/8 00143 00144 typedef struct tagUSERAPIHOOK 00145 { 00146 DWORD size; 00147 WNDPROC DefWindowProcA; 00148 WNDPROC DefWindowProcW; 00149 UAHOWP DefWndProcArray; 00150 FARPROC GetScrollInfo; 00151 FARPROC SetScrollInfo; 00152 FARPROC EnableScrollBar; 00153 FARPROC AdjustWindowRectEx; 00154 SETWINDOWRGN SetWindowRgn; 00155 WNDPROC_OWP PreWndProc; 00156 WNDPROC_OWP PostWndProc; 00157 UAHOWP WndProcArray; 00158 WNDPROC_OWP PreDefDlgProc; 00159 WNDPROC_OWP PostDefDlgProc; 00160 UAHOWP DlgProcArray; 00161 FARPROC GetSystemMetrics; 00162 FARPROC SystemParametersInfoA; 00163 FARPROC SystemParametersInfoW; 00164 FARPROC ForceResetUserApiHook; 00165 FARPROC DrawFrameControl; 00166 FARPROC DrawCaption; 00167 FARPROC MDIRedrawFrame; 00168 FARPROC GetRealWindowOwner; 00169 } USERAPIHOOK, *PUSERAPIHOOK; 00170 00171 typedef enum _UAPIHK 00172 { 00173 uahLoadInit, 00174 uahStop, 00175 uahShutdown 00176 } UAPIHK, *PUAPIHK; 00177 00178 typedef BOOL(CALLBACK *USERAPIHOOKPROC)(UAPIHK State, PUSERAPIHOOK puah); 00179 00180 typedef struct _USERAPIHOOKINFO 00181 { 00182 DWORD m_size; 00183 LPCWSTR m_dllname1; 00184 LPCWSTR m_funname1; 00185 LPCWSTR m_dllname2; 00186 LPCWSTR m_funname2; 00187 } USERAPIHOOKINFO,*PUSERAPIHOOKINFO; 00188 00189 #if (WINVER == _WIN32_WINNT_WINXP) 00190 BOOL WINAPI RegisterUserApiHook(HINSTANCE hInstance, USERAPIHOOKPROC CallbackFunc); 00191 #elif (WINVER == _WIN32_WINNT_WS03) 00192 BOOL WINAPI RegisterUserApiHook(PUSERAPIHOOKINFO puah); 00193 #endif 00194 00195 BOOL WINAPI UnregisterUserApiHook(VOID); 00196 00197 #endif Generated on Sun May 27 2012 04:33:18 for ReactOS by
1.7.6.1
|