summaryrefslogtreecommitdiffstats
path: root/public/sdk/inc/lnkobjid.hxx
blob: 057d7cad48e79a7b37aeb3c13e0b396046cf7570 (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
76
77
78
79
//+---------------------------------------------------------------------------
//
//  Microsoft Windows
//  Copyright (C) Microsoft Corporation, 1991 - 1992.
//
//  File:       LnkObjId.Hxx
//
//  Contents:   Common def's for link tracking.
//
//  Classes:
//
//  History:    7-Jan-93 BillMo         Created.
//
//
//----------------------------------------------------------------------------

#ifndef __LNKOBJID_HXX__
#define __LNKOBJID_HXX__

#include <wtypes.h>     // for OBJECTID

#define WSZ_OBJECTID L".OBJECTID"
#define SZ_OBJECTID   ".OBJECTID"

#define MAX_LINEAGE_MATCHES     10

#define TUNNEL_TIME             15 // a name that disappears and reappears
                                   // within this time limit will have the
                                   // object id moved.

#define TUNNEL_MAX_DELETION_LOG_ENTRIES 200 // the number of entries added to
                                            // deletion log before an incremental
                                            // cleanup is performed to remove the
                                            // link tracking entries.

#define FO_CONTINUE_ENUM 0x00000001

typedef struct tagSFindObject
{
    OBJECTID oid;       // In.
    USHORT   cLineage;  // In. Max of lineage matches to return.
                        // 0 -> lookup objectid only
                        // 1 -> return match by ObjectId + 1 lineage id match max.
                        // 2 -> return match by ObjectId + 2 lineage id matches max.
    ULONG    ulFlags;   // FO_CONTINUE_ENUM clear -> query for exact id and then lineage
                        //          as controlled by cLineage
                        // set  -> query for lineage only
                        //          starting at oid.
} SFindObject;

typedef struct tagSFindObjectOut
{
    USHORT  cwcExact;             // nz -> first path returned is exact match
                                  // count of characters in exact match, not
                                  // including nuls.
    USHORT  cMatches;             // 1 -> one lineage match returned, 2->two etc.
    ULONG   ulNextFirstUniquifier;// value to pass in oid.Uniquifier on next call.
    WCHAR   wszPaths[MAX_PATH+1]; // contains (fExact ? 1 : 0) + cMatches paths.
                                  // NOTE!! From wszPaths[0] ... end of system
                                  // buffer contains paths of exact match and
                                  // candidates.
} SFindObjectOut;

#define TM_ENABLE_TUNNEL 0x00000001

typedef struct tagSTunnelMode
{
    ULONG   ulFlags;    // ofs_tunnel_flags =
                        //   (ofs_tunnel_flags & ulMask) | ulFlags;
    ULONG   ulMask;
} STunnelMode;

typedef struct tagSTunnelModeOut
{
    ULONG   ulFlags;
} STunnelModeOut;

#endif