Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Logging received net send's info

Status
Not open for further replies.

corneI

Programmer
May 5, 2003
18
ZA
Hi all,

I have setup SQl to send an net send to my PC to show the status of the sql jobs ie. Completed/Failed.

Now my PC gets over run with net sends. I need to log each net send for example :

Server Message

I have searched high and low for something to show how I can get to the above. Any ideas????

Thanks
Corne'
 
I found the following quote in another technical newsgroup:

"You can see what messages people have received in Event Viewer on their local PC, as all incoming messages are logged in the system log (Event Viewer, System Log, Application Popup, event ID 26)."

So, if this is true, you should be able to query the EventLog using Win32 APIs (declared in your VB app) and get the messages sent. You could set a timer and periodically poll for new ones.
 
Try looking to api's in order to 'Hook' the incoming net sends.

Everybody body is somebodys Nutter.
 
Net Send uses something called a 'mailslot' to communicate. It is possible to read mailslots from VB (takes a bit of API work); the one you are interested in is called 'messngr'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top