T takashiki Unregistered / Unconfirmed GUEST, unregistred user! 2003-08-29 #2 net send 计算机名 "Message"
W www Unregistered / Unconfirmed GUEST, unregistred user! 2003-08-29 #3 procedure TForm1.Button1Click(Sender: TObject); var Msg:WideString; Target: WideStrign; begin Msg:='你好,信使服务测试'; Target:= 'computer1'; NetMessageBufferSend(NIL,PWidechar(Target),Nil,PWideChar(Msg),Length(String(Msg))); end;
procedure TForm1.Button1Click(Sender: TObject); var Msg:WideString; Target: WideStrign; begin Msg:='你好,信使服务测试'; Target:= 'computer1'; NetMessageBufferSend(NIL,PWidechar(Target),Nil,PWideChar(Msg),Length(String(Msg))); end;
W www Unregistered / Unconfirmed GUEST, unregistred user! 2003-08-29 #4 刚才忘了函数声明了,要先加入函数声明 function NetMessageBufferSend(servernameWideChar;msgnameWideChar; fromnameWideChar;bufWideChar;buflenWORD)WORD;stdcall;external 'netapi32.dll'
刚才忘了函数声明了,要先加入函数声明 function NetMessageBufferSend(servernameWideChar;msgnameWideChar; fromnameWideChar;bufWideChar;buflenWORD)WORD;stdcall;external 'netapi32.dll'