| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | WinCreateMsgQueue |
PC> Does anyone know what is the default lQueuesize? I
PC> thought I saw somewhere
PC> that its 10?
I think it is 20 -- use WinQueryQueueInfo() to check.
PC> Does using a value of 50 or 100 cause a significant
PC> increase in memory usage?
Not by much.
Note: fixpak 16/17 raise the default msg queue size to something like 2000.
There is also a freeware program called something like PMQSIZE.ZIP which
will increase it for 2.1/Warp -- I used it all the time until a few days
ago when I installed fixpak 17.
This program displays 3000 on my pc:
icc /Rn /Kb /W3 /SS /B"/pm:pm" /Ti small2.c
#define INCL_WIN
#include
#include
#define ID_WINDOW 1
int main(void)
{
HAB hab;
HWND hwndClient;
ULONG flCreate;
QMSG qmsg;
char msg[100];
MQINFO mqinfo;
hab = WinInitialize(0);
WinCreateMsgQueue(hab, 0);
flCreate = FCF_SHELLPOSITION | FCF_SIZEBORDER | FCF_TASKLIST |
FCF_SYSMENU | FCF_TITLEBAR;
WinCreateStdWindow(HWND_DESKTOP, WS_VISIBLE, &flCreate,
WC_STATIC, "Title",
SS_TEXT | DT_CENTER | DT_VCENTER,
0, ID_WINDOW, &hwndClient);
mqinfo.cb = sizeof(mqinfo);
WinQueryQueueInfo(HMQ_CURRENT, &mqinfo, sizeof(mqinfo));
sprintf(msg, "Queue size = %d", mqinfo.cmsgs);
WinSetWindowText(hwndClient, msg);
while (WinGetMsg(hab, &qmsg, 0L, 0, 0))
WinDispatchMsg(hab, &qmsg);
return 0;
}
--- Maximus/2 3.00
* Origin: Sol 3 * Toronto * V.32 * (905)858-8488 (1:259/414)SEEN-BY: 50/99 270/101 620/243 711/401 409 410 413 430 808 809 934 955 SEEN-BY: 712/407 515 517 628 713/888 800/1 7877/2809 @PATH: 259/414 400 99 250/99 3615/50 396/1 270/101 712/515 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.