ReactOS  0.4.15-dev-5487-ge7bbbf0
ncpa.c File Reference
#include <stdarg.h>
#include <windef.h>
#include <winbase.h>
#include <winuser.h>
#include <shellapi.h>
#include <cpl.h>
Include dependency graph for ncpa.c:

Go to the source code of this file.

Macros

#define WIN32_NO_STATUS
 

Functions

LONG CALLBACK DisplayApplet (VOID)
 
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 10 of file ncpa.c.

Function Documentation

◆ CPlApplet()

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

Definition at line 28 of file ncpa.c.

29 {
30  UNREFERENCED_PARAMETER(hwndCPl);
31  switch (uMsg)
32  {
33 
34  case CPL_INIT:
35  {
36  return TRUE;
37  }
38 
39  case CPL_GETCOUNT:
40  {
41  return 1;
42  }
43  case CPL_DBLCLK:
44  {
45  DisplayApplet();
46  break;
47  }
48  }
49 
50  return FALSE;
51 }
#define TRUE
Definition: types.h:120
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:317
#define CPL_DBLCLK
Definition: cpl.h:16
#define FALSE
Definition: types.h:117
#define CPL_INIT
Definition: cpl.h:12
LONG CALLBACK DisplayApplet(VOID)
Definition: ncpa.c:19
#define CPL_GETCOUNT
Definition: cpl.h:13

◆ DisplayApplet()

LONG CALLBACK DisplayApplet ( VOID  )

Definition at line 19 of file ncpa.c.

20 {
21  WCHAR szParameters[] = L"/n,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\\::{21EC2020-3AEA-1069-A2DD-08002B30309D}\\::{7007ACC7-3202-11D1-AAD2-00805FC1270E}";
22 
23  return (INT_PTR) ShellExecuteW(NULL, L"open", L"explorer.exe", szParameters, NULL, SW_SHOWDEFAULT) > 32;
24 }
#define SW_SHOWDEFAULT
Definition: winuser.h:774
int32_t INT_PTR
Definition: typedefs.h:64
#define L(x)
Definition: ntvdm.h:50
__wchar_t WCHAR
Definition: xmlstorage.h:180
#define NULL
Definition: types.h:112
HINSTANCE WINAPI ShellExecuteW(HWND hwnd, LPCWSTR lpVerb, LPCWSTR lpFile, LPCWSTR lpParameters, LPCWSTR lpDirectory, INT nShowCmd)
Definition: shlexec.cpp:2346

Referenced by CPlApplet().

◆ DllMain()

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

Definition at line 54 of file ncpa.c.

55 {
57 
58  switch(dwReason)
59  {
60  case DLL_PROCESS_ATTACH:
61  case DLL_THREAD_ATTACH:
62  break;
63  }
64 
65  return TRUE;
66 }
#define TRUE
Definition: types.h:120
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:317
#define DLL_THREAD_ATTACH
Definition: compat.h:132
#define DLL_PROCESS_ATTACH
Definition: compat.h:131
static IN DWORD IN LPVOID lpvReserved
DWORD dwReason
Definition: misc.cpp:154