Elroy, your statement of "in many places reworked it and in others expanded it beyond what it originally did." That's simply not true. 90% of the code is a verbatim copy of the original. I can color-code each copied line for the curious. The vast similarities are how I recognized it in the first place!

I'm particularly frustrated with this example because it shows everything that goes wrong when sharing isolated snippets without deeper understanding or context. For one thing, you added your own bad information with statements like "Also, this won't work on older OSs. It probably needs Windows 8.1 or later." That's not true. It works all the way back to Vista. The original code states this explicitly. (It's almost like the original author of something tends to understand it pretty well. Who knew?)

Then, you've reduced the millimeter measurement retrieval to a series of magic numbers. Tell me how a new user is supposed to understand code like this:

Code:
Public Function MonitorWidthMM(hMonitor As Long) As Single
    ' Returns ZERO if not found or not available for some reason.
    Dim bbEDID() As Byte
    '
    If Not MonitorEDID(hMonitor, bbEDID) Then Exit Function
    MonitorWidthMM = ((bbEDID(68) And &HF0) * 16) + bbEDID(66)
End Function
Where did all those magic numbers come from? How is anyone supposed to know what that does or why it works?

In the original code, the EDID structure is carefully explained, with step-by-step explanations of how we arrive at those seemingly magical numbers. There is also additional code for pulling a bunch of other useful data out of the EDID block, like native resolution and a monitor name. Why would you claim you "expanded it beyond what it originally did"? What does your code do that the original does not?

People seem to think I'm against free sharing of code snippets. I have no idea how you'd arrive at that conclusion given the hundreds of snippets I've posted in these forums. I'm not against that at all.

But when you take code from an existing source - code with a clear license - strip all attribution, then change it for the worse and re-post it, how does that help anyone? Now, when someone searches "VB6 EDID" and they stumble across this thread, with a bunch of magic numbers and bad information on supported OSes, they're going to be worse off than before. A basic one-line attribution would let them compare Elroy's work to the original, and maybe discover something useful in the process.

(And the real irony here is - who is more obsessed with getting credit for their work? The original author, or the person who made a few changes and re-posted it? Who is making a bigger deal of the work they put into this particular piece of code?)