equal
deleted
inserted
replaced
178 return status.value == _STILL_ACTIVE |
178 return status.value == _STILL_ACTIVE |
179 finally: |
179 finally: |
180 _kernel32.CloseHandle(h) |
180 _kernel32.CloseHandle(h) |
181 return _kernel32.GetLastError() != _ERROR_INVALID_PARAMETER |
181 return _kernel32.GetLastError() != _ERROR_INVALID_PARAMETER |
182 |
182 |
183 def lookup_reg(key, valname=None, scope=None): |
183 def lookupreg(key, valname=None, scope=None): |
184 ''' Look up a key/value name in the Windows registry. |
184 ''' Look up a key/value name in the Windows registry. |
185 |
185 |
186 valname: value name. If unspecified, the default value for the key |
186 valname: value name. If unspecified, the default value for the key |
187 is used. |
187 is used. |
188 scope: optionally specify scope for registry lookup, this can be |
188 scope: optionally specify scope for registry lookup, this can be |