home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / dbmsg / oledb / tablecopy / property.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-12  |  2.4 KB  |  58 lines

  1. //-----------------------------------------------------------------------------
  2. // Microsoft OLE DB TABLECOPY Sample
  3. // Copyright (C) 1995-1998 Microsoft Corporation
  4. //
  5. // @doc
  6. //
  7. // @module PROPERTY.H
  8. //
  9. //-----------------------------------------------------------------------------
  10. #ifndef _PROPERTY_H_
  11. #define _PROPERTY_H_
  12.  
  13.  
  14. ///////////////////////////////////////////////////////////////
  15. // Includes
  16. //
  17. ///////////////////////////////////////////////////////////////
  18. #include "common.h"
  19.  
  20.  
  21. ////////////////////////////////////////////////////////////////////////////
  22. // Properties
  23. //
  24. ////////////////////////////////////////////////////////////////////////////
  25.  
  26. //Property Info
  27. HRESULT GetPropInfo(IUnknown* pIUnknown, DBPROPID PropertyID, GUID guidPropertySet, DBPROPINFO** ppPropInfo);
  28. DBPROPFLAGS GetPropInfoFlags(IUnknown* pIUnknown, DBPROPID PropertyID, GUID guidPropertySet);
  29.  
  30. //Property Flags
  31. BOOL IsSupportedProperty(IUnknown* pIUnknown, DBPROPID PropertyID, GUID guidPropertySet);
  32. BOOL IsSettableProperty(IUnknown* pIUnknown, DBPROPID PropertyID, GUID guidPropertySet);
  33.  
  34. //Get Property
  35. HRESULT GetProperty(IUnknown* pIUnknown, DBPROPID PropertyID, GUID guidPropertySet,    WCHAR** ppwszValue);
  36. HRESULT GetProperty(IUnknown* pIUnknown, DBPROPID PropertyID, GUID guidPropertySet, DBPROP** ppProperty);
  37. HRESULT GetProperty(IUnknown* pIUnknown, DBPROPID PropertyID, GUID guidPropertySet, WCHAR* pwszValue);
  38. HRESULT GetProperty(IUnknown* pIUnknown, DBPROPID PropertyID, GUID guidPropertySet, ULONG* pcValue);
  39. HRESULT GetProperty(IUnknown* pIUnknown, DBPROPID PropertyID, GUID guidPropertySet,    BOOL* pbValue);
  40.  
  41. //Set Property
  42. HRESULT SetProperty(DBPROPID PropertyID, GUID guidPropertySet, ULONG* pcPropSets, DBPROPSET** prgPropSets, DBTYPE wType, ULONG ulValue, DBPROPOPTIONS dwOptions = DBPROPOPTIONS_REQUIRED, DBID colid = DB_NULLID);
  43. HRESULT SetProperty(DBPROPID PropertyID, GUID guidPropertySet, ULONG* pcPropSets, DBPROPSET** prgPropSets, DBTYPE wType, void* pv, DBPROPOPTIONS dwOptions = DBPROPOPTIONS_REQUIRED, DBID colid = DB_NULLID);
  44.  
  45. //Free Property
  46. HRESULT FreeProperties(ULONG cPropSets, DBPROPSET* rgPropSets);
  47. HRESULT FreeProperties(ULONG cProperties, DBPROP* rgProperties);
  48.     
  49. //Variants
  50. HRESULT InitVariants(ULONG cVariants, VARIANT* rgVariants);
  51. HRESULT FreeVariants(ULONG cVariants, VARIANT* rgVariants);
  52.  
  53. //Restrictions
  54. HRESULT SetRestriction(VARIANT* pRestriction, WCHAR* pwszValue);
  55.  
  56.  
  57. #endif    //_PROPERTY_H_
  58.