Commit c1a6a439357a249d8dcd71b3b25799c218e0fc00
1 parent
2e8ba5fe
Exists in
master
and in
5 other branches
Tentando criar uma typelib para facilitar o uso do módulo hllapi em windows
Showing
3 changed files
with
62 additions
and
0 deletions
Show diff stats
... | ... | @@ -0,0 +1,53 @@ |
1 | +// This is the type library for libhllapi.dll | |
2 | + | |
3 | +// | |
4 | +// References: | |
5 | +// | |
6 | +// http://support.microsoft.com/kb/189133 | |
7 | +// http://msdn.microsoft.com/en-us/library/windows/desktop/aa367300(v=vs.85).aspx | |
8 | +// | |
9 | +[ | |
10 | + // Use GUIDGEN.EXE to create the UUID that uniquely identifies | |
11 | + // this library on the user's system. NOTE: This must be done!! | |
12 | + uuid(4CC73F7D-5C10-4313-8FFD-F01999A44656), | |
13 | + | |
14 | + // This helpstring defines how the library will appear in the | |
15 | + // References dialog of VB. | |
16 | + helpstring("PW3270 HLLAPI typelib"), | |
17 | + | |
18 | + // Assume standard English locale. | |
19 | + lcid(0x0409), | |
20 | + | |
21 | + // Assign a version number to keep track of changes. | |
22 | + version(5.0) | |
23 | +] | |
24 | + | |
25 | +library HLLAPI | |
26 | +{ | |
27 | + | |
28 | + // Now define the module that will "declare" your C functions. | |
29 | + [ | |
30 | + helpstring("HLLAPI calls for pw3270"), | |
31 | + | |
32 | + version(5.0), | |
33 | + | |
34 | + // Give the name of your DLL here. | |
35 | + dllname("libhllapi.dll") | |
36 | + ] | |
37 | + | |
38 | + module hllApiFunctions | |
39 | + { | |
40 | + [ | |
41 | + helpstring("Initialize pw3270´s instance."), | |
42 | + entry("hllapi_init") | |
43 | + ] | |
44 | + // The [in], [out], and [in, out] keywords tell the Automation | |
45 | + // client which direction parameters need to be passed. Some | |
46 | + // calls can be optimized if a function only needs a parameter | |
47 | + // to be passed one-way. | |
48 | + DWORD __stdcall hllapi_init( [in] LPSTR mode); | |
49 | + | |
50 | + | |
51 | + } // End of Module | |
52 | + | |
53 | +}; // End of Library | ... | ... |