#include <apitest.h>
#include <stdio.h>
#include <winuser.h>
#include <msgtrace.h>
#include <undocuser.h>
Go to the source code of this file.
|
static char * | get_msg_name (UINT msg) |
|
static char * | get_hook_name (UINT id) |
|
void | empty_message_cache (MSG_CACHE *cache) |
|
void | sprintf_msg_entry (char *buffer, MSG_ENTRY *msg) |
|
void | trace_cache (MSG_CACHE *cache, const char *file, int line) |
|
void | compare_cache (MSG_CACHE *cache, const char *file, int line, MSG_ENTRY *msg_chain) |
|
void | record_message (MSG_CACHE *cache, int iwnd, UINT message, MSG_TYPE type, int param1, int param2) |
|
◆ compare_cache()
Definition at line 143 of file msgtrace.c.
144{
146 char buffGot[100], buffExp[100];
148
149 while(1)
150 {
152
155 ok_(
file,
line)(same,
"%d: got %s, expected %s\n",
i, buffGot, buffExp);
156
157 if(!got_error && !same)
159
160 if(msg_chain->
msg !=0 || msg_chain->
iwnd != 0)
161 msg_chain++;
162 else
163 {
165 break;
166 }
168 }
169
170 if(got_error )
171 {
174 }
175
177}
int memcmp(void *Buffer1, void *Buffer2, ACPI_SIZE Count)
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
#define trace_(file, line,...)
void trace_cache(MSG_CACHE *cache, const char *file, int line)
void sprintf_msg_entry(char *buffer, MSG_ENTRY *msg)
void empty_message_cache(MSG_CACHE *cache)
◆ empty_message_cache()
◆ get_hook_name()
◆ get_msg_name()
Definition at line 22 of file msgtrace.c.
23{
25 {
57 case WM_GETICON: return "WM_GETICON";
58 case WM_SETICON: return "WM_SETICON";
65 case WM_STYLECHANGING: return "WM_STYLECHANGING";
66 case WM_STYLECHANGED: return "WM_STYLECHANGED";
68 }
69}
#define WM_QUERYNEWPALETTE
#define WM_CTLCOLORSTATIC
#define WM_WINDOWPOSCHANGING
#define WM_WINDOWPOSCHANGED
Referenced by sprintf_msg_entry().
◆ record_message()
Definition at line 179 of file msgtrace.c.
180{
181 if(
cache->count >= 100)
182 {
183 return;
184 }
185
186
188 cache->last_post_message.iwnd == iwnd &&
190 cache->last_post_message.param1 == param1 &&
191 cache->last_post_message.param2 == param2)
192 {
194 return;
195 }
196
197 cache->message_cache[
cache->count].iwnd = iwnd;
200 cache->message_cache[
cache->count].param1 = param1;
201 cache->message_cache[
cache->count].param2 = param2;
202
204 {
206 }
207 else
208 {
210 }
211
213}
GLuint GLuint GLsizei GLenum type
Referenced by FlushMessages(), TestProc(), and thread_proc().
◆ sprintf_msg_entry()
Definition at line 88 of file msgtrace.c.
89{
90 if(!
msg->iwnd && !
msg->msg)
91 {
93 }
94 else
95 {
96 char* msgName;
97 char* msgType;
98
100 {
104 msgType =
msg->type ==
POST ?
"post msg" :
"marker";
105 break;
109 msgType =
msg->type ==
SENT ?
"sent msg" :
"sent_ret msg";
110 break;
113 msgType = "hook";
114 break;
117 msgType = "event";
118 break;
119 default:
120 return;
121 }
122
123 if(msgName)
125 else
127 }
128}
#define sprintf(buf, format,...)
static char * get_msg_name(UINT msg)
static char * get_hook_name(UINT id)
Referenced by compare_cache(), and trace_cache().
◆ trace_cache()
◆ default_cache
◆ empty_chain