Author Topic: ML64 Macros Protos to verify the number of arguments download  (Read 979 times)

TouEnMasm

  • Member
  • *****
  • Posts: 1805
    • EditMasm
Hello,
You can find them here http://luce.yves.pagesperso-orange.fr/macroproto.zip
There is 16027 functions in 489 headers.
Advantage are:
* The number of args couldn't be wrong.
* The syntax is the same than C and translation from c to asm is more easy.
* The name of the headers are the same than the original (.inc) and Msdn can anwer at the question "Where it is ?".
In the document directory,you will find a file who give you the original prototypes and the lib of the funtion.
Functions have been extracted first from the sdk headers and then filtered with the libraries content.
You can be sure they are usable


« Last Edit: May 07, 2021, 03:13:23 AM by TouEnMasm »
Fa is a musical note to play with CL

TouEnMasm

  • Member
  • *****
  • Posts: 1805
    • EditMasm
Re: ML64 Macros Protos to verify the number of arguments
« Reply #1 on: May 07, 2021, 01:48:23 AM »

I have been a little bit fast with  only Ansi fonctions.
It's corrected now,all work.
Fa is a musical note to play with CL

LiaoMi

  • Member
  • ****
  • Posts: 922
Re: ML64 Macros Protos to verify the number of arguments download
« Reply #2 on: May 20, 2021, 01:05:43 AM »
Hello,
You can find them here http://luce.yves.pagesperso-orange.fr/macroproto.zip
There is 16027 functions in 489 headers.
Advantage are:
* The number of args couldn't be wrong.
* The syntax is the same than C and translation from c to asm is more easy.
* The name of the headers are the same than the original (.inc) and Msdn can anwer at the question "Where it is ?".
In the document directory,you will find a file who give you the original prototypes and the lib of the funtion.
Functions have been extracted first from the sdk headers and then filtered with the libraries content.
You can be sure they are usable

Hi TouEnMasm,

can your parser generate instead,
Code: [Select]
IFDEF __UNICODE__
externdef __imp_GetEffectiveRightsFromAclW:PPROC
invoke __imp_GetEffectiveRightsFromAclW,pacl,pTrustee,pAccessRights
ELSE
externdef __imp_GetEffectiveRightsFromAclA :PPROC
invoke __imp_GetEffectiveRightsFromAclA,pacl,pTrustee,pAccessRights
ENDIF

such a format for the autocomplete function in notepad++ ??? (http://masm32.com/board/index.php?topic=9377.0)
Code: [Select]
GetEffectiveRightsFromAclW,pacl,pTrustee,pAccessRights
GetEffectiveRightsFromAclA,pacl,pTrustee,pAccessRights

To keep everything in one file, it seems to me that you wrote somewhere that you already did it.

TouEnMasm

  • Member
  • *****
  • Posts: 1805
    • EditMasm
Re: ML64 Macros Protos to verify the number of arguments download
« Reply #3 on: May 20, 2021, 11:01:15 PM »

I can do what I want with the list of protos who is given in the document directory.I can also increase the list to the inlines functions without too many problems.
I just need more informations on which form you want with perhaps some samples?.
Fa is a musical note to play with CL

LiaoMi

  • Member
  • ****
  • Posts: 922
Re: ML64 Macros Protos to verify the number of arguments download
« Reply #4 on: May 20, 2021, 11:47:35 PM »

I can do what I want with the list of protos who is given in the document directory.I can also increase the list to the inlines functions without too many problems.
I just need more informations on which form you want with perhaps some samples?.

Just in the form of a list of all api, it is quite enough:
GetEffectiveRightsFromAclW,pacl,pTrustee,pAccessRights
GetEffectiveRightsFromAclA,pacl,pTrustee,pAccessRights


TouEnMasm

  • Member
  • *****
  • Posts: 1805
    • EditMasm
Re: ML64 Macros Protos to verify the number of arguments download
« Reply #5 on: May 21, 2021, 03:06:09 AM »

To be sure not made errors.

_wcsxfrm_l PROTO cproto :XMASM ,:XMASM ,:DWORD ,:DWORD begin  _wcsxfrm_l,,,,
WSDCreateDeviceProxy PROTO pszDeviceId:XMASM ,pszLocalId:XMASM ,pContext:XMASM ,ppDeviceProxy:XMASM
    begin WSDCreateDeviceProxy,pszDeviceId,pszLocalId,pContext,ppDeviceProxy
unnamed argument can have a defaut name  or not,make a choice:   
sznoname    db "un",0,"deux",0,"trois",0,"quatre",0,"cinq",0,"six",0,"sept",0,"huit",0,"neuf",0,"dix",0,"onze",0,"douze",0,"treize",0,"quatorze",0,0
Fa is a musical note to play with CL

LiaoMi

  • Member
  • ****
  • Posts: 922
Re: ML64 Macros Protos to verify the number of arguments download
« Reply #6 on: May 21, 2021, 05:41:36 AM »

To be sure not made errors.

_wcsxfrm_l PROTO cproto :XMASM ,:XMASM ,:DWORD ,:DWORD begin  _wcsxfrm_l,,,,
WSDCreateDeviceProxy PROTO pszDeviceId:XMASM ,pszLocalId:XMASM ,pContext:XMASM ,ppDeviceProxy:XMASM
    begin WSDCreateDeviceProxy,pszDeviceId,pszLocalId,pContext,ppDeviceProxy
unnamed argument can have a defaut name  or not,make a choice:   
sznoname    db "un",0,"deux",0,"trois",0,"quatre",0,"cinq",0,"six",0,"sept",0,"huit",0,"neuf",0,"dix",0,"onze",0,"douze",0,"treize",0,"quatorze",0,0

Only the template below is required, the rest is unnecessary, thank you!
WSDCreateDeviceProxy PROTO pszDeviceId:XMASM ,pszLocalId:XMASM ,pContext:XMASM ,ppDeviceProxy:XMASM

Untitled prototypes can be left as they are in the original
WSDCreateDeviceProxy PROTO :XMASM ,:XMASM ,:XMASM ,:XMASM

TouEnMasm

  • Member
  • *****
  • Posts: 1805
    • EditMasm
Re: ML64 Macros Protos to verify the number of arguments download
« Reply #7 on: May 22, 2021, 07:14:57 PM »
Hello,
Done!
It's a 7Z not a zip
Fa is a musical note to play with CL

LiaoMi

  • Member
  • ****
  • Posts: 922
Re: ML64 Macros Protos to verify the number of arguments download
« Reply #8 on: May 22, 2021, 08:15:36 PM »
Hello,
Done!
It's a 7Z not a zip

Hi TouEnMasm,

very cool, thanks for your work!  :azn: :thup: