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.

33 lines
948 B

  1. //+---------------------------------------------------------------------------
  2. //
  3. // File: authlib.h
  4. //
  5. // Contents: This file contains the functions that are needed by
  6. // both analysis and u2
  7. //
  8. //
  9. //
  10. // History: AshishS Created 7/13/97
  11. //
  12. //----------------------------------------------------------------------------
  13. #ifndef _AUTHLIB_H
  14. #define _AUTHLIB_H
  15. #include <cryptfnc.h>
  16. #define COOKIE_GUID_LENGTH 16
  17. // This function generates a random 16 byte character. It then Hex
  18. // encodes it and NULL terminates the string
  19. BOOL GenerateGUID( TCHAR * pszBuffer, // buffer to copy GUID in
  20. DWORD dwBufLen); // size of above buffer in characters
  21. // the above buffer should be at least COOKIE_GUID_LENGTH * 2 +1 characters
  22. // in length
  23. // This initializes the library - must be called before any other
  24. // functions are called.
  25. BOOL InitAuthLib();
  26. #endif