1.1 --- a/Hardware/Nvidia/NVAPI.cs Sun Jan 15 15:07:23 2012 +0000
1.2 +++ b/Hardware/Nvidia/NVAPI.cs Sun Jan 15 15:35:03 2012 +0000
1.3 @@ -16,7 +16,7 @@
1.4
1.5 The Initial Developer of the Original Code is
1.6 Michael Möller <m.moeller@gmx.ch>.
1.7 - Portions created by the Initial Developer are Copyright (C) 2009-2011
1.8 + Portions created by the Initial Developer are Copyright (C) 2009-2012
1.9 the Initial Developer. All Rights Reserved.
1.10
1.11 Contributor(s):
1.12 @@ -299,6 +299,9 @@
1.13 nvDisplayDriverVersion);
1.14 public delegate NvStatus NvAPI_GetInterfaceVersionStringDelegate(
1.15 StringBuilder version);
1.16 + public delegate NvStatus NvAPI_GPU_GetPCIIdentifiersDelegate(
1.17 + NvPhysicalGpuHandle gpuHandle, out uint deviceId, out uint subSystemId,
1.18 + out uint revisionId, out uint extDeviceId);
1.19
1.20 private static readonly bool available;
1.21 private static readonly nvapi_QueryInterfaceDelegate nvapi_QueryInterface;
1.22 @@ -332,6 +335,8 @@
1.23 NvAPI_GPU_GetMemoryInfo;
1.24 public static readonly NvAPI_GetDisplayDriverVersionDelegate
1.25 NvAPI_GetDisplayDriverVersion;
1.26 + public static readonly NvAPI_GPU_GetPCIIdentifiersDelegate
1.27 + NvAPI_GPU_GetPCIIdentifiers;
1.28
1.29 private NVAPI() { }
1.30
1.31 @@ -406,6 +411,7 @@
1.32 GetDelegate(0x774AA982, out NvAPI_GPU_GetMemoryInfo);
1.33 GetDelegate(0xF951A4D1, out NvAPI_GetDisplayDriverVersion);
1.34 GetDelegate(0x01053FA5, out _NvAPI_GetInterfaceVersionString);
1.35 + GetDelegate(0x2DDFB66E, out NvAPI_GPU_GetPCIIdentifiers);
1.36
1.37 available = true;
1.38 }