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.
60 lines
1.4 KiB
60 lines
1.4 KiB
#include <windows.h>
|
|
#include <stdlib.h>
|
|
#include <stdio.h>
|
|
#include <string.h>
|
|
#include "setup.h"
|
|
#include "stdtypes.h"
|
|
#include "setupapi.h"
|
|
#include "cui.h"
|
|
#include "setupkit.h"
|
|
#include "datadef.h"
|
|
#include "resource.h"
|
|
#include "common.h"
|
|
|
|
RC FAR PASCAL GetWindowFocus( PCD pcd, POD pod, CAMF camf, PCAMFD pcamfd, SZ szData );
|
|
|
|
RC FAR PASCAL GetWindowFocus( PCD pcd, POD pod, CAMF camf, PCAMFD pcamfd, SZ szData )
|
|
{
|
|
RC rc = rcDoDefault;
|
|
|
|
Unused( pcamfd );
|
|
Unused( szData );
|
|
Unused( pcd );
|
|
Unused( pod );
|
|
|
|
switch (camf)
|
|
{
|
|
case camfDoVisualMods:
|
|
{
|
|
char *TmpPath;
|
|
char chWinDirectory[_MAX_PATH];
|
|
char chRAPath[_MAX_PATH];
|
|
|
|
// get the dialog focus
|
|
rc = rcOk;
|
|
SetFocus( HwndFrame());
|
|
|
|
// also set the tmp path
|
|
GetWindowsDirectory( chWinDirectory, _MAX_PATH );
|
|
|
|
lstrcpy( chRAPath, chWinDirectory );
|
|
|
|
lstrcat( chWinDirectory, "\\iexplore.ini");
|
|
lstrcat( chRAPath, "\\ra.ini");
|
|
|
|
if ( getenv( "temp" ) != NULL )
|
|
{
|
|
WritePrivateProfileString( "MainDiskCache", "Directory",
|
|
TmpPath, chWinDirectory );
|
|
}
|
|
|
|
WriteProfileString("RAPlayer","ini", chRAPath );
|
|
}
|
|
break;
|
|
default:
|
|
break;
|
|
}
|
|
return(rc);
|
|
}
|
|
|
|
|