1. yes you can use the mscomm control for the same
2. you will find a sample mscomm example on msdn
Regards,
Bhagyesh
Main Topics
Browse All TopicsHello,
I have device pluged into serial port (usually for modem, also called COM port).
1. Can i access the device plugged in the PC port before log in to Windows (XP, 2000, 98)?How can I do it?
-for example i have a cellphone that plugged in to PC serial port.-
2. If, so..can i communicate with the PC?
-for example i wanto to transfer file from the cellphone to the PC-
3. Is possible for IrDa and Bluetooth connection?
thanks
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Cookre is correct... You need to run or write the program to run as a system service for it to be running without a user being logged in.
I have gathered together a few links that also contain example code which may be of use to you regarding this matter.
Hope this helps...
Dave
--------------------------
SERVICE PROGRAMMING
--------------------------
Beginner's introductory guide to writing,installing,startin
http://www.codeproject.com
--------------------------
A general purpose nt service Class
http://www.codeproject.com
--------------------------
Writing Windows Services - Made Easy
http://www.codeproject.com
--------------------------
Cntservice v1.06 - nt service Framework
http://www.codeproject.com
--------------------------
Start Your Windows Programs From An NT Service
http://www.codeproject.com
--------------------------
--------------------------
SERIAL COMMS
--------------------------
Serial Communications in Windows
http://www.codeproject.com
--------------------------
Creating a Serial Communication on Win32
http://www.codeproject.com
--------------------------
CSerialPort v1.03 - Serial Port Wrapper
http://www.codeproject.com
Theres more on code-project... take a look!
Heres a few links that should be of use to you.
Hope this helps...
Dave
BLUETOOTH PROGRAMMING
--------------------------
Bluetooth Programming with Windows Sockets
http://msdn.microsoft.com/
Make Bluetooth Work for You - Build a Sample Chat Application (PocketPC)
http://www.devx.com/wirele
IrDA PROGRAMMING
--------------------------
IrDA Programming with Windows Sockets
http://msdn.microsoft.com/
--------------------------
Programming With Infrared Sockets - White Paper - IrDA Implementation
http://www.cswl.com/whitep
--------------------------
Getting Infrared IrDA and IrSock to work on Windows - White Paper
http://www.cswl.com/whitep
--------------------------
Microsoft Windows IrDA programming (IrSock?)
http://homepage.ntlworld.c
If you register a service with the SC CREATE command, the depend= option is where to specify dependencies.
If you use CreateService(), the 11th parm is the array of depenencies.
If the service already exists, you can set dependencies in the Registry: HKLM\System\CurrentControl
Each subkey is the name of a service or driver.
In the root of a given subkey, value DependOnService, if present, is a REG_MULTI_SZ that lists those services/drivers that are dependent on that service/driver.
1)
The dependencies is a double-null terminated list of strings. If you were to look in memory, you'd see the strings of dependent name one after another with an extra null after the last one.
For example, let's say the dependent services were "s1", "s2", and "s3". A memory dump would show (using @ to represent null ('\0', binary zero):
s1@s2@s3@@
2) If you don't already know the format of the data coming over the port, about all you can do is try to figure it out by dumping out what you get from the phone under varying conditions.
Business Accounts
Answer for Membership
by: cookrePosted on 2004-07-27 at 21:20:20ID: 11653308
If all you need is access to hardware ports and the file system, then yes, that could be done from a Window's Service.
Bear in mind there will be no network access and no GUI until a user logs on.