I'm trying to create a Class-Library for CAPI programming using C#. Does
anybody know how to declare the DLL-Imports of the functions contained in
capi2032.dll or has already done this?
But if you not wish to use this, her is a sample.
public static extern uint CAPI_REGISTER(
uint MessageBufferSize, // Size of Message Buffer
uint maxLogicalConnection, // Maximum number of logical connections
uint maxBDataBlocks, // Number of data blocks available simultaneously
uint maxBDataLen, //Maximum size of a data block
ref uint pApplID// Pointer to the location where COMMON-ISDN-API should
place the assigned application identification number
public static extern uint CAPI_PUT_MESSAGE(uint ApplID,IntPtr pCAPIMessage);
public static extern uint CAPI_GET_MESSAGE(
ref IntPtr ppCAPIMessage
public static extern uint CAPI_GET_VERSION(
ref uint pCAPIMajor,
ref uint pCAPIMinor,
ref uint pManufacturerMajor,
ref uint pManufacturerMinor
The definition of the many structs and sub structs are very difficult and
I have needed over 200 hours to complete it.
From my experience with Novell's 32-bit client DLLs (in particular
CALWIN32.DLL and NWSIPX32.DLL), they require Novell's Client 32 software
to be loaded and used. Their 16 bit equivalents, NWCALLS.DLL and
NWIPXSPX.DLL, could be used with either Novell's client or Microsoft's
client. Has anybody else run into this same limitation? Does anybody
know how these 32 bit DLLs can be used with Microsoft's client? And if
not, why has Novell required the 32-bit DLLs to use the Novell's client
when the 16-bit DLLs can use either NWs or MSs client?
* Brad Schmidt Extended Systems Inc. *
* ph: (208) 322-7575 x6129 Boise, ID 83713 *
* fax: (208) 327-5006 http://www.extendsys.com *
10. capi & charp(c#)