Leaked source code of windows server 2003
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

56 lines
1.1 KiB

  1. /* File: D:\WACKER\tdll\sf.h (Created: 27-Nov-1993)
  2. *
  3. * Copyright 1994 by Hilgraeve Inc. -- Monroe, MI
  4. * All rights reserved
  5. *
  6. * $Revision: 1 $
  7. * $Date: 10/05/98 12:38p $
  8. */
  9. #if !defined(INCL_SF)
  10. #define INCL_SF
  11. #if !defined(SF_HANDLE)
  12. #define SF_HANDLE int
  13. #endif
  14. /*
  15. * Function prototypes
  16. */
  17. SF_HANDLE CreateSysFileHdl(void);
  18. int sfOpenSessionFile(const SF_HANDLE, const TCHAR *);
  19. int sfCloseSessionFile(const SF_HANDLE);
  20. int sfFlushSessionFile(const SF_HANDLE);
  21. int sfReleaseSessionFile(const SF_HANDLE);
  22. int sfGetSessionFileName(const SF_HANDLE, const int, TCHAR *);
  23. int sfSetSessionFileName(const SF_HANDLE, const TCHAR *);
  24. int sfGetSessionItem(const SF_HANDLE,
  25. const unsigned int,
  26. unsigned long *,
  27. void *);
  28. int sfPutSessionItem(const SF_HANDLE,
  29. const unsigned int,
  30. const unsigned long,
  31. const void *);
  32. /*
  33. * Error codes
  34. */
  35. #define SF_OK 0
  36. #define SF_ERR_FILE_FORMAT -1
  37. #define SF_ERR_MEMORY_ERROR -2
  38. #define SF_ERR_BAD_PARAMETER -3
  39. #define SF_ERR_FILE_TOO_LARGE -4
  40. #define SF_ERR_FILE_ACCESS -5
  41. #endif