Is there any way to autologin to msn when the machine is not logged in ?

Is there any way to autologin to msn when the machine is not logged in ? Have any one tried this ?
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Richie_SimonettiIT OperationsCommented:
What do you mean by "not logged in"? no session opened?
You could put a ket in the registry at HKLM\software\microsoft\windows\currentversion\run pointing to your autologin app.
If you haven't last one, take a look at:
I don't think you can because msn require console to display
Richie_SimonettiIT OperationsCommented:
hummm, maybe i misunderstood, what msn we are talking about?
Big Business Goals? Which KPIs Will Help You

The most successful MSPs rely on metrics – known as key performance indicators (KPIs) – for making informed decisions that help their businesses thrive, rather than just survive. This eBook provides an overview of the most important KPIs used by top MSPs.

?msn messenger?
PradeepYadhavAuthor Commented:
yes msn messenger
PradeepYadhavAuthor Commented:

"I don't think you can because msn require console to display."

There are 2 methods for the api.
SignIn 0, sSignInName, sPassword

Autosignin works only when you log into the computer. When you logoff autosignin doesnt work.
Signin - brings up a dialog to enter the password. It bypasses emailid but not the password.

Is there a way around

The problem is msn messenger will not run without user login.
Richie_SimonettiIT OperationsCommented:
isn't possible to use Messenger object library and use .Signin method?
(you have to provide user and password as arguments)
What are you tring to do? Let's see we can come up with alternative
PradeepYadhavAuthor Commented:
Trying to send an instant message (alert) to a contact using msn, from  server , when the server is not logged in. Due to security reasons server might not be logged in.

My program works fine if the server is logged in.
PradeepYadhavAuthor Commented:
I have a service to do this. But I think I am not able to  autologin to msn when the server logs off.
>>My program works fine if the server is logged in.

The only alterative I can think of is you use autologin and login as a user. Set the screen-saver to 1 min and enable password

Follows this link and add some registry key for autologin
PradeepYadhavAuthor Commented:
I dont want to auto login the computerwhich is a security issue.

Is there any other way to do the same bit of functionality, without using msn. To show client side alerts to a user from the server without any client side (daemon) install program running on the client.

I opted for msn because its easy to do the job to show client side alerts by just specifiying the email id. But the user doesn't want to login his server.
You can send message to client just like net send command


Option Explicit

Private Const OPEN_EXISTING = 3
Private Const GENERIC_READ = &H80000000
Private Const GENERIC_WRITE = &H40000000
Private Const GENERIC_EXECUTE = &H20000000
Private Const GENERIC_ALL = &H10000000
Private Const FILE_SHARE_READ = &H1
Private Const FILE_SHARE_WRITE = &H2

Private Declare Function CloseHandle Lib "kernel32" (ByVal hHandle As Long) As Long

Private Declare Function WriteFile Lib "kernel32" (ByVal hFileName As Long, ByVal lpBuff As Any, ByVal nNrBytesToWrite As Long, lpNrOfBytesWritten As Long, ByVal lpOverlapped As Long) As Long

Private Declare Function CreateFile Lib "kernel32" Alias "CreateFileA" (ByVal lpFileName As String, ByVal dwAccess As Long, ByVal dwShare As Long, ByVal lpSecurityAttrib As Long, ByVal dwCreationDisp As Long, ByVal dwAttributes As Long, ByVal hTemplateFile As Long) As Long

Function SendToWinPopUp(PopFrom As String, PopTo As String, MsgText As String) As Long

    Dim rc As Long
    Dim mshandle As Long
    Dim msgtxt As String
    Dim byteswritten As Long
    Dim mailslotname As String
    ' name of the mailslot
    mailslotname = "\\" + PopTo + "\mailslot\messngr"
    msgtxt = PopFrom + Chr(0) + PopTo + Chr(0) + MsgText + Chr(0)
    rc = WriteFile(mshandle, msgtxt, Len(msgtxt), byteswritten, 0)
    rc = CloseHandle(mshandle)
End Function

Private Sub Command1_Click()

    SendToWinPopUp "From machine", "To machine", "3333"
End Sub

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
PradeepYadhavAuthor Commented:
Its quite nice. This will work for an intranet application. Its similar to net send. But I want this to work in internet.
Have you tried to use IP address instead

ie SendToWinPopUp "", "", "3333"
PradeepYadhavAuthor Commented:

I tried using IP address. It works on the network. But tried to send to a machine which is not connected to my network, over internet to my friends pc. I suppose either my end or at his end they must have disabled popups or must be in a firewall. Hope I am right.

Any how i thank you for your support.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic Classic

From novice to tech pro — start learning today.