Jump to content

[C++] Desligar homepage no desktop


Recommended Posts

Posted

Estou a tentar fazer um programa em C/C++ no visual c++ 2005 express para me desligar uma a homepage que aparece no desktop.

uso isto:

SHELLSTATE shellstate;
shellstate.fDesktopHTML=FALSE;
SHGetSetSettings(&shellstate,SSF_DESKTOPHTML,TRUE);

o meu problema é como mandar o desktop actualizar

já fiz SendMessage(HWND_BROADCAST,WM_SETTINGCHANGE,0,0);

e nada. mas se matar o processo explorer.exe e abrir.... já não mete a homepage no desktop....

alguem tem uma ideia como fazer isto?

(sorry pela noobissee no forum)

Posted

já consegui fazer.... mas apenas quando estou como adminstrador... como utilizador normal não funciona.

no msdn não fala nada sobre priveligios que é preciso para alterar a estructura de SHELLSTATE...

alguém sabe alguma coisa sobre isso?

ou links com essa informação

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.