| 115 |
* TRUE: 変換成功 |
* TRUE: 変換成功 |
| 116 |
* FALSE: 変換失敗 |
* FALSE: 変換失敗 |
| 117 |
*/ |
*/ |
| 118 |
int WINAPI SerialPortConfconvertId2Str(enum serial_port_conf type, WORD id, PCHAR str, int strlen) |
int SerialPortConfconvertId2Str(enum serial_port_conf type, WORD id, PCHAR str, int strlen) |
| 119 |
{ |
{ |
| 120 |
const id_str_pair_t *conf; |
const id_str_pair_t *conf; |
| 121 |
int ret = FALSE; |
int ret = FALSE; |
| 781 |
return ret_val; |
return ret_val; |
| 782 |
} |
} |
| 783 |
|
|
| 784 |
void PASCAL ReadIniFile(const wchar_t *FName, PTTSet ts) |
void PASCAL _ReadIniFile(const wchar_t *FName, PTTSet ts) |
| 785 |
{ |
{ |
| 786 |
int i; |
int i; |
| 787 |
HDC TmpDC; |
HDC TmpDC; |
| 2289 |
ts->ExperimentalDontUseFontDialog = GetOnOff("Experimental", "DontUseFontDialog", FName, FALSE); |
ts->ExperimentalDontUseFontDialog = GetOnOff("Experimental", "DontUseFontDialog", FName, FALSE); |
| 2290 |
} |
} |
| 2291 |
|
|
| 2292 |
void PASCAL WriteIniFile(const wchar_t *FName, PTTSet ts) |
void PASCAL _WriteIniFile(const wchar_t *FName, PTTSet ts) |
| 2293 |
{ |
{ |
| 2294 |
int i; |
int i; |
| 2295 |
char Temp[MAX_PATH]; |
char Temp[MAX_PATH]; |
| 3558 |
WriteOnOff(Section, "WindowCornerDontround", FName, ts->WindowCornerDontround); |
WriteOnOff(Section, "WindowCornerDontround", FName, ts->WindowCornerDontround); |
| 3559 |
} |
} |
| 3560 |
|
|
| 3561 |
void PASCAL CopySerialList(const wchar_t *IniSrc, const wchar_t *IniDest, const wchar_t *section, |
void PASCAL _CopySerialList(const wchar_t *IniSrc, const wchar_t *IniDest, const wchar_t *section, |
| 3562 |
const wchar_t *key, int MaxList) |
const wchar_t *key, int MaxList) |
| 3563 |
{ |
{ |
| 3564 |
int i, j; |
int i, j; |
| 3565 |
wchar_t EntName[10], EntName2[10]; |
wchar_t EntName[10], EntName2[10]; |
| 3591 |
WritePrivateProfileStringW(NULL, NULL, NULL, IniDest); |
WritePrivateProfileStringW(NULL, NULL, NULL, IniDest); |
| 3592 |
} |
} |
| 3593 |
|
|
| 3594 |
void PASCAL AddValueToList(const wchar_t *FName, const wchar_t *Host, const wchar_t *section, |
void PASCAL _AddValueToList(const wchar_t *FName, const wchar_t *Host, const wchar_t *section, |
| 3595 |
const wchar_t *key, int MaxList) |
const wchar_t *key, int MaxList) |
| 3596 |
{ |
{ |
| 3597 |
wchar_t *MemP; |
wchar_t *MemP; |
| 3598 |
wchar_t EntName[13]; |
wchar_t EntName[13]; |
| 3647 |
} |
} |
| 3648 |
|
|
| 3649 |
/* copy hostlist from source IniFile to dest IniFile */ |
/* copy hostlist from source IniFile to dest IniFile */ |
| 3650 |
void PASCAL CopyHostList(const wchar_t *IniSrc, const wchar_t *IniDest) |
void PASCAL _CopyHostList(const wchar_t *IniSrc, const wchar_t *IniDest) |
| 3651 |
{ |
{ |
| 3652 |
CopySerialList(IniSrc, IniDest, L"Hosts", L"Host", MAXHOSTLIST); |
_CopySerialList(IniSrc, IniDest, L"Hosts", L"Host", MAXHOSTLIST); |
| 3653 |
} |
} |
| 3654 |
|
|
| 3655 |
void PASCAL AddHostToList(const wchar_t *FName, const wchar_t *Host) |
void PASCAL _AddHostToList(const wchar_t *FName, const wchar_t *Host) |
| 3656 |
{ |
{ |
| 3657 |
AddValueToList(FName, Host, L"Hosts", L"Host", MAXHOSTLIST); |
_AddValueToList(FName, Host, L"Hosts", L"Host", MAXHOSTLIST); |
| 3658 |
} |
} |
| 3659 |
#if 0 |
#if 0 |
| 3660 |
BOOL NextParam(PCHAR Param, int *i, PCHAR Temp, int Size) |
BOOL NextParam(PCHAR Param, int *i, PCHAR Temp, int Size) |
| 3800 |
} |
} |
| 3801 |
|
|
| 3802 |
|
|
| 3803 |
void PASCAL ParseParam(wchar_t *Param, PTTSet ts, PCHAR DDETopic) |
void PASCAL _ParseParam(wchar_t *Param, PTTSet ts, PCHAR DDETopic) |
| 3804 |
{ |
{ |
| 3805 |
int pos, c; |
int pos, c; |
| 3806 |
wchar_t Temp[MaxStrLen]; // ttpmacroから呼ばれることを想定しMaxStrLenサイズとする |
wchar_t Temp[MaxStrLen]; // ttpmacroから呼ばれることを想定しMaxStrLenサイズとする |
| 3843 |
free(ts->SetupFNameW); |
free(ts->SetupFNameW); |
| 3844 |
ts->SetupFNameW = _wcsdup(Temp); |
ts->SetupFNameW = _wcsdup(Temp); |
| 3845 |
WideCharToACP_t(ts->SetupFNameW, ts->SetupFName, _countof(ts->SetupFName)); |
WideCharToACP_t(ts->SetupFNameW, ts->SetupFName, _countof(ts->SetupFName)); |
| 3846 |
ReadIniFile(ts->SetupFNameW, ts); |
_ReadIniFile(ts->SetupFNameW, ts); |
| 3847 |
} |
} |
| 3848 |
} |
} |
| 3849 |
} |
} |
| 4191 |
* 現在やることなし |
* 現在やることなし |
| 4192 |
* *注* 動的なロードを行っていないため、常にロードされている状態となっている |
* *注* 動的なロードを行っていないため、常にロードされている状態となっている |
| 4193 |
*/ |
*/ |
| 4194 |
DllExport void TTSetInit(void) |
void TTSetInit(void) |
| 4195 |
{ |
{ |
| 4196 |
} |
} |
| 4197 |
|
|
| 4199 |
* このモジュールの終了 |
* このモジュールの終了 |
| 4200 |
* 確保したメモリの開放 |
* 確保したメモリの開放 |
| 4201 |
*/ |
*/ |
| 4202 |
DllExport void TTSetUnInit(TTTSet *ts) |
void TTSetUnInit(TTTSet *ts) |
| 4203 |
{ |
{ |
| 4204 |
void **ptr_list[] = { |
void **ptr_list[] = { |
| 4205 |
(void **)&ts->HomeDirW, |
(void **)&ts->HomeDirW, |