richie -

when i run the code for finding the product key i get an erroe at this line:

If lValueType = REG_SZ Then

it says REG_SZ variable not defined. why? i can't find it in the winapi.txt file so i don't know what the constant is or how to define it. could you help me out please? thank you very much.

--michael