Click here to Skip to main content
15,885,757 members
Articles / Programming Languages / C++

A general purpose NT Service Class

Rate me:
Please Sign up or sign in to vote.
4.59/5 (20 votes)
6 Jul 2004CPOL2 min read 61.5K   3.1K   43  
Build a NT Service
<?xml version="1.0" encoding = "Windows-1252"?>
<VisualStudioProject
	ProjectType="Visual C++"
	Version="7.00"
	Name="NTService"
	ProjectGUID="{428B3094-7C03-48F8-A2EB-AA9A778D6A22}"
	Keyword="Win32Proj">
	<Platforms>
		<Platform
			Name="Win32"/>
	</Platforms>
	<Configurations>
		<Configuration
			Name="Release|Win32"
			OutputDirectory="simple"
			IntermediateDirectory="simple"
			ConfigurationType="1"
			CharacterSet="2">
			<Tool
				Name="VCCLCompilerTool"
				AdditionalIncludeDirectories="..\..\class"
				PreprocessorDefinitions="WIN32;NDEBUG;_CONSOLE"
				RuntimeLibrary="0"
				StructMemberAlignment="1"
				ObjectFile="$(OutDir)/"
				ProgramDataBaseFileName="$(OutDir)/simple.pdb"
				WarningLevel="4"
				Detect64BitPortabilityProblems="TRUE"/>
			<Tool
				Name="VCCustomBuildTool"/>
			<Tool
				Name="VCLinkerTool"
				AdditionalDependencies="Netapi32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib"
				OutputFile="$(OutDir)/NTService.exe"
				SubSystem="1"
				TargetMachine="1"/>
			<Tool
				Name="VCMIDLTool"/>
			<Tool
				Name="VCPostBuildEventTool"/>
			<Tool
				Name="VCPreBuildEventTool"/>
			<Tool
				Name="VCPreLinkEventTool"/>
			<Tool
				Name="VCResourceCompilerTool"/>
			<Tool
				Name="VCWebServiceProxyGeneratorTool"/>
			<Tool
				Name="VCWebDeploymentTool"/>
		</Configuration>
	</Configurations>
	<Files>
		<File
			RelativePath="..\..\class\AccountDialog.rc">
		</File>
		<File
			RelativePath="..\..\samples\simple\NTService.cpp">
		</File>
		<File
			RelativePath="..\..\samples\simple\NTService.rc">
		</File>
		<File
			RelativePath="..\..\class\service.rc">
		</File>
	</Files>
	<Globals>
	</Globals>
</VisualStudioProject>

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Germany Germany
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.

Comments and Discussions