home *** CD-ROM | disk | FTP | other *** search
/ Power GUI Programming with VisualAge C++ / powergui.iso / trialva / ibmcppw / sdk / mapi / win16 / dev / h / strtbl.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-11  |  874 b   |  52 lines

  1. /*
  2.  -  S T R T B L . H
  3.  -
  4.  *  Purpose:
  5.  *      Header file for the Named String Table utility.
  6.  *
  7.  */
  8.  
  9.  
  10. #ifndef ULONG
  11. typedef unsigned long ULONG;
  12. #endif
  13.  
  14. /*
  15.  *  ENTRY - Contains the ID and string of a single STRTBL entry.
  16.  */
  17.  
  18. typedef struct entry
  19. {
  20.     LONG    ulID;
  21.     LPSTR   lpszValue;
  22. } ENTRY, *LPENTRY;
  23.  
  24.  
  25. /*
  26.  *  STRTBL - Defines a string table by Name, Count of Entries and Entry List
  27.  */
  28.  
  29. typedef struct strtbl
  30. {
  31.     LPSTR   lpszName;
  32.     ULONG   cEntrys;
  33.     LPENTRY lpEntry;
  34. } STRTBL;
  35.  
  36.  
  37. /* Function Prototypes for the Named String Table stuff */
  38.  
  39. #ifdef __cplusplus
  40. extern "C" {
  41. #endif
  42.  
  43. LPSTR CDECL GetString(LPSTR, LONG, LPSTR);
  44. BOOL  CDECL GetID(LPSTR, LPSTR, LONG *);
  45. LPSTR CDECL GetRowString(LPSTR,ULONG,LPSTR);
  46. ULONG CDECL GetRowID(LPSTR,ULONG);
  47. ULONG CDECL GetRowCount(LPSTR);
  48.  
  49. #ifdef __cplusplus
  50. }
  51. #endif
  52.