hi,
hi, how to get COM constant, or enum enumeration?
office VBA is able to translate enum value to enum name
debug.Print xlDone
0
https://learn.microsoft.com/en-us/office/vba/api/excel.xlcalculationstate

so there must be some method to do this translation programmatically
and in python it read all COM constant names and values and put them in win32com.clients.constants.
I wonder how to achieve this in luart COM
http://timgolden.me.uk/pywin32-docs/html/com/win32com/HTML/QuickStartClientCom.html#UsingComConstants
Using COM Constants
Makepy automatically installs all generated constants from a type library in an object called c. You do not need to do anything special to make these constants work, other than create the object itself (ie, in the example above, the constants relating to Word would automatically be available after the w=win32com.client.Dispatch("Word.Application") statement.
For example, immediately after executing the code above, you could execute the following:
w.WindowState = win32com.client.constants.wdWindowStateMinimize