I guess libadvapi32.a is never linked when you compile your application.
The public module pub.Win32 never reference it.
try adding this at the top of your code...
The public module pub.Win32 never reference it.
try adding this at the top of your code...
Import "[Replace this with your Blitzmax directory]\lib\libadvapi32.a"