HP-UX SNAplus2 CPI-C Programmer's Guide (June 2003)
Writing CPI-C Applications
Windows Considerations
Chapter 2110
Compiler Options for Structure Packing
The structures supplied and returned on some CPI-C calls are not
packed. Do not use compiler options that change this packing method.
BYTE parameters are on BYTE boundaries, WORD parameters are on
WORD boundaries, and DWORD parameters are on DWORD
boundaries.
Header Files
The header file to be included in Windows CPI-C applications is named
wincpic.h. This file is installed in the subdirectory /sdk within the
directory where you installed the Windows Client software.
Load-time linking
To link the application to CPI-C at load time, link the application to the
library wincpic32.lib.
Run-time linking
To link the application to CPI-C at run time, include the following calls
in the application:
• LoadLibrary() to load the CPI-C dynamic link library
wincpic32.dll (on Win32 systems)
• GetProcAddress() to specify WinCPIC() as the entry point to the
dynamic link library
• FreeLibrary() when the library is no longer required
End of Section