Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.3 KiB

  1. /*****************************************************************************
  2. *
  3. * (C) COPYRIGHT MICROSOFT CORPORATION, 1999 - 2000
  4. *
  5. * TITLE: wiavidd.cpp
  6. *
  7. * VERSION: 1.0
  8. *
  9. * AUTHOR: RickTu
  10. *
  11. * DATE: 10/14/99
  12. *
  13. * DESCRIPTION: Main entry for video common dialog
  14. *
  15. *****************************************************************************/
  16. #include <precomp.h>
  17. #pragma hdrstop
  18. #include "wiavidd.h"
  19. /*****************************************************************************
  20. DeviceDialog
  21. Main entry point for outside callers to our dialog.
  22. *****************************************************************************/
  23. HRESULT WINAPI VideoDeviceDialog( PDEVICEDIALOGDATA pDialogDeviceData )
  24. {
  25. HRESULT hr = E_FAIL;
  26. if (pDialogDeviceData && pDialogDeviceData->cbSize == sizeof(DEVICEDIALOGDATA))
  27. {
  28. InitCommonControls();
  29. hr = (HRESULT)DialogBoxParam( g_hInstance,
  30. MAKEINTRESOURCE(IDD_CAPTURE_DIALOG),
  31. pDialogDeviceData->hwndParent,
  32. CVideoCaptureDialog::DialogProc,
  33. (LPARAM)pDialogDeviceData
  34. );
  35. }
  36. return hr;
  37. }