ReactOS 0.4.15-dev-8241-g63935f8
hotplug.h
Go to the documentation of this file.
1#pragma once
2
3#define WIN32_NO_STATUS
4#include <stdarg.h>
5#include <windef.h>
6#include <winbase.h>
7#include <wingdi.h>
8#include <winuser.h>
9#include <wincon.h>
10#include <winreg.h>
11#include <windowsx.h>
12#include <commctrl.h>
13#include <cpl.h>
14#include <tchar.h>
15#include <limits.h>
16#include <setupapi.h>
17#include <cfgmgr32.h>
18#include <dbt.h>
19#include <regstr.h>
20
21#include "resource.h"
22
23/* Hotplug Flags */
24#define HOTPLUG_DISPLAY_DEVICE_COMPONENTS 0x00000002
25
26// Globals
27extern HINSTANCE hApplet;
28
29// defines
30#define NUM_APPLETS (1)
31
32// global structures
33typedef struct
34{
35 int idIcon;
36 int idName;
40
41typedef struct _HOTPLUG_DATA
42{
50
51// eject.c
54 _In_ PHOTPLUG_DATA pHotplugData);
55
59 _In_ HWND hwndDlg,
60 _In_ UINT uMsg,
63
64// enum.c
65VOID
67 _In_ PHOTPLUG_DATA pHotplugData);
68
69VOID
71 _In_ HWND hwndCfmDeviceList,
72 _In_ PHOTPLUG_DATA pHotplugData);
73
74// hotplug.c
75LONG
78 HWND hwnd,
79 UINT uMsg,
DWORD DEVINST
Definition: cfgmgr32.h:76
WPARAM wParam
Definition: combotst.c:138
LPARAM lParam
Definition: combotst.c:139
LONG(APIENTRY * APPLET_PROC)(HWND, UINT, LPARAM, LPARAM)
Definition: cpl.h:23
#define APIENTRY
Definition: api.h:79
#define CALLBACK
Definition: compat.h:35
unsigned long DWORD
Definition: ntddk_ex.h:95
VOID EnumHotpluggedDevices(_In_ PHOTPLUG_DATA pHotplugData)
Definition: enum.c:150
LONG APIENTRY InitApplet(HWND hwnd, UINT uMsg, LPARAM wParam, LPARAM lParam)
Definition: hotplug.c:380
DEVINST GetDeviceInstForRemoval(_In_ PHOTPLUG_DATA pHotplugData)
Definition: eject.c:13
VOID CfmListEnumDevices(_In_ HWND hwndCfmDeviceList, _In_ PHOTPLUG_DATA pHotplugData)
Definition: enum.c:272
struct APPLET * PAPPLET
struct _HOTPLUG_DATA * PHOTPLUG_DATA
INT_PTR CALLBACK ConfirmRemovalDlgProc(_In_ HWND hwndDlg, _In_ UINT uMsg, _In_ WPARAM wParam, _In_ LPARAM lParam)
Definition: eject.c:84
struct _HOTPLUG_DATA HOTPLUG_DATA
HINSTANCE hApplet
Definition: access.c:17
static HICON
Definition: imagelist.c:84
static const CLSID *static CLSID *static const GUID VARIANT VARIANT *static IServiceProvider DWORD *static HMENU
Definition: ordinal.c:63
#define _In_
Definition: ms_sal.h:308
unsigned int UINT
Definition: ndis.h:50
long LONG
Definition: pedump.c:60
Definition: hotplug.h:34
int idDescription
Definition: hotplug.h:37
int idName
Definition: hotplug.h:36
int idIcon
Definition: hotplug.h:35
APPLET_PROC AppletProc
Definition: hotplug.h:38
HMENU hPopupMenu
Definition: hotplug.h:46
HWND hwndDeviceTree
Definition: hotplug.h:47
HICON hIcon
Definition: hotplug.h:43
DWORD dwFlags
Definition: hotplug.h:48
HICON hIconSm
Definition: hotplug.h:44
SP_CLASSIMAGELIST_DATA ImageListData
Definition: hotplug.h:45
int32_t INT_PTR
Definition: typedefs.h:64
_In_ LONG _In_ HWND hwnd
Definition: winddi.h:4023
LONG_PTR LPARAM
Definition: windef.h:208
UINT_PTR WPARAM
Definition: windef.h:207