#include "hotplug.h"
#include <strsafe.h>
Go to the source code of this file.
◆ ConfirmRemovalDlgProc()
Definition at line 84 of file eject.c.
89{
91
93
94 switch (uMsg)
95 {
97 {
99
102
104
108
110
112 }
113
115 {
117 {
121 break;
122
125 break;
126 }
127
128 break;
129 }
130
133 break;
134 }
135
137}
#define IDC_CONFIRM_STOP_DEVICE_LIST
DEVINST GetDeviceInstForRemoval(_In_ PHOTPLUG_DATA pHotplugData)
static VOID FillConfirmDeviceList(_In_ HWND hwndCfmDeviceList, _In_ PHOTPLUG_DATA pHotplugData)
static VOID SafeRemoveDevice(_In_ DEVINST DevInst, _In_opt_ HWND hwndDlg)
struct _HOTPLUG_DATA * PHOTPLUG_DATA
#define ListView_SetImageList(hwnd, himl, iImageList)
SP_CLASSIMAGELIST_DATA ImageListData
#define GetWindowLongPtrW
HWND WINAPI GetDlgItem(_In_opt_ HWND, _In_ int)
#define SetWindowLongPtrW
BOOL WINAPI EndDialog(_In_ HWND, _In_ INT_PTR)
Referenced by SafeRemovalDlgProc().
◆ FillConfirmDeviceList()
Definition at line 42 of file eject.c.
45{
47
52
54
56}
VOID CfmListEnumDevices(_In_ HWND hwndCfmDeviceList, _In_ PHOTPLUG_DATA pHotplugData)
#define ListView_InsertColumn(hwnd, iCol, pcol)
#define ListView_SetColumnWidth(hwnd, iCol, cx)
#define LVSCW_AUTOSIZE_USEHEADER
Referenced by ConfirmRemovalDlgProc().
◆ GetDeviceInstForRemoval()
Definition at line 13 of file eject.c.
15{
18
21 return 0;
22
23
25 while (hParentItem)
26 {
29 }
30
34
36
38}
#define TreeView_GetParent(hwnd, hitem)
#define TreeView_GetSelection(hwnd)
#define TreeView_GetItem(hwnd, pitem)
Referenced by CfmListEnumDevices(), and ConfirmRemovalDlgProc().
◆ SafeRemoveDevice()
Definition at line 60 of file eject.c.
63{
66
69 {
72
73
74
77
79 }
80}
enum _PNP_VETO_TYPE PNP_VETO_TYPE
CONFIGRET WINAPI CM_Request_Device_EjectW(_In_ DEVINST dnDevInst, _Out_opt_ PPNP_VETO_TYPE pVetoType, _Out_writes_opt_(ulNameLength) LPWSTR pszVetoName, _In_ ULONG ulNameLength, _In_ ULONG ulFlags)
#define IDS_EJECT_ERROR_FORMAT
STRSAFEAPI StringCbPrintfW(STRSAFE_LPWSTR pszDest, size_t cbDest, STRSAFE_LPCWSTR pszFormat,...)
int WINAPI LoadStringW(_In_opt_ HINSTANCE hInstance, _In_ UINT uID, _Out_writes_to_(cchBufferMax, return+1) LPWSTR lpBuffer, _In_ int cchBufferMax)
int WINAPI MessageBoxW(_In_opt_ HWND hWnd, _In_opt_ LPCWSTR lpText, _In_opt_ LPCWSTR lpCaption, _In_ UINT uType)
#define MB_ICONEXCLAMATION
Referenced by ConfirmRemovalDlgProc().