Beispiel #1
0
        /// <summary>
        /// Initializes a new instance of the ServiceConfig class.
        /// </summary>
        /// <param name="serviceConfig">A native <see cref="AdvApi32.QUERY_SERVICE_CONFIG"/> struct containing the service configuration.</param>
        internal ServiceConfig(AdvApi32.QUERY_SERVICE_CONFIG serviceConfig)
        {
            // Store the struct
            //
            _serviceConfig = serviceConfig;

            // Parse the dependencies as a null-separated list
            //
            _dependencies = _serviceConfig.lpDependencies == null ? null : _serviceConfig.lpDependencies.Split(new[] { '\0' }, StringSplitOptions.RemoveEmptyEntries);
        }
Beispiel #2
0
        /// <summary>
        ///     Initializes a new instance of the ServiceConfig class.
        /// </summary>
        /// <param name="serviceConfig">
        ///     A native <see cref="AdvApi32.QUERY_SERVICE_CONFIG" /> struct containing the service
        ///     configuration.
        /// </param>
        internal ServiceConfig(AdvApi32.QUERY_SERVICE_CONFIG serviceConfig)
        {
            // Store the struct
            //
            _serviceConfig = serviceConfig;

            // Parse the dependencies as a null-separated list
            //
            _dependencies = _serviceConfig.lpDependencies == null
                ? null
                : _serviceConfig.lpDependencies.Split(new[] { '\0' }, StringSplitOptions.RemoveEmptyEntries);
        }