{
GETCURSORINFO cursor;
GETFOREGROUNDWINDOW win;
+ GETQUEUESTATUS queue;
win = (GETFOREGROUNDWINDOW) GetProcAddress(user, "GetForegroundWindow");
cursor = (GETCURSORINFO) GetProcAddress(user, "GetCursorInfo");
+ queue = (GETQUEUESTATUS) GetProcAddress(user, "GetQueueStatus");
if (win)
{
RAND_add(&h, sizeof(h), 0);
}
+#if 0
if (cursor)
{
/* cursor position */
PCURSORINFO p = (PCURSORINFO) buf;
p->cbSize = sizeof(CURSORINFO);
if (cursor(p))
- RAND_add(p+sizeof(p->cbSize), p->cbSize-sizeof(p->cbSize), 0);
+ RAND_add(p+sizeof(p->cbSize),
+ p->cbSize-sizeof(p->cbSize), 0);
+ }
+#endif
+
+ if (queue)
+ {
+ /* message queue status */
+ w = queue(QS_ALLEVENTS);
+ RAND_add(&w, sizeof(w), 0);
}
}