ReactOS 0.4.15-dev-8390-g075894b
telephon.c File Reference
#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
#include <cpl.h>
#include "resource.h"
Include dependency graph for telephon.c:

Go to the source code of this file.

Macros

#define WIN32_NO_STATUS
 

Typedefs

typedef LONG(CALLBACKLPINTERNALCONFIG) (HWND, UINT, LPARAM, LPARAM)
 

Functions

LONG CALLBACK CPlApplet (HWND hwndCPl, UINT uMsg, LPARAM lParam1, LPARAM lParam2)
 
BOOL WINAPI DllMain (HINSTANCE hinstDLL, DWORD dwReason, LPVOID lpvReserved)
 

Macro Definition Documentation

◆ WIN32_NO_STATUS

#define WIN32_NO_STATUS

Definition at line 11 of file telephon.c.

Typedef Documentation

◆ LPINTERNALCONFIG

typedef LONG(CALLBACK * LPINTERNALCONFIG) (HWND, UINT, LPARAM, LPARAM)

Definition at line 19 of file telephon.c.

Function Documentation

◆ CPlApplet()

LONG CALLBACK CPlApplet ( HWND  hwndCPl,
UINT  uMsg,
LPARAM  lParam1,
LPARAM  lParam2 
)

Definition at line 23 of file telephon.c.

24{
25 LPINTERNALCONFIG lpInternalConfig;
26 HINSTANCE hTapi32;
27 CPLINFO *CPlInfo;
28
29 switch (uMsg)
30 {
31 case CPL_INIT:
32 return TRUE;
33
34 case CPL_GETCOUNT:
35 return 1;
36
37 case CPL_INQUIRE:
38 CPlInfo = (CPLINFO*)lParam2;
39 CPlInfo->lData = 0;
40 CPlInfo->idIcon = IDI_CPLSYSTEM;
41 CPlInfo->idName = IDS_CPLSYSTEMNAME;
43 break;
44
45 case CPL_DBLCLK:
46 {
47 hTapi32 = LoadLibraryW(L"tapi32.dll");
48 if (!hTapi32) return FALSE;
49
50 lpInternalConfig = (LPINTERNALCONFIG) GetProcAddress(hTapi32, "internalConfig");
51 if (!lpInternalConfig)
52 {
53 FreeLibrary(hTapi32);
54 return FALSE;
55 }
56
57 lpInternalConfig(hwndCPl, 0, 0, 0);
58 FreeLibrary(hTapi32);
59 return TRUE;
60 }
61 }
62
63 return FALSE;
64}
#define CPL_INQUIRE
Definition: cpl.h:14
#define CPL_DBLCLK
Definition: cpl.h:16
#define CPL_INIT
Definition: cpl.h:12
#define CPL_GETCOUNT
Definition: cpl.h:13
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define IDS_CPLSYSTEMNAME
Definition: resource.h:23
#define IDS_CPLSYSTEMDESCRIPTION
Definition: resource.h:24
#define IDI_CPLSYSTEM
Definition: resource.h:4
#define GetProcAddress(x, y)
Definition: compat.h:753
#define FreeLibrary(x)
Definition: compat.h:748
#define LoadLibraryW(x)
Definition: compat.h:747
#define L(x)
Definition: ntvdm.h:50
Definition: cpl.h:24
LONG_PTR lData
Definition: cpl.h:28
int idName
Definition: cpl.h:26
int idInfo
Definition: cpl.h:27
int idIcon
Definition: cpl.h:25
LONG(CALLBACK * LPINTERNALCONFIG)(HWND, UINT, LPARAM, LPARAM)
Definition: telephon.c:19

◆ DllMain()

BOOL WINAPI DllMain ( HINSTANCE  hinstDLL,
DWORD  dwReason,
LPVOID  lpvReserved 
)

Definition at line 67 of file telephon.c.

68{
69 return TRUE;
70}