A: 

The Advapi32.lib that your linker is using might be too old - this API was introduced with Vista. Make sure the linker is using a .lib from Vista SDK or newer.

RoMa
Oh OK... I am using it on Windows-XP.Thanks a lot :)
Microkernel