Jump to content

Search the Community

Showing results for tags 'DLL C\# C++'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • General
    • Announcements and Site News
    • Administration
  • AutoIt v3
    • AutoIt Help and Support
    • AutoIt Technical Discussion
    • AutoIt Example Scripts
  • Scripting and Development
    • Developer General Discussion
    • Language Specific Discussion
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Categories

  • AutoIt Team
    • Beta
    • MVP
  • AutoIt
    • Automation
    • Databases and web connections
    • Data compression
    • Encryption and hash
    • Games
    • GUI Additions
    • Hardware
    • Information gathering
    • Internet protocol suite
    • Maths
    • Media
    • PDF
    • Security
    • Social Media and other Website API
    • Windows
  • Scripting and Development
  • IT Administration
    • Operating System Deployment
    • Windows Client
    • Windows Server
    • Office

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Member Title


Location


WWW


Interests

Found 1 result

  1. Hello, I'm trying to convert a C#C++ to Autoit, but since I don't understand neither of them (nor DLL for that matter) I'm having a hard time.. So, I hope some one can explain to me how to or convert a single function so I can build on it. C++ http://eliang.blogspot.com/2011/05/getting-nvidia-gpu-usage-in-c.html C# https://code.google.com/p/open-hardware-monitor/source/browse/trunk/Hardware/Nvidia/NVAPI.cs #include <Array.au3> #include <WinAPI.au3> Dim $DLL = DllOpen('nvapi.dll'), $NVAPI_MAX_PHYSICAL_GPUS = 64, $NVAPI_MAX_USAGES_PER_GPU = 34 Dim $NvStatus, $GpuCount, $GpuHanldes[ $NVAPI_MAX_PHYSICAL_GPUS ], $GpuUsages[ $NVAPI_MAX_USAGES_PER_GPU ] NvAPI_Initialize() $R = NvAPI_EnumPhysicalGPUs() _ArrayDisplay($GpuHanldes) MsgBox(0, '', $GpuCount) DllClose($DLL) Func NvAPI_Initialize() $result = DllCall($DLL, "int:cdecl", 'nvapi_QueryInterface', 'int', 0x0150E828, 'int', $NvStatus) If @error Then Exit MsgBox(16, 'Error!', 'Initialization Failed!' & @CRLF & @error) Return $result EndFunc Func NvAPI_EnumPhysicalGPUs() $result = DllCall($DLL, "int:cdecl", 'nvapi_QueryInterface', 'int', 0xE5AC921F, 'int', $GpuHanldes, 'int', $GpuCount) If @error Then Exit MsgBox(16, 'Error!', 'Enumeration Failed!' & @CRLF & @error) Return $result EndFunc Func NvAPI_GPU_GetUsages() $result = DllCall($DLL, "int:cdecl", 'nvapi_QueryInterface', 'int', 0x189A1FDF, 'int', $GpuHanldes[0], 'uint', $GpuUsages) If @error Then Exit MsgBox(16, 'Error!', 'Getting Usages Failed' & @CRLF & @error) Return $result EndFunc Thanks.
×
×
  • Create New...