I used to use following API in Windows XP to send a net message to workstation, however we now change to Windows Vista and it is not functioning any more.
As I understood that net send is no longer available in Vista.
Appreciate if you can help with any clue to alternate the code
Many thanks


Code:
Declare Function NetMessageBufferSend _
    Lib "Netapi32.dll" ( _
    ByVal sServerName$, _
    ByVal sMsgName$, _
    ByVal sFromName$, _
    ByVal sMessageText$, _
    ByVal lBufferLength&) _
    As Long