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.

54 lines
2.1 KiB

  1. // GetResourceLink.h : Declaration of the CGetResourceLink
  2. #pragma once
  3. // code generated on Tuesday, November 13, 2001, 3:07 PM
  4. [
  5. db_source(L"Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=KaCustomer;Data Source=bsod_db1;Use Procedure for Prepare=1;Auto Translate=True;Packet Size=4096;Workstation ID=TIMRAGAI03;Use Encryption for Data=False;Tag with column collation when possible=False"),
  6. db_command(L"{ ? = CALL dbo.GetResourceLink(?) }")
  7. ]
  8. class CGetResourceLink
  9. {
  10. public:
  11. // In order to fix several issues with some providers, the code below may bind
  12. // columns in a different order than reported by the provider
  13. [ db_column(1, status=m_dwCategoryStatus, length=m_dwCategoryLength) ] TCHAR m_Category[65];
  14. [ db_column(2, status=m_dwLinkTitleStatus, length=m_dwLinkTitleLength) ] TCHAR m_LinkTitle[129];
  15. [ db_column(3, status=m_dwURLStatus, length=m_dwURLLength) ] TCHAR m_URL[129];
  16. // The following wizard-generated data members contain status
  17. // values for the corresponding fields. You
  18. // can use these values to hold NULL values that the database
  19. // returns or to hold error information when the compiler returns
  20. // errors. See Field Status Data Members in Wizard-Generated
  21. // Accessors in the Visual C++ documentation for more information
  22. // on using these fields.
  23. // NOTE: You must initialize these fields before setting/inserting data!
  24. DBSTATUS m_dwCategoryStatus;
  25. DBSTATUS m_dwLinkTitleStatus;
  26. DBSTATUS m_dwURLStatus;
  27. // The following wizard-generated data members contain length
  28. // values for the corresponding fields.
  29. // NOTE: For variable-length columns, you must initialize these
  30. // fields before setting/inserting data!
  31. DBLENGTH m_dwCategoryLength;
  32. DBLENGTH m_dwLinkTitleLength;
  33. DBLENGTH m_dwURLLength;
  34. [ db_param(1, DBPARAMIO_OUTPUT) ] LONG m_RETURN_VALUE;
  35. [ db_param(2, DBPARAMIO_INPUT) ] TCHAR m_Lang[5];
  36. void GetRowsetProperties(CDBPropSet* pPropSet)
  37. {
  38. pPropSet->AddProperty(DBPROP_CANFETCHBACKWARDS, true, DBPROPOPTIONS_OPTIONAL);
  39. pPropSet->AddProperty(DBPROP_CANSCROLLBACKWARDS, true, DBPROPOPTIONS_OPTIONAL);
  40. }
  41. };