Is the Win32 API function definition available in database / XML format?

I am looking for a list of win32 APIs in some kind of "database" / XML format.

I would need to easily create a "conversion level" between the win32 API and the higher level language that I use (harbor / xharbour). Since this launches Pcode, you need to convert the parameters to the standard C ...

Instead of manually entering the code, I would like to automate the process ...

e.g. Windows API definition (taken from MSDN)

DWORD WINAPI GetSysColor(
  __in  int nIndex
);

should be converted to

HB_FUNC( GETSYSCOLOR )
{
    hb_retnl( (LONG) GetSysColor( hb_parni( 1 ) ) );
}
+3
source share
4 answers

AFAIK, pinvoke.net PInvoke . , - API.

, , include , . lcc-win32 , /-BS SDK ( , ..)

+1

, Microsoft Platform SDK, .h C, !

VB ( Delphi , , ), ApiViewer ​​ , - ( .apv), , , .
API-, Allapi.net, , , . .api (- -).

+1

, , : http://pinvoke.net/ , ? VS-, , -. , .

0

There seems to be some kind of database (and an application to use it called PInvoke Interop Assistant ") at:

https://github.com/jaredpar/pinvoke/tree/master/StorageGenerator/Data

although I'm not sure what license is at the moment - so I asked the authors .

0
source

Source: https://habr.com/ru/post/1697324/


All Articles