Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7040073
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T01:52:28+00:00 2026-05-28T01:52:28+00:00

I have a program which uses an API from dinput.dll (Direct Input), I have

  • 0

I have a program which uses an API from dinput.dll (Direct Input), I have monitored it and the result is this:

API Name: DirectInputCreateEx
Module Name: C:\Windows\system32\DINPUT.dll

And about another program which uses Direct Input:

API Name: DirectInputCreateA
Module Name: C:\Windows\system32\DINPUT.dll

This API will update this registry key:

HKEY_CURRENT_USER\System\CurrentControlSet\Control\MediaProperties\PrivateProperties\DirectInput

I want to know How can I use Delphi to write a code which ONLY call this API for DirectInput dll?

Any Help is really appreciated…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T01:52:29+00:00Added an answer on May 28, 2026 at 1:52 am

    In order to call Direct Input you will need a Delphi translation of the header file. The best such translation, to my knowledge, is available from the Clootie graphics pages.

    You need to use the DirectInput.pas header translation.

    As for writing a program that does not show a Window, here’s the simplest template:

    program MyProgram;
    begin
      //write your program's code here
    end.
    

    You state in a comment that the only function you wish to call is DirectInputCreateEx. To call that function you need the following import declaration:

    function DirectInputCreateEx(hinst: THandle; dwVersion: DWORD; 
      const riidltf: TGUID; out ppvOut; punkOuter: IUnknown): HResult; 
      stdcall; external 'dinput.dll';
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a small Python program, which uses a Google Maps API secret key.
I have a program that uses an external API which uses its own state.
I have a program which uses a DLL called spreadsheetgear.dll In Visual Studio C#
I'm have a java program that uses Apache httpclient api. This is used to
I have a C program which uses Lua for scripting. In order to keep
I have been trying to create a simple program with Python which uses OpenCV
Say, if I have a Lisp program, which uses (eval 'sym) and looks it
I have a desktop program which uses an embedded data base mechanism. For the
I have static library and another program which uses it. In the static library
I'm trying to compile a program which uses cabarc.exe , but I don't have

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.