yqiu
November 18th, 2002, 01:30 AM
Is there a corresponding API function "NetMessageBufferSend" in .NET and C# to send an intranet machine a message?
Thanks
Thanks
|
Click to See Complete Forum and Search --> : Is there a corresponding API function "NetMessageBufferSend" in .NET yqiu November 18th, 2002, 01:30 AM Is there a corresponding API function "NetMessageBufferSend" in .NET and C# to send an intranet machine a message? Thanks Byju August 23rd, 2004, 05:43 AM Hi, You can use the DllImport Attribute to call the NetMessageBufferSend function in NetApi32.dll ... This is how i did it. [DllImport("Netapi32", CharSet=CharSet.Unicode)] public static extern int NetMessageBufferSend(string servername, string msgname, string fromname, string buf, int buflen); <put this inside the form class> int nRet = NetMessageBufferSend(null, "Byju", "My self", "test", 10); if(nRet == 0) { MessageBox.Show("Success"); } <call this function in an approprite event ... Form1_Load or so... > Best of luck .... codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |