diff --git a/src/plugins/hllapi/environ.bat b/src/plugins/hllapi/environ.bat new file mode 100644 index 0000000..c77f38a --- /dev/null +++ b/src/plugins/hllapi/environ.bat @@ -0,0 +1,6 @@ +@echo off + +set VC=C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC +set WINSDK=C:\Program Files (x86)\Windows Kits\8.1 +set PATH=%PATH%;"%VC%\bin";"%WINSDK%\bin\x86\" + diff --git a/src/plugins/hllapi/idlcomp.bat b/src/plugins/hllapi/idlcomp.bat new file mode 100644 index 0000000..fe0bdce --- /dev/null +++ b/src/plugins/hllapi/idlcomp.bat @@ -0,0 +1,3 @@ +@echo off + +midl.exe /I "%WINSDK%\Include\um" /I "%WINSDK%\Include\shared" /cpp_cmd "cl.exe" pw3270.idl diff --git a/src/plugins/hllapi/pw3270.idl b/src/plugins/hllapi/pw3270.idl new file mode 100644 index 0000000..b05f3f9 --- /dev/null +++ b/src/plugins/hllapi/pw3270.idl @@ -0,0 +1,53 @@ +// This is the type library for libhllapi.dll + +// +// References: +// +// http://support.microsoft.com/kb/189133 +// http://msdn.microsoft.com/en-us/library/windows/desktop/aa367300(v=vs.85).aspx +// +[ + // Use GUIDGEN.EXE to create the UUID that uniquely identifies + // this library on the user's system. NOTE: This must be done!! + uuid(4CC73F7D-5C10-4313-8FFD-F01999A44656), + + // This helpstring defines how the library will appear in the + // References dialog of VB. + helpstring("PW3270 HLLAPI typelib"), + + // Assume standard English locale. + lcid(0x0409), + + // Assign a version number to keep track of changes. + version(5.0) +] + +library HLLAPI +{ + + // Now define the module that will "declare" your C functions. + [ + helpstring("HLLAPI calls for pw3270"), + + version(5.0), + + // Give the name of your DLL here. + dllname("libhllapi.dll") + ] + + module hllApiFunctions + { + [ + helpstring("Initialize pw3270´s instance."), + entry("hllapi_init") + ] + // The [in], [out], and [in, out] keywords tell the Automation + // client which direction parameters need to be passed. Some + // calls can be optimized if a function only needs a parameter + // to be passed one-way. + DWORD __stdcall hllapi_init( [in] LPSTR mode); + + + } // End of Module + +}; // End of Library -- libgit2 0.21.2