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.

75 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 1992 Microsoft Corporation
  3. Module Name:
  4. mapembed.c
  5. Abstract:
  6. This module contains the the prototypes of the functions that
  7. perform the mapping between the "embedding" section of win.ini,
  8. and the subkeys of HKEY_CLASSES_ROOT.
  9. This mapping is a hack implemented on Win3.1, that must also
  10. exist on NT.
  11. It is implemnted in the WOW layer, since only some win16 apps
  12. that read or write to the "embedding" section ( Excel and
  13. MsMail) depend on it.
  14. Author:
  15. Jaime F. Sasson (jaimes) 25-Nov-1992
  16. --*/
  17. #if !defined( _MAP_EMBEDDING_SECTION_ )
  18. #define _MAP_EMBEDDING_SECTION_
  19. #define IS_EMBEDDING_SECTION(pszSection) \
  20. ( ! (pszSection == NULL || WOW32_stricmp( pszSection, szEmbedding )) )
  21. BOOL
  22. IsWinIniHelper(
  23. IN LPSTR Filename
  24. );
  25. //
  26. // WARNING Filename argument to IS_WIN_INI must already be lowercase.
  27. //
  28. #define IS_WIN_INI(Filename) ( \
  29. (Filename) \
  30. ? (WOW32_strstr((Filename), szWinDotIni) \
  31. ? IsWinIniHelper((Filename)) \
  32. : FALSE) \
  33. : FALSE)
  34. VOID
  35. UpdateEmbeddingAllKeys( VOID );
  36. VOID
  37. SetLastTimeUpdated( VOID );
  38. VOID
  39. UpdateEmbeddingKey(
  40. IN LPSTR KeyName
  41. );
  42. VOID
  43. UpdateClassesRootSubKey(
  44. IN LPSTR KeyName,
  45. IN LPSTR Value
  46. );
  47. BOOL
  48. WasSectionRecentlyUpdated( VOID );
  49. #endif