Skip to content

Commit

Permalink
Worked on resolve names script and documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
joachimmetz committed Mar 14, 2024
1 parent 4e5221c commit ed44815
Show file tree
Hide file tree
Showing 7 changed files with 601 additions and 588 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,5 @@ Property identifier | Shell property key | Shell name | Alias
3 | PKEY_DeviceInterface_Enabled, PKEY_Devices_InterfaceEnabled | System.Devices.InterfaceEnabled |
4 | PKEY_DeviceInterface_ClassGuid, PKEY_Devices_InterfaceClassGuid | System.Devices.InterfaceClassGuid |
6 | PKEY_Devices_RestrictedInterface | System.Devices.RestrictedInterface |
9 | PKEY_Devices_SchematicName | |
9 | PKEY_Devices_SchematicName | System.Devices.SchematicName |

Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ Property identifier | Shell property key | Shell name | Alias
8 | PKEY_DeviceInterface_Bluetooth_ProductId | System.DeviceInterface.Bluetooth.ProductId |
9 | PKEY_DeviceInterface_Bluetooth_ProductVersion | System.DeviceInterface.Bluetooth.ProductVersion |
11 | PKEY_DeviceInterface_Bluetooth_LastConnectedTime | System.DeviceInterface.Bluetooth.LastConnectedTime |
12 | PKEY_Devices_Aep_Bluetooth_LastSeenTime | |
12 | PKEY_Devices_Aep_Bluetooth_LastSeenTime | System.Devices.Aep.Bluetooth.LastSeenTime |

Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@ Property identifier | Shell property key | Shell name | Alias
5 | PKEY_StorageProviderFileChecksum | System.StorageProviderFileChecksum |
6 | PKEY_StorageProviderFileVersionWaterline | System.StorageProviderFileVersionWaterline |
7 | PKEY_StorageProviderCallerVersionInformation | System.StorageProviderCallerVersionInformation |
8 | PKEY_StorageProviderFileFlags | |
8 | PKEY_StorageProviderFileFlags | System.StorageProviderFileFlags |

Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

Property identifier | Shell property key | Shell name | Alias
--- | --- | --- | ---
100 | PKEY_Address_Country | |
101 | PKEY_Address_CountryCode | |
102 | PKEY_Address_Region | |
103 | PKEY_Address_RegionCode | |
104 | PKEY_Address_Town | |
100 | PKEY_Address_Country | System.Address.Country |
101 | PKEY_Address_CountryCode | System.Address.CountryCode |
102 | PKEY_Address_Region | System.Address.Region |
103 | PKEY_Address_RegionCode | System.Address.RegionCode |
104 | PKEY_Address_Town | System.Address.Town |

Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ Property identifier | Shell property key | Shell name | Alias
114 | PKEY_CachedFileUpdaterContentIdForConflictResolution | System.CachedFileUpdaterContentIdForConflictResolution |
115 | PKEY_RemoteConflictingFile | System.RemoteConflictingFile |
117 | PKEY_StorageProviderSharingStatus | System.StorageProviderSharingStatus |
128 | PKEY_LastSyncWarning | |
131 | PKEY_ContentUri | |
132 | PKEY_ContentId | |
128 | PKEY_LastSyncWarning | System.LastSyncWarning |
131 | PKEY_ContentUri | System.ContentUri |
132 | PKEY_ContentId | System.ContentId |

4 changes: 3 additions & 1 deletion scripts/resolve_names.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@ def __init__(self, path):

def __enter__(self):
"""Make this work with the 'with' statement."""
self._file_object = open(self._path, 'w', encoding='utf-8')
# Set newline to force Windows to generate newline character only.
self._file_object = open(
self._path, 'w', encoding='utf-8', newline='')
self._file_object.write('# winsps-kb property definitions\n')

return self
Expand Down
Loading

0 comments on commit ed44815

Please sign in to comment.