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.

46 lines
819 B

  1. /*++
  2. Copyright (c) Microsoft Corporation. All rights reserved.
  3. Module Name:
  4. util.h
  5. Abstract:
  6. This module contains utility routines for the PnP registry merge-restore
  7. routines.
  8. Author:
  9. Jim Cavalaris (jamesca) 2-10-2000
  10. Environment:
  11. User-mode only.
  12. Revision History:
  13. 10-February-2000 jamesca
  14. Creation and initial implementation.
  15. --*/
  16. #define ARRAY_SIZE(array) (sizeof(array)/sizeof(array[0]))
  17. #define SIZECHARS(x) (sizeof((x))/sizeof(TCHAR))
  18. BOOL
  19. pSifUtilFileExists(
  20. IN PCTSTR FileName,
  21. OUT PWIN32_FIND_DATA FindData OPTIONAL
  22. );
  23. BOOL
  24. pSifUtilStringFromGuid(
  25. IN CONST GUID *Guid,
  26. OUT PTSTR GuidString,
  27. IN DWORD GuidStringSize
  28. );