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

Module nvda_service

source code

Classes [hide private]
  AutoHANDLE
A HANDLE which is automatically closed when no longer in use.
  STARTUPINFO
  PROCESS_INFORMATION
  NVDAService
Functions [hide private]
 
debug(msg) source code
 
getInputDesktopName() source code
 
getLoggedOnUserToken(session) source code
 
duplicateTokenPrimary(token) source code
 
getOwnToken() source code
 
getSessionSystemToken(session) source code
 
executeProcess(desktop, token, executable, *argStrings) source code
 
nvdaLauncher() source code
 
startNVDA(desktop) source code
 
exitNVDA(desktop) source code
 
isUserRunningNVDA(session) source code
 
isSessionLoggedOn(session) source code
 
execBg(func) source code
 
shouldStartOnLogonScreen() source code
 
initDebug() source code
 
installService(nvdaDir) source code
 
removeService() source code
 
startService() source code
 
stopService()
Stop the running service and wait for its process to die.
source code
Variables [hide private]
  CREATE_UNICODE_ENVIRONMENT = 1024
  INFINITE = 0xffffffff
  UOI_NAME = 2
  SYNCHRONIZE = 0x100000
  WAIT_OBJECT_0 = 0
  MAXIMUM_ALLOWED = 0x2000000
  SecurityIdentification = 2
  TokenPrimary = 1
  PROCESS_QUERY_INFORMATION = 0x0400
  TokenSessionId = 12
  TokenUIAccess = 26
  WTS_CONSOLE_CONNECT = 0x1
  WTS_CONSOLE_DISCONNECT = 0x2
  WTS_SESSION_LOGON = 0x5
  WTS_SESSION_LOGOFF = 0x6
  WTS_SESSION_LOCK = 0x7
  WTS_SESSION_UNLOCK = 0x8
  WTS_CURRENT_SERVER_HANDLE = 0
  WTSUserName = 5
  nvdaExec = os.path.join(sys.prefix, "nvda.exe")
  slaveExec = os.path.join(sys.prefix, "nvda_slave.exe")
  nvdaSystemConfigDir = os.path.join(sys.prefix, 'systemConfig')
  isDebug = False