Not with VB6 (at least that I know of)

Perhaps something like C/C++ you might.