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.

48 lines
1.8 KiB

  1. // StructureWapperHelpers.h
  2. //
  3. //////////////////////////////////////////////////////////////////////
  4. #if !defined(AFX_STRUCTUREWAPPERHELPERS_H__A349C060_ED4F_11D2_804A_009027345EE2__INCLUDED_)
  5. #define AFX_STRUCTUREWAPPERHELPERS_H__A349C060_ED4F_11D2_804A_009027345EE2__INCLUDED_
  6. #if _MSC_VER > 1000
  7. #pragma once
  8. #endif // _MSC_VER > 1000
  9. void LogFileModeOut(t_ostream &ros, ULONG LogFileMode);
  10. void EnableFlagsOut(t_ostream &ros, ULONG EnableFlags);
  11. void WnodeFlagsOut(t_ostream &ros, ULONG WnodeFlags);
  12. void GUIDOut(t_ostream &ros, GUID Guid);
  13. void LARGE_INTEGEROut(t_ostream &ros, LARGE_INTEGER Large);
  14. void InitializeTCHARVar(t_string &rtsValue , void *pVar);
  15. void InitializeEnumVar(t_string &rtsValue , void *pVar);
  16. void InitializeHandleVar(t_string &rtsValue , void *pVar);
  17. void InitializeULONGVar(t_string &rtsValue , void *pVar, bool bHex = false);
  18. void InitializeLONGVar(t_string &rtsValue , void *pVar);
  19. void InitializeGUIDVar(t_string &rtsValue , void *pVar);
  20. t_istream &GetALine(t_istream &ris,TCHAR *tcBuffer, int nBufferSize);
  21. t_ostream &PutALine(t_ostream &ros,const TCHAR *tcBuffer, int nBufferSize = -1);
  22. t_istream &GetAChar(t_istream &ris,TCHAR &tc);
  23. t_ostream &PutAULONGVar(t_ostream &ros, ULONG ul, bool bHex = false);
  24. t_ostream &PutALONGVar(t_ostream &ros, LONG l, bool bHex = false);
  25. t_ostream &PutADWORDVar(t_ostream &ros, DWORD dw);
  26. t_ostream &PutAULONG64Var(t_ostream &ros, ULONG64 ul64);
  27. BOOL wGUIDFromString(LPCTSTR lpsz, LPGUID pguid);
  28. int case_insensitive_compare(t_string &r1, t_string &r2);
  29. int case_insensitive_compare(TCHAR *p, t_string &r2);
  30. int case_insensitive_compare(t_string &r1,TCHAR *p );
  31. int case_insensitive_compare(TCHAR *p1,TCHAR *p2);
  32. #endif // !defined(AFX_STRUCTUREWAPPERHELPERS_H__A349C060_ED4F_11D2_804A_009027345EE2__INCLUDED_)