Pointers

Many of the PI-API functions pass arguments by reference, i.e., pointers to data. On some platforms, such as Microsoft Windows, pointers are memory-model dependent. We recommend using the large memory model when developing PI-API applications for 16 bit Windows platforms. Where other models are unavoidable, a special PI pointer type has been defined to deal with platform differences. This pointer type, PIPTR, is defined for MS Windows as _far. For portability across memory models, pointers should be declared or cast to PIPTR. For example, to declare a pointer to an int32, use the following syntax:

   int32 PIPTR *plong
Enabling Operational Intelligence