Beispiel #1
0
        /// <summary>
        ///     Creates new configuration registry key for current application.
        ///     If there is no configuration profile prior to the function call,
        ///     this API tries to create a new configuration profile registry key
        ///     for a given application and fill it with the default values.
        ///     If an application already has a configuration profile registry key, the API does nothing.
        ///     The name of the key is automatically set to the name of the executable that calls this function.
        ///     Because of this, the executable should have a distinct and unique name.
        ///     If the application is using only one version of DirectX, then the default profile type will be appropriate.
        ///     If the application is using more than one version of DirectX from the same executable,
        ///     it should use the appropriate profile type for each configuration profile.
        /// </summary>
        /// <param name="registryProfileType">Type of profile the application wants to create.</param>
        public static void CreateConfigurationProfileRegistryKey(
            StereoRegistryProfileType registryProfileType)
        {
            var status = DelegateFactory
                         .GetDelegate <Delegates.Stereo.NvAPI_Stereo_CreateConfigurationProfileRegistryKey>()(
                registryProfileType
                );

            if (status != Status.Ok)
            {
                throw new NVIDIAApiException(status);
            }
        }
Beispiel #2
0
        /// <summary>
        ///     This API removes the given value from the application's configuration profile registry key.
        ///     If there is no such value, the function does nothing and does not report an error.
        /// </summary>
        /// <param name="registryProfileType">The type of profile the application wants to access.</param>
        /// <param name="registryId">ID of the value that is being deleted.</param>
        public static void DeleteConfigurationProfileValue(
            StereoRegistryProfileType registryProfileType,
            StereoRegistryIdentification registryId)
        {
            var status = DelegateFactory.GetDelegate <Delegates.Stereo.NvAPI_Stereo_DeleteConfigurationProfileValue>()(
                registryProfileType,
                registryId
                );

            if (status != Status.Ok)
            {
                throw new NVIDIAApiException(status);
            }
        }
 private StereoApplicationConfiguration(StereoRegistryProfileType profileType)
 {
     ProfileType = profileType;
     StereoApi.CreateConfigurationProfileRegistryKey(profileType);
 }