ReactOS Fundraising Campaign 2012
 
€ 4,410 / € 30,000

Information | Donate

Home | Info | Community | Development | myReactOS | Contact Us

  1. Home
  2. Community
  3. Development
  4. myReactOS
  5. Fundraiser 2012

  1. Main Page
  2. Alphabetical List
  3. Data Structures
  4. Directories
  5. File List
  6. Data Fields
  7. Globals
  8. Related Pages

ReactOS Development > Doxygen

ncpa.c
Go to the documentation of this file.
00001 /*
00002  * PROJECT:         ReactOS Network Control Panel
00003  * FILE:            dll/cpl/ncpa/ncpa.c
00004  * PURPOSE:         ReactOS Network Control Panel
00005  * PROGRAMMER:      Gero Kuehn (reactos.filter@gkware.com)
00006  * UPDATE HISTORY:
00007  *      07-18-2004  Created
00008  */
00009 
00010 #include <stdlib.h>
00011 #include <stdio.h>
00012 #include <stdarg.h>
00013 #include <windows.h>
00014 #include <shellapi.h>
00015 #include <cpl.h>
00016 
00017 
00018 LONG CALLBACK
00019 DisplayApplet(VOID)
00020 {
00021     WCHAR szParameters[160];
00022     // FIXME: Use correct path
00023     //::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\::{21EC2020-3AEA-1069-A2DD-08002B30309D}\::{7007ACC7-3202-11D1-AAD2-00805FC1270E}
00024 
00025     wcscpy(szParameters, L"/n,::{20D04FE0-3AEA-1069-A2D8-08002B30309D}\\::{7007ACC7-3202-11D1-AAD2-00805FC1270E}");
00026 
00027     return (INT_PTR) ShellExecuteW(NULL, L"open", L"explorer.exe", szParameters, NULL, SW_SHOWDEFAULT) > 32;
00028 }
00029 
00030 /* Control Panel Callback */
00031 LONG CALLBACK
00032 CPlApplet(HWND hwndCPl, UINT uMsg, LPARAM lParam1, LPARAM lParam2)
00033 {
00034     UNREFERENCED_PARAMETER(hwndCPl);
00035     switch (uMsg)
00036     {
00037 
00038     case CPL_INIT:
00039         {
00040             return TRUE;
00041         }
00042 
00043     case CPL_GETCOUNT:
00044         {
00045             return 1;
00046         }
00047     case CPL_DBLCLK:
00048         {
00049             DisplayApplet();
00050             break;
00051         }
00052     }
00053 
00054     return FALSE;
00055 }
00056 
00057 
00058 BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD dwReason, LPVOID lpvReserved)
00059 {
00060     UNREFERENCED_PARAMETER(lpvReserved);
00061 
00062     switch(dwReason)
00063     {
00064     case DLL_PROCESS_ATTACH:
00065     case DLL_THREAD_ATTACH:
00066         break;
00067     }
00068 
00069     return TRUE;
00070 }

Generated on Sun May 27 2012 04:21:00 for ReactOS by doxygen 1.7.6.1

ReactOS is a registered trademark or a trademark of ReactOS Foundation in the United States and other countries.