-
Notifications
You must be signed in to change notification settings - Fork 0
/
driver_struct.go
112 lines (109 loc) · 3.6 KB
/
driver_struct.go
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
// Code generated by "stringer -struct driver"; DO NOT EDIT.
package printer
func (p *DRIVER_INFO_8) GetDependentFiles() string {
return utf16PtrToString(p.DependentFiles)
}
func (p *DRIVER_INFO_8) GetCoreDriverDependencies() string {
return utf16PtrToString(p.CoreDriverDependencies)
}
func (p *DRIVER_INFO_8) GetPrintProcessor() string {
return utf16PtrToString(p.PrintProcessor)
}
func (p *DRIVER_INFO_8) GetVendorSetup() string {
return utf16PtrToString(p.VendorSetup)
}
func (p *DRIVER_INFO_8) GetName() string {
return utf16PtrToString(p.Name)
}
func (p *DRIVER_INFO_8) GetEnvironment() string {
return utf16PtrToString(p.Environment)
}
func (p *DRIVER_INFO_8) GetDriverPath() string {
return utf16PtrToString(p.DriverPath)
}
func (p *DRIVER_INFO_8) GetDataFile() string {
return utf16PtrToString(p.DataFile)
}
func (p *DRIVER_INFO_8) GetHardwareID() string {
return utf16PtrToString(p.HardwareID)
}
func (p *DRIVER_INFO_8) GetProvider() string {
return utf16PtrToString(p.Provider)
}
func (p *DRIVER_INFO_8) GetColorProfiles() string {
return utf16PtrToString(p.ColorProfiles)
}
func (p *DRIVER_INFO_8) GetConfigFile() string {
return utf16PtrToString(p.ConfigFile)
}
func (p *DRIVER_INFO_8) GetMonitorName() string {
return utf16PtrToString(p.MonitorName)
}
func (p *DRIVER_INFO_8) GetMfgName() string {
return utf16PtrToString(p.MfgName)
}
func (p *DRIVER_INFO_8) GetHelpFile() string {
return utf16PtrToString(p.HelpFile)
}
func (p *DRIVER_INFO_8) GetDefaultDataType() string {
return utf16PtrToString(p.DefaultDataType)
}
func (p *DRIVER_INFO_8) GetPreviousNames() string {
return utf16PtrToString(p.PreviousNames)
}
func (p *DRIVER_INFO_8) GetOEMUrl() string {
return utf16PtrToString(p.OEMUrl)
}
func (p *DRIVER_INFO_8) GetInfPath() string {
return utf16PtrToString(p.InfPath)
}
func (p *DRIVER_INFO_8) GetDriver() Driver {
return Driver{
ConfigFile: p.GetConfigFile(),
MonitorName: p.GetMonitorName(),
MfgName: p.GetMfgName(),
HelpFile: p.GetHelpFile(),
DefaultDataType: p.GetDefaultDataType(),
PreviousNames: p.GetPreviousNames(),
OEMUrl: p.GetOEMUrl(),
InfPath: p.GetInfPath(),
Version: p.Version,
DependentFiles: p.GetDependentFiles(),
CoreDriverDependencies: p.GetCoreDriverDependencies(),
MinInboxDriverVerVersion: p.MinInboxDriverVerVersion,
PrintProcessor: p.GetPrintProcessor(),
VendorSetup: p.GetVendorSetup(),
Name: p.GetName(),
Environment: p.GetEnvironment(),
DriverPath: p.GetDriverPath(),
DataFile: p.GetDataFile(),
HardwareID: p.GetHardwareID(),
Provider: p.GetProvider(),
ColorProfiles: p.GetColorProfiles(),
PrinterDriverAttributes: p.PrinterDriverAttributes,
}
}
type Driver struct {
HelpFile string
DefaultDataType string
CoreDriverDependencies string
Version uint32
HardwareID string
Environment string
MonitorName string
OEMUrl string
VendorSetup string
ColorProfiles string
InfPath string
DriverPath string
DependentFiles string
DataFile string
Name string
PrinterDriverAttributes uint32
MfgName string
MinInboxDriverVerVersion uint32
Provider string
PrintProcessor string
ConfigFile string
PreviousNames string
}