ServiceBase.ServiceHandle Propiedad

Definición

Obtiene el identificador de control de servicio para el servicio.

protected:
 property IntPtr ServiceHandle { IntPtr get(); };
protected IntPtr ServiceHandle { get; }
member this.ServiceHandle : nativeint
Protected ReadOnly Property ServiceHandle As IntPtr

Valor de propiedad

IntPtr

nativeint

Estructura IntPtr que contiene el identificador de control de servicio para el servicio.

Comentarios

El identificador de control de servicio se usa para comunicarse con Service Control Manager (SCM). El identificador se puede usar para actualizar la información de estado del administrador de control de servicio para el servicio de llamada mediante la función no administrada SetServiceStatus .

Se aplica a