i wanna get data from registry, so i write this:

strRegData = GetSetting(HKEY_CURRENT_CONFIG \ Display, Settings, BitsPerPixel)

...and get division by zero. where is bug?
thanks, ToXa.