e5293c2761b81df3b3bc67d51631c33c80e9658a
[reactos.git] / 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 BOOL GetApplicationString(LPCWSTR lpKeyName, ATL::CStringW& String);
13 };
14
15 typedef INSTALLED_INFO *PINSTALLED_INFO;
16 typedef BOOL(CALLBACK *APPENUMPROC)(INT ItemIndex, ATL::CStringW &Name, PINSTALLED_INFO Info);
17
18 BOOL EnumInstalledApplications(INT EnumType, BOOL IsUserKey, APPENUMPROC lpEnumProc);
19 BOOL GetApplicationString(HKEY hKey, LPCWSTR lpKeyName, LPWSTR szString);
20
21 BOOL UninstallApplication(INT Index, BOOL bModify);
22 VOID RemoveAppFromRegistry(INT Index);