Process Hacker
updater.h File Reference
#include <phdk.h>
#include <phappresource.h>
#include <mxml.h>
#include <windowsx.h>
#include <netlistmgr.h>
#include <winhttp.h>
#include <Wincodec.h>
#include "resource.h"

Go to the source code of this file.

Data Structures

struct  _PH_UPDATER_CONTEXT
 

Macros

#define CINTERFACE
 
#define COBJMACROS
 
#define INITGUID
 
#define UPDATE_MENUITEM   1001
 
#define PH_UPDATEISERRORED   (WM_APP + 101)
 
#define PH_UPDATEAVAILABLE   (WM_APP + 102)
 
#define PH_UPDATEISCURRENT   (WM_APP + 103)
 
#define PH_UPDATENEWER   (WM_APP + 104)
 
#define PH_UPDATESUCCESS   (WM_APP + 105)
 
#define PH_UPDATEFAILURE   (WM_APP + 106)
 
#define WM_SHOWDIALOG   (WM_APP + 150)
 
#define PLUGIN_NAME   L"ProcessHacker.UpdateChecker"
 
#define SETTING_NAME_AUTO_CHECK   (PLUGIN_NAME L".PromptStart")
 
#define MAKEDLLVERULL(major, minor, build, revision)
 
#define Control_Visible(hWnd, visible)   ShowWindow(hWnd, visible ? SW_SHOW : SW_HIDE);
 

Typedefs

typedef enum _PH_UPDATER_STATE PH_UPDATER_STATE
 
typedef struct _PH_UPDATER_CONTEXT PH_UPDATER_CONTEXT
 
typedef struct
_PH_UPDATER_CONTEXT
PPH_UPDATER_CONTEXT
 

Enumerations

enum  _PH_UPDATER_STATE { PhUpdateDefault = 0, PhUpdateDownload = 1, PhUpdateInstall = 2, PhUpdateMaximum = 3 }
 

Functions

VOID ShowUpdateDialog (_In_opt_ PPH_UPDATER_CONTEXT Context)
 
VOID StartInitialCheck (VOID)
 
PPH_STRING PhGetOpaqueXmlNodeText (_In_ mxml_node_t *xmlNode)
 
BOOL PhInstalledUsingSetup (VOID)
 
INT_PTR CALLBACK UpdaterWndProc (_In_ HWND hwndDlg, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 
INT_PTR CALLBACK OptionsDlgProc (_In_ HWND hwndDlg, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
 

Variables

PPH_PLUGIN PluginInstance
 

Macro Definition Documentation

#define CINTERFACE

Definition at line 28 of file updater.h.

#define COBJMACROS

Definition at line 29 of file updater.h.

#define Control_Visible (   hWnd,
  visible 
)    ShowWindow(hWnd, visible ? SW_SHOW : SW_HIDE);

Definition at line 61 of file updater.h.

#define INITGUID

Definition at line 30 of file updater.h.

#define MAKEDLLVERULL (   major,
  minor,
  build,
  revision 
)
Value:
(((ULONGLONG)(major) << 48) | \
((ULONGLONG)(minor) << 32) | \
((ULONGLONG)(build) << 16) | \
((ULONGLONG)(revision) << 0))

Definition at line 55 of file updater.h.

#define PH_UPDATEAVAILABLE   (WM_APP + 102)

Definition at line 45 of file updater.h.

#define PH_UPDATEFAILURE   (WM_APP + 106)

Definition at line 49 of file updater.h.

#define PH_UPDATEISCURRENT   (WM_APP + 103)

Definition at line 46 of file updater.h.

#define PH_UPDATEISERRORED   (WM_APP + 101)

Definition at line 44 of file updater.h.

#define PH_UPDATENEWER   (WM_APP + 104)

Definition at line 47 of file updater.h.

#define PH_UPDATESUCCESS   (WM_APP + 105)

Definition at line 48 of file updater.h.

#define PLUGIN_NAME   L"ProcessHacker.UpdateChecker"

Definition at line 52 of file updater.h.

#define SETTING_NAME_AUTO_CHECK   (PLUGIN_NAME L".PromptStart")

Definition at line 53 of file updater.h.

#define UPDATE_MENUITEM   1001

Definition at line 43 of file updater.h.

#define WM_SHOWDIALOG   (WM_APP + 150)

Definition at line 50 of file updater.h.

Typedef Documentation

Enumeration Type Documentation

Enumerator:
PhUpdateDefault 
PhUpdateDownload 
PhUpdateInstall 
PhUpdateMaximum 

Definition at line 66 of file updater.h.

Function Documentation

INT_PTR CALLBACK OptionsDlgProc ( _In_ HWND  hwndDlg,
_In_ UINT  uMsg,
_In_ WPARAM  wParam,
_In_ LPARAM  lParam 
)

Definition at line 47 of file options.c.

PPH_STRING PhGetOpaqueXmlNodeText ( _In_ mxml_node_t xmlNode)

Definition at line 870 of file appsup.c.

BOOL PhInstalledUsingSetup ( VOID  )

Definition at line 96 of file main.c.

VOID ShowUpdateDialog ( _In_opt_ PPH_UPDATER_CONTEXT  Context)

Definition at line 1166 of file updater.c.

VOID StartInitialCheck ( VOID  )

Definition at line 1184 of file updater.c.

INT_PTR CALLBACK UpdaterWndProc ( _In_ HWND  hwndDlg,
_In_ UINT  uMsg,
_In_ WPARAM  wParam,
_In_ LPARAM  lParam 
)

Variable Documentation

PPH_PLUGIN PluginInstance

Definition at line 113 of file main.c.