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.

40 lines
872 B

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1996.
  5. //
  6. // File: utility.hxx
  7. //
  8. // Contents:
  9. //
  10. // Classes:
  11. //
  12. // Functions:
  13. //
  14. // Coupling:
  15. //
  16. // Notes:
  17. //
  18. // History: 9-24-1996 ericne Created
  19. //
  20. //----------------------------------------------------------------------------
  21. #ifndef _CUTILITY
  22. #define _CUTILITY
  23. #include <windows.h>
  24. #include "filtpars.hxx"
  25. // Minimum size of a character buffer to store a guid
  26. const size_t GuidBufferSize = 37;
  27. // Utility functions
  28. void FreePropVariant( PROPVARIANT *& );
  29. BOOL StrToGuid( LPCTSTR, GUID *);
  30. BOOL HexStrToULONG( LPCTSTR, UINT, ULONG*);
  31. BOOL StrToPropspec( LPCTSTR, PROPSPEC * );
  32. LPTSTR GetStringFromCLSID( REFCLSID, LPTSTR, size_t );
  33. #endif