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.

73 lines
1.7 KiB

  1. /*--------------------------------------------------------
  2. dbsql.h
  3. Contains declarations for dbsql.lib.
  4. Copyright (C) 1995 Microsoft Corporation
  5. All rights reserved.
  6. Authors:
  7. keithbi Keith Birney
  8. History:
  9. 12-21-95 keithbi Created.
  10. -------------------------------------------------------*/
  11. #ifndef _DBSQL_H_
  12. #define _DBSQL_H_
  13. // THIS_FILE is defined in source files
  14. //
  15. // #if defined(DEBUG) && defined(INLINE)
  16. // #undef THIS_FILE
  17. // static char BASED_CODE DBSQL_H[] = "dbsql.h";
  18. // #define THIS_FILE DBSQL_H
  19. // #endif
  20. #if !defined(DllExport)
  21. #define DllExport __declspec(dllexport)
  22. #endif
  23. #if !defined(DllImport)
  24. #define DllImport __declspec(dllimport)
  25. #endif
  26. #if !defined(_DBSQLDLL_DEFINED)
  27. #if defined(WIN32) && !defined(DBSQL_LIB)
  28. #if defined(_DBSQLDLL)
  29. #define DbSqlDLL DllExport
  30. #else
  31. #define DbSqlDLL DllImport
  32. #endif
  33. #else
  34. #define DbSqlDLL
  35. #endif
  36. #define _DBSQLDLL_DEFINED
  37. #endif
  38. #include <dbsqltyp.h>
  39. #include <dbsqldef.h>
  40. #include <dbsqlutl.h>
  41. #include <dbsqlqry.h>
  42. #include <dbsqlcon.h>
  43. VOID DbSqlDLL LogEvent(WORD wEventLogType, DWORD dwEventId,
  44. DWORD dwSizeOfRawData, PVOID lpRawData,
  45. WORD wNumberOfStrings,...);
  46. extern "C"
  47. {
  48. BOOL DbSqlDLL FInitAcctsqlLib();
  49. VOID DbSqlDLL TerminateAcctsqlLib();
  50. INT DbSqlDLL ExceptionFilter(LPEXCEPTION_POINTERS lpep, CHAR *szFunctionName);
  51. UINT DbSqlDLL GetPublicAcctHandle (HACCT *phacct);
  52. UINT DbSqlDLL GetLoginAcctHandle (HACCT *phacct);
  53. UINT DbSqlDLL GetEveryoneGroupID (HGROUP *phgroup);
  54. UINT DbSqlDLL GetAcctDBConnection (WORD wType, DBPROCESS **dbproc);
  55. UINT DbSqlDLL ReleaseDBConnection (DBPROCESS *dbproc);
  56. } // extern "C"
  57. #endif // _DBSQL_H_