1

How can I create a PyDEVMODE object without just having it as a return from a function call like win32api.EnumDisplaySettingsEx(name, 0)?

Claudiu
  • 224,032
  • 165
  • 485
  • 680

1 Answers1

1

It's defined in pywintypes.

>>> import pywintypes
>>> pywintypes.DEVMODEType()
<PyDEVMODE object at 0x00F38E90>

I'm curious as to what you are going to use it for?

Mark
  • 106,305
  • 20
  • 172
  • 230
  • 1
    ah ty, just found that out right now. See [this question](http://stackoverflow.com/questions/3858366/pywin32virtualbox-guest-vm-crashes-when-trying-to-disable-second-monitor) for the use case =). – Claudiu Oct 04 '10 at 19:30