home *** CD-ROM | disk | FTP | other *** search
/ Solo Programadores 22 / SOLO_22.iso / packages / win32ada / data.z / win32-odbcinst.ads < prev    next >
Encoding:
Text File  |  1996-03-15  |  8.6 KB  |  158 lines

  1. -- $Source: /home/harp/1/proto/monoBANK/winnt/win32-odbcinst.ads,v $ 
  2. -- $Revision: 1.8 $ $Date: 96/03/15 12:54:41 $ $Author: stm $ 
  3. -- See end of file for Copyright (c) information.
  4.  
  5. with Win32.Windef;
  6.  
  7. package Win32.Odbcinst is
  8.  
  9.     ODBC_ADD_DSN    : constant := 1;                        -- odbcinst.h:26
  10.     ODBC_CONFIG_DSN : constant := 2;                        -- odbcinst.h:27
  11.     ODBC_REMOVE_DSN : constant := 3;                        -- odbcinst.h:28
  12.  
  13.     function SQLInstallODBC(hwndParent : Win32.Windef.HWND;
  14.                             lpszInfFile: Win32.LPCSTR;
  15.                             lpszSrcPath: Win32.LPCSTR;
  16.                             lpszDrivers: Win32.LPCSTR)
  17.                                          return Win32.BOOL; -- odbcinst.h:48
  18.  
  19.     function SQLManageDataSources(hwndParent: Win32.Windef.HWND) 
  20.         return Win32.BOOL;                                  -- odbcinst.h:52
  21.  
  22.     function SQLCreateDataSource(hwndParent: Win32.Windef.HWND;
  23.                                  lpszDSN   : Win32.LPCSTR)
  24.                                              return Win32.BOOL;
  25.                                                             -- odbcinst.h:53
  26.  
  27.     function SQLGetTranslator(hwnd      : Win32.Windef.HWND;
  28.                               lpszName  : Win32.LPSTR;
  29.                               cbNameMax : Win32.WORD;
  30.                               pcbNameOut: Win32.PWORD;
  31.                               lpszPath  : Win32.LPSTR;
  32.                               cbPathMax : Win32.WORD;
  33.                               pcbPathOut: Win32.PWORD;
  34.                               pvOption  : Win32.PWORD)
  35.                                           return Win32.BOOL;-- odbcinst.h:55
  36.  
  37.     function SQLInstallDriver(lpszInfFile: Win32.LPCSTR;
  38.                               lpszDriver : Win32.LPCSTR;
  39.                               lpszPath   : Win32.LPSTR;
  40.                               cbPathMax  : Win32.WORD;
  41.                               pcbPathOut : Win32.PWORD)
  42.                                            return Win32.BOOL;
  43.                                                             -- odbcinst.h:67
  44.  
  45.     function SQLInstallDriverManager(lpszPath  : Win32.LPSTR;
  46.                                      cbPathMax : Win32.WORD;
  47.                                      pcbPathOut: Win32.PWORD)
  48.                                                  return Win32.BOOL;
  49.                                                             -- odbcinst.h:72
  50.  
  51.     function SQLGetInstalledDrivers(lpszBuf  : Win32.LPSTR;
  52.                                     cbBufMax : Win32.WORD;
  53.                                     pcbBufOut: Win32.PWORD)
  54.                                                return Win32.BOOL;
  55.                                                             -- odbcinst.h:75
  56.  
  57.     function SQLGetAvailableDrivers(lpszInfFile: Win32.LPCSTR;
  58.                                     lpszBuf    : Win32.LPSTR;
  59.                                     cbBufMax   : Win32.WORD;
  60.                                     pcbBufOut  : Win32.PWORD)
  61.                                                  return Win32.BOOL;
  62.                                                             -- odbcinst.h:78
  63.  
  64.     function SQLConfigDataSource(hwndParent    : Win32.Windef.HWND;
  65.                                  fRequest      : Win32.WORD;
  66.                                  lpszDriver    : Win32.LPCSTR;
  67.                                  lpszAttributes: Win32.LPCSTR)
  68.                                                  return Win32.BOOL;
  69.                                                             -- odbcinst.h:82
  70.  
  71.     function SQLRemoveDefaultDataSource return Win32.BOOL;  -- odbcinst.h:86
  72.  
  73.     function SQLWriteDSNToIni(lpszDSN   : Win32.LPCSTR;
  74.                               lpszDriver: Win32.LPCSTR)
  75.                                           return Win32.BOOL;-- odbcinst.h:87
  76.  
  77.     function SQLRemoveDSNFromIni(lpszDSN: Win32.LPCSTR) 
  78.         return Win32.BOOL;                                  -- odbcinst.h:89
  79.  
  80.     function SQLValidDSN(lpszDSN: Win32.LPCSTR) return Win32.BOOL;
  81.                                                             -- odbcinst.h:90
  82.  
  83.     function SQLWritePrivateProfileString(lpszSection : Win32.LPCSTR;
  84.                                           lpszEntry   : Win32.LPCSTR;
  85.                                           lpszString  : Win32.LPCSTR;
  86.                                           lpszFilename: Win32.LPCSTR)
  87.         return Win32.BOOL;                                  -- odbcinst.h:93
  88.  
  89.     function SQLGetPrivateProfileString(lpszSection  : Win32.LPCSTR;
  90.                                         lpszEntry    : Win32.LPCSTR;
  91.                                         lpszDefault  : Win32.LPCSTR;
  92.                                         lpszRetBuffer: Win32.LPSTR;
  93.                                         cbRetBuffer  : Win32.INT;
  94.                                         lpszFilename : Win32.LPCSTR)
  95.         return Win32.INT;                                   -- odbcinst.h:98
  96.  
  97.     function ConfigDSN(hwndParent    : Win32.Windef.HWND;
  98.                        fRequest      : Win32.WORD;
  99.                        lpszDriver    : Win32.LPCSTR;
  100.                        lpszAttributes: Win32.LPCSTR)
  101.                                        return Win32.BOOL;   -- odbcinst.h:108
  102.  
  103.     function ConfigTranslator(hwndParent: Win32.Windef.HWND;
  104.                               pvOption  : Win32.PWORD)
  105.                                           return Win32.BOOL;-- odbcinst.h:113
  106.  
  107. private
  108.  
  109.     pragma Import(Stdcall, SQLINSTALLODBC, "SQLInstallODBC");     -- odbcinst.h:48
  110.     pragma Import(Stdcall, SQLMANAGEDATASOURCES, "SQLManageDataSources");
  111.                                                             -- odbcinst.h:52
  112.     pragma Import(Stdcall, SQLCREATEDATASOURCE, "SQLCreateDataSource");
  113.                                                             -- odbcinst.h:53
  114.     pragma Import(Stdcall, SQLGETTRANSLATOR, "SQLGetTranslator"); -- odbcinst.h:55
  115.     pragma Import(Stdcall, SQLINSTALLDRIVER, "SQLInstallDriver"); -- odbcinst.h:67
  116.     pragma Import(Stdcall, SQLINSTALLDRIVERMANAGER, "SQLInstallDriverManager");
  117.                                                             -- odbcinst.h:72
  118.     pragma Import(Stdcall, SQLGETINSTALLEDDRIVERS, "SQLGetInstalledDrivers");
  119.                                                             -- odbcinst.h:75
  120.     pragma Import(Stdcall, SQLGETAVAILABLEDRIVERS, "SQLGetAvailableDrivers");
  121.                                                             -- odbcinst.h:78
  122.     pragma Import(Stdcall, SQLCONFIGDATASOURCE, "SQLConfigDataSource");
  123.                                                             -- odbcinst.h:82
  124.     pragma Import(Stdcall, SQLREMOVEDEFAULTDATASOURCE, "SQLRemoveDefaultDataSource");
  125.                                                             -- odbcinst.h:86
  126.     pragma Import(Stdcall, SQLWRITEDSNTOINI, "SQLWriteDSNToIni"); -- odbcinst.h:87
  127.     pragma Import(Stdcall, SQLREMOVEDSNFROMINI, "SQLRemoveDSNFromIni");
  128.                                                             -- odbcinst.h:89
  129.     pragma Import(Stdcall, SQLVALIDDSN, "SQLValidDSN");           -- odbcinst.h:90
  130.     pragma Import(Stdcall, SQLWRITEPRIVATEPROFILESTRING, 
  131.                   "SQLWritePrivateProfileString");          -- odbcinst.h:93
  132.     pragma Import(Stdcall, SQLGETPRIVATEPROFILESTRING, 
  133.                   "SQLGetPrivateProfileString");            -- odbcinst.h:98
  134.     pragma Import(Stdcall, ConfigDSN, "ConfigDSN");               -- odbcinst.h:108
  135.     pragma Import(Stdcall, ConfigTranslator, "ConfigTranslator");     
  136.                                                             -- odbcinst.h:113
  137.  
  138. -------------------------------------------------------------------------------
  139. --
  140. -- THIS FILE AND ANY ASSOCIATED DOCUMENTATION IS PROVIDED WITHOUT CHARGE
  141. -- "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING
  142. -- BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR
  143. -- FITNESS FOR A PARTICULAR PURPOSE.  The user assumes the entire risk as to
  144. -- the accuracy and the use of this file.  This file may be used, copied,
  145. -- modified and distributed only by licensees of Microsoft Corporation's
  146. -- WIN32 Software Development Kit in accordance with the terms of the 
  147. -- licensee's End-User License Agreement for Microsoft Software for the
  148. -- WIN32 Development Kit.
  149. --
  150. -- Copyright (c) Intermetrics, Inc. 1995
  151. -- Portions (c) 1985-1994 Microsoft Corporation with permission.
  152. -- Microsoft is a registered trademark and Windows and Windows NT are
  153. -- trademarks of Microsoft Corporation.
  154. --
  155. -------------------------------------------------------------------------------
  156.  
  157. end Win32.Odbcinst;
  158.