Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ServiceBase::ServiceMainCallback Method (Int32, IntPtr)

 

This API supports the product infrastructure and is not intended to be used directly from your code.

Registers the command handler and starts the service.

Namespace:   System.ServiceProcess
Assembly:  System.ServiceProcess (in System.ServiceProcess.dll)

public:
[ComVisibleAttribute(false)]
void ServiceMainCallback(
	int argCount,
	IntPtr argPointer
)

Parameters

argCount
Type: System::Int32

The number of arguments in the argument array.

argPointer
Type: System::IntPtr

An IntPtr structure that points to an array of arguments.

.NET Framework
Available since 2.0
Return to top
Show:
© 2017 Microsoft