Skip to content
Snippets Groups Projects
Commit 050dfede authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

windows: Add REG_EXPAND_SZ() registry helper func

Add this helper lambda function that can be used to update the value of
type REG_EXPAND_SZ
parent f5dd0e42
No related branches found
No related tags found
No related merge requests found
......@@ -35,6 +35,8 @@ WINDOWS_SETUP_STATES = (
REG_SZ = lambda k, v: {'key': k, 't': 1L,
'value': (v + '\x00').encode('utf-16le')}
REG_EXPAND_SZ = lambda k, v: {'key': k, 't': 2L,
'value': (v + '\x00').encode('utf-16le')}
REG_BINARY = lambda k, v: {'key': k, 't': 3L, 'value': v}
REG_DWORD = lambda k, v: {'key': k, 't': 4L, 'value': struct.pack('<I', v)}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment