[svn] / branches / release-1_3-branch / xvidcore / dshow / src / Configure.cpp Repository:
ViewVC logotype

Annotation of /branches/release-1_3-branch/xvidcore/dshow/src/Configure.cpp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1528 - (view) (download)
Original Path: trunk/xvidcore/dshow/src/Configure.cpp

1 : edgomez 1382 /*****************************************************************************
2 :     *
3 :     * XVID MPEG-4 VIDEO CODEC
4 :     * - Configure from command line -
5 :     *
6 :     * Copyright(C) 2002-2004 Peter Ross <pross@xvid.org>
7 :     *
8 :     * This program is free software ; you can redistribute it and/or modify
9 :     * it under the terms of the GNU General Public License as published by
10 :     * the Free Software Foundation ; either version 2 of the License, or
11 :     * (at your option) any later version.
12 :     *
13 :     * This program is distributed in the hope that it will be useful,
14 :     * but WITHOUT ANY WARRANTY ; without even the implied warranty of
15 :     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 :     * GNU General Public License for more details.
17 :     *
18 :     * You should have received a copy of the GNU General Public License
19 :     * along with this program ; if not, write to the Free Software
20 :     * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 :     *
22 : suxen_drol 1528 * $Id: Configure.cpp,v 1.4 2004-07-28 11:26:16 suxen_drol Exp $
23 : edgomez 1382 *
24 :     ****************************************************************************/
25 :    
26 :    
27 :     #include <windows.h>
28 :     #include <commctrl.h>
29 :     #include "config.h"
30 :     #include "resource.h"
31 :    
32 :    
33 : suxen_drol 1503 static HINSTANCE g_xvid_hInst;
34 : edgomez 1382
35 : suxen_drol 1503
36 : edgomez 1382 int adv_dialog(HWND hwndOwner)
37 :     {
38 :     PROPSHEETPAGE psp [1];
39 :     PROPSHEETHEADER psh;
40 :    
41 :     psp[0].dwSize = sizeof (PROPSHEETPAGE);
42 :     psp[0].dwFlags = PSP_USETITLE;
43 : suxen_drol 1503 psp[0].hInstance = g_xvid_hInst;
44 : edgomez 1382 psp[0].pszTemplate = MAKEINTRESOURCE (IDD_ABOUT);
45 :     psp[0].pszIcon = NULL;
46 :     psp[0].pfnDlgProc = adv_proc;
47 :     psp[0].pszTitle = "About";
48 :     psp[0].lParam = 0;
49 :    
50 :     psh.dwSize = sizeof (PROPSHEETHEADER);
51 :     psh.dwFlags = PSH_PROPSHEETPAGE;
52 :     psh.hwndParent = hwndOwner;
53 : suxen_drol 1503 psh.hInstance = g_xvid_hInst;
54 : edgomez 1382 psh.pszIcon = NULL;
55 :     psh.pszCaption = (LPSTR)"XviD Configuration";
56 :     psh.nPages = sizeof (psp) / sizeof (PROPSHEETPAGE);
57 : suxen_drol 1503 psh.ppsp = psp;
58 : edgomez 1382
59 :     return PropertySheet (&psh);
60 :     }
61 :    
62 :    
63 : suxen_drol 1528 extern "C" void CALLBACK Configure(HWND hWndParent, HINSTANCE hInstParent, LPSTR lpCmdLine, int nCmdShow );
64 : edgomez 1382
65 :     void CALLBACK Configure(HWND hWndParent, HINSTANCE hInstParent, LPSTR lpCmdLine, int nCmdShow )
66 :     {
67 :     InitCommonControls();
68 :     LoadRegistryInfo();
69 :     adv_dialog( GetDesktopWindow() );
70 : suxen_drol 1503 }
71 :    
72 :    
73 :     /* strmbase.lib\dllentry.obj:DllEntryPoint@12 */
74 :     extern "C" BOOL WINAPI DllEntryPoint(HINSTANCE, ULONG, LPVOID);
75 :    
76 :    
77 : suxen_drol 1528 extern "C" BOOL WINAPI DllMain(HINSTANCE hInst, DWORD fdwReason, LPVOID lpvReserved);
78 :    
79 : suxen_drol 1503 BOOL WINAPI DllMain(HINSTANCE hInst, DWORD fdwReason, LPVOID lpvReserved)
80 :     {
81 :     g_xvid_hInst = hInst;
82 :    
83 :     /* Call directshow DllEntryPoint@12 */
84 :     return DllEntryPoint(hInst, fdwReason, lpvReserved);
85 :     }
86 :    

No admin address has been configured
ViewVC Help
Powered by ViewVC 1.0.4