|
A service is *most of the time* a console application. But not mandatory. This does not mean necessary that the service displays an user interface, but if the project was compiled with /subsystem:console or /subsystem:windows.
Other than this, a service application is registered in system as such, accepts certain control codes, and is managed by SCM (Service Control Manager).
One can write a service that can interact with the desktop and even display an user interface (although not recommended, sure), not only because a service *must* be a console application, but because this kind of application is intended to be not interactive, system managed, and perform a continuous "service" - hence the name - without user interface. However, a service can create hidden windows for special purpose messages, or use functions that require a message loop. Even COM uses special purpose windows from what I know, so indirectly creating, say, CoCreateInstance, in a service does not makes a service "window free".
A console application is what its name says, just an application compiled for and executed in a console window. Nothing more.
Nuclear launch detected
|
|
|
|
|
Hai,
I have a doubt regarding Windows Services whether In which level windows services are running ( Low , Kernel, Application )
Regards,
Chinna
|
|
|
|
|
Most Services are basically normal applications, they can be run as a specific user account or quite often as the 'LocalSystem' account.
There are obviously security issues running as LocalSystem, including the fact that you cannot access network shares easily (without impersonating another user).
It's not the Service which is either Kernel or User mode, it's the code itself, e.g. Most code will be User mode but things like EnterCriticalSection() can cause a switch to Kernel mode if necessary.
regards,
|
|
|
|
|
Kotesh.N wrote:
Hai,
I have a doubt regarding Windows Services whether In which level windows services are running ( Low , Kernel, Application )
Regards,
application level.. but is running under System Account(Most Powerful account)!..
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and you
|
|
|
|
|
i want to find memory address of my operating system using VB so i can impliment it in my project
SP
--
Bugs can neither be created nor be removed from software by a developer. They can only be converted from one form to another. The total number of bugs in the software always remain constant.
|
|
|
|
|
This question doesn't really make sense. For one, the OS need not be located in a contiguous memory range. Secondly, the core OS is in kernel space and the address would do you no good as you can’t access it from user mode. Thirdly, the OS is made up of many processes and the user space of each process is discrete. There are many more complexities but I'll stop here. Can you describe what you’re actually trying to achieve?
Steve
|
|
|
|
|
I think its _T("OS") , a literal string whose base address he wants to know :
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
I'm not convinced this is the case. Here's a quote: "i want to find memory address of my operating system". That doesn't sound like a string question to me!
Steve
|
|
|
|
|
Nah, I was just joking. (Perhaps you didn't note the joke icon in my post)
Nobody can give you wiser advice than yourself. - Cicero
ப்ரம்மா
|
|
|
|
|
And fourth point, this is the wrong forum: this is a C++ forum, not a VB forum
|
|
|
|
|
Wrong forum C++ or VB
|
|
|
|
|
There's a VB forum?
|
|
|
|
|
while complining i keep getting this error :-
"unexpected end of file while looking for precompiled header directive
Generating Code..."
could someone suggest what to do to rectify..
thanks ..
vikram
|
|
|
|
|
Add #include "StdAfx.h" to the file before all other includes.
Steve
|
|
|
|
|
|
|
Why i am geeting an error
"error C2146: syntax error : missing ';' before identifier 'xd_len'"
when including the header x25.h
|
|
|
|
|
maybe its because the definition of xd_len's type is not available...you may need to include some other headers....
|
|
|
|
|
Thanks
can you mention the headers plz
|
|
|
|
|
show the code where it crashes...
also, where does x25.h come from ?
|
|
|
|
|
Its minumum information for an error.
|
|
|
|
|
Hi,
I am starting a dialog based application from system's account.
The application is alive after my first logoff.
But when i try to logoff the user for the second time, the machine is not logging off..I could be able to logoff only after closing my application.
Why it happens..How can i log off the user for the second time without closing my application.
Thanks .
~ Selva
|
|
|
|
|
Dialog based application in system account?? Got my 1.
Never display or use windows in a desktop you can't control. At least so I understood the notions of HWINSTA and HDESK.
Nuclear launch detected
|
|
|
|
|
Hi,
What message will be sent to a running dialog based application when the user logs off the machine?
any help is appreciated.
Thanks.
~ Selva
|
|
|
|
|