isProductActivated not returning

Hello,
My product is a dll (written in C) that needs to check the activation status of itself as it is loaded. For now I am calling it from dllMain
However the isProductActivated/isProductGeniune functions are not returning values
At first I believed that it was a problem scheduling a server check through the dll however the isProductActivated function also is not returning a value
Thank you for your help

I would also like to add that running the same exact code in a normal Win32 app works as is intended

Hi,

A dll by itself doesn’t run any code unless it’s functions are invoked by any binary. So when you link your binary with the win32 app, the Lexactivator functions should work fine inside your app.