Leaked source code of windows server 2003
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.

75 lines
2.2 KiB

  1. /*******************************************************************************
  2. *
  3. * (C) COPYRIGHT MICROSOFT CORP., 1997
  4. *
  5. * TITLE: GetImage.Cpp
  6. *
  7. * VERSION: 2.0
  8. *
  9. * AUTHOR: ReedB
  10. *
  11. * DATE: 6 Apr, 1998
  12. *
  13. * DESCRIPTION:
  14. * Implements top level GetImageDlg API for the ImageIn device manager.
  15. * These methods execute only on the client side.
  16. *
  17. *******************************************************************************/
  18. #include <windows.h>
  19. #include <wia.h>
  20. #include <wiadevdp.h>
  21. /*******************************************************************************
  22. *
  23. * IWiaDevMgr_GetImageDlg_Proxy
  24. *
  25. * DESCRIPTION:
  26. *
  27. * PARAMETERS:
  28. *
  29. *******************************************************************************/
  30. HRESULT _stdcall IWiaDevMgr_GetImageDlg_Proxy(
  31. IWiaDevMgr __RPC_FAR *This,
  32. HWND hwndParent,
  33. LONG lDeviceType,
  34. LONG lFlags,
  35. LONG lIntent,
  36. IWiaItem *pItemRoot,
  37. BSTR bstrFilename,
  38. GUID *pguidFormat)
  39. {
  40. IWiaGetImageDlg *pWiaGetImageDlg = NULL;
  41. HRESULT hr = CoCreateInstance( CLSID_WiaDefaultUi, NULL, CLSCTX_INPROC_SERVER, IID_IWiaGetImageDlg, (void**)&pWiaGetImageDlg );
  42. if (SUCCEEDED(hr) && pWiaGetImageDlg)
  43. {
  44. hr = pWiaGetImageDlg->GetImageDlg( This, hwndParent, lDeviceType, lFlags, lIntent, pItemRoot, bstrFilename, pguidFormat );
  45. pWiaGetImageDlg->Release();
  46. }
  47. return hr;
  48. }
  49. /*******************************************************************************
  50. *
  51. * IWiaDevMgr_GetImageDlg_Stub
  52. *
  53. * DESCRIPTION:
  54. * Never called.
  55. *
  56. * PARAMETERS:
  57. *
  58. *******************************************************************************/
  59. HRESULT _stdcall IWiaDevMgr_GetImageDlg_Stub(
  60. IWiaDevMgr __RPC_FAR *This,
  61. HWND hwndParent,
  62. LONG lDeviceType,
  63. LONG lFlags,
  64. LONG lIntent,
  65. IWiaItem *pItemRoot,
  66. BSTR bstrFilename,
  67. GUID *pguidFormat)
  68. {
  69. return(S_OK);
  70. }