mirror of https://github.com/lianthony/NT4.0
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
67 lines
1.1 KiB
67 lines
1.1 KiB
|
|
typedef VOID (*CPLFUNC)(HWND hwndCPL);
|
|
|
|
//
|
|
//----- Info needed per APPLEET.
|
|
//
|
|
typedef struct AppletT
|
|
{
|
|
int icon; // icon resource identifier
|
|
int namestring; // name-string resource identifier
|
|
int descstring; // description-string resource identifier
|
|
CPLFUNC DBClickFunc; // Function to call on a DBCLICK
|
|
LPVOID Next; // Internal member
|
|
|
|
} APPLET , * PAPPLET;
|
|
|
|
|
|
|
|
//
|
|
//---- Applet info for all applets and global stuff.
|
|
//
|
|
|
|
#define CPL_INFO_MODEL_NAME ((DWORD)0)
|
|
#define CPL_INFO_APP_INFO ((DWORD)1)
|
|
#define CPL_INFO_INST_P ((DWORD)2)
|
|
#define CPL_INFO_END ((DWORD)3)
|
|
|
|
|
|
typedef union CPLDATAT
|
|
{
|
|
LPVOID Data;
|
|
HINSTANCE * pHinst;
|
|
PAPPLET Applet;
|
|
LPCTSTR ModelName;
|
|
} CPL_DATA, * PCPL_DATA;
|
|
|
|
typedef struct AppletInfoT
|
|
{
|
|
DWORD Type;
|
|
CPL_DATA Data;
|
|
} APPLET_INFO , * PAPPLET_INFO;
|
|
|
|
|
|
extern APPLET_INFO MyAppletInfo[];
|
|
|
|
extern "C" {
|
|
|
|
LONG APIENTRY
|
|
CPlApplet(
|
|
HWND hwndCPL,
|
|
UINT uMsg,
|
|
LPARAM lParam1,
|
|
LPARAM lParam2);
|
|
|
|
BOOL WINAPI
|
|
DllEntryPoint(
|
|
IN PVOID hInstance ,
|
|
IN DWORD ulReason,
|
|
IN PCONTEXT pctx OPTIONAL);
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|