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

content.c
Go to the documentation of this file.
00001 /*
00002  * Internet control panel applet: content propsheet
00003  *
00004  * Copyright 2010 Detlef Riekenberg
00005  *
00006  * This library is free software; you can redistribute it and/or
00007  * modify it under the terms of the GNU Lesser General Public
00008  * License as published by the Free Software Foundation; either
00009  * version 2.1 of the License, or (at your option) any later version.
00010  *
00011  * This library is distributed in the hope that it will be useful,
00012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00014  * Lesser General Public License for more details.
00015  *
00016  * You should have received a copy of the GNU Lesser General Public
00017  * License along with this library; if not, write to the Free Software
00018  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
00019  *
00020  */
00021 
00022 #define NONAMELESSUNION
00023 
00024 #include <stdarg.h>
00025 #include <windef.h>
00026 #include <winbase.h>
00027 #include <winuser.h>
00028 #include <cryptuiapi.h>
00029 
00030 #include "inetcpl.h"
00031 #include "wine/debug.h"
00032 
00033 WINE_DEFAULT_DEBUG_CHANNEL(inetcpl);
00034 
00035 /*********************************************************************
00036  * display_cert_manager (internal)
00037  *
00038  * call cryptui to display a specific certificate manager dialog
00039  *
00040  */
00041 static BOOL display_cert_manager(HWND parent, DWORD flags)
00042 {
00043     CRYPTUI_CERT_MGR_STRUCT dlg;
00044 
00045     TRACE("(%p, 0x%x)\n", parent, flags);
00046 
00047     ZeroMemory(&dlg, sizeof(CRYPTUI_CERT_MGR_STRUCT));
00048     dlg.dwSize = sizeof(CRYPTUI_CERT_MGR_STRUCT);
00049     dlg.hwndParent = parent;
00050     dlg.dwFlags = flags;
00051 
00052     return CryptUIDlgCertMgr(&dlg);
00053 }
00054 
00055 /*********************************************************************
00056  * LaunchSiteCertDialog (inetcpl.@)
00057  *
00058  * Launch a dialog to manage personal certificates
00059  *
00060  * PARAMS
00061  *  parent  [I] Handle for the parent window
00062  *
00063  * RETURNS
00064  *  Failure: FALSE
00065  *  Success: TRUE
00066  *
00067  * NOTES
00068  *  rundll32 callable function: rundll32 inetcpl.cpl,LaunchSiteCertDialog
00069  *
00070  */
00071 BOOL WINAPI LaunchSiteCertDialog(HWND parent)
00072 {
00073     return display_cert_manager(parent, 0);
00074 }
00075 
00076 /*********************************************************************
00077  * content_dlgproc [internal]
00078  *
00079  */
00080 INT_PTR CALLBACK content_dlgproc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
00081 {
00082     if ((msg != WM_SETCURSOR) && (msg != WM_NCHITTEST) && (msg != WM_MOUSEMOVE))
00083         TRACE("(%p, 0x%08x/%d, 0x%lx, 0x%lx)\n", hwnd, msg, msg, wparam, lparam);
00084 
00085     if (msg == WM_COMMAND)
00086     {
00087         switch (LOWORD(wparam))
00088         {
00089             case IDC_CERT:
00090                 display_cert_manager(hwnd, 0);
00091                 break;
00092 
00093             case IDC_CERT_PUBLISHER:
00094                 display_cert_manager(hwnd, CRYPTUI_CERT_MGR_PUBLISHER_TAB);
00095                 break;
00096         }
00097     }
00098     return FALSE;
00099 }

Generated on Sat May 26 2012 04:19:44 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.