I recently read an article about creating a service program under NT/2000 and translated it as follows to help me understand it. Some of them may not be suitable for translation, I hope my friends who have read this article can help me correct it! (The original post is at the bottom)
A Windows Service Program is an EXE (executable program) specially designed to
Windows Services
Step 1: Use VS to create a console program.
Step 2: configure the include path and lib path of Boost. Application and Boost.
Step 3: copy the sample code in the README. md file under the Boost. Application directory to myservice. cpp and overwrite all the original code.
Part 4: Set the compilation option to multi-byte
Step 5: Compile and run the program
Because the service has not bee
, bool delayed) { ASSERT(0 != service); SERVICE_DELAYED_AUTO_START_INFO info = { delayed }; return 0 != ::ChangeServiceConfig2( service, SERVICE_CONFIG_DELAYED_AUTO_START_INFO, info); }
The service handle determines the service to be configured. This handle can be obtained by calling the OpenService
Before the client's server cloth a go to write exe, always be turned off by others, depressed incomparable, so think of this exe into a Windows service forget, in the background run you will not go to shut it, so there is the following crawl pit experience.System environment: Windows R21. SC command to create and delete Windo
results in the console, it indicates that the configuration is correct. Then click Installapp-nt.bat to install the service, or click Uninstallapp-nt.bat Uninstall service. After the service is successfully installed, you can see it in Window service management.Note: My jar package uses System.getproperty ("User.dir")
The specified service has been marked as deleted.
The following error occurs when you try to reinstall a service:An exception occurred during the install phase.System. componentmodel. win32exception: the specified service has been marked as deleted.I don't want to rename the service, so I Googled it. The content found
I ' m not yet clear and I did, but I'm blogging it so it can found if someone else have this issue.For whatever reason, last week both of my Vista 64-bit machines suddenly stopped being able to start IIS (Internet Informa tion Server). The service just wouldn ' t start. I started getting this error instead "cannot start service w3svc on computer '. ' Which wasn '
by a test program called this interface.Calling COM interfacesCreate a basic console program, and then initialize the test code to be tested with the following code: #include".. \SERVICECOMTEST\SERVICECOMTEST_I.C"#include".. \servicecomtest\servicecomtest_i.h"#includeusing namespacestd;int_tmain (intARGC, _tchar*argv[]) {Iiservicecomtest*test; CoInitialize (NULL); Auto HRESULT=CoCreateInstance (Clsid_iservicecomtest, NULL, Clsctx_local_server|Clsctx_inproc_handler, Iid_iiservicecomtest, (voi
: TCP/IP protocol driverProcess: dns.exeSuggestion: automatic
15. (XP) Error Reporting Service (Error Reporting Service)Note: error reports for services and applications executed in non-standard environments are allowed. The service
Because of personal needs, want to find a keylogger program, downloaded from the Internet a lot, most of them need to register, in addition to be killed more soft killing. So decide to write one yourself, if as a Windows application, you can implement the capture keyboard record. One way to get started with the system is to use it as a Windows service, write the
: system. configuration. install. DLL
3.create winservice.exe. config with the following content:4. Use the tool C:/Windows/Microsoft. NET/framework/v2.0.50727/installutil.exe to install the Windows service.Installutil.exe winservice.exe5. Start the service: Net start wcfwindowsservicesampleIf the service cannot be st
For personal needs, I want to find a keyboard record program. I have downloaded a lot from the Internet and most of them need to be registered. In addition, I am also killed by the software. So I decided to write one by myself. If I was a Windows application, I could capture the keyboard records. One of the methods to implement startup with the system is to serve as a Windows
To run the jar package on Windows, you need to run the jar package in the working directory using the command line, which will cause a command-line window to appear. And this command-line window may be accidentally shut down, and the server after the start of the need to manually click to open.For some service programs, we need to deploy them as Windows services
1. The last step of MySQL installation in XP prompts the service cocould not be started. Error: 0 error.Solution:
Start-run, enter "services. msc" to check whether MySQL service existsIf yes and cannot be started manuallyOpen the registry and go to "HKEY_LOCAL_MACHINE \ SYSTEM \ CurrentControlSet \ Services"Delete the servi
Win Application Involved in this errorProgramLog errors include:
1. failed to retrieve token for VMware User: Logon Failed: user requested login type not granted to this computer. (1385)
2. failed to retrieve token for VMware User: Logon Failed: Disable the current account. (1331)
3. cocould not choose a '_ vmware_user _' password long enough (min length 0). Aborting.
First, when starting a vmvm
The VMware Authorization Service is not runnin
Methods for creating multiple Windows services in one application and 1083 resolution error resolution--------------------------------------------------------------------------------------1. Create a Windows Service project file, new project---installed templates, Visual C #, Windo
During development, a common requirement is to develop a backendProgramTo monitor the changes of some data in the database and immediately respond to the changes.
In fact, we will create a Windows Service Project, put a timer component in it, and then regularly connect to the database, judge, and then perform operations.
This is a small program made in the past two days, but every few days, the
[ERROR] Apache2.2:service is already installed.
(OS 1060) The specified service is not installed. : Apache2.2
The above two errors can generally be resolved by reinstalling Apache in the following way
Tip Apache has already been installed.
Open the service, describe the sort, find the
Microsoft website error Handling comments:
http://support.microsoft.com/kb/903072
server {a9e69610-b80d-11d0-b9b9-00a0c922e750} is not registered with DCOM for a limited time.
The IIS Admin Services service was stopped because of a 2149647636 (0x80210514) service error.
The IIS Admin
Status: Install SQL SERVER 2008 earlier, check Normal, and then install VS2010 and VS2012. Yesterday, copying the data on the server to the local test, the results found that can be connected to remote, unable to open the local real example.First step: View the Configuration management tool: SQL SERVER Service error: Remote call failed.Baidu Search: VS2012 installation will install SQL Server EXPRESS loacld
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.