CMACRO.H
上传用户:bangxh
上传日期:2007-01-31
资源大小:42235k
文件大小:5k
源码类别:

Windows编程

开发平台:

Visual C++

  1. /*++
  2. Copyright (c) 1996 Microsoft Corporation
  3. Module Name:
  4.     CMacro.h
  5. Abstract:
  6. Author:
  7. Environment:
  8.     User mode
  9. Revision History :
  10. --*/
  11. #ifndef _CMACRO_H_
  12. #define _CMACRO_H_
  13. #define DEFINE_CONTAINED_IADs_Implementation(cls)                   
  14. STDMETHODIMP                                                          
  15. cls::get_Name(THIS_ BSTR FAR* retval)                                 
  16. {                                                                     
  17.     RRETURN(_pADs->get_Name(retval));                               
  18. }                                                                     
  19.                                                                       
  20. STDMETHODIMP                                                          
  21. cls::get_ADsPath(THIS_ BSTR FAR* retval)                            
  22. {                                                                     
  23.                                                                       
  24.     RRETURN(_pADs->get_ADsPath(retval));                          
  25. }                                                                     
  26.                                                                       
  27. STDMETHODIMP                                                          
  28. cls::get_Class(THIS_ BSTR FAR* retval)                                
  29. {                                                                     
  30.                                                                       
  31.     RRETURN(_pADs->get_Class(retval));                              
  32. }                                                                     
  33.                                                                       
  34.                                                                       
  35. STDMETHODIMP                                                          
  36. cls::get_Parent(THIS_ BSTR FAR* retval)                               
  37. {                                                                     
  38.     RRETURN(_pADs->get_Parent(retval));                             
  39. }                                                                     
  40.                                                                       
  41. STDMETHODIMP                                                          
  42. cls::get_Schema(THIS_ BSTR FAR* retval)                               
  43. {                                                                     
  44.     RRETURN(_pADs->get_Schema(retval));                             
  45. }                                                                     
  46.                                                                       
  47. STDMETHODIMP                                                          
  48. cls::get_GUID(THIS_ BSTR FAR* retval)                                 
  49. {                                                                     
  50.     RRETURN(_pADs->get_GUID(retval));                               
  51. }                                                                     
  52.                                                                       
  53. STDMETHODIMP                                                          
  54. cls::Get(THIS_ BSTR bstrName, VARIANT FAR* pvProp)                    
  55. {                                                                     
  56.     RRETURN(_pADs->Get(bstrName, pvProp));                          
  57. }                                                                     
  58.                                                                       
  59. STDMETHODIMP                                                          
  60. cls::Put(THIS_ BSTR bstrName, VARIANT vProp)                          
  61. {                                                                     
  62.     RRETURN(_pADs->Put(bstrName, vProp));                           
  63. }                                                                     
  64.                                                                       
  65. STDMETHODIMP                                                          
  66. cls::GetInfo(THIS_)                                                   
  67. {                                                                     
  68.     RRETURN(_pADs->GetInfo());                                      
  69. }                                                                     
  70.                                                                       
  71. STDMETHODIMP                                                          
  72. cls::SetInfo(THIS_ )                                                  
  73. {                                                                     
  74.     RRETURN(_pADs->SetInfo());                                      
  75. }
  76. #endif