Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

sendmsg.c File Reference

#include "precomp.h"
#include "dbt.h"
#include "ntdddisk.h"
#include "ntuser.h"
#include <winsta.h>
#include <wstmsg.h>
#include <winuser.h>

Go to the source code of this file.

Defines

#define DumpOutLastError

Functions

NTSTATUS RemoteDoBroadcastSystemMessage (PWINSTATION_APIMSG pMsg)
NTSTATUS RemoteDoSendWindowMessage (PWINSTATION_APIMSG pMsg)


Define Documentation

#define DumpOutLastError
 

Definition at line 73 of file server/sendmsg.c.


Function Documentation

NTSTATUS RemoteDoBroadcastSystemMessage PWINSTATION_APIMSG  pMsg  ) 
 

Definition at line 89 of file server/sendmsg.c.

References BroadcastSystemMessage(), and NTSTATUS().

Referenced by W32WinStationBroadcastSystemMessage().

00091 { 00092 LONG rc; 00093 WINSTATIONBROADCASTSYSTEMMSG *pmsg; 00094 LPARAM tmpLPARAM; 00095 NTSTATUS status; 00096 00097 00098 pmsg = &(pMsg->u.bMsg); 00099 00100 if ( pmsg->bufferSize ) 00101 { 00102 // we have a databuffer, set the lParam to our copied data buffer 00103 tmpLPARAM = (LPARAM)pmsg->dataBuffer; 00104 } 00105 else 00106 { 00107 tmpLPARAM = pmsg->lParam ; 00108 } 00109 00110 rc = BroadcastSystemMessage( pmsg->dwFlags, &pmsg->dwRecipients, 00111 pmsg->uiMessage, pmsg->wParam, tmpLPARAM ); 00112 00113 status = STATUS_SUCCESS; 00114 00115 pmsg->Response = rc; 00116 00117 return status ; 00118 }

NTSTATUS RemoteDoSendWindowMessage PWINSTATION_APIMSG  pMsg  ) 
 

Definition at line 123 of file server/sendmsg.c.

References NTSTATUS(), and SendMessage().

Referenced by W32WinStationSendWindowMessage().

00125 { 00126 LONG rc; 00127 NTSTATUS status; 00128 00129 00130 WINSTATIONSENDWINDOWMSG *pmsg; 00131 LPARAM tmpLPARAM; 00132 00133 pmsg = &(pMsg->u.sMsg); 00134 00135 if ( pmsg->bufferSize ) 00136 { 00137 // we have a databuffer, set the lParam to our copied data buffer 00138 tmpLPARAM = (LPARAM)pmsg->dataBuffer; 00139 } 00140 else 00141 { 00142 tmpLPARAM = (LPARAM)pmsg->lParam; 00143 } 00144 00145 // 00146 // No need to worry about disconnected sessions (desktop), since msg is sent to a specific hwnd. 00147 // I have verified this imperically. 00148 // 00149 00150 rc = (LONG)SendMessage( pmsg->hWnd, pmsg->Msg, 00151 pmsg->wParam, tmpLPARAM ); 00152 00153 status = STATUS_SUCCESS; 00154 00155 pmsg->Response = rc; 00156 00157 return status ; 00158 }


Generated on Sat May 15 19:45:35 2004 for test by doxygen 1.3.7