I try to use query_posts('post_type=product'); in a plugin,

Hi,

I try to use query_posts('post_type=product'); in a plugin, but it seems that it does not work.
thank you in advance for your help.