Skip to content

Commit

Permalink
New Version
Browse files Browse the repository at this point in the history
Fix issue #12
Fix issue #13
Add files via upload
Add AutoClosingMessageBox
Update version
  • Loading branch information
DeadManWalkingTO committed Feb 26, 2019
1 parent 3ae6cbf commit 4f72228
Show file tree
Hide file tree
Showing 74 changed files with 29,824 additions and 29,740 deletions.
44 changes: 22 additions & 22 deletions NVidiaProfileInspectorDmW.sln
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.23107.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NVidiaProfileInspectorDmW", "nspector\NVidiaProfileInspectorDmW.csproj", "{27B20027-E783-4ADC-AF16-40A49463F4BF}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{27B20027-E783-4ADC-AF16-40A49463F4BF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{27B20027-E783-4ADC-AF16-40A49463F4BF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{27B20027-E783-4ADC-AF16-40A49463F4BF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{27B20027-E783-4ADC-AF16-40A49463F4BF}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 14
VisualStudioVersion = 14.0.23107.0
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "NVidiaProfileInspectorDmW", "nspector\NVidiaProfileInspectorDmW.csproj", "{27B20027-E783-4ADC-AF16-40A49463F4BF}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{27B20027-E783-4ADC-AF16-40A49463F4BF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{27B20027-E783-4ADC-AF16-40A49463F4BF}.Debug|Any CPU.Build.0 = Debug|Any CPU
{27B20027-E783-4ADC-AF16-40A49463F4BF}.Release|Any CPU.ActiveCfg = Release|Any CPU
{27B20027-E783-4ADC-AF16-40A49463F4BF}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal
18 changes: 11 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ NVidiaProfileInspectorDmW is a Fork from Orbmu2k/nvidiaProfileInspector for full
- [Install](#install)
- [Usage](#usage)
- [Build](#build)
- [Common Issues](#common-issues)
- [Feedback](#feedback)
- [Maintainers](#maintainers)
- [Contribute](#contribute)
- [License](#license)
- [Donations](#donations)
- [Common Issues](#common-issues)

## Features
Full optimization NVidia graphic cards.
Expand Down Expand Up @@ -67,16 +67,12 @@ msbuild nvidiaProfileInspectorDmW.sln /verbosity:minimal /t:Rebuild /p:Configura
```
Release files build in NVidiaProfileInspectorDmW\nspector\bin\release
```
AutoClosingMessageBox.dll
NVidiaProfileInspectorDMW.exe
NVidiaProfileInspectorDMW.exe.config
Reference.xml
```

## Common Issues

#### NVAPI_ACCESS_DENIED
Issue [#9](../../issues/9) | Status: **Solved**.

## Feedback
Please inform me for aditional Improvments. [Open an Issue](../../issues).

Expand All @@ -100,7 +96,15 @@ Ethereum Address (ETH):
* 0x7013275311fc37ccc1e40193D75086293eCb43A4

Monero Address (XMR):
* 41s1ALMHsW8EiYU31NCT3nWJqsShgZJXQGwXUsTbb8TdfDtiEfPrjeCiqDD3pZ5q2uAsgPM6ykJ3DYDUsZk2LJ7xFmbWaLS
* 42q4HmXdsp1XgNCrDmPubL8ndtgG2JBtmZMEn28sB4XtEGHhwYojvB65HXPidByfNUFSzxg6ysQsHUHa3ZSrsKLX5pTkCET

Aeon Address (AEON):
* WmssXd9iiPCjjhfVyqYvPzhBuPKkZ5wkVXP5q8L7aYxfPJG5Z8nLyLJXUzxMeuvna9dCEBAmqBzCRWezF6AQqUS51EDJtjAYL

## Common Issues

#### NVAPI_ACCESS_DENIED:
Issue [#9](../../issues/9) | Status: **Solved**.
#### Application window is not visible:
Issue [#12](../../issues/12) | Status: **Solved**.
Issue [#13](../../issues/13) | Status: **Solved**.
74 changes: 37 additions & 37 deletions nspector/Common/Cache/CachedSettingValue.cs
Original file line number Diff line number Diff line change
@@ -1,38 +1,38 @@
using System;
using System.Text;

namespace nspector.Common
{
internal class CachedSettingValue
{

internal CachedSettingValue() { }

internal CachedSettingValue(uint Value, string ProfileNames)
{
this.Value = Value;
this.ProfileNames = new StringBuilder(ProfileNames);
this.ValueProfileCount = 1;
}

internal CachedSettingValue(string ValueStr, string ProfileNames)
{
this.ValueStr = ValueStr;
this.ProfileNames = new StringBuilder(ProfileNames);
this.ValueProfileCount = 1;
}

internal CachedSettingValue(byte[] ValueBin, string ProfileNames)
{
this.ValueBin = ValueBin;
this.ProfileNames = new StringBuilder(ProfileNames);
this.ValueProfileCount = 1;
}

internal string ValueStr = "";
internal uint Value = 0;
internal byte[] ValueBin = new byte[0];
internal StringBuilder ProfileNames;
internal uint ValueProfileCount;
}
using System;
using System.Text;

namespace nspector.Common
{
internal class CachedSettingValue
{

internal CachedSettingValue() { }

internal CachedSettingValue(uint Value, string ProfileNames)
{
this.Value = Value;
this.ProfileNames = new StringBuilder(ProfileNames);
this.ValueProfileCount = 1;
}

internal CachedSettingValue(string ValueStr, string ProfileNames)
{
this.ValueStr = ValueStr;
this.ProfileNames = new StringBuilder(ProfileNames);
this.ValueProfileCount = 1;
}

internal CachedSettingValue(byte[] ValueBin, string ProfileNames)
{
this.ValueBin = ValueBin;
this.ProfileNames = new StringBuilder(ProfileNames);
this.ValueProfileCount = 1;
}

internal string ValueStr = "";
internal uint Value = 0;
internal byte[] ValueBin = new byte[0];
internal StringBuilder ProfileNames;
internal uint ValueProfileCount;
}
}
142 changes: 71 additions & 71 deletions nspector/Common/Cache/CachedSettings.cs
Original file line number Diff line number Diff line change
@@ -1,72 +1,72 @@
using nspector.Native.NVAPI2;
using System.Collections.Generic;
using System.Linq;

namespace nspector.Common
{
internal class CachedSettings
{
internal CachedSettings() { }

internal CachedSettings(uint settingId, NVDRS_SETTING_TYPE settingType)
{
SettingId = settingId;
SettingType = settingType;
}

internal uint SettingId;

internal List<CachedSettingValue> SettingValues = new List<CachedSettingValue>();

internal uint ProfileCount = 0;

internal NVDRS_SETTING_TYPE SettingType = NVDRS_SETTING_TYPE.NVDRS_DWORD_TYPE;

internal void AddDwordValue(uint valueDword, string Profile)
{
var setting = SettingValues.FirstOrDefault(s => s.Value == valueDword);
if (setting == null)
{
SettingValues.Add(new CachedSettingValue(valueDword, Profile));
}
else
{
setting.ProfileNames.Append(", " + Profile);
setting.ValueProfileCount++;
}
ProfileCount++;
}

internal void AddStringValue(string valueStr, string Profile)
{

var setting = SettingValues.FirstOrDefault(s => s.ValueStr == valueStr);
if (setting == null)
{
SettingValues.Add(new CachedSettingValue(valueStr, Profile));
}
else
{
setting.ProfileNames.Append(", " + Profile);
setting.ValueProfileCount++;
}
ProfileCount++;
}

internal void AddBinaryValue(byte[] valueBin, string Profile)
{

var setting = SettingValues.FirstOrDefault(s => s.ValueBin.SequenceEqual(valueBin));
if (setting == null)
{
SettingValues.Add(new CachedSettingValue(valueBin, Profile));
}
else
{
setting.ProfileNames.Append(", " + Profile);
setting.ValueProfileCount++;
}
ProfileCount++;
}
}
using nspector.Native.NVAPI2;
using System.Collections.Generic;
using System.Linq;

namespace nspector.Common
{
internal class CachedSettings
{
internal CachedSettings() { }

internal CachedSettings(uint settingId, NVDRS_SETTING_TYPE settingType)
{
SettingId = settingId;
SettingType = settingType;
}

internal uint SettingId;

internal List<CachedSettingValue> SettingValues = new List<CachedSettingValue>();

internal uint ProfileCount = 0;

internal NVDRS_SETTING_TYPE SettingType = NVDRS_SETTING_TYPE.NVDRS_DWORD_TYPE;

internal void AddDwordValue(uint valueDword, string Profile)
{
var setting = SettingValues.FirstOrDefault(s => s.Value == valueDword);
if (setting == null)
{
SettingValues.Add(new CachedSettingValue(valueDword, Profile));
}
else
{
setting.ProfileNames.Append(", " + Profile);
setting.ValueProfileCount++;
}
ProfileCount++;
}

internal void AddStringValue(string valueStr, string Profile)
{

var setting = SettingValues.FirstOrDefault(s => s.ValueStr == valueStr);
if (setting == null)
{
SettingValues.Add(new CachedSettingValue(valueStr, Profile));
}
else
{
setting.ProfileNames.Append(", " + Profile);
setting.ValueProfileCount++;
}
ProfileCount++;
}

internal void AddBinaryValue(byte[] valueBin, string Profile)
{

var setting = SettingValues.FirstOrDefault(s => s.ValueBin.SequenceEqual(valueBin));
if (setting == null)
{
SettingValues.Add(new CachedSettingValue(valueBin, Profile));
}
else
{
setting.ProfileNames.Append(", " + Profile);
setting.ValueProfileCount++;
}
ProfileCount++;
}
}
}
64 changes: 32 additions & 32 deletions nspector/Common/CustomSettings/CustomSetting.cs
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Xml.Serialization;

namespace nspector.Common.CustomSettings
{
[Serializable]
public class CustomSetting
{

public string UserfriendlyName { get; set; }
[XmlElement(ElementName = "HexSettingID")]
public string HexSettingId { get; set; }
public string Description { get; set; }
public string GroupName { get; set; }
public string OverrideDefault { get; set; }
public float MinRequiredDriverVersion { get; set; }

public List<CustomSettingValue> SettingValues { get; set; }

internal uint SettingId
{
get { return Convert.ToUInt32(HexSettingId.Trim(), 16); }
}

internal uint? DefaultValue
{
get { return string.IsNullOrEmpty(OverrideDefault) ? null : (uint?)Convert.ToUInt32(OverrideDefault.Trim(), 16); }
}

}
using System;
using System.Collections.Generic;
using System.Globalization;
using System.Xml.Serialization;

namespace nspector.Common.CustomSettings
{
[Serializable]
public class CustomSetting
{

public string UserfriendlyName { get; set; }
[XmlElement(ElementName = "HexSettingID")]
public string HexSettingId { get; set; }
public string Description { get; set; }
public string GroupName { get; set; }
public string OverrideDefault { get; set; }
public float MinRequiredDriverVersion { get; set; }

public List<CustomSettingValue> SettingValues { get; set; }

internal uint SettingId
{
get { return Convert.ToUInt32(HexSettingId.Trim(), 16); }
}

internal uint? DefaultValue
{
get { return string.IsNullOrEmpty(OverrideDefault) ? null : (uint?)Convert.ToUInt32(OverrideDefault.Trim(), 16); }
}

}
}
Loading

0 comments on commit 4f72228

Please sign in to comment.