[svn] / trunk / xvidcore / dshow / src / Configure.cpp Repository:
ViewVC logotype

Diff of /trunk/xvidcore/dshow/src/Configure.cpp

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1382, Mon Mar 22 22:36:25 2004 UTC revision 1528, Wed Jul 28 11:26:16 2004 UTC
# Line 19  Line 19 
19   *  along with this program ; if not, write to the Free Software   *  along with this program ; if not, write to the Free Software
20   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA   *  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
21   *   *
22   * $Id: Configure.cpp,v 1.2 2004-03-22 22:36:23 edgomez Exp $   * $Id: Configure.cpp,v 1.4 2004-07-28 11:26:16 suxen_drol Exp $
23   *   *
24   ****************************************************************************/   ****************************************************************************/
25    
# Line 29  Line 29 
29  #include "config.h"  #include "config.h"
30  #include "resource.h"  #include "resource.h"
31    
32  /* "DllEntryPoint@12" in strmbase.lib\dllentry.obj stores the module in g_hInst  
33      this function must be called on DllEntry, inorder for property pages to function  static HINSTANCE g_xvid_hInst;
         likewise, we need g_hInst inorder to display property sheets from command line  
 */  
 extern HINSTANCE g_hInst;  
34    
35    
36  int adv_dialog(HWND hwndOwner)  int adv_dialog(HWND hwndOwner)
# Line 43  Line 40 
40    
41          psp[0].dwSize = sizeof (PROPSHEETPAGE);          psp[0].dwSize = sizeof (PROPSHEETPAGE);
42          psp[0].dwFlags = PSP_USETITLE;          psp[0].dwFlags = PSP_USETITLE;
43          psp[0].hInstance = g_hInst;          psp[0].hInstance = g_xvid_hInst;
44          psp[0].pszTemplate = MAKEINTRESOURCE (IDD_ABOUT);          psp[0].pszTemplate = MAKEINTRESOURCE (IDD_ABOUT);
45          psp[0].pszIcon = NULL;          psp[0].pszIcon = NULL;
46          psp[0].pfnDlgProc = adv_proc;          psp[0].pfnDlgProc = adv_proc;
# Line 53  Line 50 
50          psh.dwSize = sizeof (PROPSHEETHEADER);          psh.dwSize = sizeof (PROPSHEETHEADER);
51          psh.dwFlags = PSH_PROPSHEETPAGE;          psh.dwFlags = PSH_PROPSHEETPAGE;
52          psh.hwndParent = hwndOwner;          psh.hwndParent = hwndOwner;
53          psh.hInstance = g_hInst;          psh.hInstance = g_xvid_hInst;
54          psh.pszIcon = NULL;          psh.pszIcon = NULL;
55          psh.pszCaption = (LPSTR)"XviD Configuration";          psh.pszCaption = (LPSTR)"XviD Configuration";
56          psh.nPages = sizeof (psp) / sizeof (PROPSHEETPAGE);          psh.nPages = sizeof (psp) / sizeof (PROPSHEETPAGE);
57          psh.ppsp = (LPCPROPSHEETPAGE) &psp;          psh.ppsp = psp;
58    
59          return PropertySheet (&psh);          return PropertySheet (&psh);
60  }  }
61    
62    
63    extern "C" void CALLBACK Configure(HWND hWndParent, HINSTANCE hInstParent, LPSTR lpCmdLine, int nCmdShow );
64    
65  void CALLBACK Configure(HWND hWndParent, HINSTANCE hInstParent, LPSTR lpCmdLine, int nCmdShow )  void CALLBACK Configure(HWND hWndParent, HINSTANCE hInstParent, LPSTR lpCmdLine, int nCmdShow )
66  {  {
# Line 70  Line 68 
68          LoadRegistryInfo();          LoadRegistryInfo();
69          adv_dialog( GetDesktopWindow() );          adv_dialog( GetDesktopWindow() );
70  }  }
71    
72    
73    /* strmbase.lib\dllentry.obj:DllEntryPoint@12 */
74    extern "C" BOOL WINAPI DllEntryPoint(HINSTANCE, ULONG, LPVOID);
75    
76    
77    extern "C" BOOL WINAPI DllMain(HINSTANCE hInst, DWORD fdwReason, LPVOID lpvReserved);
78    
79    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    

Legend:
Removed from v.1382  
changed lines
  Added in v.1528

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