L
Loïc Delambre
Hi,
I have a service made in csharp language and I try to send message to
network computer with the NetMessageBufferSend.
Here's the import of the function :
[DllImport("netapi32.dll",CharSet=CharSet.Unicode,ExactSpelling=false,
SetLastError=true)]
static extern int NetMessageBufferSend(
/*[MarshalAs(UnmanagedType.LPWStr)] */string servername,
/*[MarshalAs(UnmanagedType.LPWStr)] */string msgname,
/*[MarshalAs(UnmanagedType.LPWStr)] */string fromname,
/*[MarshalAs(UnmanagedType.LPWStr)] */string buf,
int buflen);
The call failed with the 2273 return code "Alias not found on the network",
but if I use the net send in a command window, I can send the message. I
tried to change the service account with "local system" or a "domain admin",
but I failed too.
It seems that it is a right problem, but I can't find it.
I have a service made in csharp language and I try to send message to
network computer with the NetMessageBufferSend.
Here's the import of the function :
[DllImport("netapi32.dll",CharSet=CharSet.Unicode,ExactSpelling=false,
SetLastError=true)]
static extern int NetMessageBufferSend(
/*[MarshalAs(UnmanagedType.LPWStr)] */string servername,
/*[MarshalAs(UnmanagedType.LPWStr)] */string msgname,
/*[MarshalAs(UnmanagedType.LPWStr)] */string fromname,
/*[MarshalAs(UnmanagedType.LPWStr)] */string buf,
int buflen);
The call failed with the 2273 return code "Alias not found on the network",
but if I use the net send in a command window, I can send the message. I
tried to change the service account with "local system" or a "domain admin",
but I failed too.
It seems that it is a right problem, but I can't find it.