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 >
Text File  |  1997-06-16  |  23KB  |  108 lines

  1. TX-EXPORT 2.00 3324bytes
  2. /// 32bit version
  3. // WZ EDITOR 標準TLL INIファイル操作
  4. // Thanks dieさん
  5. #ifndef __IH_PROF
  6. #define __IH_PROF
  7. //{###prof}
  8. //{###INIファイル操作}
  9. //任意のINIファイルやWZ.INIファイルから、データを読み込んだり、
  10. //データを書き込んだりする機能を提供します。
  11. //利用方法:
  12. //[1]#include "prof.h"
  13. //[2]変数を用意
  14. //TxProfile prof;
  15. //[3]profWzIniNewかprofWzDirNewかprofNewを使って初期化
  16. //[4]profReadIntやprofWriteIntでアクセス
  17. //[5]アクセスが終わったらprofDeleteしてください
  18. //利用例:filer.c
  19. //thanks dieさん
  20.  
  21. typedef struct tagTxProfile
  22. {
  23.     mchar m_szPath[CCHPATHNAME];
  24.     mchar m_szSection[32];
  25. } TxProfile;
  26. #ifdef __TXC__
  27. extern "prof" {
  28. #endif
  29. //{#API}
  30. void _cdecl profNew(TxProfile* pProf,mchar* pPath,mchar* pSection);
  31.     //{#@}prof
  32.     // 初期化(一般用)
  33.     // pPathでINIファイル名、
  34.     // pSectionでアクセスするセクションを指定してください
  35. void _cdecl profWzDirNew(TxProfile* pProf,mchar* pPath,mchar* pSection);
  36.     //{#@}prof
  37.     // 初期化(WZディレクトリ内のINIファイル用)
  38.     // pPathでINIファイル名、
  39.     // pSectionでアクセスするセクションを指定してください
  40. void _cdecl profWzIniNew(TxProfile* pProf,mchar* pSection);
  41.     //{#@}prof
  42.     // 初期化(WZ.INI専用)
  43.     // pSectionでアクセスするセクションを指定してください
  44. void _cdecl profDelete(TxProfile* pProf);
  45.     //{#@}prof
  46.     // 後始末(デストラクタ)
  47. void _cdecl profWriteStr(TxProfile* pProf,mchar* pKey,mchar* pStr);
  48.     //{#@}prof
  49.     // 文字列出力
  50.     // データ名pKeyの内容を文字列pStrとします
  51. void _cdecl profWriteInt(TxProfile* pProf,mchar* pKey,int nVal);
  52.     //{#@}prof
  53.     // 数値出力
  54.     // データ名pKeyの内容を数値nValとします
  55. void _cdecl profReadStr(TxProfile* pProf,mchar* pKey,mchar* pBuf,int nMax,mchar* pDef);
  56.     //{#@}prof
  57.     // 文字列入力
  58.     // データ名pKeyの内容を文字列バッファpBufに読み込みます
  59.     // バッファのサイズをnMaxに指定してください。最大nMax-1バイト読み込みます
  60.     // pDefには、データ名pKeyが見つからなかった時にpBufにセットする内容を指定します。
  61. int _cdecl profReadInt(TxProfile* pProf,mchar* pKey,int nDef);
  62.     //{#@}prof
  63.     // 数値入力
  64.     // データ名pKeyの内容を読み込みます。読み込んだ数値を返します。
  65.     // nDefには、データ名pKeyが見つからなかった時に返す値を指定します。
  66. void _cdecl profReadWriteStr(TxProfile* pProf,mchar* pKey,mchar* pBuf,int nMax,mchar* pDef,BOOL fWrite);
  67.     //{#@}prof
  68.     // 文字列入出力
  69.     // fWriteがFALSEなら、profReadStrします。
  70.     // fWriteがTRUEなら、profWriteStr(pProf,pKey,pBuf)します。
  71.     //1.00Dで追加
  72. int _cdecl profReadWriteInt(TxProfile* pProf,mchar* pKey,int* nVal,int nDef,BOOL fWrite);
  73.     //{#@}prof
  74.     // 数値入出力
  75.     // fWriteがFALSEなら、*nVal = profReadInt(pProf,pKey,nDef)します。
  76.     // fWriteがTRUEなら、profWriteInt(pProf,pKey,*nVal)します。
  77.     // *nValを返します。
  78.     //1.00Dで追加
  79. int _cdecl profReadWriteIntW(TxProfile* pProf,mchar* pKey,short* nVal,int nDef,BOOL fWrite);
  80.     //{#@}prof
  81.     // 数値入出力
  82.     // fWriteがFALSEなら、*nVal = profReadInt(pProf,pKey,nDef)します。
  83.     // fWriteがTRUEなら、profWriteInt(pProf,pKey,*nVal)します。
  84.     // *nValを返します。
  85.     //1.00Dで追加
  86. int _cdecl profReadWriteIntB(TxProfile* pProf,mchar* pKey,char* nVal,int nDef,BOOL fWrite);
  87.     //{#@}prof
  88.     // 数値入出力
  89.     // fWriteがFALSEなら、*nVal = profReadInt(pProf,pKey,nDef)します。
  90.     // fWriteがTRUEなら、profWriteInt(pProf,pKey,*nVal)します。
  91.     // *nValを返します。
  92.     //1.00Dで追加
  93. //{#ENDAPI}
  94. #ifdef __TXC__
  95. }
  96. #endif
  97. #endif
  98. TX-PCODE32 3.00
  99. zリ93616フg{JMMMM犯 EEヴニEEΔ班 E周ヰE周E 」 Δ- E$E 」 Δ「畔E EEEΔ繁E+珠 」 ヰn珠 EE 」 Δ般E EEEEEΔ(繁E.借 」 ヰス借珠 EE」ヴヒ珠┐「EH刃E EE 」 ヵd誠EEE EE」ΔE崇EE EE 」 ヵ。E宣E EE 」 HヮEE┐「Eヘ崇ED EE 」 ヵE宣E EE 」 GヮED┐「E崇EC㍽ EE 」 ヵ,E宣E EE 」 FヮEC℡「「USER.EXETXstdstdstdstdstdstdstdstdstdtxstdstdstdstdstdstdstdstdstdstdstdtxTXstdlibdialogawindowstdlibstdlibstdlibstdlibstdlibstdlibstdlibstdlibstdlibstdlibstdlibstdlibstdlibstdlibstdlibstdlibstdlibstdlibstdlibstdlibstdlibstdlibstdlibstdlibstdlibstdlibstdlibstdlibstdlibstdlibstdlibstdlibcmdcmdfilefilefilefilehelpsystemsystemmacromacromacromacrokernel32.dllgdi32.dlluser32.dllwinnls.dllkernel32.dlluser32.dlllz32.dllmmsystem.dllshell32.dllcomdlg32.dllcomctl32.dllwz.ini%d%dInt64ShllMod32Int64ShraMod32Int64ShrlMod32WinMainaMod32 VerFindFileA2 VerFindFileWVerInstallFileAVerInstallFileWGetFileVersionInfoSizeAGetFileVersionInfoSizeWGetFileVersionInfoAzeAGetFileVersionInfoWzeWVerLanguageNameAoAVerLanguageNameWoWVerQueryValueAAVerQueryValueWW RegCloseKeyeARegConnectRegistryARegConnectRegistryWRegCreateKeyAstryARegCreateKeyWstryWRegCreateKeyExARegCreateKeyExWRegDeleteKeyARegDeleteKeyWRegDeleteValueARegDeleteValueW RegEnumKeyA RegEnumKeyWRegEnumKeyExARegEnumKeyExWRegEnumValueARegEnumValueW RegFlushKeyRegGetKeySecurity RegLoadKeyA RegLoadKeyWRegNotifyChangeKeyValue RegOpenKeyA RegOpenKeyWRegOpenKeyExARegOpenKeyExWRegQueryInfoKeyARegQueryInfoKeyWRegQueryValueARegQueryValueWRegQueryMultipleValuesARegQueryMultipleValuesWRegQueryValueExARegQueryValueExWRegReplaceKeyARegReplaceKeyWRegRestoreKeyARegRestoreKeyW RegSaveKeyA RegSaveKeyWRegSetKeySecurity RegSetValueA RegSetValueWRegSetValueExARegSetValueExWRegUnLoadKeyARegUnLoadKeyWInitiateSystemShutdownAInitiateSystemShutdownWAbortSystemShutdownAAbortSystemShutdownWNetbiosRpcBindingCopyRpcBindingFreeRpcBindingFromStringBindingARpcBindingFromStringBindingWRpcBindingInqObjectRpcBindingResetRpcBindingSetObjectRpcMgmtInqDefaultProtectLevelRpcBindingToStringBindingARpcBindingToStringBindingWRpcBindingVectorFreeRpcStringBindingComposeARpcStringBindingComposeWRpcStringBindingParseARpcStringBindingParseWRpcStringFreeARpcStringFreeW
  100. RpcIfInqIdRpcNetworkIsProtseqValidARpcNetworkIsProtseqValidWRpcMgmtInqComTimeoutRpcMgmtSetComTimeoutRpcMgmtSetCancelTimeoutRpcNetworkInqProtseqsARpcNetworkInqProtseqsWRpcObjectInqTypeRpcObjectSetInqFnRpcObjectSetTypeRpcProtseqVectorFreeARpcProtseqVectorFreeWRpcServerInqBindingsRpcServerInqIfRpcServerListenRpcServerRegisterIfRpcServerUnregisterIfRpcServerUseAllProtseqsRpcServerUseAllProtseqsIfRpcServerUseProtseqARpcServerUseProtseqWRpcServerUseProtseqEpARpcServerUseProtseqEpWRpcServerUseProtseqIfARpcServerUseProtseqIfWRpcMgmtStatsVectorFreeRpcMgmtInqStatsRpcMgmtIsServerListeningRpcMgmtStopServerListeningRpcMgmtWaitServerListenRpcMgmtSetServerStackSizeRpcMgmtEnableIdleCleanupRpcMgmtInqIfIdsRpcIfIdVectorFreeRpcMgmtInqServerPrincNameARpcMgmtInqServerPrincNameWRpcServerInqDefaultPrincNameARpcServerInqDefaultPrincNameWRpcEpResolveBindingRpcNsBindingInqEntryNameARpcNsBindingInqEntryNameWRpcBindingInqAuthClientARpcBindingInqAuthClientWRpcBindingInqAuthInfoARpcBindingInqAuthInfoWRpcBindingSetAuthInfoARpcBindingSetAuthInfoWRpcServerRegisterAuthInfoARpcServerRegisterAuthInfoWRpcBindingServerFromClientRpcRaiseExceptionRpcTestCancelRpcCancelThread
  101. UuidCreateUuidToStringAUuidFromStringAUuidToStringWUuidFromStringW UuidCompareUuidCreateNil    UuidEqualUuidHash    UuidIsNilRpcEpRegisterNoReplaceARpcEpRegisterNoReplaceWRpcEpRegisterARpcEpRegisterWRpcEpUnregisterDceErrorInqTextADceErrorInqTextWRpcMgmtEpEltInqBeginRpcMgmtEpEltInqDoneRpcMgmtEpEltInqNextARpcMgmtEpEltInqNextWRpcMgmtEpUnregisterRpcMgmtSetAuthorizationFnI_RpcGetBufferI_RpcSendReceiveI_RpcFreeBufferI_RpcRequestMutexI_RpcClearMutexI_RpcDeleteMutexI_RpcAllocate    I_RpcFreeI_RpcPauseExecutionI_RpcMonitorAssociationI_RpcStopMonitorAssociationI_RpcGetCurrentCallHandleI_RpcGetAssociationContextI_RpcSetAssociationContextI_RpcNsBindingSetEntryNameI_RpcBindingInqDynamicEndpointI_RpcBindingInqTransportTypeI_RpcIfInqTransferSyntaxes I_UuidCreateI_RpcBindingCopyI_RpcBindingIsClientLocalI_RpcSsDontSerializeContextI_RpcServerRegisterForwardFunctI_RpcConnectionInqSockBuffSizeI_RpcConnectionSetSockBuffSizeI_RpcBindingSetAsyncI_RpcAsyncSendReceiveI_RpcGetThreadWindowHandleI_RpcServerThreadPauseListeningI_RpcServerThreadContinueListenI_RpcServerUnregisterEndpointAI_RpcServerUnregisterEndpointWRpcNsBindingExportARpcNsBindingUnexportARpcNsBindingExportWRpcNsBindingUnexportWRpcNsBindingLookupBeginARpcNsBindingLookupBeginWRpcNsBindingLookupNextRpcNsBindingLookupDoneRpcNsGroupDeleteARpcNsGroupMbrAddARpcNsGroupMbrRemoveARpcNsGroupMbrInqBeginARpcNsGroupMbrInqNextARpcNsGroupDeleteWRpcNsGroupMbrAddWRpcNsGroupMbrRemoveWRpcNsGroupMbrInqBeginWRpcNsGroupMbrInqNextWRpcNsGroupMbrInqDoneRpcNsProfileDeleteARpcNsProfileEltAddARpcNsProfileEltRemoveARpcNsProfileEltInqBeginARpcNsProfileEltInqNextARpcNsProfileDeleteWRpcNsProfileEltAddWRpcNsProfileEltRemoveWRpcNsProfileEltInqBeginWRpcNsProfileEltInqNextWRpcNsProfileEltInqDoneRpcNsEntryObjectInqBeginARpcNsEntryObjectInqBeginWRpcNsEntryObjectInqNextRpcNsEntryObjectInqDoneRpcNsEntryExpandNameARpcNsMgmtBindingUnexportARpcNsMgmtEntryCreateARpcNsMgmtEntryDeleteARpcNsMgmtEntryInqIfIdsARpcNsMgmtHandleSetExpAgeRpcNsMgmtInqExpAgeRpcNsMgmtSetExpAgeRpcNsEntryExpandNameWRpcNsMgmtBindingUnexportWRpcNsMgmtEntryCreateWRpcNsMgmtEntryDeleteWRpcNsMgmtEntryInqIfIdsWRpcNsBindingImportBeginARpcNsBindingImportBeginWRpcNsBindingImportNextRpcNsBindingImportDoneRpcNsBindingSelectRpcImpersonateClientRpcRevertToSelfI_RpcMapWin32StatusEnumPrintersAEnumPrintersW OpenPrinterA OpenPrinterWResetPrinterAResetPrinterWSetJobASetJobWGetJobAGetJobW    EnumJobsA    EnumJobsW AddPrinterA AddPrinterWDeletePrinter SetPrinterA SetPrinterW GetPrinterA GetPrinterWAddPrinterDriverAAddPrinterDriverWEnumPrinterDriversAEnumPrinterDriversWGetPrinterDriverAGetPrinterDriverWGetPrinterDriverDirectoryAGetPrinterDriverDirectoryWDeletePrinterDriverADeletePrinterDriverWAddPrintProcessorAAddPrintProcessorWEnumPrintProcessorsAEnumPrintProcessorsWGetPrintProcessorDirectoryAGetPrintProcessorDirectoryWEnumPrintProcessorDatatypesAEnumPrintProcessorDatatypesWDeletePrintProcessorADeletePrintProcessorWStartDocPrinterAStartDocPrinterWStartPagePrinter WritePrinterEndPagePrinter AbortPrinter ReadPrinterEndDocPrinterAddJobAAddJobW ScheduleJobPrinterPropertiesDocumentPropertiesADocumentPropertiesWAdvancedDocumentPropertiesAAdvancedDocumentPropertiesWGetPrinterDataAGetPrinterDataWSetPrinterDataASetPrinterDataWWaitForPrinterChangeFindFirstPrinterChangeNotificatFindNextPrinterChangeNotificatiFreePrinterNotifyInfoFindClosePrinterChangeNotificatPrinterMessageBoxAPrinterMessageBoxW ClosePrinterAddFormAAddFormW DeleteFormA DeleteFormWGetFormAGetFormWSetFormASetFormW
  102. EnumFormsA
  103. EnumFormsWEnumMonitorsAEnumMonitorsW AddMonitorA AddMonitorWDeleteMonitorADeleteMonitorW
  104. EnumPortsA
  105. EnumPortsWAddPortAAddPortWConfigurePortAConfigurePortW DeletePortA DeletePortWAddPrinterConnectionAAddPrinterConnectionWDeletePrinterConnectionADeletePrinterConnectionWConnectToPrinterDlgAddPrintProvidorAAddPrintProvidorWDeletePrintProvidorADeletePrintProvidorWChangeServiceConfigAChangeServiceConfigWCloseServiceHandleControlServiceCreateServiceACreateServiceWDeleteServiceEnumDependentServicesAEnumDependentServicesWEnumServicesStatusAEnumServicesStatusWGetServiceKeyNameAGetServiceKeyNameWGetServiceDisplayNameAGetServiceDisplayNameWLockServiceDatabaseNotifyBootConfigStatusOpenSCManagerAOpenSCManagerW OpenServiceA OpenServiceWQueryServiceConfigAQueryServiceConfigWQueryServiceLockStatusAQueryServiceLockStatusWQueryServiceObjectSecurityQueryServiceStatusRegisterServiceCtrlHandlerARegisterServiceCtrlHandlerWSetServiceObjectSecuritySetServiceStatusStartServiceCtrlDispatcherAStartServiceCtrlDispatcherWStartServiceAStartServiceWUnlockServiceDatabaseImmInstallIMEAImmInstallIMEWImmGetDefaultIMEWndImmGetDescriptionAImmGetDescriptionWImmGetIMEFileNameAImmGetIMEFileNameWImmGetPropertyImmIsIMEImmSimulateHotKeyImmCreateContextImmDestroyContextImmGetContextImmReleaseContextImmAssociateContextImmGetCompositionStringAImmGetCompositionStringWImmSetCompositionStringAImmSetCompositionStringWImmGetCandidateListCountAImmGetCandidateListCountWImmGetCandidateListAImmGetCandidateListWImmGetGuideLineAImmGetGuideLineWImmGetConversionStatusImmSetConversionStatusImmGetOpenStatusImmSetOpenStatusImmGetCompositionFontAImmGetCompositionFontWImmSetCompositionFontAImmSetCompositionFontWImmConfigureIMEAImmConfigureIMEW
  106. ImmEscapeA
  107. ImmEscapeWImmGetConversionListAImmGetConversionListW ImmNotifyIMEImmGetStatusWindowPosImmSetStatusWindowPosImmGetCompositionWindowImmSetCompositionWindowImmGetCandidateWindowImmSetCandidateWindowImmIsUIMessageAImmIsUIMessageWImmGetVirtualKeyImmRegisterWordAImmRegisterWordWImmUnregisterWordAImmUnregisterWordWImmGetRegisterWordStyleAImmGetRegisterWordStyleWImmEnumRegisterWordAImmEnumRegisterWordWprofNew profWzDirNew- profWzIniNewS
  108. profDeletej profWriteStrn profWriteInt profReadStrス profReadIntprofReadWriteStr&profReadWriteInteprofReadWriteIntWゥprofReadWriteIntB Nstrcpy NpathFullConfig晒WritePrivateProfileStringAu'sprintf晒GetPrivateProfileStringA NatoiUSER.EXEstdstdlibdialogawindowcmdfilehelpsystemmacrokernel32.dllgdi32.dlluser32.dllwinnls.dlllz32.dllmmsystem.dllshell32.dllcomdlg32.dllcomctl32.dll