blob: 20ef4ee48c9f23d0c08319436bcf486291e4ad00 (
plain)
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
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
// ============================================================
//
// AssemblyVersion.hpp
//
//
// Defines the AssemblyVersion class
//
// ============================================================
#ifndef __BINDER__ASSEMBLY_VERSION_HPP__
#define __BINDER__ASSEMBLY_VERSION_HPP__
#include "bindertypes.hpp"
#include "textualidentityparser.hpp"
namespace BINDER_SPACE
{
class AssemblyVersion
{
public:
inline AssemblyVersion();
inline ~AssemblyVersion();
inline DWORD GetMajor();
inline DWORD GetMinor();
inline DWORD GetBuild();
inline DWORD GetRevision();
inline void SetFeatureVersion(/* in */ DWORD dwMajor,
/* in */ DWORD dwMinor);
inline void SetServiceVersion(/* in */ DWORD dwBuild,
/* in */ DWORD dwRevision);
inline BOOL SetServiceVersion(/* in */ LPCWSTR pwzVersionStr);
inline BOOL SetVersion(/* in */ LPCWSTR pwzVersionStr);
inline void SetVersion(AssemblyVersion *pAssemblyVersion);
inline BOOL IsLargerFeatureVersion(/* in */ AssemblyVersion *pAssemblyVersion);
inline BOOL IsEqualFeatureVersion(/* in */ AssemblyVersion *pAssemblyVersion);
inline BOOL IsSmallerFeatureVersion(/* in */ AssemblyVersion *pAssemblyVersion);
inline BOOL IsEqualServiceVersion(/* in */ AssemblyVersion *pAssemblyVersion);
inline BOOL IsLargerServiceVersion(/* in */ AssemblyVersion *pAssemblyVersion);
inline BOOL Equals(AssemblyVersion *pAssemblyVersion);
inline BOOL IsSmallerOrEqual(AssemblyVersion *pAssemblyVersion);
inline BOOL IsLargerOrEqual(AssemblyVersion *pAssemblyVersion);
protected:
DWORD m_dwMajor;
DWORD m_dwMinor;
DWORD m_dwBuild;
DWORD m_dwRevision;
};
#include "assemblyversion.inl"
};
#endif
|