forked from cbuchner1/ccminer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
hw_nvidia.h
25 lines (22 loc) · 841 Bytes
/
hw_nvidia.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#pragma once
#define _WIN32_WINNT 0x0502
#define WINVER 0x0502
#define WIN32_LEAN_AND_MEAN
#include <windows.h>
// DLL-friendly declarations
// Retrieve the temperature (in degrees) of a Nvidia GPU. -1 if not available
int nw_nvidia_init();
INT32 hw_nvidia_gettemperature( DWORD dwGPUIndex );
ULONG hw_nvidia_DynamicPstateInfoEx( DWORD dwGPUIndex );
ULONG hw_nvidia_Pstate20 (DWORD dwGPUIndex);
ULONG hw_nvidia_memory (DWORD dwGPUIndex);
ULONG hw_nvidia_memory_prc (DWORD dwGPUIndex);
ULONG hw_nvidia_memory_util_prc( DWORD dwGPUIndex );
ULONG hw_nvidia_clock (DWORD dwGPUIndex);
ULONG hw_nvidia_clockMemory (DWORD dwGPUIndex);
ULONG hw_nvidia_voltage (DWORD dwGPUIndex);
ULONG hw_nvidia_cooler (DWORD dwGPUIndex);
ULONG hw_nvidia_fan (DWORD dwGPUIndex);
ULONG get_bus_id(DWORD dwGPUindex);
ULONG hw_nvidia_version();
ULONG get_bus_ids();