![]() |
| ||
|
|
Новости |
Поиск |
FAQ |
Статьи |
Книги |
Новости VCL
| | Форумы ЧАТ |
Орешник |
|
| |||
| |||
« предыдущая ветвь | форум | следующая ветвь »
Работа с майлслотами
Unforgiven © (2001-11-08 02:36:00)Name := "\\*\mailslot\nyslot";
Result :=
Windows.CreateMailslot(
PChar(Name),
400, // max msg size
0, // read timeout
nil
);
всегда возвращает -1 что здесь не верно?
Wonder (2001-11-08 11:02:00) [1]А причем здесь звезда в имени слота?
Ты же создаешь слот конкретно на текущей машине. Точка тама должна быть, а не звезда.
MSHandle := CreateMailSlot("\\.\mailslot\nyslot", 0, MAILSLOT_WAIT_FOREVER, PSecurityAttributes(Nil));
lpName -
Points to a null-terminated string specifying the name of the mailslot. This name musthave the following form:
\\.\mailslot\[path]name