home *** CD-ROM | disk | FTP | other *** search
/ Tutto per Internet / Internet.iso / soft95 / Html / Server / Samples / FormDump / KEYS.H < prev    next >
Encoding:
C/C++ Source or Header  |  1995-12-03  |  1.3 KB  |  47 lines

  1. // keys.h - header file for reusable interface
  2.  
  3. // Abstracted pointer
  4. typedef void * HKEYLIST;
  5.  
  6. //
  7. // Retrieves and decodes inbound form data.  Builds list of keys, and
  8. // pointers to data within a content file.  Returns handle to first
  9. // element in the list.
  10. //
  11.  
  12. HKEYLIST GetKeyList (EXTENSION_CONTROL_BLOCK *pECB);
  13.  
  14. //
  15. // GetKeyInfo extracts the key name and content file values from the
  16. // supplied key, and returns a handle to the next key in the list
  17. //
  18.  
  19. HKEYLIST GetKeyInfo (HKEYLIST hKey, LPCTSTR *plpszKeyName, 
  20.                      LPDWORD pdwOffset, LPDWORD pdwLength,
  21.                      BOOL *pbHasCtrlChars, LPINT pnInstance);
  22.  
  23.  
  24. //
  25. // FindKey sequentially searches the linked list for a specific key.
  26. // The return handle can be used with GetKeyInfo to get more details.
  27. // FindKey returns the very first occurance of a duplicate key.
  28. //
  29.  
  30. HKEYLIST FindKey (HKEYLIST hKeyList, LPCTSTR lpszSearchName);
  31.  
  32.  
  33. //
  34. // FreeKeyList releases all of the memory associated with a key list.
  35. // Also, the content file is deleted. Call this with a handle to the 
  36. // first element in the list.
  37. //
  38.  
  39. void FreeKeyList (HKEYLIST hKeyList);
  40.  
  41. //
  42. // GetContentPath returns the name of the content file associated
  43. // with a key list.  The name is a full path, suitable for CreateFile.
  44. //
  45.  
  46. LPCTSTR GetContentPath (HKEYLIST hKeyList);
  47.