def getRegisterValueInAutoRun(key='audioTerm'):
import _winreg
try:
r = _winreg.OpenKey(
_winreg.HKEY_LOCAL_MACHINE, r"SOFTWARE\Microsoft\Windows\CurrentVersion\Run")
p1,num,p3 = _winreg.QueryInfoKey(r)
for n in range(num):
p1,p2,p3 = _winreg.EnumValue(r,n)
if p1 == key:
return p2
except:
traceback.print_exc()
return None
评论列表
文章目录