Based on this from Microsoft, they use code from these guys. That code does not appear to be free, but you may be able to call it using inline::c or some other mechanism. Or mabye you can get the GRG2 code from UT Austin which looks like the source. Oh, and GRG2 may be a trademark of "Windward Associates".