Customize net send.

Hi.

When i use net send to create a message there is a title:
"Message from .... to  .... on x/x/xxxx"

Can i remove that ?

Thanks in advance :)
LVL 16
CodedKAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

heretoreadCommented:
Dont think so, as it would be the server that adds it.
0
CodedKAuthor Commented:
Some time ago i've used a net send wrapper (not NetMessageBufferSend) and i could
send a message using any name i wanted (From value).

Of course at that time i was working with windows 2000. (Is it so different than XP?)

Now i cant find that code since i replace it with NetMessageBufferSend.

I've tried ''NetMessageBufferSend'' and ShellExecute of Net Send ... I cant even change the From value.
Is there a way at least hide the Title ? Or some kind of trick ?
0
Eddie ShipmanAll-around developerCommented:
I'm suprised you were able to do that due to the fromname parameter. It has been this way since NT3.5.
Here is MSDN help on that parameter:

fromname
[in] Pointer to a constant string specifying who the message is from. If this parameter is NULL, the message is sent from the local computer name.

Note the last sentance...

0
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

Pierre CorneliusCommented:
There's a demo on how to implement net send at Torry's here http://www.swissdelphicenter.ch/torry/showcode.php?id=617

Regards
Pierre
0
CodedKAuthor Commented:
Hi EddieShipman.

I've tried these 2 ways and i cant replicate this behaviour....
I dont know how this happened but based on that fact i'm asking this question :/
I spend the last 2 hours reading MSDN...
0
Pierre CorneliusCommented:
There's a shorter demo on borland's site here http://cc.borland.com/Item.aspx?id=13997
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
BedouinDNCommented:
To use the FromName parameter with something other than your registered alias, I believe you need to add an alias first using NetMessageNameAdd.

I have had this working OK on WinXP in an application I wrote for work..
0
BedouinDNCommented:
Hmm that also may have been so that messages could be recieved using that alias rather than the computer name.. It has been a while.. :-)
0
CodedKAuthor Commented:
PierreC the wrapper from Borland site can change the from name to anything i like :) !!!!
Thanks !
Is there someway to remove the "Message from .... to  .... on x/x/xxxx" title?
0
Pierre CorneliusCommented:
Glad to help.

I don't think you can remove the "Message from .... to  .... on x/x/xxxx" title?
0
CodedKAuthor Commented:
Sorry for not posting.

I found that Process explorer from sysinternals can send
a message to any user and you can change the caption of the message and the title !
0
Eddie ShipmanAll-around developerCommented:
OK, I will take alook at the source code and see if I can see how they are doing it.
0
Eddie ShipmanAll-around developerCommented:
Oh, I guess they stopped providing source for all their utilities...
Hmmm....
0
CodedKAuthor Commented:
Yes i know. No source.
This example shows at least that it can be done .. :)
0
Eddie ShipmanAll-around developerCommented:
I posted a question on their forum.
0
Eddie ShipmanAll-around developerCommented:
Apparently, they are using WTSSendMessage. BUT I see that that relates to Terminal Server.
I'll look a little deeper.
0
CodedKAuthor Commented:
:)
0
CodedKAuthor Commented:
Thanks for your time :)
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Delphi

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.