tags:

views:

573

answers:

2

I want to create trial version for our product, allowing a user to use it for 5 days.

I am planning to use the system BIOS time to do this. Is this possible, what other methods are available to me?

A: 

If anyone changes the system date, the hardware real-time clock gets changed too.

So

DateTime.Now

will be able to do that for you.

rahul
can't assaign value to Datetime.Now Property it is read only
RV
I wasn't talking about assigning value to DateTime.Now.
rahul
A: 

If anyone changes the system date, the hardware real-time clock gets changed too. Why do you need BIOS? Are you trying to get a date and time from a more reliable source that the computer owner?

What you can do is use WMI to access BIOS information:

Win32_BIOS.BiosCharacteristics
Win32_BIOS.BIOSVersion
Win32_BIOS.BuildNumber
Win32_BIOS.Caption Win32_BIOS.CodeSet Win32_BIOS.CurrentLanguage
Win32_BIOS.Description
Win32_BIOS.IdentificationCode
Win32_BIOS.InstallableLanguages
Win32_BIOS.InstallDate
Win32_BIOS.LanguageEdition
Win32_BIOS.ListOfLanguages
Win32_BIOS.Manufacturer
Win32_BIOS.Name
Win32_BIOS.OtherTargetOS
Win32_BIOS.PrimaryBIOS
Win32_BIOS.ReleaseDate
Win32_BIOS.SerialNumber
Win32_BIOS.SMBIOSBIOSVersion
Win32_BIOS.SMBIOSMajorVersion
Win32_BIOS.SMBIOSMinorVersion
Win32_BIOS.SMBIOSPresent
Win32_BIOS.SoftwareElementID
Win32_BIOS.SoftwareElementState
Win32_BIOS.Status
Win32_BIOS.TargetOperatingSystem
Win32_BIOS.Version

But even WMI doesn't give you Date.

Sorantis