2004-06-18 20:43:44 +00:00
|
|
|
#ifndef __CPL_APPWIZ_H
|
|
|
|
#define __CPL_APPWIZ_H
|
|
|
|
|
2007-10-21 16:20:14 +00:00
|
|
|
#define COBJMACROS
|
2007-10-08 15:56:31 +00:00
|
|
|
#include <windows.h>
|
|
|
|
#include <windowsx.h> /* GET_X/Y_LPARAM */
|
|
|
|
#include <commctrl.h>
|
|
|
|
#include <cpl.h>
|
|
|
|
#include <prsht.h>
|
|
|
|
#include <stdlib.h>
|
|
|
|
#include <stdio.h>
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <tchar.h>
|
|
|
|
#include <process.h>
|
|
|
|
#include <prsht.h>
|
|
|
|
#include <shlobj.h>
|
|
|
|
#include <objbase.h>
|
|
|
|
#include <shobjidl.h>
|
|
|
|
#include <shlguid.h>
|
|
|
|
|
|
|
|
#include "resource.h"
|
|
|
|
|
2004-06-18 20:43:44 +00:00
|
|
|
typedef LONG (CALLBACK *CPLAPPLET_PROC)(VOID);
|
|
|
|
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
int idIcon;
|
|
|
|
int idName;
|
|
|
|
int idDescription;
|
|
|
|
CPLAPPLET_PROC AppletProc;
|
|
|
|
} APPLET, *PAPPLET;
|
|
|
|
|
2007-10-04 23:51:10 +00:00
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
WCHAR szTarget[MAX_PATH];
|
|
|
|
WCHAR szWorkingDirectory[MAX_PATH];
|
|
|
|
WCHAR szDescription[MAX_PATH];
|
|
|
|
WCHAR szLinkName[MAX_PATH];
|
|
|
|
}CREATE_LINK_CONTEXT, *PCREATE_LINK_CONTEXT;
|
|
|
|
|
|
|
|
|
2004-06-18 20:43:44 +00:00
|
|
|
extern HINSTANCE hApplet;
|
|
|
|
|
2007-10-03 17:50:43 +00:00
|
|
|
/* remove.c */
|
|
|
|
INT_PTR CALLBACK
|
|
|
|
RemovePageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
|
|
|
|
2007-10-08 15:56:31 +00:00
|
|
|
VOID
|
|
|
|
AddListColumn(HWND hList, LPTSTR Caption);
|
|
|
|
|
|
|
|
VOID
|
2007-10-12 10:12:52 +00:00
|
|
|
FillSoftwareList(HWND hwndDlg, BOOL bShowUpdates, UINT Control);
|
2007-10-08 15:56:31 +00:00
|
|
|
|
|
|
|
VOID
|
2007-10-12 10:12:52 +00:00
|
|
|
AddItemsToViewControl(HWND hwndDlg, UINT Control);
|
2007-10-08 15:56:31 +00:00
|
|
|
|
|
|
|
VOID
|
2007-10-12 10:12:52 +00:00
|
|
|
FindItems(HWND hwndDlg, UINT ListControl, UINT EditControl, UINT RemBtn, UINT InfoBtn);
|
2007-10-08 15:56:31 +00:00
|
|
|
|
|
|
|
VOID
|
2007-10-12 10:12:52 +00:00
|
|
|
CallUninstall(HWND hwndDlg, UINT Control, UINT RemBtn, UINT InfoBtn, BOOL isUpdate);
|
2007-10-08 15:56:31 +00:00
|
|
|
|
|
|
|
VOID
|
2007-10-12 10:12:52 +00:00
|
|
|
GetCurrentView(HWND hwndDlg, UINT ViewControl, UINT ListControl);
|
2007-10-08 15:56:31 +00:00
|
|
|
|
|
|
|
VOID
|
2007-10-12 10:12:52 +00:00
|
|
|
CallInformation(HWND hwndDlg, HWND infDlg, UINT Control);
|
|
|
|
|
|
|
|
VOID
|
|
|
|
ShowPopupMenu(HWND hwndDlg, UINT ResMenu, INT xPos, INT yPos, UINT Control);
|
|
|
|
|
|
|
|
BOOL
|
|
|
|
IsItemSelected(HWND hwndDlg, UINT Control);
|
2007-10-08 15:56:31 +00:00
|
|
|
|
|
|
|
VOID
|
2007-10-12 10:12:52 +00:00
|
|
|
ButtonStatus(HWND hwndDlg, BOOL Status, UINT RemBtn, UINT InfoBtn);
|
2007-10-08 15:56:31 +00:00
|
|
|
|
2007-10-03 17:50:43 +00:00
|
|
|
/* add.c */
|
|
|
|
INT_PTR CALLBACK
|
|
|
|
AddPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
|
|
|
|
|
|
|
/* rossetup.c */
|
|
|
|
INT_PTR CALLBACK
|
|
|
|
RosPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
|
|
|
|
|
|
|
/* createlink.c */
|
|
|
|
INT_PTR CALLBACK
|
|
|
|
WelcomeDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
|
|
|
|
|
|
|
INT_PTR CALLBACK
|
|
|
|
FinishDlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
|
|
|
|
|
|
|
LONG CALLBACK
|
|
|
|
NewLinkHere(HWND hwndCPl, UINT uMsg, LPARAM lParam1, LPARAM lParam2);
|
|
|
|
|
2007-10-08 15:56:31 +00:00
|
|
|
/* updates.c */
|
|
|
|
INT_PTR CALLBACK
|
|
|
|
UpdatesPageProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam);
|
|
|
|
|
2004-06-18 20:43:44 +00:00
|
|
|
void ShowLastWin32Error(HWND hWndOwner);
|
|
|
|
|
|
|
|
#endif /* __CPL_APPWIZ_H */
|
|
|
|
|
|
|
|
/* EOF */
|