Главная страница
    Top.Mail.Ru    Яндекс.Метрика
Форум: "Начинающим";
Текущий архив: 2013.03.22;
Скачать: [xml.tar.bz2];

Вниз

Отослать сообщения пользователям   Найти похожие ветки 

 
leklerk ©   (2012-05-25 09:44) [0]

Добрый день! Подскажите пожалуйста, как можно с сервера отослать сообщения на компьютеры пользователей (IP и имена компьютеров известны)? Какие надо использовать функции?


 
brother ©   (2012-05-25 09:51) [1]

net send? и не надо делфи)


 
Anatoly Podgoretsky ©   (2012-05-25 09:56) [2]

Раскатал губу, по безопасности не установлено или запрещено, а в семерке вообще нет этого


 
Давайте будем жрать!   (2012-05-25 10:36) [3]

The SendMessage function sends the specified message to a window or windows. It calls the window procedure for the specified window and does not return until the window procedure has processed the message.

To send a message and return immediately, use the SendMessageCallback or SendNotifyMessage function. To post a message to a thread"s message queue and return immediately, use the PostMessage or PostThreadMessage function.

Syntax

LRESULT SendMessage(          HWND hWnd,
   UINT Msg,
   WPARAM wParam,
   LPARAM lParam
);
Parameters

hWnd
[in]
Handle to the window whose window procedure will receive the message. If this parameter is HWND_BROADCAST, the message is sent to all top-level windows in the system, including disabled or invisible unowned windows, overlapped windows, and pop-up windows; but the message is not sent to child windows.

Microsoft Windows Vista and later. Message sending is subject to User Interface Privilege Isolation (UIPI). The thread of a process can send messages only to message queues of threads in processes of lesser or equal integrity level.

Msg
[in] Specifies the message to be sent.
wParam
[in] Specifies additional message-specific information.
lParam
[in] Specifies additional message-specific information.
Return Value

The return value specifies the result of the message processing; it depends on the message sent.

Remarks

Microsoft Windows Vista and later. When a message is blocked by UIPI the last error, retrieved with GetLastError, is set to 5 (access denied).

Applications that need to communicate using HWND_BROADCAST should use the RegisterWindowMessage function to obtain a unique message for inter-application communication.

The system only does marshalling for system messages (those in the range 0 to (WM_USER-1)). To send other messages (those >= WM_USER) to another process, you must do custom marshalling.

If the specified window was created by the calling thread, the window procedure is called immediately as a subroutine. If the specified window was created by a different thread, the system switches to that thread and calls the appropriate window procedure. Messages sent between threads are processed only when the receiving thread executes message retrieval code. The sending thread is blocked until the receiving thread processes the message. However, the sending thread will process incoming nonqueued messages while waiting for its message to be processed. To prevent this, use SendMessageTimeout with SMTO_BLOCK set. For more information on nonqueued messages, see Nonqueued Messages.

Windows 95/98/Me: SendMessageW is supported by the Microsoft Layer for Unicode (MSLU). To use this, you must add certain files to your application, as outlined in Microsoft Layer for Unicode on Windows 95/98/Me Systems .

Example

For an example, see Processing Keyboard Input.

Function Information

Minimum DLL Version user32.dll
Header Declared in Winuser.h, include Windows.h
Import library User32.lib
Minimum operating systems Windows 95, Windows NT 3.1
Unicode Implemented as ANSI and Unicode versions.  

See Also

Messages and Message Queues Overview, InSendMessage, PostMessage, PostThreadMessage, RegisterWindowMessage, SendDlgItemMessage, SendMessageCallback, SendMessageTimeout, SendNotifyMessage


 
ProgRAMmer Dimonych ©   (2012-05-25 10:47) [4]

> [3] Давайте будем жрать!   (25.05.12 10:36)

А это каким боком?


 
Германн ©   (2012-05-25 15:49) [5]


> Подскажите пожалуйста, как можно с сервера отослать сообщения
> на компьютеры пользователей (IP и имена компьютеров известны)?
>

http://delphimaster.net/view/2-1337336308/
http://delphimaster.net/view/2-1337336308/
С этими вопросами уже разобрался?


 
Давайте будем жрать!   (2012-05-25 16:08) [6]


> А это каким боком?
в порядке мини-троллинга


 
leklerk ©   (2012-05-26 09:32) [7]


> С этими вопросами уже разобрался?

Да, разобрался.



Страницы: 1 вся ветка

Форум: "Начинающим";
Текущий архив: 2013.03.22;
Скачать: [xml.tar.bz2];

Наверх




Память: 0.48 MB
Время: 0.064 c
15-1350906196
Лида
2012-10-22 15:43
2013.03.22
Обработка различных событий в Delphi


2-1337283963
TStas
2012-05-17 23:46
2013.03.22
Правая клавиша в ричЭдит


2-1346908916
Eeuwige Rouw
2012-09-06 09:21
2013.03.22
Сохранение изображений


15-1341492118
Unknown user
2012-07-05 16:41
2013.03.22
Определить или открыто главное меню


2-1346933403
Артём
2012-09-06 16:10
2013.03.22
Как щелкнуть по кнопку на сайте?





Afrikaans Albanian Arabic Armenian Azerbaijani Basque Belarusian Bulgarian Catalan Chinese (Simplified) Chinese (Traditional) Croatian Czech Danish Dutch English Estonian Filipino Finnish French
Galician Georgian German Greek Haitian Creole Hebrew Hindi Hungarian Icelandic Indonesian Irish Italian Japanese Korean Latvian Lithuanian Macedonian Malay Maltese Norwegian
Persian Polish Portuguese Romanian Russian Serbian Slovak Slovenian Spanish Swahili Swedish Thai Turkish Ukrainian Urdu Vietnamese Welsh Yiddish Bengali Bosnian
Cebuano Esperanto Gujarati Hausa Hmong Igbo Javanese Kannada Khmer Lao Latin Maori Marathi Mongolian Nepali Punjabi Somali Tamil Telugu Yoruba
Zulu
Английский Французский Немецкий Итальянский Португальский Русский Испанский