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 8582545
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T21:19:06+00:00 2026-06-11T21:19:06+00:00

int WINAPI BiMICRSetReadBackFunction( int nHandle, int (CALLBACK *pMicrCB)(void), LPBYTE pReadBuffSize, LPBYTE readCharBuff, LPBYTE pStatus,

  • 0
int  WINAPI  BiMICRSetReadBackFunction(
    int  nHandle,
    int  (CALLBACK  *pMicrCB)(void),
    LPBYTE  pReadBuffSize,
    LPBYTE  readCharBuff,
    LPBYTE  pStatus,
    LPBYTE  pDetail);

    typedef int (CALLBACK* MICRCallback)(void);
    typedef int (CALLBACK* StatusCallback)(DWORD);

    int WINAPI BiSetInkStatusBackFunction(int nHandle,
        int (CALLBACK *pStatusCB)(DWORD dwStatus)
);

I need to convert this function to Delphi.

I tried to use headconv4.2 but the resulting static unit is not completed, and errors occur when compiling.

Thanks in advance for your kind help 😀

  • 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-06-11T21:19:07+00:00Added an answer on June 11, 2026 at 9:19 pm

    Supposing WINAPI and CALLBACK always being __stdcall, DWORD being unsigned int and LPBYTE as unsigned char *, you could try this dirty conversion I made:

    unit UHeader;
    
    interface
    
    // Data types
    
    type
      PByte = ^Byte;
      PPByte = ^PByte;
    
    // Prototypes
    
    type
      TMICRCallback = function: Integer; stdcall;
      TStatusCallback = function(dwParam: Cardinal): Integer; stdcall;
    
    // Functions
    
    type
      TBiMICRSetReadBackFunction =
        function(nHande: Integer;
                 pMicrCB: TMICRCallback;
                 pReadBuffSize: PByte;
                 readCharBuff: PByte;
                 pStatus: PByte;
                 pDetail: PByte
        ): Integer; stdcall;
    
    var
      BiMICRSetReadBackFunction: TBiMICRSetReadBackFunction;
    
    type
      TBiSetInkStatusBackFunction =
        function(nHandle: Integer;
                 pStatusCB: TStatusCallback
        ): Integer; stdcall;
    
    var
      BiSetInkStatusBackFunction: TBiSetInkStatusBackFunction;
    
    implementation
    
    end.
    

    I’m not entirely sure, though, if this is correct… but this could be a path for you to try to convert it yourself.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I was under the impression that this code #include <windows.h> #include <stdio.h> int WINAPI
int main(void) { char testStr[50] = Hello, world!; char revS[50] = testStr; } I
i have following code in visual c++ #include<Windows.h> LPCTSTR Caption=LApplication programming INTERFACE; INT WINAPI
For example: int WINAPI WinMain ( HINSTANCE instance, HINSTANCE prev_instance, PSTR cmd_line, int cmd_show
I'm learning about Win32 programming, and the WinMain prototype looks like: int WINAPI WinMain
<pre> #include<Windows.h> #include<process.h> LRESULT CALLBACK WndProc(HWND hwnd,UINT message,WPARAM wParam,LPARAM lParam); HWND hwnd; int clientx,clienty;
When I try to compile the following: #include <windows.h> #include <shlwapi.h> int WINAPI WinMain(HINSTANCE
This may be the simplest win32 program ever .. #include <windows.h> int WINAPI WinMain(HINSTANCE
The simple code fails: #include <Windows.h> int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine,
I want to create a window using winAPI: int WINAPI WinMain(HINSTANCE hInst,HINSTANCE hPrevInst,LPSTR lpCmdLine,

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.