Example #1
0
func (self *VersionCheck) BuildNumber(op VerRelOp, value uint) {
	self.osvi.BuildNumber = uint32(value)
	self.typeMask |= wrappers.VER_BUILDNUMBER
	self.conditionMask = wrappers.VerSetConditionMask(self.conditionMask, wrappers.VER_BUILDNUMBER, uint8(op))
}
Example #2
0
func (self *VersionCheck) MinorVersion(op VerRelOp, value uint) {
	self.osvi.MinorVersion = uint32(value)
	self.typeMask |= wrappers.VER_MINORVERSION
	self.conditionMask = wrappers.VerSetConditionMask(self.conditionMask, wrappers.VER_MINORVERSION, uint8(op))
}
Example #3
0
func (self *VersionCheck) ProductType(op VerRelOp, value VerProductType) {
	self.osvi.ProductType = uint8(value)
	self.typeMask |= wrappers.VER_PRODUCT_TYPE
	self.conditionMask = wrappers.VerSetConditionMask(self.conditionMask, wrappers.VER_PRODUCT_TYPE, uint8(op))
}
Example #4
0
func (self *VersionCheck) Suite(op VerLogOp, value VerSuite) {
	self.osvi.SuiteMask = uint16(value)
	self.typeMask |= wrappers.VER_SUITENAME
	self.conditionMask = wrappers.VerSetConditionMask(self.conditionMask, wrappers.VER_SUITENAME, uint8(op))
}
Example #5
0
func (self *VersionCheck) ServicePackMinor(op VerRelOp, value uint) {
	self.osvi.ServicePackMinor = uint16(value)
	self.typeMask |= wrappers.VER_SERVICEPACKMINOR
	self.conditionMask = wrappers.VerSetConditionMask(self.conditionMask, wrappers.VER_SERVICEPACKMINOR, uint8(op))
}
Example #6
0
func (self *VersionCheck) Platform(op VerRelOp, value VerPlatform) {
	self.osvi.PlatformId = uint32(value)
	self.typeMask |= wrappers.VER_PLATFORMID
	self.conditionMask = wrappers.VerSetConditionMask(self.conditionMask, wrappers.VER_PLATFORMID, uint8(op))
}