2013-02-17 15:51:07 +00:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#define WIN32_NO_STATUS
|
|
|
|
#include <stdarg.h>
|
|
|
|
#include <windef.h>
|
|
|
|
#include <winbase.h>
|
|
|
|
#include <wingdi.h>
|
|
|
|
#include <winuser.h>
|
|
|
|
#include <wincon.h>
|
2020-03-30 21:11:44 +00:00
|
|
|
#include <winreg.h>
|
2020-04-04 16:13:03 +00:00
|
|
|
#include <windowsx.h>
|
2013-02-17 15:51:07 +00:00
|
|
|
#include <commctrl.h>
|
|
|
|
#include <cpl.h>
|
|
|
|
#include <tchar.h>
|
|
|
|
#include <limits.h>
|
2020-03-30 21:11:44 +00:00
|
|
|
#include <setupapi.h>
|
|
|
|
#include <cfgmgr32.h>
|
|
|
|
#include <dbt.h>
|
2020-04-04 16:13:03 +00:00
|
|
|
#include <regstr.h>
|
2013-02-17 15:51:07 +00:00
|
|
|
|
|
|
|
#include "resource.h"
|
|
|
|
|
2020-04-04 16:13:03 +00:00
|
|
|
/* Hotplug Flags */
|
|
|
|
#define HOTPLUG_DISPLAY_DEVICE_COMPONENTS 0x00000002
|
|
|
|
|
2013-02-17 15:51:07 +00:00
|
|
|
// Globals
|
|
|
|
extern HINSTANCE hApplet;
|
|
|
|
|
|
|
|
// defines
|
|
|
|
#define NUM_APPLETS (1)
|
|
|
|
|
|
|
|
// global structures
|
|
|
|
typedef struct
|
|
|
|
{
|
|
|
|
int idIcon;
|
|
|
|
int idName;
|
|
|
|
int idDescription;
|
|
|
|
APPLET_PROC AppletProc;
|
|
|
|
}APPLET, *PAPPLET;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// hotplug.c
|
|
|
|
LONG
|
|
|
|
APIENTRY
|
|
|
|
InitApplet(
|
|
|
|
HWND hwnd,
|
|
|
|
UINT uMsg,
|
|
|
|
LPARAM wParam,
|
|
|
|
LPARAM lParam);
|