Module e.c.u.m.tools

Part of elisa.core.utils.mswin32

win32 specific helpers.
Line # Kind Name Docs
44 Class RegKey Undocumented
88 Class ElisaRegKey Undocumented
91 Function get_multimedia_dir return in a dict the multimedia directories in UTF8
127 Function should_install_recommended_plugins Read the key in the registry set by the installer to define whether to
161 Function get_process_id Undocumented
172 Function get_process_id_xp Undocumented
201 Function kill_process_pid Undocumented
207 Function kill_process_pids Undocumented
215 Function kill_process Undocumented
221 Function exit Exit Elisa using an external executable that makes sure no zombie processes
255 Class ShortcutResolver Helper class that resolves windows shortcuts.
295 Function run_with_privilege Undocumented
326 Function register_com_dll Register a COM dll.
370 Function unregister_com_dll Undocumented
33 Function _get_reg_value Undocumented
def _get_reg_value(hkey, value_name):
Undocumented
def get_multimedia_dir():
return in a dict the multimedia directories in UTF8
def should_install_recommended_plugins():
Read the key in the registry set by the installer to define whether to install the recommended plugins upon first startup, and return its value.

Once read, the key in the registry is deleted because the recommended plugins should be installed only upon first run.

Returnswhether to install the recommended plugins (type: bool )
def get_process_id(name):
Undocumented
def get_process_id_xp(name):
Undocumented
def kill_process_pid(pid):
Undocumented
def kill_process_pids(pid_list):
Undocumented
def kill_process(name):
Undocumented
def exit(delay=1, relaunch=False):
Exit Elisa using an external executable that makes sure no zombie processes are left over. If needed and after a given delay, remaining processes are killed.
Parametersdelaythe delay in seconds before checking whether Elisa correctly exited, and eventually kill all remaining processes (default: 1 second) (type: int )
relaunchwhether to relaunch elisa after it successfully exited (default: False) (type: bool )
Returnsthe subprocess object running the external executable (type: subprocess.Popen )
RaisesAssertionErrorwhen trying to exit from an uninstalled version of Elisa
ValueErrorif the delay passed is not strictly greater than zero
def run_with_privilege(program, params):
Undocumented
def register_com_dll(filename, register=True):
Register a COM dll.
Parametersfilenamethe full path to the dll to register (type: str )
registerwhether we want to register (True) or unregister (False) the dll (type: bool )
Raisespywintypes.errorif the Dll[Un]RegisterServer() function of the dll returned an error
WindowsErrorif the library cannot be loaded
def unregister_com_dll(filename):
Undocumented
API Documentation for Elisa Media Center, generated by pydoctor at 2009-03-09 17:49:57.