1 #ifndef NKF32_H 2 #ifndef CLASS_DECLSPEC 3 /* dll __declspec(dllexport) */ 4 /* app __declspec(dllimport) */ 5 #define CLASS_DECLSPEC 6 #endif 7 8 #ifndef LPSTR 9 #include <windows.h> 10 #endif 11 12 #ifdef __cplusplus 13 extern "C" { 14 #endif /* __cplusplus */ 15 #ifdef __BORLANDC__ 16 #pragma argsused 17 #endif /*__BORLANDC__*/ 18 /* uminchu nkf32103a.lzh 1.00 */ 19 void CALLBACK CLASS_DECLSPEC GetNkfVersion(LPSTR verStr); 20 int CALLBACK CLASS_DECLSPEC SetNkfOption(LPSTR optStr); 21 void CALLBACK CLASS_DECLSPEC NkfConvert(LPSTR outStr, LPCSTR inStr); 22 /* uminchu nkf32103a.lzh 1.02 */ 23 void CALLBACK CLASS_DECLSPEC ToHankaku(LPSTR inStr); 24 void CALLBACK CLASS_DECLSPEC ToZenkakuKana(LPSTR outStr ,LPCSTR inStr); 25 /* uminchu nkf32103a.lzh 1.03 */ 26 void CALLBACK CLASS_DECLSPEC EncodeSubject(LPSTR outStr ,LPCSTR inStr); 27 /* tkaneto nkf32204.zip 2.0.4.0 */ 28 #ifdef TOMIME 29 void CALLBACK CLASS_DECLSPEC ToMime(LPSTR outStr ,LPCSTR inStr); 30 #endif /*TOMIME*/ 31 #ifdef GETKANJICODE 32 int CALLBACK CLASS_DECLSPEC NkfGetKanjiCode(VOID); 33 #endif /*GETKANJICODE*/ 34 #ifdef FILECONVERT1 35 void CALLBACK CLASS_DECLSPEC NkfFileConvert1(LPCSTR fName); 36 #endif /*FILECONVERT1*/ 37 #ifdef FILECONVERT2 38 void CALLBACK CLASS_DECLSPEC NkfFileConvert2(LPCSTR fInName,LPCSTR fOutName); 39 #endif /*FILECONVERT2*/ 40 #ifndef NKF32103A 41 /* safe */ 42 BOOL WINAPI CLASS_DECLSPEC GetNkfVersionSafeA(LPSTR verStr,DWORD nBufferLength /*in TCHARs*/,LPDWORD lpTCHARsReturned /*in TCHARs*/); 43 BOOL WINAPI CLASS_DECLSPEC NkfConvertSafe(LPSTR outStr,DWORD nOutBufferLength /*in Bytes*/,LPDWORD lpBytesReturned /*in Bytes*/, LPCSTR inStr,DWORD nInBufferLength /*in Bytes*/); 44 BOOL WINAPI CLASS_DECLSPEC ToZenkakuKanaSafe(LPSTR outStr,DWORD nOutBufferLength /*in Bytes*/,LPDWORD lpBytesReturned /*in Bytes*/,LPCSTR inStr,DWORD nInBufferLength /*in Bytes*/); 45 BOOL WINAPI CLASS_DECLSPEC ToHankakuSafe(LPSTR outStr,DWORD nOutBufferLength /*in Bytes*/,LPDWORD lpBytesReturned /*in Bytes*/,LPCSTR inStr,DWORD nInBufferLength /*in Bytes*/); 46 BOOL WINAPI CLASS_DECLSPEC EncodeSubjectSafe(LPSTR outStr,DWORD nOutBufferLength /*in Bytes*/,LPDWORD lpBytesReturned /*in Bytes*/,LPCSTR inStr,DWORD nInBufferLength /*in Bytes*/); 47 BOOL WINAPI CLASS_DECLSPEC NkfFileConvert1SafeA(LPCSTR fName,DWORD nBufferLength /*in TCHARs*/); 48 BOOL WINAPI CLASS_DECLSPEC NkfFileConvert2SafeA(LPCSTR fInName,DWORD fInBufferLength /*in TCHARs*/,LPCSTR fOutName,DWORD fOutBufferLength /*in TCHARs*/); 49 BOOL WINAPI CLASS_DECLSPEC GetNkfGuessA(LPSTR outStr,DWORD nBufferLength /*in TCHARs*/,LPDWORD lpTCHARsReturned /*in TCHARs*/); 50 51 BOOL WINAPI CLASS_DECLSPEC GetNkfVersionSafeW(LPWSTR verStr,DWORD nBufferLength /*in TCHARs*/,LPDWORD lpTCHARsReturned /*in TCHARs*/); 52 BOOL WINAPI CLASS_DECLSPEC NkfFileConvert1SafeW(LPCWSTR fName,DWORD nBufferLength /*in TCHARs*/); 53 BOOL WINAPI CLASS_DECLSPEC NkfFileConvert2SafeW(LPCWSTR fInName,DWORD fInBufferLength /*in TCHARs*/,LPCWSTR fOutName,DWORD fOutBufferLength /*in TCHARs*/); 54 BOOL WINAPI CLASS_DECLSPEC GetNkfGuessW(LPWSTR outStr,DWORD nBufferLength /*in TCHARs*/,LPDWORD lpTCHARsReturned /*in TCHARs*/); 55 BOOL WINAPI CLASS_DECLSPEC GetNkfSupportFunctions(void *outStr,DWORD nBufferLength /*in Bytes*/,LPDWORD lpBytesReturned /*in Bytes*/); 56 BOOL WINAPI CLASS_DECLSPEC NkfUsage(LPSTR outStr,DWORD nBufferLength /*in Bytes*/,LPDWORD lpBytesReturned /*in Bytes*/); 57 58 #ifdef UNICODE 59 #define GetNkfVersionSafe GetNkfVersionSafeW 60 #define GetNkfGuess GetNkfGuessW 61 #define NkfFileConvert1Safe NkfFileConvert1SafeW 62 #define NkfFileConvert2Safe NkfFileConvert2SafeW 63 #else /*UNICODE*/ 64 #define GetNkfVersionSafe GetNkfVersionSafeA 65 #define GetNkfGuess GetNkfGuessA 66 #define NkfFileConvert1Safe NkfFileConvert1SafeA 67 #define NkfFileConvert2Safe NkfFileConvert2SafeA 68 #endif /*UNICODE*/ 69 70 struct NKFSUPPORTFUNCTIONS { 71 DWORD size; 72 LPCSTR copyrightA; 73 LPCSTR versionA; 74 LPCSTR dateA; 75 DWORD functions; 76 }; 77 78 79 void reinitdll(void); 80 #endif /*!defined(NKF32103A)*/ 81 82 #ifdef __cplusplus 83 } // Balance extern "C" above 84 #endif /*__cplusplus*/ 85 #endif 86