Module objbase
[hide private]
[frames] | no frames]

Source Code for Module objbase

 1  #objbase.py 
 2  #A part of NonVisual Desktop Access (NVDA) 
 3  #This file is covered by the GNU General Public License. 
 4  #See the file COPYING for more details. 
 5   
 6  from ctypes import * 
 7  import objidl 
 8   
9 -def GetRunningObjectTable():
10 rot = POINTER(objidl.IRunningObjectTable)() 11 oledll.ole32.GetRunningObjectTable(0, byref(rot)) 12 return rot
13
14 -def CreateBindCtx():
15 bctx = POINTER(objidl.IBindCtx)() 16 oledll.ole32.CreateBindCtx(0, byref(bctx)) 17 return bctx
18