home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / sysmgmt / sms / smsview / nt / smsview.h < prev    next >
C/C++ Source or Header  |  1996-10-15  |  2KB  |  53 lines

  1.  
  2. #define PREFIX "v"
  3. #define INDIRECTACCESS 0
  4. #define COMMON 1
  5. #define MAX_COLUMN_NAME 255 // Max Width Col Name
  6. #define MAX_COLUMNS     254   // Max # of COLUMNS we can Create on our View
  7.                             // DdwMachineID takes one
  8. #define MAX_NAME  255       // SIze of string we can take for the Server name
  9.  
  10. #define DLLExport __declspec(dllexport)
  11.  
  12. #define DISP 1
  13. #define NO_DISP 0
  14.  
  15. //Command Line switches
  16. #define LOGINIDPARAM    'L'
  17. #define PASSWORDPARAM   'P'
  18. #define DBNAMEPARAM     'D'
  19. #define SERVERNAMEPARAM 'S'
  20.  
  21. struct VIEWDEF {
  22.       char ColName[MAX_COLUMN_NAME];
  23.       int  ComSpec;
  24.       };
  25.  
  26. DLLExport int GenViews(DBPROCESS *,DBPROCESS *,char * ,int ,int );
  27. int CheckSQLReturn(DBPROCESS * , char *);
  28. int CreateGroupView(DBPROCESS *);
  29. int CreateSNMPVarbindsView(DBPROCESS *);
  30. int DropView ( DBPROCESS * , char *);
  31. int CreateV(char *, struct VIEWDEF *,DBPROCESS *,int ,int,int ,
  32.             char * , char *,int ,char *, int, int);
  33. LRESULT WINAPI dbConnect(HWND , UINT , WPARAM , LPARAM );
  34. int GetConnectionInfo( int);
  35. int SetupDbConnection();
  36. void   MakeUName(char *,char *,char *) ;
  37. int CheckCommandLine(char * );
  38. void GenResults(int);
  39.  
  40. int  err_handler();
  41.  
  42. DBPROCESS *dbproc = (DBPROCESS *)NULL;
  43.                   /* dbprocess pointer for dblib connection*/
  44. HANDLE hInst;    /* current instance                */
  45. HWND ghWnd;      /* global window handle for handlers    */
  46. HWND errhWnd;    /* global window handle for current error*/
  47. BOOL SqlTestInit();
  48.  
  49.  
  50.  
  51.  
  52.  
  53.