The MASM Forum

64 bit assembler => 64 bit assembler. Conceptual Issues => Topic started by: TouEnMasm on May 06, 2021, 04:21:00 AM

Title: ML64 Macros Protos to verify the number of arguments download
Post by: TouEnMasm on May 06, 2021, 04:21:00 AM
Hello,
You can find them here http://luce.yves.pagesperso-orange.fr/macroproto.zip (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


Title: Re: ML64 Macros Protos to verify the number of arguments
Post by: TouEnMasm 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.
Title: Re: ML64 Macros Protos to verify the number of arguments download
Post by: LiaoMi on May 20, 2021, 01:05:43 AM
Quote from: TouEnMasm on May 06, 2021, 04:21:00 AM
Hello,
You can find them here http://luce.yves.pagesperso-orange.fr/macroproto.zip (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,
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)
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.
Title: Re: ML64 Macros Protos to verify the number of arguments download
Post by: TouEnMasm 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?.
Title: Re: ML64 Macros Protos to verify the number of arguments download
Post by: LiaoMi on May 20, 2021, 11:47:35 PM
Quote from: TouEnMasm 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?.

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

Title: Re: ML64 Macros Protos to verify the number of arguments download
Post by: TouEnMasm 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
Title: Re: ML64 Macros Protos to verify the number of arguments download
Post by: LiaoMi on May 21, 2021, 05:41:36 AM
Quote from: TouEnMasm 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

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
Title: Re: ML64 Macros Protos to verify the number of arguments download
Post by: TouEnMasm on May 22, 2021, 07:14:57 PM
Hello,
Done!
It's a 7Z not a zip
Title: Re: ML64 Macros Protos to verify the number of arguments download
Post by: LiaoMi on May 22, 2021, 08:15:36 PM
Quote from: TouEnMasm on May 22, 2021, 07:14:57 PM
Hello,
Done!
It's a 7Z not a zip

Hi TouEnMasm,

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