mirror of https://github.com/lianthony/NT4.0
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.
46 lines
979 B
46 lines
979 B
// diskloca.cpp : implementation file
|
|
//
|
|
|
|
#include "stdafx.h"
|
|
#include "const.h"
|
|
#include "import.h"
|
|
#include "registry.h"
|
|
#include "machine.h"
|
|
#include "base.h"
|
|
#include "diskloca.h"
|
|
|
|
#ifdef _DEBUG
|
|
#undef THIS_FILE
|
|
static char BASED_CODE THIS_FILE[] = __FILE__;
|
|
#endif
|
|
|
|
//
|
|
// if user hit OKAY, we need to check whether it is a valid location
|
|
//
|
|
|
|
void CDiskLocation::OnOK()
|
|
{
|
|
UpdateData();
|
|
if ( SetCurrentDirectory( m_Location ))
|
|
{
|
|
// make sure that we can find the inetstp.inf file
|
|
CFileStatus status;
|
|
if (CFile::GetStatus( _T("inetstp.inf"), status ))
|
|
{
|
|
CDialog::OnOK();
|
|
return;
|
|
} else
|
|
{
|
|
// does not exist
|
|
}
|
|
}
|
|
|
|
CString strError;
|
|
|
|
strError.LoadString( IDS_INVALID_DIRECTORY );
|
|
|
|
CString strLogo;
|
|
strLogo.LoadString(( theApp.TargetMachine.m_actualProductType == PT_WINNT )?IDS_WINNT_LOGO:IDS_LANMAN_LOGO );
|
|
|
|
MessageBox( strError, strLogo );
|
|
}
|