X-Git-Url: https://git.reactos.org/?p=reactos.git;a=blobdiff_plain;f=base%2Fapplications%2Frapps%2Frapps.h;h=853d991eb30e95625480f389c41f4863ce661e8c;hp=261813af0fef49b5d56d13195c0540dbe0a69227;hb=7a0c3bde06485b108dfcb053ba4ecaa4ac629b5c;hpb=fc902e6f585c0e60a056ddc6efc06685adb03d3e diff --git a/base/applications/rapps/rapps.h b/base/applications/rapps/rapps.h index 261813af0fe..853d991eb30 100644 --- a/base/applications/rapps/rapps.h +++ b/base/applications/rapps/rapps.h @@ -1,10 +1,25 @@ -#include -#include +#ifndef _RAPPS_H +#define _RAPPS_H + +#include + +#define WIN32_NO_STATUS +#define _INC_WINDOWS +#define COM_NO_WINDOWS_H +#define COBJMACROS + +#include +#include +#include +#include +#include +#include +#include #include -#include #include -#include -#include +#include +#include +#include #include @@ -92,7 +107,7 @@ typedef struct } SETTINGS_INFO, *PSETTINGS_INFO; /* available.c */ -typedef BOOL (CALLBACK *AVAILENUMPROC)(APPLICATION_INFO Info); +typedef BOOL (CALLBACK *AVAILENUMPROC)(PAPPLICATION_INFO Info); BOOL EnumAvailableApplications(INT EnumType, AVAILENUMPROC lpEnumProc); BOOL ShowAvailableAppInfo(INT Index); BOOL UpdateAppsDB(VOID); @@ -101,7 +116,7 @@ BOOL UpdateAppsDB(VOID); BOOL InstallApplication(INT Index); /* installed.c */ -typedef BOOL (CALLBACK *APPENUMPROC)(INT ItemIndex, LPWSTR lpName, INSTALLED_INFO Info); +typedef BOOL (CALLBACK *APPENUMPROC)(INT ItemIndex, LPWSTR lpName, PINSTALLED_INFO Info); BOOL EnumInstalledApplications(INT EnumType, BOOL IsUserKey, APPENUMPROC lpEnumProc); BOOL GetApplicationString(HKEY hKey, LPWSTR lpKeyName, LPWSTR lpString); BOOL ShowInstalledAppInfo(INT Index); @@ -115,7 +130,7 @@ extern HINSTANCE hInst; extern INT SelectedEnumType; extern SETTINGS_INFO SettingsInfo; VOID SaveSettings(HWND hwnd); -VOID FillDafaultSettings(PSETTINGS_INFO pSettingsInfo); +VOID FillDefaultSettings(PSETTINGS_INFO pSettingsInfo); /* listview.c */ extern HWND hListView; @@ -138,8 +153,9 @@ int GetClientWindowWidth(HWND hwnd); int GetClientWindowHeight(HWND hwnd); VOID CopyTextToClipboard(LPCWSTR lpszText); VOID SetWelcomeText(VOID); -VOID ShowPopupMenu(HWND hwnd, UINT MenuID); +VOID ShowPopupMenu(HWND hwnd, UINT MenuID, UINT DefaultItem); BOOL StartProcess(LPWSTR lpPath, BOOL Wait); +BOOL GetStorageDirectory(PWCHAR lpDirectory, DWORD cch); BOOL ExtractFilesFromCab(LPWSTR lpCabName, LPWSTR lpOutputPath); VOID InitLogs(VOID); VOID FreeLogs(VOID); @@ -183,3 +199,5 @@ VOID ToolBarOnGetDispInfo(LPTOOLTIPTEXT lpttt); extern HWND hTreeView; BOOL CreateTreeView(HWND hwnd); HTREEITEM TreeViewAddItem(HTREEITEM hParent, LPWSTR lpText, INT Image, INT SelectedImage, LPARAM lParam); + +#endif /* _RAPPS_H */