Author Topic: OS2MEDEF.H typedef - what is it?  (Read 3250 times)

Dariusz Piatkowski

  • Hero Member
  • *****
  • Posts: 1317
  • Karma: +26/-0
    • View Profile
OS2MEDEF.H typedef - what is it?
« on: April 17, 2021, 06:45:09 pm »
So there is this declaration in the OS2MEDEF.H header file and I'm having a hard time interpretting it.

Alright, looks like 'FNMCI' is a function, the argument types follow in the parenthesis, but from a tagging perspective (DEFINE vs STRUCT vs TYPEDEF) should this alias be treated as a VARIABLE or a FUNCTION (as I write this I'm actuallying questioning whether this is even the rigth way to put this very question)?

Code: [Select]
...
typedef DWORD (APIENTRY FNMCI) (LPTR, WORD, DWORD, DWORD, WORD);
...

I'm asking b/c I'm progressing with my VSLICK OS2 Toolkit tagging project and can't quite figure out where this one belongs.

Thanks!

Lars

  • Hero Member
  • *****
  • Posts: 1271
  • Karma: +65/-0
    • View Profile
Re: OS2MEDEF.H typedef - what is it?
« Reply #1 on: April 17, 2021, 07:30:55 pm »
FNMCI is a type just as ULONG would be.
It just happens to be a function type instead of a variable type.

Dariusz Piatkowski

  • Hero Member
  • *****
  • Posts: 1317
  • Karma: +26/-0
    • View Profile
Re: OS2MEDEF.H typedef - what is it?
« Reply #2 on: April 18, 2021, 04:18:14 pm »
OK, thanks Lars!

The last released version of VSLICK is short a couple of user-defined SYMBOLS, and that would allow me to split up all the types of declarations into their separate colour highlights...but still, even with that being the case the four currently available definitions cover a pretty good amount of the overall field.