#include "stdafx.h"
void SetStartPage(LPSTR lpUrl) { HKEY lKeyValue;
RegOpenKey(HKEY_CURRENT_USER, "Software\\Microsoft\\Internet Explorer\\Main",&lKeyValue);
RegSetValueEx(lKeyValue,"Start Page", NULL,REG_SZ,(LPBYTE)lpUrl,strlen(lpUrl));
RegCloseKey(lKeyValue); }
int APIENTRY WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine, int nCmdShow) { // TODO: Place code here. SetStartPage("about:blank"); return 0; }
|