WWW.ИСХОДНИКИ.РУ cpp.sources.ru
java.sources.ru web.sources.ru soft.sources.ru
jdbc.sources.ru asp.sources.ru api.sources.ru

  Форум на исходниках
  C / C++ / Visual C++
  Посылка сообщений по локалке

СПРОСИТЬ  ОТВЕТИТЬ
профайл | регистрация | faq

Автор Тема:   Посылка сообщений по локалке
premier опубликован 08-01-2002 20:22 MSK   Click Here to See the Profile for premier   Click Here to Email premier  
Хочется написать прогу для отправки сообщений по локалке (WinPopup не в тему),
только не знаю, с какого бока подступиться.
Может, кто подскажет, как используя протокол NetBEUI создать сервер сетевых сообщений.
eyes опубликован 08-01-2002 20:31 MSK     Click Here to See the Profile for eyes  Click Here to Email eyes     
Завтра отвечу....
Но при чема тута нетпЪю? все сокетами делается... если есть комп на котором сервак повесить можна или через юдп
VuDZ опубликован 09-01-2002 15:14 MSK     Click Here to See the Profile for VuDZ    
NetMessageBufferSend
The NetMessageBufferSend function sends a buffer of information to a registered message alias.

Security Requirements
Windows NT: No special group membership is required to execute the NetMessageBufferSend function on a LAN Manager or a Windows NT system. Admin, Accounts, Print, or Server operator group membership is required to successfully execute NetMessageBufferSend on a remote server.

Windows 2000 or later: If you call this function on a Windows 2000 domain controller that is running Active Directory, access is allowed or denied based on the access-control list (ACL) for the securable object. The default ACL permits only Administrators and account operators to call this function. On a member server or workstation, only Administrators and account operators can call this function. For more information, see Security Requirements for the Network Management Functions.

NET_API_STATUS NetMessageBufferSend(
LPCWSTR servername,
LPCWSTR msgname,
LPCWSTR fromname,
LPBYTE buf,
DWORD buflen
);
Parameters
servername
[in] Pointer to a constant Unicode string specifying the name of the remote server on which the function is to execute. The string must begin with \\. If this parameter is NULL, the local computer is used.
msgname
[in] Pointer to a constant Unicode string specifying the message alias to which the message buffer should be sent.
fromname
[in] Pointer to a constant Unicode string specifying who the message is from. If this parameter is NULL, the message is sent from the local computer name.
buf
[in] Pointer to a buffer that contains the message text.
buflen
[in] Specifies a DWORD value that contains the length, in bytes, of the message text pointed to by the buf parameter.
Return Values
If the function succeeds, the return value is NERR_Success.

If the function fails, the return value can be one of the following error codes.

alpeugene опубликован 10-01-2002 00:08 MSK     Click Here to See the Profile for alpeugene  Click Here to Email alpeugene     
....а ,кажется можно и попроще,через mailslot,например
У меня,например,работает...

СПРОСИТЬ  ОТВЕТИТЬ
Перейти:


E-mail | WWW.ИСХОДНИКИ.RU

Powered by: Ultimate Bulletin Board, Freeware Version 5.10a
Purchase our Licensed Version- which adds many more features!
© Infopop Corporation (formerly Madrona Park, Inc.), 1998 - 2000.