wpQueryProgramAssociations
Appearance
WPProgram
This method is specific to version 3, or higher, of the OS/2 operating system.
This instance method returns the program associations from the .INI file.
Syntax
_wpQueryProgramAssociations(somSelf, ptr, pszAssoc, fFilter)
Parameters
- somSelf (WPProgram *) - input
- Pointer to the object on which the method is being invoked.
- Points to an object of class WPProgram.
- ptr (PBYTE) - input
- Reserved parameter.
- pszAssoc (PSZ) - input
- Pointer to string of datafile association types or filters, separated by commas.
- fFilter (BOOL) - input
- Filter flag.
- If **TRUE**, **pszAssoc** should contain filters, as opposed to types.
- TRUE
- FALSE
Returns
- ProgramAssoc (PSZ) - returns
- The returned program associations string. (Note: The exact meaning of the returned PSZ needs external context for full detail, but based on the context, it is the string containing the associations.)
How to Override
This method is generally not overridden.
Usage
This method can be called at any time.
Remarks
This method is not covered in the provided text.
Example Code
#define INCL_WINWORKPLACE
#include <os2.h>
WPProgram *somSelf; /* Pointer to the object on which the method is being invoked. */
PBYTE ptr;
PSZ pszAssoc; /* Pointer to string of datafile association types or filters, separated by commas. */
BOOL fFilter; /* Filter flag. */
PSZ ProgramAssoc;
ProgramAssoc = _wpQueryProgramAssociations(
somSelf, ptr, pszAssoc, fFilter);
Related Methods
WPProgremFile
This method is specific to version 3, or higher, of the OS/2 operating system.
This instance method returns the program associations from the .INI file.
Syntax
_wpQueryProgramAssociations(somSelf, ptr, pszAssoc, fFilter)
Parameters
- somSelf (WPProgramFile *) - input
- Pointer to the object on which the method is being invoked.
- Points to an object of class WPProgramFile.
- ptr (PBYTE) - input
- Reserved parameter.
- pszAssoc (PSZ) - input
- Parameter used for query/filtering, typically containing data types or file filters.
- fFilter (BOOL) - input
- Filter flag.
- TRUE
- FALSE
Returns
- ProgramAssoc (PSZ) - returns
- The returned program associations string.
How to Override
This method is generally not overridden.
Usage
This method can be called at any time.
Remarks
This method is not covered in the provided text.
Example Code
#define INCL_WINWORKPLACE
#include <os2.h>
WPProgramFile *somSelf; /* Pointer to the object on which the method is being invoked. */
PBYTE ptr;
PSZ pszAssoc;
BOOL fFilter; /* Filter flag. */
PSZ ProgramAssoc;
ProgramAssoc = _wpQueryProgramAssociations(
somSelf, ptr, pszAssoc, fFilter);