Buffer must be large enough to keep a LONG value.