wpQueryAssociatedProgram - Syntax

This method is specific to version 2.1, or higher, of the OS/2 operating system.

This instance method returns the WPProgram or WPProgramFile object that is associated with this data file for the specified view.

#define INCL_WINWORKPLACE
#include <os2.h>

WPDataFile     *somSelf;         /*  Pointer to the object on which the method is being invoked. */
ULONG           ulView;          /*  View of the data file whose association is being queried. */
PULONG          pulHowMatched;   /*  Flag indicating the association type. */
PSZ             pszMatchString;  /*  Type or name filter. */
ULONG           cbMatchString;   /*  Size of pszMatchString. */
PSZ             pszDefaultType;  /*  Default data type. */
WPObject       *Class;           /*  The WPProgram or WPProgramFile object class associated with this data file for the specified view. */

Class = _wpQueryAssociatedProgram(somSelf,
          ulView, pulHowMatched, pszMatchString,
          cbMatchString, pszDefaultType);


[Back: wpQueryAssociatedProgram]
[Next: wpQueryAssociatedProgram Parameter - somSelf]