'Python and ShutdownBlockReasonCreate, ShutdownBlockReasonDestroy, and ShutdownBlockReasonQuery

Is it possible to call the ShutdownBlockReasonCreate, ShutdownBlockReasonDestroy, and ShutdownBlockReasonQuery win32 APIs from within Python? I can't find them anywhere in the pywin32 library.

Thanks!



Solution 1:[1]

You could try asking or making an enhancement request on the pywin32 mailing list:

If you can't wait and no COM object to be found, there is always ctypes. Just about anything can be done with it.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Gringo Suave