summaryrefslogtreecommitdiffstats
path: root/private/mvdm/wow32/mapembed.h
blob: 1d1d25607316b7dea9a0ed70d049a3a82668b870 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
/*++

Copyright (c) 1992  Microsoft Corporation

Module Name:

    mapembed.c

Abstract:

    This module contains the the prototypes of the functions that
    perform the mapping between the "embedding" section of win.ini,
    and the subkeys of HKEY_CLASSES_ROOT.

    This mapping is a hack implemented on Win3.1, that must also
    exist on NT.
    It is implemnted in the WOW layer, since only some win16 apps
    that read or write to the "embedding" section ( Excel and
    MsMail) depend on it.



Author:


    Jaime F. Sasson (jaimes) 25-Nov-1992



--*/

#if !defined( _MAP_EMBEDDING_SECTION_ )

#define _MAP_EMBEDDING_SECTION_

#define IS_EMBEDDING_SECTION(pszSection)                                     \
    ( ! (pszSection == NULL || _stricmp( pszSection, szEmbedding )) )

BOOL
IsWinIniHelper(
    IN  LPSTR   Filename
    );

//
// WARNING Filename argument to IS_WIN_INI must already be lowercase.
//

#define IS_WIN_INI(Filename) (                                               \
    (Filename)                                                               \
    ? (strstr((Filename), szWinDotIni)                                       \
          ? IsWinIniHelper((Filename))                                       \
          : FALSE)                                                           \
     : FALSE)

VOID
UpdateEmbeddingAllKeys( VOID );

VOID
SetLastTimeUpdated( VOID );

VOID
UpdateEmbeddingKey(
    IN  LPSTR   KeyName
    );

VOID
UpdateClassesRootSubKey(
    IN  LPSTR   KeyName,
    IN  LPSTR   Value
    );

BOOL
WasSectionRecentlyUpdated( VOID );

#endif