[RAPPS] Merged two Installed and Available enum values into one enum
[reactos.git] / reactos / base / applications / rapps / include / installed.h
1 #pragma once
2
3 #include <windef.h>
4 #include <atlstr.h>
5
6 struct INSTALLED_INFO
7 {
8 HKEY hRootKey;
9 HKEY hSubKey;
10 ATL::CStringW szKeyName;
11 };
12 typedef INSTALLED_INFO *PINSTALLED_INFO;
13 typedef BOOL(CALLBACK *APPENUMPROC)(INT ItemIndex, ATL::CStringW &Name, PINSTALLED_INFO Info);
14
15 BOOL EnumInstalledApplications(INT EnumType, BOOL IsUserKey, APPENUMPROC lpEnumProc);
16 BOOL GetApplicationString(HKEY hKey, LPCWSTR lpKeyName, LPWSTR szString);
17 BOOL GetApplicationString(HKEY hKey, LPCWSTR RegName, ATL::CStringW &String);
18
19 BOOL ShowInstalledAppInfo(INT Index);
20 BOOL UninstallApplication(INT Index, BOOL bModify);
21 VOID RemoveAppFromRegistry(INT Index);