Leaked source code of windows server 2003
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
// TrialEnd.cpp : Implementation of CTrialEnd
#include "stdafx.h"
#include "trialoc.h"
#include "TrialEnd.h"
static const TCHAR cszKeyIcwRmind[] = TEXT("Software\\Microsoft\\Internet Connection Wizard\\IcwRmind"); static const TCHAR cszTrialConverted[] = TEXT("TrialConverted");
/////////////////////////////////////////////////////////////////////////////
// CTrialEnd
HRESULT CTrialEnd::OnDraw(ATL_DRAWINFO& di) { return S_OK; }
STDMETHODIMP CTrialEnd::CleanupTrialReminder(BOOL * pbRetVal) { HKEY hkey; DWORD dwValue = 1; if ( RegOpenKeyEx(HKEY_LOCAL_MACHINE, cszKeyIcwRmind, 0, KEY_ALL_ACCESS, &hkey) == ERROR_SUCCESS) { RegSetValueEx(hkey, cszTrialConverted, 0, REG_DWORD, (LPBYTE) &dwValue, sizeof(DWORD));
RegCloseKey(hkey); }
return S_OK; }
|