Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionPrivate Declare Function NetSend Lib "Netapi32" Alias "NetMessageBufferSend" (servername As Byte, Msgname As Byte, Fromname As Byte, buf As Byte, ByVal buflen As Long) As Long Public Function EnvoiMsg(Pour As String, De As String, Msg As String) As Long Dim SName() As Byte, Dest() As Byte, Exp() As Byte, buf() As Byte, buflen As Long Msg = Trim(Msg) Pour = UCase(Trim(Pour)) De = UCase(Trim(De)) SName = "" & vbNullChar Dest = Pour & vbNullChar Exp = De & vbNullChar buf = Msg & vbNullChar buflen = Len(Msg) * 2 EnvoiMsg = NetSend(SName(0), Dest(0), Exp(0), buf(0), buflen) End Function