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.

87 lines
1.4 KiB

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 2000, Microsoft Corp. All rights reserved.
  4. //
  5. // FILE
  6. //
  7. // iasdb.h
  8. //
  9. // SYNOPSIS
  10. //
  11. // Declares functions for accessing OLE-DB databases.
  12. //
  13. // MODIFICATION HISTORY
  14. //
  15. // 04/13/2000 Original version.
  16. //
  17. ///////////////////////////////////////////////////////////////////////////////
  18. #ifndef IASDB_H
  19. #define IASDB_H
  20. #if _MSC_VER >= 1000
  21. #pragma once
  22. #endif
  23. #include <unknwn.h>
  24. typedef struct IRowset IRowset;
  25. #ifdef __cplusplus
  26. extern "C" {
  27. #endif
  28. // Const values used in different places
  29. const LONG IAS_WIN2K_VERSION = 0;
  30. const LONG IAS_WHISTLER1_VERSION = 1;
  31. const LONG IAS_WHISTLER_BETA1_VERSION = 2;
  32. const LONG IAS_WHISTLER_BETA2_VERSION = 3;
  33. VOID
  34. WINAPI
  35. IASCreateTmpDirectory();
  36. HRESULT
  37. WINAPI
  38. IASOpenJetDatabase(
  39. IN PCWSTR path,
  40. IN BOOL readOnly,
  41. OUT LPUNKNOWN* session
  42. );
  43. HRESULT
  44. WINAPI
  45. IASExecuteSQLCommand(
  46. IN LPUNKNOWN session,
  47. IN PCWSTR commandText,
  48. OUT IRowset** result
  49. );
  50. HRESULT
  51. WINAPI
  52. IASExecuteSQLFunction(
  53. IN LPUNKNOWN session,
  54. IN PCWSTR functionText,
  55. OUT LONG* result
  56. );
  57. HRESULT
  58. WINAPI
  59. IASCreateJetDatabase(
  60. IN PCWSTR dataSource
  61. );
  62. HRESULT
  63. WINAPI
  64. IASTraceJetError(
  65. PCSTR functionName,
  66. HRESULT errorCode
  67. );
  68. BOOL
  69. WINAPI
  70. IASIsInprocServer();
  71. #ifdef __cplusplus
  72. }
  73. #endif
  74. #endif // IASDB_H