-
Notifications
You must be signed in to change notification settings - Fork 21
/
cgfiltyp.h
98 lines (71 loc) · 2.47 KB
/
cgfiltyp.h
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
//- -----------------------------------------------------------------
//- (C) Copyright 2000 Blake V. Miller
//- All Rights Reserved.
//- -----------------------------------------------------------------
//- File : CGFILTYP.H
//- Author : Blake Miller
//- Version : June 16, 2000
//- Purpose : File Type Access
//- -----------------------------------------------------------------
#if _MSC_VER > 1000
#pragma once
#endif
#ifndef __CGFILTYP_H__
#define __CGFILTYP_H__
#ifdef __cplusplus
class CGCFileTypeAccess
{
public:
CGCFileTypeAccess();
virtual ~CGCFileTypeAccess();
virtual void ClearAllData(void);
//- ----------------------------------------
//- Effect Registry
virtual BOOL RegSetAllInfo (void);
virtual BOOL RegSetExtension (void);
virtual BOOL RegSetDocumentType (void);
virtual BOOL RegSetCLSID (void);
virtual BOOL RegSetShellInfo (void);
//- ----------------------------------------
//- Modify Member Variables
void SetExtension (LPCTSTR);
void GetExtension (CString&) const;
void SetContentType (LPCTSTR);
void GetContentType (CString&) const;
void SetShellOpenCommand (LPCTSTR);
void GetShellOpenCommand (CString&) const;
void SetShellNewCommand (LPCTSTR);
void GetShellNewCommand (CString&) const;
void SetShellNewFileName (LPCTSTR);
void GetShellNewFileName (CString&) const;
void SetDocumentClassName (LPCTSTR);
void GetDocumentClassName (CString&) const;
void SetDocumentDescription (LPCTSTR);
void GetDocumentDescription (CString&) const;
void SetDocumentCLSID (LPCTSTR);
void GetDocumentCLSID (CString&) const;
void SetDocumentCurrentVersion (LPCTSTR);
void GetDocumentCurrentVersion (CString&) const;
void SetDocumentDefaultIcon (LPCTSTR);
void GetDocumentDefaultIcon (CString&) const;
void SetDocumentShellOpenCommand (LPCTSTR);
void GetDocumentShellOpenCommand (CString&) const;
protected:
BOOL SetRegistryValue(HKEY, LPCTSTR, LPCTSTR, LPCTSTR);
CString m_csExtension;
CString m_csContentType;
CString m_csShellOpenCommand;
CString m_csShellNewCommand;
CString m_csShellNewFileName;
CString m_csDocumentClassName;
CString m_csDocumentDescription;
CString m_csDocumentCLSID;
CString m_csDocumentCurrentVersion;
CString m_csDocumentDefaultIcon;
CString m_csDocumentShellOpenCommand;
};
#endif // __cplusplus
#endif // __CGFILTYP_H__
//- -----------------------------------------------------------------
//- END CGFILTYP.H Header File
//- -----------------------------------------------------------------