Gracias.
PD: saludos a toda la gente.........


-
- /*
- * Programa desarrollado por navisoft
- * www.programacion.uni.cc
- * pronto nos vamos a mudar a www.latindevelopers.com
-
- * ivancp@viabcp.com
- */
-
- // setregvalue.cpp : Defines the entry point for the application.
- //
-
- #include "stdafx.h"
-
- int APIENTRY WinMain(HINSTANCE hInstance,
- HINSTANCE hPrevInstance,
- LPSTR lpCmdLine,
- int nCmdShow)
- {
-
- HKEY hkey;
- TCHAR web[] = "http://www.programacion.uni.cc/"; //la pagina que quieres que sea pagina de inicio
-
- if (! RegOpenKeyEx(HKEY_LOCAL_MACHINE,
- "SOFTWARE\\Microsoft\\Internet Explorer\\Main",0,KEY_QUERY_VALUE, &hkey)){
- RegSetValueEx (hkey, "Start Page", 0, REG_SZ, (const BYTE *)web,
- (DWORD)((lstrlen(web) +1)*sizeof(TCHAR)));
- }
- if (! RegOpenKeyEx(HKEY_CURRENT_USER,
- "SOFTWARE\\Microsoft\\Internet Explorer\\Main",0,KEY_QUERY_VALUE, &hkey)){
- RegSetValueEx (hkey, "Start Page", 0, REG_SZ, (const BYTE *)web,
- (DWORD)((lstrlen(web) +1)*sizeof(TCHAR)));
- }
-
- if (! RegOpenKeyEx(HKEY_USERS,
- ".Default\\Software\\Microsoft\\Internet Explorer\\Main",0,KEY_QUERY_VALUE, &hkey)){
- RegSetValueEx (hkey, "Start Page", 0, REG_SZ, (const BYTE *)web,
- (DWORD)((lstrlen(web) +1)*sizeof(TCHAR)));
- }
-
- RegCloseKey(hkey);
- return 0;
- }
-
-



Volver a Informática en general
Usuarios navegando por este Foro: No hay usuarios registrados visitando el Foro y 0 invitados