home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 1997 November
/
VPR9711A.ISO
/
VPR_DATA
/
Special
/
Wz30demo
/
wz30demo.lzh
/
STD
/
PROF.TLL
< prev
next >
Wrap
Text File
|
1997-06-16
|
23KB
|
108 lines
TX-EXPORT 2.00 3324bytes
/// 32bit version
// WZ EDITOR 標準TLL INIファイル操作
// Thanks dieさん
#ifndef __IH_PROF
#define __IH_PROF
//{###prof}
//{###INIファイル操作}
//任意のINIファイルやWZ.INIファイルから、データを読み込んだり、
//データを書き込んだりする機能を提供します。
//利用方法:
//[1]#include "prof.h"
//[2]変数を用意
//TxProfile prof;
//[3]profWzIniNewかprofWzDirNewかprofNewを使って初期化
//[4]profReadIntやprofWriteIntでアクセス
//[5]アクセスが終わったらprofDeleteしてください
//利用例:filer.c
//thanks dieさん
typedef struct tagTxProfile
{
mchar m_szPath[CCHPATHNAME];
mchar m_szSection[32];
} TxProfile;
#ifdef __TXC__
extern "prof" {
#endif
//{#API}
void _cdecl profNew(TxProfile* pProf,mchar* pPath,mchar* pSection);
//{#@}prof
// 初期化(一般用)
// pPathでINIファイル名、
// pSectionでアクセスするセクションを指定してください
void _cdecl profWzDirNew(TxProfile* pProf,mchar* pPath,mchar* pSection);
//{#@}prof
// 初期化(WZディレクトリ内のINIファイル用)
// pPathでINIファイル名、
// pSectionでアクセスするセクションを指定してください
void _cdecl profWzIniNew(TxProfile* pProf,mchar* pSection);
//{#@}prof
// 初期化(WZ.INI専用)
// pSectionでアクセスするセクションを指定してください
void _cdecl profDelete(TxProfile* pProf);
//{#@}prof
// 後始末(デストラクタ)
void _cdecl profWriteStr(TxProfile* pProf,mchar* pKey,mchar* pStr);
//{#@}prof
// 文字列出力
// データ名pKeyの内容を文字列pStrとします
void _cdecl profWriteInt(TxProfile* pProf,mchar* pKey,int nVal);
//{#@}prof
// 数値出力
// データ名pKeyの内容を数値nValとします
void _cdecl profReadStr(TxProfile* pProf,mchar* pKey,mchar* pBuf,int nMax,mchar* pDef);
//{#@}prof
// 文字列入力
// データ名pKeyの内容を文字列バッファpBufに読み込みます
// バッファのサイズをnMaxに指定してください。最大nMax-1バイト読み込みます
// pDefには、データ名pKeyが見つからなかった時にpBufにセットする内容を指定します。
int _cdecl profReadInt(TxProfile* pProf,mchar* pKey,int nDef);
//{#@}prof
// 数値入力
// データ名pKeyの内容を読み込みます。読み込んだ数値を返します。
// nDefには、データ名pKeyが見つからなかった時に返す値を指定します。
void _cdecl profReadWriteStr(TxProfile* pProf,mchar* pKey,mchar* pBuf,int nMax,mchar* pDef,BOOL fWrite);
//{#@}prof
// 文字列入出力
// fWriteがFALSEなら、profReadStrします。
// fWriteがTRUEなら、profWriteStr(pProf,pKey,pBuf)します。
//1.00Dで追加
int _cdecl profReadWriteInt(TxProfile* pProf,mchar* pKey,int* nVal,int nDef,BOOL fWrite);
//{#@}prof
// 数値入出力
// fWriteがFALSEなら、*nVal = profReadInt(pProf,pKey,nDef)します。
// fWriteがTRUEなら、profWriteInt(pProf,pKey,*nVal)します。
// *nValを返します。
//1.00Dで追加
int _cdecl profReadWriteIntW(TxProfile* pProf,mchar* pKey,short* nVal,int nDef,BOOL fWrite);
//{#@}prof
// 数値入出力
// fWriteがFALSEなら、*nVal = profReadInt(pProf,pKey,nDef)します。
// fWriteがTRUEなら、profWriteInt(pProf,pKey,*nVal)します。
// *nValを返します。
//1.00Dで追加
int _cdecl profReadWriteIntB(TxProfile* pProf,mchar* pKey,char* nVal,int nDef,BOOL fWrite);
//{#@}prof
// 数値入出力
// fWriteがFALSEなら、*nVal = profReadInt(pProf,pKey,nDef)します。
// fWriteがTRUEなら、profWriteInt(pProf,pKey,*nVal)します。
// *nValを返します。
//1.00Dで追加
//{#ENDAPI}
#ifdef __TXC__
}
#endif
#endif
TX-PCODE32 3.00
zリ936 16 フg {J MM MM 犯 E E ヴニ E EΔ班 E周ヰ E周 E」Δ - E$ E」Δ 「 畔 E E E E Δ 繁 E+珠」ヰn 珠 E E」Δ 般 E E E E E E Δ( 繁 E.借」ヰス 借 珠 E E」ヴヒ 珠┐「 EH刃 E E E」ヵd誠 E E E E E」Δ E崇 EE E E」ヵ。 E宣 E E E」Hヮ EE┐「 Eヘ崇 ED E E」ヵ E宣 E E E」Gヮ ED┐「 E崇 EC㍽ E E」ヵ, E宣 E E E」Fヮ EC℡「「 USER.EXE TX std std std std std std std std std tx std std std std std std std std std std std tx TX stdlib dialoga window stdlib stdlib stdlib stdlib stdlib stdlib stdlib stdlib stdlib stdlib stdlib stdlib stdlib stdlib stdlib stdlib stdlib stdlib stdlib stdlib stdlib stdlib stdlib stdlib stdlib stdlib stdlib stdlib stdlib stdlib stdlib stdlib cmd cmd file file file file help system system macro macro macro macro kernel32.dll gdi32.dll user32.dll winnls.dll kernel32.dll user32.dll lz32.dll mmsystem.dll shell32.dll comdlg32.dll comctl32.dll wz.ini %d %d Int64ShllMod32 Int64ShraMod32 Int64ShrlMod32 WinMain aMod32 VerFindFileA 2 VerFindFileW VerInstallFileA VerInstallFileW GetFileVersionInfoSizeA GetFileVersionInfoSizeW GetFileVersionInfoA zeA GetFileVersionInfoW zeW VerLanguageNameA oA VerLanguageNameW oW VerQueryValueA A VerQueryValueW W RegCloseKey eA RegConnectRegistryA RegConnectRegistryW RegCreateKeyA stryA RegCreateKeyW stryW RegCreateKeyExA RegCreateKeyExW RegDeleteKeyA RegDeleteKeyW RegDeleteValueA RegDeleteValueW RegEnumKeyA RegEnumKeyW RegEnumKeyExA RegEnumKeyExW RegEnumValueA RegEnumValueW RegFlushKey RegGetKeySecurity RegLoadKeyA RegLoadKeyW RegNotifyChangeKeyValue RegOpenKeyA RegOpenKeyW RegOpenKeyExA RegOpenKeyExW RegQueryInfoKeyA RegQueryInfoKeyW RegQueryValueA RegQueryValueW RegQueryMultipleValuesA RegQueryMultipleValuesW RegQueryValueExA RegQueryValueExW RegReplaceKeyA RegReplaceKeyW RegRestoreKeyA RegRestoreKeyW RegSaveKeyA RegSaveKeyW RegSetKeySecurity RegSetValueA RegSetValueW RegSetValueExA RegSetValueExW RegUnLoadKeyA RegUnLoadKeyW InitiateSystemShutdownA InitiateSystemShutdownW AbortSystemShutdownA AbortSystemShutdownW Netbios RpcBindingCopy RpcBindingFree RpcBindingFromStringBindingA RpcBindingFromStringBindingW RpcBindingInqObject RpcBindingReset RpcBindingSetObject RpcMgmtInqDefaultProtectLevel RpcBindingToStringBindingA RpcBindingToStringBindingW RpcBindingVectorFree RpcStringBindingComposeA RpcStringBindingComposeW RpcStringBindingParseA RpcStringBindingParseW RpcStringFreeA RpcStringFreeW
RpcIfInqId RpcNetworkIsProtseqValidA RpcNetworkIsProtseqValidW RpcMgmtInqComTimeout RpcMgmtSetComTimeout RpcMgmtSetCancelTimeout RpcNetworkInqProtseqsA RpcNetworkInqProtseqsW RpcObjectInqType RpcObjectSetInqFn RpcObjectSetType RpcProtseqVectorFreeA RpcProtseqVectorFreeW RpcServerInqBindings RpcServerInqIf RpcServerListen RpcServerRegisterIf RpcServerUnregisterIf RpcServerUseAllProtseqs RpcServerUseAllProtseqsIf RpcServerUseProtseqA RpcServerUseProtseqW RpcServerUseProtseqEpA RpcServerUseProtseqEpW RpcServerUseProtseqIfA RpcServerUseProtseqIfW RpcMgmtStatsVectorFree RpcMgmtInqStats RpcMgmtIsServerListening RpcMgmtStopServerListening RpcMgmtWaitServerListen RpcMgmtSetServerStackSize RpcMgmtEnableIdleCleanup RpcMgmtInqIfIds RpcIfIdVectorFree RpcMgmtInqServerPrincNameA RpcMgmtInqServerPrincNameW RpcServerInqDefaultPrincNameA RpcServerInqDefaultPrincNameW RpcEpResolveBinding RpcNsBindingInqEntryNameA RpcNsBindingInqEntryNameW RpcBindingInqAuthClientA RpcBindingInqAuthClientW RpcBindingInqAuthInfoA RpcBindingInqAuthInfoW RpcBindingSetAuthInfoA RpcBindingSetAuthInfoW RpcServerRegisterAuthInfoA RpcServerRegisterAuthInfoW RpcBindingServerFromClient RpcRaiseException RpcTestCancel RpcCancelThread
UuidCreate UuidToStringA UuidFromStringA UuidToStringW UuidFromStringW UuidCompare UuidCreateNil UuidEqual UuidHash UuidIsNil RpcEpRegisterNoReplaceA RpcEpRegisterNoReplaceW RpcEpRegisterA RpcEpRegisterW RpcEpUnregister DceErrorInqTextA DceErrorInqTextW RpcMgmtEpEltInqBegin RpcMgmtEpEltInqDone RpcMgmtEpEltInqNextA RpcMgmtEpEltInqNextW RpcMgmtEpUnregister RpcMgmtSetAuthorizationFn I_RpcGetBuffer I_RpcSendReceive I_RpcFreeBuffer I_RpcRequestMutex I_RpcClearMutex I_RpcDeleteMutex I_RpcAllocate I_RpcFree I_RpcPauseExecution I_RpcMonitorAssociation I_RpcStopMonitorAssociation I_RpcGetCurrentCallHandle I_RpcGetAssociationContext I_RpcSetAssociationContext I_RpcNsBindingSetEntryName I_RpcBindingInqDynamicEndpoint I_RpcBindingInqTransportType I_RpcIfInqTransferSyntaxes I_UuidCreate I_RpcBindingCopy I_RpcBindingIsClientLocal I_RpcSsDontSerializeContext I_RpcServerRegisterForwardFunct I_RpcConnectionInqSockBuffSize I_RpcConnectionSetSockBuffSize I_RpcBindingSetAsync I_RpcAsyncSendReceive I_RpcGetThreadWindowHandle I_RpcServerThreadPauseListening I_RpcServerThreadContinueListen I_RpcServerUnregisterEndpointA I_RpcServerUnregisterEndpointW RpcNsBindingExportA RpcNsBindingUnexportA RpcNsBindingExportW RpcNsBindingUnexportW RpcNsBindingLookupBeginA RpcNsBindingLookupBeginW RpcNsBindingLookupNext RpcNsBindingLookupDone RpcNsGroupDeleteA RpcNsGroupMbrAddA RpcNsGroupMbrRemoveA RpcNsGroupMbrInqBeginA RpcNsGroupMbrInqNextA RpcNsGroupDeleteW RpcNsGroupMbrAddW RpcNsGroupMbrRemoveW RpcNsGroupMbrInqBeginW RpcNsGroupMbrInqNextW RpcNsGroupMbrInqDone RpcNsProfileDeleteA RpcNsProfileEltAddA RpcNsProfileEltRemoveA RpcNsProfileEltInqBeginA RpcNsProfileEltInqNextA RpcNsProfileDeleteW RpcNsProfileEltAddW RpcNsProfileEltRemoveW RpcNsProfileEltInqBeginW RpcNsProfileEltInqNextW RpcNsProfileEltInqDone RpcNsEntryObjectInqBeginA RpcNsEntryObjectInqBeginW RpcNsEntryObjectInqNext RpcNsEntryObjectInqDone RpcNsEntryExpandNameA RpcNsMgmtBindingUnexportA RpcNsMgmtEntryCreateA RpcNsMgmtEntryDeleteA RpcNsMgmtEntryInqIfIdsA RpcNsMgmtHandleSetExpAge RpcNsMgmtInqExpAge RpcNsMgmtSetExpAge RpcNsEntryExpandNameW RpcNsMgmtBindingUnexportW RpcNsMgmtEntryCreateW RpcNsMgmtEntryDeleteW RpcNsMgmtEntryInqIfIdsW RpcNsBindingImportBeginA RpcNsBindingImportBeginW RpcNsBindingImportNext RpcNsBindingImportDone RpcNsBindingSelect RpcImpersonateClient RpcRevertToSelf I_RpcMapWin32Status EnumPrintersA EnumPrintersW OpenPrinterA OpenPrinterW ResetPrinterA ResetPrinterW SetJobA SetJobW GetJobA GetJobW EnumJobsA EnumJobsW AddPrinterA AddPrinterW DeletePrinter SetPrinterA SetPrinterW GetPrinterA GetPrinterW AddPrinterDriverA AddPrinterDriverW EnumPrinterDriversA EnumPrinterDriversW GetPrinterDriverA GetPrinterDriverW GetPrinterDriverDirectoryA GetPrinterDriverDirectoryW DeletePrinterDriverA DeletePrinterDriverW AddPrintProcessorA AddPrintProcessorW EnumPrintProcessorsA EnumPrintProcessorsW GetPrintProcessorDirectoryA GetPrintProcessorDirectoryW EnumPrintProcessorDatatypesA EnumPrintProcessorDatatypesW DeletePrintProcessorA DeletePrintProcessorW StartDocPrinterA StartDocPrinterW StartPagePrinter WritePrinter EndPagePrinter AbortPrinter ReadPrinter EndDocPrinter AddJobA AddJobW ScheduleJob PrinterProperties DocumentPropertiesA DocumentPropertiesW AdvancedDocumentPropertiesA AdvancedDocumentPropertiesW GetPrinterDataA GetPrinterDataW SetPrinterDataA SetPrinterDataW WaitForPrinterChange FindFirstPrinterChangeNotificat FindNextPrinterChangeNotificati FreePrinterNotifyInfo FindClosePrinterChangeNotificat PrinterMessageBoxA PrinterMessageBoxW ClosePrinter AddFormA AddFormW DeleteFormA DeleteFormW GetFormA GetFormW SetFormA SetFormW
EnumFormsA
EnumFormsW EnumMonitorsA EnumMonitorsW AddMonitorA AddMonitorW DeleteMonitorA DeleteMonitorW
EnumPortsA
EnumPortsW AddPortA AddPortW ConfigurePortA ConfigurePortW DeletePortA DeletePortW AddPrinterConnectionA AddPrinterConnectionW DeletePrinterConnectionA DeletePrinterConnectionW ConnectToPrinterDlg AddPrintProvidorA AddPrintProvidorW DeletePrintProvidorA DeletePrintProvidorW ChangeServiceConfigA ChangeServiceConfigW CloseServiceHandle ControlService CreateServiceA CreateServiceW DeleteService EnumDependentServicesA EnumDependentServicesW EnumServicesStatusA EnumServicesStatusW GetServiceKeyNameA GetServiceKeyNameW GetServiceDisplayNameA GetServiceDisplayNameW LockServiceDatabase NotifyBootConfigStatus OpenSCManagerA OpenSCManagerW OpenServiceA OpenServiceW QueryServiceConfigA QueryServiceConfigW QueryServiceLockStatusA QueryServiceLockStatusW QueryServiceObjectSecurity QueryServiceStatus RegisterServiceCtrlHandlerA RegisterServiceCtrlHandlerW SetServiceObjectSecurity SetServiceStatus StartServiceCtrlDispatcherA StartServiceCtrlDispatcherW StartServiceA StartServiceW UnlockServiceDatabase ImmInstallIMEA ImmInstallIMEW ImmGetDefaultIMEWnd ImmGetDescriptionA ImmGetDescriptionW ImmGetIMEFileNameA ImmGetIMEFileNameW ImmGetProperty ImmIsIME ImmSimulateHotKey ImmCreateContext ImmDestroyContext ImmGetContext ImmReleaseContext ImmAssociateContext ImmGetCompositionStringA ImmGetCompositionStringW ImmSetCompositionStringA ImmSetCompositionStringW ImmGetCandidateListCountA ImmGetCandidateListCountW ImmGetCandidateListA ImmGetCandidateListW ImmGetGuideLineA ImmGetGuideLineW ImmGetConversionStatus ImmSetConversionStatus ImmGetOpenStatus ImmSetOpenStatus ImmGetCompositionFontA ImmGetCompositionFontW ImmSetCompositionFontA ImmSetCompositionFontW ImmConfigureIMEA ImmConfigureIMEW
ImmEscapeA
ImmEscapeW ImmGetConversionListA ImmGetConversionListW ImmNotifyIME ImmGetStatusWindowPos ImmSetStatusWindowPos ImmGetCompositionWindow ImmSetCompositionWindow ImmGetCandidateWindow ImmSetCandidateWindow ImmIsUIMessageA ImmIsUIMessageW ImmGetVirtualKey ImmRegisterWordA ImmRegisterWordW ImmUnregisterWordA ImmUnregisterWordW ImmGetRegisterWordStyleA ImmGetRegisterWordStyleW ImmEnumRegisterWordA ImmEnumRegisterWordW profNew profWzDirNew - profWzIniNew S
profDelete j profWriteStr n profWriteInt profReadStr ス profReadInt profReadWriteStr & profReadWriteInt e profReadWriteIntW ゥ profReadWriteIntB Nstrcpy NpathFullConfig 晒WritePrivateProfileStringA u'sprintf 晒GetPrivateProfileStringA Natoi USER.EXE std stdlib dialoga window cmd file help system macro kernel32.dll gdi32.dll user32.dll winnls.dll lz32.dll mmsystem.dll shell32.dll comdlg32.dll comctl32.dll