home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Internet Business Development Kit / PRODUCT_CD.iso / sqlsvr / odbcsdk / samples / admndemo / admndemo.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-12-07  |  1.9 KB  |  74 lines

  1. //*---------------------------------------------------------------------------------
  2. //|  ODBC System Administrator
  3. //|
  4. //|  This code is furnished on an as-is basis as part of the ODBC SDK and is
  5. //|  intended for example purposes only.
  6. //|
  7. //*---------------------------------------------------------------------------------
  8. #ifndef satool_DEFS
  9. #define satool_DEFS
  10.  
  11. #include <windows.h>
  12. #include <windowsx.h>
  13. #include <string.h>
  14. #include <commdlg.h>
  15. #include "w16macro.h" 
  16. #include "child.h"
  17. #include "menu.h"
  18. #include "standard.h"
  19. #include "errcheck.h"
  20. #include "results.h"
  21. #include "execute.h"
  22. #include "info.h"
  23. #include "ctl3d.h"
  24.  
  25.  
  26. //------------------------------------------------------------------------
  27. //  Defines
  28. //------------------------------------------------------------------------
  29. typedef  void FAR * lpVOID;
  30. typedef BOOL (FAR PASCAL *FPROC)(void FAR * parm);
  31.  
  32. #define    TABLES                1
  33. #define    PROCS                    2
  34.  
  35. #define    IDD_ABOUTBOX        2000
  36.  
  37. #define USER_INITAPP            (WM_USER + 100)
  38. #define USER_RESETHANDLE    (WM_USER + 101)
  39.  
  40. #define    IDB_ABOUTOK            200
  41. #define    IDBIT_PICT            201
  42.  
  43. #define    CONNECTION_WINDOW        1
  44. #define    RESULTS_WINDOW            2
  45.  
  46. #define    DISCONNECTED        0
  47. #define    CONNECTED            1
  48.  
  49.  
  50. #define VSZFile static char vszFile[]=__FILE__;
  51.  
  52. #define GetText(h,s)                                                                     \
  53.     {                                                                                            \
  54.     SendMessage(h, WM_GETTEXT,                                                         \
  55.                     (WORD)SendMessage(h, WM_GETTEXTLENGTH, 0, 0L) + 1,            \
  56.                     (LPARAM)(LPSTR)s);                                                    \
  57.     }
  58. #define IsRadioButtonOn(hwnd) SendMessage(hwnd, BM_GETCHECK, 0, 0L)
  59.  
  60.  
  61.  
  62.  
  63. //------------------------------------------------------------------------
  64. //  Declare function prototypes
  65. //------------------------------------------------------------------------
  66. void Busy(int flag);
  67. LPSTR iLoadString(int id, LPSTR str, int len);
  68. void FAR PASCAL CenterDialog(HWND hdlg);
  69. HWND INTFUN GetEditWindow(CHILDINFO FAR * ci);
  70.  
  71.  
  72.  
  73. #endif
  74.