![]() ![]() ![]() ![]() Ref is less of a question and more of a simple complaint. Internal static extern uint RegQueryValueEx( SECURITY_ATTRIBUTES lpSecurityAttributes, Internal static extern uint RegCreateKeyEx( Uint errorCode = Win32Registry.RegQueryValueEx(hSubkey, valueName, 0, ref subkeyKind, subkeyValueText, ref subKeyValueSize) ![]() Uint subKeyValueSize = (uint)subkeyValueText.Capacity StringBuilder subkeyValueText = new StringBuilder((int)1024) RegistryValueKind subkeyKind = RegistryValueKind.String Internal static string GetValueAsString(uint hSubkey, string valueName) StringBuilder sb = new StringBuilder((int)maxKeySize) ĮrrorCode = Win32Registry.RegEnumKeyEx(hMainKey, i, sb, ref maxKeySize, 0, 0, 0, out writeTime) Uint errorCode = Win32Registry.RegQueryInfoKey(hMainKey, null, 0, 0, out numSubKeys, 0, 0, 0, 0, 0, 0, 0) Internal static string GetSubkeysNames(uint hMainKey) String name = GetValueAsString(sub, "DisplayName") If (names = null) throw new Exception() Įrr = Win32Registry.RegOpenKeyEx(main, subkeyName, 0,, out sub) Uint err = Win32Registry.RegOpenKeyEx(unchecked((uint)hive), keyAddress, 0, Private static List GetInstalledSoftwareFromHive(RegistryHive hive, string keyAddress, bool use64) List.AddRange(GetInstalledSoftwareFromHive(RegistryHive.CurrentUser, KEY, true)) List.AddRange(GetInstalledSoftwareFromHive(RegistryHive.CurrentUser, KEY, false)) List.AddRange(GetInstalledSoftwareFromHive(RegistryHive.LocalMachine, KEY, true)) List.AddRange(GetInstalledSoftwareFromHive(RegistryHive.LocalMachine, KEY, false)) Public static List GetInstalledSoftware() NET 2.0 alone (it's possible in the newest version). This is because you run application as 32bit, but Office is listed on 64bit registry branch. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |