home *** CD-ROM | disk | FTP | other *** search
/ Tricks of the Windows Gam…ming Gurus (2nd Edition) / Disc2.iso / msdn_vcb / samples / vc98 / sdk / winbase / winnt / pop3 / popfile.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-10-05  |  1.5 KB  |  62 lines

  1.  
  2. /******************************************************************************\
  3. *       This is a part of the Microsoft Source Code Samples.
  4. *       Copyright (C) 1992-1997 Microsoft Corporation.
  5. *       All rights reserved. 
  6. *       This source code is only intended as a supplement to 
  7. *       Microsoft Development Tools and/or WinHelp documentation.
  8. *       See these sources for detailed information regarding the 
  9. *       Microsoft samples programs.
  10. \******************************************************************************/
  11.  
  12. //+---------------------------------------------------------------------------
  13. //
  14. //  File:       popfile.h
  15. //
  16. //  Contents:
  17. //
  18. //  Classes:
  19. //
  20. //  Functions:
  21. //
  22. //----------------------------------------------------------------------------
  23.  
  24. #ifndef __POPFILE_H__
  25. #define __POPFILE_H__
  26.  
  27.  
  28.  
  29.  
  30.  
  31. HANDLE
  32. LockMailDirectory(
  33.     HANDLE          hUserToken,         // Token of user
  34.     PCHAR           pszPath);           // Path to mail directory
  35.  
  36. BOOL
  37. UnlockMailDirectory(
  38.     HANDLE          hLockFile);
  39.  
  40. PPopMailDirectory
  41. ReadMailDirectory(
  42.     HANDLE          hUserToken,
  43.     PCHAR           pszPath);
  44.  
  45. BOOL
  46. CommitMailDirectory(
  47.     PPopMailDirectory   pDir,
  48.     HANDLE              hUserToken);
  49.  
  50. void
  51. FreeMailDirectory(
  52.     PPopMailDirectory   pDir);
  53.  
  54.  
  55. HANDLE
  56. OpenMailMessage(
  57.     DWORD               MessageId,
  58.     PPopMailDirectory   pDir,
  59.     HANDLE              hUserToken);
  60.  
  61. #endif
  62.