2017-08-02 12:50:53 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <windef.h>
|
|
|
|
#include <atlstr.h>
|
|
|
|
|
|
|
|
struct INSTALLED_INFO
|
|
|
|
{
|
|
|
|
HKEY hRootKey;
|
|
|
|
HKEY hSubKey;
|
|
|
|
ATL::CStringW szKeyName;
|
|
|
|
};
|
2017-09-09 20:38:06 +00:00
|
|
|
|
2017-08-02 12:50:53 +00:00
|
|
|
typedef INSTALLED_INFO *PINSTALLED_INFO;
|
|
|
|
typedef BOOL(CALLBACK *APPENUMPROC)(INT ItemIndex, ATL::CStringW &Name, PINSTALLED_INFO Info);
|
|
|
|
|
|
|
|
BOOL EnumInstalledApplications(INT EnumType, BOOL IsUserKey, APPENUMPROC lpEnumProc);
|
|
|
|
BOOL GetApplicationString(HKEY hKey, LPCWSTR lpKeyName, LPWSTR szString);
|
|
|
|
BOOL GetApplicationString(HKEY hKey, LPCWSTR RegName, ATL::CStringW &String);
|
|
|
|
|
|
|
|
BOOL ShowInstalledAppInfo(INT Index);
|
|
|
|
BOOL UninstallApplication(INT Index, BOOL bModify);
|
|
|
|
VOID RemoveAppFromRegistry(INT Index);
|