
/*
 * This file was generated by the SOM Compiler.
 * FileName: E:\cwpsh\rel\os2c\include\base\os2\wpobject.h.
 * Generated using:
 *     SOM Precompiler somipc: 2.29.1.14
 *     SOM Emitter emith: 2.43
 */

/*
 *   Module Header
 * 
 *   Module Name: WPTYPES
 * 
 *   OS/2 Presentation Manager Workplace class definitions
 * 
 *   Copyright (c) International Business Machines Corporation 1994
 * 
 */


#ifndef SOM_WPObject_h
#define SOM_WPObject_h


/*
 * Passthru lines: File: "C.h", "before"
 */

   #define INCL_WINSTDCNR
   #include <pmstddlg.h>

      #ifndef __cplusplus
        #ifndef M_WPObject
          #define M_WPObject SOMClass
        #endif
        #ifndef WPObject
          #define WPObject SOMObject
        #endif
      #else
        class M_WPObject;
        class WPObject;
      #endif

      #ifdef _wpCreateShadowObject2
         #undef _wpCreateShadowObject2
      #endif
      #define _wpCreateShadowObject2 _wpCreateShadowObjectExt

      #ifdef __cplusplus                                                 
            extern "C" {                                               
      #endif                                                             
      /* Export a convience function to find BS_NOTEBOOKBUTTON buttons */
      HWND APIENTRY WinNotebookButtonFromID(HWND hwndDlg, ULONG id);     

      /* Allow applications to wait for the Shell to be available */     
      #define WWFS_QUERY            0x80000000                           
      #define WWFS_DESKTOPCREATED   1                                    
      #define WWFS_DESKTOPOPENED    2                                    
      #define WWFS_DESKTOPPOPULATED 3                                    
      BOOL APIENTRY WinWaitForShell( ULONG ulEvent );                    
      #ifdef __cplusplus                                                 
            }                                                            
      #endif                                                             
                                                                         

      /* Object style flags (see wpSetStyle) */

      #define OBJSTYLE_NOMOVE         0x00000002
      #define OBJSTYLE_NOLINK         0x00000004
      #define OBJSTYLE_NOCOPY         0x00000008
      #define OBJSTYLE_NOTDEFAULTICON 0x00000010   /* Intentionally not declared CLSSTYLE */ 
      #define OBJSTYLE_TEMPLATE       0x00000020
      #define OBJSTYLE_NODELETE       0x00000040
      #define OBJSTYLE_NOPRINT        0x00000080
      #define OBJSTYLE_NODRAG         0x00000100
      #define OBJSTYLE_NOTVISIBLE     0x00000200
      #define OBJSTYLE_NOSETTINGS     0x00000400
      #define OBJSTYLE_NORENAME       0x00000800
      #define OBJSTYLE_NODROP         0x00001000
      #define OBJSTYLE_NODROPON       0x00002000   /* Use instead of OBJSTYLE_NODROP, 
                                              because OBJSTYLE_NODROP and     
                                              CLSSTYLE_PRIVATE have the same  
                                              value (DD 86093F) */            
      #define OBJSTYLE_CUSTOMICON     0x00004000  /* Use instead of OBJSTYLE_NOTDEFAULTICON  
                                               because OBJSTYLE_NOTDEFAULTICON and    
                                               CLSSTYLE_NEVERTEMPLATE have the same   
                                               value (DD 86093F) */                   
      #define OBJSTYLE_LOCKEDINPLACE  0x00020000 /* Lock an object in place */    

      /*  Class style flags (see wpclsQueryStyle) */

      #define CLSSTYLE_NEVERMOVE      OBJSTYLE_NOMOVE
      #define CLSSTYLE_NEVERLINK      OBJSTYLE_NOLINK
      #define CLSSTYLE_NEVERCOPY      OBJSTYLE_NOCOPY
      #define CLSSTYLE_NEVERTEMPLATE  0x00000010
      #define CLSSTYLE_NEVERDELETE    OBJSTYLE_NODELETE
      #define CLSSTYLE_NEVERPRINT     OBJSTYLE_NOPRINT
      #define CLSSTYLE_NEVERDRAG      OBJSTYLE_NODRAG
      #define CLSSTYLE_NEVERVISIBLE   OBJSTYLE_NOTVISIBLE
      #define CLSSTYLE_NEVERRENAME    OBJSTYLE_NORENAME
      #define CLSSTYLE_PRIVATE        0x00001000   /* Intentionally not declared OBJSTYLE */     
      #define CLSSTYLE_NEVERSETTINGS  OBJSTYLE_NOSETTINGS                      /*DD 86093F*/ 
      #define CLSSTYLE_NEVERDROPON    OBJSTYLE_NODROPON                        /*DD 86093F*/ 
      #define CLSSTYLE_HIDDEN         0x00008000  /* Use instead of CLSSTYLE_PRIVATE          
                                                 because OBJSTYLE_NODROP and             
                                                 CLSSTYLE_PRIVATE have the same          
                                                 value (DD 86093F) */                    
      #define CLSSTYLE_DONTTEMPLATE   0x00010000  /* Use instead of CLSSTYLE_NEVERTEMPLATE    
                                                 because OBJSTYLE_NOTDEFAULTICON and     
                                                 CLSSTYLE_NEVERTEMPLATE have the same    
                                                 value (DD 86093F) */                    
      #define CLSSTYLE_ALWAYSTEMPLATE 0x00040000

      /* Flags for wpObjectReady() method */ 
      #define OR_NEW           0x00000001
      #define OR_AWAKE         0x00000002
      #define OR_REFERENCE     0x10000000
      #define OR_FROMTEMPLATE (0x00000004 | OR_REFERENCE)
      #define OR_FROMCOPY     (0x00000008 | OR_REFERENCE)
      #define OR_SHADOW       (0x00000010 | OR_REFERENCE)

      /*  Flags for the wpFilterPopupMenu/wpFilterMenu methods */

      /* DWORD 0  */
      #define CTXT_CRANOTHER     0x0001   /* Flags for ulFlags */
      #define CTXT_NEW           CTXT_CRANOTHER
      #define CTXT_OPEN          0x0002
      #define CTXT_WINDOW        0x0004
      #define CTXT_SWITCHTO      CTXT_WINDOW
      #define CTXT_CLOSE         0x0008
      #define CTXT_SETTINGS      0x0010
      #define CTXT_PROPERTIES    CTXT_SETTINGS
      #define CTXT_PRINT         0x0020
      #define CTXT_HELP          0x0040
      #define CTXT_DELETE        0x0080
      #define CTXT_COPY          0x0100
      #define CTXT_MOVE          0x0200
      #define CTXT_SHADOW        0x0400
      #define CTXT_LINK          CTXT_SHADOW
      #define CTXT_PROGRAM       0x0800
      #define CTXT_ICON        0x001000
      #define CTXT_TREE        0x002000
      #define CTXT_DETAILS     0x004000
      #define CTXT_FIND        0x008000
      #define CTXT_SELECT      0x010000
      #define CTXT_ARRANGE     0x020000
      #define CTXT_SORT        0x040000
      #define CTXT_SHUTDOWN    0x080000
      #define CTXT_LOCKUP      0x100000
      #define CTXT_PALETTE     0x200000
      #define CTXT_REFRESH     0x400000
      #define CTXT_PICKUP      0x800000
      #define CTXT_PUTDOWN        0x1000000
      #define CTXT_PUTDOWN_CANCEL 0x2000000
      #define CTXT_CHANGETOICON   0x4000000
      #define CTXT_CHANGETOTREE   0x8000000
      #define CTXT_CHANGETODETAILS 0x10000000
      #define CTXT_VIEW            0x20000000
      #define CTXT_PASTE           0x40000000
      #define CTXT_UNDOARRANGE     0x80000000

      /* DWORD 1  */
      #define CTXT_SELECTALL      0x00000001
      #define CTXT_DESELECTALL    0x00000002
      #define CTXT_OPENPARENT     0x00000004
      #define CTXT_SETUP          0x00000008
      #define CTXT_PRODINFO       0x00000010
      #define CTXT_ORIGINAL       0x00000020
      #define CTXT_LOCATEORIGINAL 0x00000040
      #define CTXT_DELETEORIGINAL 0x00000080
      #define CTXT_COPYORIGINAL   0x00000100
      #define CTXT_NOOBJECTS      0x00000200
      #define CTXT_MAXIMIZE       0x00000400
      #define CTXT_RESTORE        0x00000800
      #define CTXT_WINDOWLIST     0x00002000
      #define CTXT_CREATEPARTITION 0x00004000
      #define CTXT_COPYDISK       0x00008000
      #define CTXT_FORMATDISK     0x00010000
      #define CTXT_CHECKDISK      0x00020000
      #define CTXT_LOCKDISK       0x00040000
      #define CTXT_UNLOCKDISK     0x00080000
      #define CTXT_EJECTDISK      0x00100000
      #define CTXT_LOGIN          0x00200000
      #define CTXT_LOGOUT         0x00400000
      #define CTXT_ASSIGN         0x00800000
      #define CTXT_UNASSIGN       0x01000000
      #define CTXT_ACCESSNEW      0x02000000
      #define CTXT_DATETIME       0x04000000
      #define CTXT_LOCKEDINPLACE    0x08000000
      #define CTXT_LOCKEDINPLACEYES 0x10000000
      #define CTXT_LOCKEDINPLACENO  0x20000000
      #define CTXT_STANDARD         0x40000000
      #define CTXT_PERIMETER        0x80000000

      /* DWORD 2  */
      #define CTXT_SELECTEDHORZ     0x00000001
      #define CTXT_SELECTEDVERT     0x00000002
      #define CTXT_ARRANGETOP       0x00000004
      #define CTXT_LOGOFF           0x00000008
      #define CTXT_ARRANGELEFT      0x00000010
      #define CTXT_ARRANGERIGHT     0x00000020
      #define CTXT_ARRANGEBOTTOM    0x00000040
      #define CTXT_UNDOSORT         0x00000080

     /* Flags for the wpDisplayMenu() method */

     #define MENU_OBJECTPOPUP          0x00000001
     #define MENU_OPENVIEWPOPUP        0x00000002
     #define MENU_TITLEBARPULLDOWN     0x00000003
     #define MENU_TITLEBARPULLDOWNINT  0x00000004
     #define MENU_FOLDERPULLDOWN       0x00000005
     #define MENU_VIEWPULLDOWN         0x00000006
     #define MENU_HELPPULLDOWN         0x00000007
     #define MENU_EDITPULLDOWN         0x00000008
     #define MENU_SELECTEDPULLDOWN     0x00000009
     #define MENU_FOLDERMENUBAR        0x0000000A
     #define MENU_NODISPLAY            0x40000000
     #define MENU_USER                 0x80000000

      typedef struct _FILTERFLAGS
      {
         ULONG       cbItem;
         ULONG       Flags[3];
      } FILTERFLAGS;
      typedef FILTERFLAGS *PFILTERFLAGS;

      /* common context menu ids */

      #define WPMENUID_USER          0x6500
      #define WPMENUID_PRIMARY            0
      #define WPMENUID_OPEN               1
      #define WPMENUID_HELP               2
      #define WPMENUID_PRINT              3
      #define WPMENUID_SELECT             4
      #define WPMENUID_SORT               5
      #define WPMENUID_TREE               123                                 /*DD 86092F*/  
      #define WPMENUID_FIND               8                                   /*DD 86092F*/  
      #define WPMENUID_CREATEANOTHER      101                                 /*DD 86092F*/  
      #define WPMENUID_MOVE               107                                 /*DD 86092F*/  
      #define WPMENUID_COPY               108                                 /*DD 86092F*/  
      #define WPMENUID_DELETE             109                                 /*DD 86092F*/  
      #define WPMENUID_PROPERTIES         112                                 /*DD 86092F*/  
      #define WPMENUID_SELALL             114                                 /*DD 86092F*/  
      #define WPMENUID_DESELALL           115                                 /*DD 86092F*/  
      #define WPMENUID_RESERVED1          118                                 /*DD 86092F*/  
      #define WPMENUID_CLOSE              120                                 /*DD 86092F*/  
      #define WPMENUID_FORMAT             124                                 /*DD 86092F*/  
      #define WPMENUID_CHKDSK             128                                 /*DD 86092F*/  
      #define WPMENUID_FIXDSK             129                                 /*DD 86092F*/  
      #define WPMENUID_PROGRAM            132                                 /*DD 86092F*/  
      #define WPMENUID_COPYDSK            182                                 /*DD 86092F*/  
      #define WPMENUID_LOCKDISK           184                                 /*DD 86092F*/  
      #define WPMENUID_EJECTDISK          185                                 /*DD 86092F*/  
      #define WPMENUID_UNLOCKDISK         186                                 /*DD 86092F*/  
      #define WPMENUID_PICKUP             188                                 /* rme77131*/  
      #define WPMENUID_PUTDOWN            189                                 /* rme77131*/  
      #define WPMENUID_PUTDOWN_COPY       190                                 /* rme77131*/  
      #define WPMENUID_PUTDOWN_MOVE       191                                 /* rme77131*/  
      #define WPMENUID_PUTDOWN_LINK       192                                 /* rme77131*/  
      #define WPMENUID_PUTDOWN_CANCEL     193                                 /* rme77131*/  
      #define WPMENUID_PUTDOWN_CREATE     194                                 /* rme77131*/  
      #define WPMENUID_PUTDOWN_CREATEPROGRAMOBJECT     195                    /*rme146942*/  
      #define WPMENUID_ICON               303                                 /*DD 86092F*/  
      #define WPMENUID_DETAILS            304                                 /*DD 86092F*/  
      #define WPMENUID_ARRANGE            309                                 /*DD 86092F*/  
      #define WPMENUID_RESERVED2          315                                 /*DD 86092F*/  
      #define WPMENUID_CREATESHADOW       316                                 /*DD 86092F*/  
      #define WPMENUID_PALETTE            317                                 /*DD 86092F*/  
      #define WPMENUID_REFRESH            503                                 /*DD 86092F*/  
      #define WPMENUID_HELP_FOR_HELP      601                                 /*DD 86092F*/  
      #define WPMENUID_HOWTOGETHELP       601                                 /*DD 86092F*/  
      #define WPMENUID_EXTENDEDHELP       602                                 /*DD 86092F*/  
      #define WPMENUID_HELPKEYS           603                                 /*DD 86092F*/  
      #define WPMENUID_HELPINDEX          604                                 /*DD 86092F*/  
      #define WPMENUID_SHUTDOWN           704                                 /*DD 86092F*/  
      #define WPMENUID_LOCKUP             705                                 /*DD 86092F*/  
      #define WPMENUID_LOGIN              708                                 /*DD 86092F*/  
      #define WPMENUID_LOGOUT             709                                 /*DD 86092F*/  
      #define WPMENUID_ASSIGN             710                                 /*DD 86092F*/  
      #define WPMENUID_UNASSIGN           711                                 /*DD 86092F*/  
      #define WPMENUID_ACCESSNEW          712                                 /*DD 86092F*/  
      #define WPMENUID_SYSTEMSETUP        713                                 /*DD 86092F*/  
      #define WPMENUID_OPENPARENT         714                                 /*DD 86092F*/  

      /* menu ids for folder menu bar */
      #define WPMENUID_PASTE              715                                 /*pwbopend */  
      #define WPMENUID_CHANGETOICON       716                                 /*pwbopend */  
      #define WPMENUID_CHANGETOTREE       717                                 /*pwbopend */  
      #define WPMENUID_CHANGETODETAILS    718                                 /*pwbopend */  
      #define WPMENUID_FOLDERPULLDOWN     719                                 /*pwbopend */  
      #define WPMENUID_EDITPULLDOWN       720                                 /*pwbopend */  
      #define WPMENUID_VIEWPULLDOWN       721                                 /*pwbopend */  
      #define WPMENUID_SELECTEDPULLDOWN   722                                 /*pwbopend */  
      #define WPMENUID_HELPPULLDOWN       723                                 /*pwbopend */  
      #define WPMENUID_VIEW               104                                 /*pwbopend */  
      #define WPMENUID_UNDOARRANGE        724                                 /*pwbopend */  
      #define WPMENUID_MAXIMIZE           725                                 /*pwbopend */  
      #define WPMENUID_RESTORE            726                                 /*pwbopend */  
      #define WPMENUID_WINDOWLIST         728                                 /*pwbopend */  
      #define WPMENUID_DOCSHELL           729                                 /*aba142270*/  
      #define WPMENUID_LOCKEDINPLACE      730                                 /*lwb146937*/  
      #define WPMENUID_LOCKEDINPLACEYES   731                                 /*lwb146937*/  
      #define WPMENUID_LOCKEDINPLACENO    732                                 /*lwb146937*/  
      #define WPMENUID_STANDARD           733                                 /*lwb146937*/  
      #define WPMENUID_ARRANGETOP         734                                 /*lwb149411*/  
      #define WPMENUID_ARRANGELEFT        735                                 /*lwb149411*/  
      #define WPMENUID_ARRANGERIGHT       736                                 /*lwb149411*/  
      #define WPMENUID_ARRANGEBOTTOM      737                                 /*lwb149411*/  
      #define WPMENUID_LOGOFF             738                                 /*pgm 141223*/ 
      #define WPMENUID_PERIMETER          739                                 /*lwb149411*/  
      #define WPMENUID_SELECTEDHORZ       740                                 /*lwb149411*/  
      #define WPMENUID_SELECTEDVERT       741                                 /*lwb149411*/  


      /*  Views for the wpOpen(), wpFilterMenu and wpModifyMenu methods */

      #define OPEN_UNKNOWN      -1
      #define OPEN_DEFAULT       0
      #define OPEN_CONTENTS      1
      #define OPEN_SETTINGS      2
      #define OPEN_HELP          3
      #define OPEN_RUNNING       4
      #define OPEN_PROMPTDLG     5
      #define OPEN_PALETTE       121
      #define CLOSED_ICON        122
      #define OPEN_USER          0x6500

      /*  Definitions for the INUSE list that is kept
       *  for every object via wpAddToObjUseList and
       *  wpRemoveFromObjUseList methods...
       */

      /* This structure is always followed immediately by a type
       * dependant struct such as MEMORYITEM,RECORDITEM,VIEWITEM
       * or some other user defined structure...
       */
      typedef struct _USEITEM
      {
         ULONG  type;                  /* Type of this Item */
         struct _USEITEM *pNext;   /* Next item in use list */
      } USEITEM;
      typedef USEITEM *PUSEITEM;

      #define USAGE_MEMORY          1  /* Values of 'type' */
      #define USAGE_RECORD          4
      #define USAGE_OPENVIEW        5
      #define USAGE_LINK            6
      #define USAGE_OPENFILE       20
      #define USAGE_NOTIFY         21
      #define USAGE_BACKGROUNDBMP  22

      typedef struct _MEMORYITEM       /* USAGE_MEMORY struct */
      {
         ULONG     cbBuffer;           /* Number of bytes in memory block */
      } MEMORYITEM;
      typedef MEMORYITEM *PMEMORYITEM;

      typedef struct _RECORDITEM       /* USAGE_RECORD struct */
      {
         HWND            hwndCnr;      /* Cnr into which object is inserted */
         PMINIRECORDCORE pRecord;      /* Record pointer within that cnr */
         ULONG           ulUser;       /* For application use RECSH */ 
      } RECORDITEM;
      typedef RECORDITEM *PRECORDITEM;

      #define VIEWSTATE_OPENING       0x0001   /* The view is being opened */
      #define VIEWSTATE_OBJECTDELETED 0x0002   /* The object has been deleted */
      #define VIEWSTATE_USERHIDDEN    0x0004   /* The view was hidden by user */
      #define VIEWSTATE_POPULATING    0x0008   /* The view is populating      */
      #define VIEWSTATE_USERMINIMIZED 0x0010   /* The view was minimized by the user */
      #define VIEWSTATE_CLOSING       0x0020   /* The view is closing */
      #define VIEWSTATE_DELETING      0x0040   /* The object is being deleted */
      #define VIEWSTATE_PAINTED       0x0080   /* The view was painted */

      typedef struct _VIEWITEM         /* USAGE_OPENVIEW struct */
      {
         ULONG        view;            /* Object view that this represents */
         LHANDLE      handle;          /* Open handle */
         ULONG        ulViewState;     /* View State flags */
         HWND         hwndCnr;         /* System use only (window animation) */
         PMINIRECORDCORE pRecord;      /* System use only (window animation) */
      } VIEWITEM;
      typedef VIEWITEM *PVIEWITEM;

      typedef struct _LINKITEM         /* USAGE_LINK and USAGE_NOTIFY struct */
      {
         WPObject    *LinkObj;         /* The link object */
      } LINKITEM;
      typedef LINKITEM *PLINKITEM;

      typedef struct _VIEWFILE         /* USAGE_OPENFILE struct */
      {
         ULONG        ulMenuId;        /* Menu id if association or menu page */
         LHANDLE      handle;          /* Open handle */
         HWND         hwndCnr;         /* System use only (window animation) */
         PMINIRECORDCORE pRecord;      /* System use only (window animation) */
      } VIEWFILE;
      typedef VIEWFILE *PVIEWFILE;

      typedef struct _BACKGROUNDBMPITEM /* USAGE_BACKGROUNDBMP struc */
      {
         PVOID        pFolderBackground;
      } BACKGROUNDBMPITEM;
      typedef BACKGROUNDBMPITEM *PBACKGROUNDBMPITEM;

      /* Notes: The class name immediately follows the control block. The
       *        first instance variable control block immediately follows
       *        this.
       */
      typedef struct _WPSRCLASSBLOCK
      {
        SHORT   ClassNameLength;       /* Length of class name, including the
                                        * .. null terminator. This must be a
                                        * .. SHORT and must be at the beginning
                                        * .. of the structure.
                                        */
        USHORT  IVarLength;            /* Length of instance variable
                                        * .. information, including the two-
                                        * .. byte null terminator
                                        */
      } WPSRCLASSBLOCK;

      /*  Persistant storage structures (see wpSaveShort
       *  and wpRestoreShort etc...)
       */


      /* This control structure does not reside in the dormant state.
       * It is used only when a persistant data block is
       * resident in memory - either when an object is being saved or
       * when it is being restored...
       */
      typedef struct _OBJDATA
      {
         WPSRCLASSBLOCK       *CurrentClass;
         WPSRCLASSBLOCK       *First;
         PUCHAR                NextData;
         USHORT                Length;
      } OBJDATA;
      typedef OBJDATA *POBJDATA;

      /* Note: On PowerPC all structures are word aligned. sizeof
       * returns the size of structures aligned to the largest type
       * found in structure.  In otherwords, a structure containing
       * a long and a short will result in a sizeof 8 rather than 6
       * because the larger type long is used to align the structure.
       * 3 shorts in a structure will return 6 as expected.
       * The following two macros are used in place of the sizeof operator
       * when referencing the OBJDATA structure to ensure we have the
       * correct offset.  BEWARE: Changing the OBJDATA structure requires
       * that the following macros are change accordingly.
       */
      #define POBJDATA_SIZE             offsetof(OBJDATA,Length)+2
      #define ADVANCEOVER_OBJDATA( x )  (((UCHAR*)(x))+POBJDATA_SIZE)

      /*  wpCnrInsertObject/wpCnrRemoveObject structs
       *  and macros...
       */

      typedef struct _CLASSDETAILS     /* Class Details struct */
      {
         PSZ          pszAttribute;    /* Translatable string for a class attribute*/
         PVOID        pSortRecord;     /* Function pointer for sort function for attribute*/
         struct _CLASSDETAILS *pNext; /* Next item in class details list */
      } CLASSDETAILS;
      typedef CLASSDETAILS *PCLASSDETAILS;

      /* Macro to return the object associated with a given MINIRECORDCORE
       * that was inserted using the wpCnrInsertObject method
       */
      #define OBJECT_FROM_PREC( prec )   ( (PVOID)( * (((PULONG)prec)-2) ) )

      /* Macro to access the app defineable dword within the RECORDITEM
       * structure that is created when an object is put into a list
       * control using the wpCnrInsertObject method.
       */
      PULONG EXPENTRY ShlGetUserWordPtr(
         HWND            hwndCnr,
         PMINIRECORDCORE prec );

      #define USERWORD_FROM_PREC( hwnd, prec ) \ 
         ( (ULONG)( *ShlGetUserWordPtr(hwnd,prec) ) )

      /* Details comparison function definition
       *
       *    Param1  PVOID   - Pointer to details field value
       *    Param2  PVOID   - Pointer to value to be compared with
       *
       *    Returns LONG    - Must be CMP_EQUAL, CMP_GREATER, CMP_LESS
       */
      typedef LONG (EXPENTRY FNCOMPARE)(PVOID,PVOID);
      typedef FNCOMPARE *PFNCOMPARE;

      #define CMP_EQUAL            0
      #define CMP_GREATER          1
      #define CMP_LESS             2
      #define CMP_GREATER_OR_EQUAL 3
      #define CMP_LESS_OR_EQUAL    4
      #define CMP_NOT_EQUAL        5

      #define NUM_CMP_VALUES       6

      /* Owner draw function definition
       *
       *    Param1  HWND  - Handle of window that is being painted
       *    Param2  PVOID - POWNERITEM structure pointer, see the container
       *                    control programming reference for the meaning
       *                    of the fields in this structure.
       *    Param3  PVOID - Pointer to the comparison value to draw (this
       *                    is NULL, except when this function is painting
       *                    its value into the include criteria dialog
       *                    when it points to Criteria.CompareValue...)
       *
       *    Returns BOOL  - TRUE if the field was ownerdrawn, FALSE if the
       *                    container control should do default painting.
       */
      typedef BOOL (EXPENTRY FNOWNDRW)(HWND,PVOID,PVOID);
      typedef FNOWNDRW *PFNOWNDRW;

      /* Details comparison criteria structure
       */
      typedef struct _CRITERIA
      {
         PVOID            pReserved;           /* Reserved - MUST be null!!!! */
         struct _CRITERIA *pNext;
         struct _CRITERIA *pPrev;
         ULONG            ClassFieldInfoIndex; /* Index of the details field  */
         ULONG            LogicalOperator;     /* CRITERIA_AND or CRITERIA_OR */
         ULONG            ComparisonType;      /* CMP_LESS_OR_EQUAL etc...    */
         ULONG            ulLenCompareValue;   /* sizeof(ComparisonData)      */
         CHAR             CompareValue[1];     /* Value to be compared with   */
      } CRITERIA;
      typedef CRITERIA *PCRITERIA;

      #define CRITERIA_AND        0
      #define CRITERIA_OR         1

      /* ClassCriteria structure: points to a linked list of CRITERIA
       * for the given class. ClassCriteria may be linked into a list
       * too - and passed to a filter object, or the wpclsFindObjectFirst
       * method call...
       */
      typedef struct _CLASSCRITERIA
      {
         struct _CLASSCRITERIA *pNext;
         struct _CLASSCRITERIA *pPrev;
         M_WPObject            *Class;          /* Class object */
         PCRITERIA              pCriteria;      /* Linked list of criteria */
         WPObject              *NotifyObject;   /* Owner of the criteria list */
      } CLASSCRITERIA;
      typedef CLASSCRITERIA *PCLASSCRITERIA;

      /* This structure is passed to a details criteria edit window
       * when it is created, so that it knows the current value and
       * min/max values for the criteria to be edited.
       *
       * As the user modifies the compare value using the criteria
       * edit window, it should update the buffer pointed to by
       * 'pCompareValue'.
       */
      typedef struct _EDITCTLINIT
      {
         ULONG cb;                /* must have length in control data! */
         PVOID pCompareValue;     /* Buffer containing the current value */
         ULONG ulLenCompareValue; /* Length of pCompareValue buffer */
         PVOID pMinCompareValue;  /* READ-ONLY parameter, NULL => default */
         PVOID pMaxCompareValue;  /* READ-ONLY parameter, NULL => default */
      } EDITCTLINIT;
      typedef EDITCTLINIT *PEDITCTLINIT;

      /* Structure for wpclsQueryDetailsInfo method
       *
       * CLASSFIELDINFO is identical to the FIELDINFO structure of the
       * container control with the following differences:
       *
       * - The offStruct field from FIELDINFO is reserved.
       * - The offFieldData and usLenFieldData structure elements have
       *   been added.
       * - Compare/Sort/Ownerdraw fields have also been added for the
       *   convenience of the programmer, so that object details can
       *   be customized and objects can be found or included by any
       *   of their displayable object details.
       *
       * For example if the application has the following details data:
       *
       * typedef struct _SAMPLE {
       *   CDATE   cdate;
       *   CTIME   ctime;
       *   PSZ     psz;
       * }  SAMPLE;
       *
       * classfieldinfo[0].offFieldData   = FIELDOFFSET(SAMPLE,cdate);
       * classfieldinfo[0].ulLenFieldData = FIELDOFFSET(SAMPLE,ctime) -
       *                                    FIELDOFFSET(SAMPLE,cdate);
       *
       * classfieldinfo[1].offFieldData   = FIELDOFFSET(SAMPLE,ctime);
       * classfieldinfo[1].ulLenFieldData = FIELDOFFSET(SAMPLE,psz) -
       *                                    FIELDOFFSET(SAMPLE,ctime);
       *
       * classfieldinfo[2].offFieldData   = FIELDOFFSET(SAMPLE,psz);
       * classfieldinfo[2].ulLenFieldData = sizeof(SAMPLE) -
       *                                    FIELDOFFSET(SAMPLE,psz);
       *
       * NOTE: It is essential that the fields be linked in order ex. above
       *       cdate must be followed by ctime and finally psz.
       */
      typedef struct _CLASSFIELDINFO
      {
         /* Details field attributes
          */
         ULONG      cb;                  /* size of CLASSFIELDINFO struct  */
         ULONG      flData;              /* attributes of field's data     */
         ULONG      flTitle;             /* attributes of field's title    */
         PVOID      pTitleData;          /* title data (default is string) */
                                         /* If CFT_BITMAP, must be HBITMAP */
         ULONG      ulReserved;          /* Reserved                       */
         PVOID      pUserData;           /* pointer to user data           */
         struct _CLASSFIELDINFO *pNextFieldInfo; /* pointer to next linked */
                                                /* CLASSFIELDINFO structure*/
         ULONG      cxWidth;             /* width of field in pels         */
         ULONG      offFieldData;        /* offset from beginning of       */
                                         /*   this class's data for this   */
                                         /*   field. (first field is 0).   */
         ULONG      ulLenFieldData;      /* width of data in bytes.        */
                                         /*   (4 for a pointer).           */
         PFNOWNDRW  pfnOwnerDraw;        /* Ownerdraw procedure for detail */
                                         /* column. Can be NULL except if  */
                                         /* ownerdraw is being used.       */
         /* Include/Sort parameters
          */
         ULONG      flCompare;           /* Flags: for example, use the    */
                                         /*   COMPARE_SUPPORTED flag if    */
                                         /*   your field can be compared   */
         PFNCOMPARE pfnCompare;          /* Comparison function for this   */
                                         /*   field. Can be NULL unless    */
                                         /*   ownerdraw is used.           */
         ULONG      DefaultComparison;   /* This is the default compare    */
                                         /*   operator in the include      */
                                         /*   page criteria dialog. (eg:   */
                                         /*   CMP_LESS_OR_EQUAL)           */
         ULONG      ulLenCompareValue;   /* Maximum length of the compare  */
                                         /*   data. Can be NULL unless     */
                                         /*   ownerdraw is used.           */
         PVOID      pDefCompareValue;    /* The default value to be used   */
                                         /*   for comparisons. Can be NULL */
                                         /*   unless ownerdraw is used.    */
         PVOID      pMinCompareValue;    /* The default value to be used   */
                                         /*   for comparisons.Can be NULL  */
                                         /*   unless ownerdraw is used.    */
         PVOID      pMaxCompareValue;    /* The default value to be used   */
                                         /*   for comparisons.Can be NULL  */
                                         /*   unless ownerdraw is used.    */
         PSZ        pszEditControlClass; /* Window class to be used to edit*/
                                         /*   the compare value. Can be    */
                                         /*   NULL unless ownerdraw is used*/
         PFNCOMPARE pfnSort;             /* Sort function for this         */
                                         /*   field. Can be NULL unless    */
                                         /*   ownerdraw is used.           */
         PSZ        *pNewComp;
      } CLASSFIELDINFO;

      typedef CLASSFIELDINFO *PCLASSFIELDINFO;

      #define COMPARE_SUPPORTED      1
      #define SORTBY_SUPPORTED       2

      /* Standard notebook size constants */
      #define STDNOTEBOOKWIDTH    250
      #define STDNOTEBOOKHEIGHT   125

      /* Confirm flags */
      #define CONFIRM_DELETE             0x0001
      #define CONFIRM_DELETEFOLDER       0x0002
      #define CONFIRM_RENAMEFILESWITHEXT 0x0004
      #define CONFIRM_KEEPASSOC          0x0008
      #define CONFIRM_ACTION             0x0010
      #define CONFIRM_PROGRESS           0x0020
      #define CONFIRM_ALLOWFORCEDELETE   0x0040
      #define CONFIRM_FORCEDELETE        0x0080

      #define OK_DELETE             1
      #define NO_DELETE             2
      #define CANCEL_DELETE         3

      #define NUM_OBJDETAILS_FIELDS    5     /* number of object details */

      /* Search Type for wpclsQueryExtendedCriteria */

      #define SEARCH_ALL_FOLDERS 1
      #define SEARCH_THIS_FOLDER 2
      #define SEARCH_THIS_TREE   3

      /* Find method related types and constants */

      typedef WPObject   *OBJECT;
      typedef OBJECT     *POBJECT;
      typedef M_WPObject *CLASS;
      typedef CLASS      *PCLASS;
      typedef LHANDLE     HFIND;
      typedef HFIND      *PHFIND;

      /* wpDrop method return code  */

      #define RC_DROP_DROPCOMPLETE 2
      #define RC_DROP_ITEMCOMPLETE 1
      #define RC_DROP_RENDERING    0
      #define RC_DROP_ERROR       -1

      /*handle for files being tracked by the shell */

      typedef LHANDLE HFS;
      typedef LHANDLE HABS;
      #define MAXSZHFS 10       /* size of the translated string */
      #define MAKE_HOBJ(base, handle) ((HOBJECT) (((ULONG)(base) & 0x00FF0000) | (((ULONG)(handle) & 0x00FF0000) << 8) | ((ULONG)(handle) & 0x0000FFFF)) )
      #define BASEHANDLE_FROM_HOBJ(objh) ((ULONG) ((((objh) & 0xFF000000) >> 8) | ((objh) & 0xFFFF)))
      #define HABS_FROM_HOBJ(objh) ((HABS)BASEHANDLE_FROM_HOBJ(objh))
      #define HFS_FROM_HOBJ(objh) ((HFS)BASEHANDLE_FROM_HOBJ(objh))
      #define BASECLS_FROM_HOBJ(objh) ((ULONG) ((objh) & 0x00FF0000))
      #define MAXHANDLE  0x00FFFFFF

      #define SETTINGS_PAGE_REMOVED  -1

    /* wpSetConcurrentView values */
      #define CCVIEW_DEFAULT 0
      #define CCVIEW_ON      1
      #define CCVIEW_OFF     2

    /* wpSetMinWindow values */
      #define MINWIN_DEFAULT 0
      #define MINWIN_HIDDEN  1
      #define MINWIN_VIEWER  2
      #define MINWIN_DESKTOP 3

    /* wpSetButtonAppearance values */
      #define HIDEBUTTON      1
      #define MINBUTTON      2
      #define DEFAULTBUTTON  3

    /* wpConfirmObjectTitle return values */
      #define NAMECLASH_CANCEL              0x00
      #define NAMECLASH_NONE                0x01
      #define NAMECLASH_RENAME              0x02
      #define NAMECLASH_APPEND              0x04
      #define NAMECLASH_REPLACE             0x08
      #define NAMECLASH_RENAME_KEEPASSOCS   0x20
      #define NAMECLASH_NONE_KEEPASSOCS     0x30

    /* wpQueryNameClashOptions return values */
      #define NO_NAMECLASH_RENAME           0x10
      #define NO_NAMECLASH_APPEND           0x20
      #define NO_NAMECLASH_REPLACE          0x40
      #define NO_NAMECLASH_DIALOG           0x80

      #define  HIDDENMINWINDOW_DEFAULT MINWIN_VIEWER
      #ifndef __cplusplus
        #ifndef WPFolder
          #define WPFolder SOMObject     /* Define WPFolder */
        #endif
      #else
        class WPFolder;
      #endif

      typedef struct _TASKREC
      {
         struct _TASKREC *next;     /* next in the list of current tasks   */
         ULONG            useCount; /* can be referenced by multiple object*/
         PVOID            pStdDlg;  /* ptr to standard WP task dialog      */
         WPFolder        *folder;   /* intended folder for the object      */
         LONG             xOrigin;  /* intended position for the object    */
         LONG             yOrigin;  /* intended position for the object    */
         PSZ              pszTitle; /* intended name for the object        */
         ULONG            cbTitle;  /* length of the name buffer           */
         PMINIRECORDCORE  positionAfterRecord; /* intended sort position   */
         BOOL            fKeepAssociations;
         PVOID            pReserved;    /* reserved - equal null           */

      }  TASKREC;
      typedef TASKREC *PTASKREC;

      typedef struct _OBJDETAILS
      {
        PSZ    ObjTitle;
        ULONG  ObjStyle;
        PSZ    ObjClass;
      } OBJDETAILS;
      typedef OBJDETAILS *POBJDETAILS;

#define VIEW_CONTENTS      0x00000001
#define VIEW_SETTINGS      0x00000002
#define VIEW_HELP          0x00000004
#define VIEW_RUNNING       0x00000008
#define VIEW_DETAILS       0x00000010
#define VIEW_TREE          0x00000020
#define VIEW_ANY           0xFFFFFFFF  /* Special case - will find any ViewItem */

/* Identifier types for the wpIdentify() method */

#define ID_TYPE_DISK     'H'
#define ID_TYPE_FILE     'F'
#define ID_TYPE_DIR      'D'
#define ID_TYPE_TRANS    'T'
#define ID_TYPE_ABS      'A'

/*
 * Passthru some stuff to the .h file
 */


#include <som.h>

/*
 * -- This emitter treats Method Tokens as Thunks by default.
 * -- Use the sc modifier "nothunks" to change this default
 */
#undef somresolve_
#define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))

/*
 * Define the class name as an object type
 */
#ifndef WPObject
#define WPObject SOMObject
#endif
#include <somobj.h>

/*
 * Start of bindings for IDL types
 */

#ifndef SOMClass
    #define SOMClass SOMObject
#endif /* SOMClass */
#ifndef WPFolder
    #define WPFolder SOMObject
#endif /* WPFolder */
#ifndef M_WPObject
    #define M_WPObject SOMObject
#endif /* M_WPObject */
#ifndef WPObject
    #define WPObject SOMObject
#endif /* WPObject */
#ifndef WPImageFile
    #define WPImageFile SOMObject
#endif /* WPImageFile */

/*
 * End of bindings for IDL types.
 */

#define WPObject_MajorVersion 1
#define WPObject_MinorVersion 2

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define WPObjectNewClass wpobjc
#pragma linkage(wpobjc, system)
#define WPObjectClassData wpobjd
#define WPObjectCClassData wpobjx
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */

/*
 * Include the meta class file
 */
#include <wpobject.h>
/*--------------Migration------------*/
#define WPObject_classObj WPObjectClassData.classObject
#define _WPObject WPObject_classObj

/*
 * Declare the class creation procedure
 */
SOMEXTERN SOMClass * SOMLINK WPObjectNewClass(integer4 somtmajorVersion,
		integer4 somtminorVersion);
#pragma linkage(WPObjectNewClass, system)

/*
 * Declare the class data structure
 */
SOMEXTERN struct WPObjectClassDataStructure {
	SOMClass *classObject;
	somMToken wpSetTitle;
	somMToken wpQueryTitle;
	somMToken wpSetStyle;
	somMToken wpQueryStyle;
	somMToken wpSetIcon;
	somMToken wpQueryIcon;
	somMToken wpSetFolder;
	somMToken wpQueryFolder;
	somMToken wpObjectPrivate1;
	somMToken wpObjectPrivate2;
	somMToken wpSetDefaultView;
	somMToken wpQueryDefaultView;
	somMToken wpObjectPrivate3;
	somMToken wpSaveState;
	somMToken wpObjectPrivate4;
	somMToken wpObjectPrivate5;
	somMToken wpSaveLong;
	somMToken wpSaveString;
	somMToken wpSaveData;
	somMToken wpObjectPrivate6;
	somMToken wpRestoreState;
	somMToken wpObjectPrivate7;
	somMToken wpObjectPrivate8;
	somMToken wpRestoreLong;
	somMToken wpRestoreString;
	somMToken wpRestoreData;
	somMToken wpObjectPrivate9;
	somMToken wpAllocMem;
	somMToken wpFreeMem;
	somMToken wpAddToObjUseList;
	somMToken wpDeleteFromObjUseList;
	somMToken wpFindUseItem;
	somMToken wpSwitchTo;
	somMToken withdrawn1;
	somMToken wpFilterPopupMenu;
	somMToken wpModifyPopupMenu;
	somMToken wpMenuItemSelected;
	somMToken wpFormatDragItem;
	somMToken wpDrop;
	somMToken wpDragOver;
	somMToken wpRender;
	somMToken wpEndConversation;
	somMToken withdrawn10;
	somMToken wpObjectPrivate10;
	somMToken wpObjectPrivate11;
	somMToken wpFree;
	somMToken wpCopiedFromTemplate;
	somMToken wpAddSettingsPages;
	somMToken wpAddObjectGeneralPage;
	somMToken wpDisplayHelp;
	somMToken wpMenuItemHelpSelected;
	somMToken wpInsertSettingsPage;
	somMToken wpInsertPopupMenuItems;
	somMToken withdrawn5;
	somMToken withdrawn6;
	somMToken withdrawn4;
	somMToken withdrawn3;
	somMToken wpCnrInsertObject;
	somMToken wpCnrRemoveObject;
	somMToken wpInitData;
	somMToken wpUnInitData;
	somMToken wpSetup;
	somMToken wpScanSetupString;
	somMToken wpSaveImmediate;
	somMToken wpOpen;
	somMToken wpClose;
	somMToken wpHide;
	somMToken wpRestore;
	somMToken wpSetIconData;
	somMToken wpQueryIconData;
	somMToken wpObjectPrivate12;
	somMToken wpDelete;
	somMToken wpConfirmDelete;
	somMToken withdrawn2;
	somMToken withdrawn11;
	somMToken withdrawn7;
	somMToken wpRegisterView;
	somMToken wpIdentify;
	somMToken wpSetDefaultHelp;
	somMToken wpQueryDefaultHelp;
	somMToken wpDoesObjectMatch;
	somMToken wpCnrRefreshDetails;
	somMToken wpSetError;
	somMToken wpQueryError;
	somMToken wpDraggedOverObject;
	somMToken wpDroppedOnObject;
	somMToken wpSetDefaultIconPos;
	somMToken wpQueryDefaultIconPos;
	somMToken wpObjectPrivate13;
	somMToken wpObjectPrivate14;
	somMToken wpSetObjectID;
	somMToken wpQueryObjectID;
	somMToken wpIsDeleteable;
	somMToken wpQueryHandle;
	somMToken wpSaveDeferred;
	somMToken wpAddObjectWindowPage;
	somMToken wpQueryConcurrentView;
	somMToken wpSetConcurrentView;
	somMToken wpQueryMinWindow;
	somMToken wpSetMinWindow;
	somMToken wpViewObject;
	somMToken wpQueryButtonAppearance;
	somMToken wpSetButtonAppearance;
	somMToken wpQueryConfirmations;
	somMToken wpCnrSetEmphasis;
	somMToken wpQueryCoreRecord;
	somMToken wpFindViewItem;
	somMToken wpCreateFromTemplate;
	somMethodProc *wpQueryTrueStyle;
	somMToken wpAssertObjectMutexSem;
	somMToken wpReleaseObjectMutexSem;
	somMToken wpRequestObjectMutexSem;
	somMToken wpCreateAnother;
	somMToken wpCreateShadowObject;
	somMToken wpCopyObject;
	somMToken wpMoveObject;
	somMToken wpLockObject;
	somMToken wpUnlockObject;
	somMToken wpIsLocked;
	somMToken wpRenderComplete;
	somMToken wpQueryDetailsData;
	somMToken wpPrintObject;
	somMToken wpObjectPrivate15;
	somMToken wpSetTaskRec;
	somMToken wpObjectPrivate16;
	somMToken wpModifyStyle;
	somMToken wpObjectPrivate17;
	somMToken wpFindTaskRec;
	somMToken wpAppendObject;
	somMToken wpReplaceObject;
	somMToken wpQueryNameClashOptions;
	somMToken wpConfirmObjectTitle;
	somMToken _get_pobjNext;
	somMToken wpQueryContainerFlagPtr;
	somMToken wpObjectPrivate18;
	somMToken wpObjectPrivate19;
	somMToken wpObjectPrivate20;
	somMToken wpCnrDeleteUseItem;
	somMToken wpObjectReady;
	somMToken wpIsObjectInitialized;
	somMToken wpCreateShadowObjectExt;
	somMToken wpObjectPrivate21;
	somMToken wpObjectPrivate22;
	somMToken wpObjectPrivate26;
	somMToken wpDisplayMenu;
	somMToken wpWaitForClose;
	somMToken wpQueryScreenGroupID;
	somMToken wpSetupOnce;
	somMToken wpAddObjectGeneralPage2;
	somMToken wpObjectPrivate23;
	somMToken wpObjectPrivate24;
	somMToken wpModifyMenu;
	somMToken wpFilterMenu;
	somMToken wpInsertMenuItems;
	somMToken wpSetMenuStyle;
	somMToken wpQueryMenuStyle;
	somMToken wpObjectPrivate27;
	somMToken wpObjectPrivate28;
	somMToken wpObjectPrivate29;
	somMToken wpObjectPrivate30;
	somMToken wpQueryOpenView;
	somMToken wpSetOpenView;
} SOMDLINK WPObjectClassData;

/*
 * Declare the C specific class data structure
 */
SOMEXTERN struct WPObjectCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken instanceDataToken;
} SOMDLINK WPObjectCClassData;

/*
 * New and Renew macros for WPObject
 */
#define WPObjectNew() \
   ( _WPObject ? \
	_somNew(_WPObject) \
	: ( WPObjectNewClass(\
		WPObject_MajorVersion, \
		WPObject_MinorVersion),\
	   _somNew(_WPObject)))
#define WPObjectRenew(buf) \
   ( _WPObject ? \
	_somRenew(_WPObject, buf) \
	: ( WPObjectNewClass(\
		WPObject_MajorVersion, \
		WPObject_MinorVersion),\
	   _somRenew(_WPObject, buf)))

/*
 * Override method: somInit
 */
#define WPObject_somInit(somSelf) \
	SOMObject_somInit(somSelf)

/*
 * Override method: somUninit
 */
#define WPObject_somUninit(somSelf) \
	SOMObject_somUninit(somSelf)

/*
 * Override method: somDefaultInit
 */
#define WPObject_somDefaultInit(somSelf,ctrl) \
	SOMObject_somDefaultInit(somSelf,ctrl)

/*
 * Override method: somDestruct
 */
#define WPObject_somDestruct(somSelf,doFree,ctrl) \
	SOMObject_somDestruct(somSelf,doFree,ctrl)

/*
 * New Method: wpAddObjectGeneralPage
 */
typedef ULONG   SOMLINK somTP_WPObject_wpAddObjectGeneralPage(WPObject *somSelf, 
		HWND hwndNotebook);
#pragma linkage(somTP_WPObject_wpAddObjectGeneralPage, system)
typedef somTP_WPObject_wpAddObjectGeneralPage *somTD_WPObject_wpAddObjectGeneralPage;
#define somMD_WPObject_wpAddObjectGeneralPage "::WPObject::wpAddObjectGeneralPage"
#define WPObject_wpAddObjectGeneralPage(somSelf,hwndNotebook) \
    (SOM_Resolve(somSelf, WPObject, wpAddObjectGeneralPage) \
	(somSelf,hwndNotebook))
#ifndef SOMGD_wpAddObjectGeneralPage
    #if (defined(_wpAddObjectGeneralPage) || defined(__wpAddObjectGeneralPage))
        #undef _wpAddObjectGeneralPage
        #undef __wpAddObjectGeneralPage
        #define SOMGD_wpAddObjectGeneralPage 1
    #else
        #define _wpAddObjectGeneralPage WPObject_wpAddObjectGeneralPage
    #endif /* _wpAddObjectGeneralPage */
#endif /* SOMGD_wpAddObjectGeneralPage */

/*
 * New Method: wpAddObjectGeneralPage2
 */
typedef ULONG   SOMLINK somTP_WPObject_wpAddObjectGeneralPage2(WPObject *somSelf, 
		HWND hwndNotebook);
#pragma linkage(somTP_WPObject_wpAddObjectGeneralPage2, system)
typedef somTP_WPObject_wpAddObjectGeneralPage2 *somTD_WPObject_wpAddObjectGeneralPage2;
#define somMD_WPObject_wpAddObjectGeneralPage2 "::WPObject::wpAddObjectGeneralPage2"
#define WPObject_wpAddObjectGeneralPage2(somSelf,hwndNotebook) \
    (SOM_Resolve(somSelf, WPObject, wpAddObjectGeneralPage2) \
	(somSelf,hwndNotebook))
#ifndef SOMGD_wpAddObjectGeneralPage2
    #if (defined(_wpAddObjectGeneralPage2) || defined(__wpAddObjectGeneralPage2))
        #undef _wpAddObjectGeneralPage2
        #undef __wpAddObjectGeneralPage2
        #define SOMGD_wpAddObjectGeneralPage2 1
    #else
        #define _wpAddObjectGeneralPage2 WPObject_wpAddObjectGeneralPage2
    #endif /* _wpAddObjectGeneralPage2 */
#endif /* SOMGD_wpAddObjectGeneralPage2 */

/*
 * New Method: wpAddObjectWindowPage
 */
typedef ULONG   SOMLINK somTP_WPObject_wpAddObjectWindowPage(WPObject *somSelf, 
		HWND hwndNotebook);
#pragma linkage(somTP_WPObject_wpAddObjectWindowPage, system)
typedef somTP_WPObject_wpAddObjectWindowPage *somTD_WPObject_wpAddObjectWindowPage;
#define somMD_WPObject_wpAddObjectWindowPage "::WPObject::wpAddObjectWindowPage"
#define WPObject_wpAddObjectWindowPage(somSelf,hwndNotebook) \
    (SOM_Resolve(somSelf, WPObject, wpAddObjectWindowPage) \
	(somSelf,hwndNotebook))
#ifndef SOMGD_wpAddObjectWindowPage
    #if (defined(_wpAddObjectWindowPage) || defined(__wpAddObjectWindowPage))
        #undef _wpAddObjectWindowPage
        #undef __wpAddObjectWindowPage
        #define SOMGD_wpAddObjectWindowPage 1
    #else
        #define _wpAddObjectWindowPage WPObject_wpAddObjectWindowPage
    #endif /* _wpAddObjectWindowPage */
#endif /* SOMGD_wpAddObjectWindowPage */

/*
 * New Method: wpAddSettingsPages
 */
typedef BOOL   SOMLINK somTP_WPObject_wpAddSettingsPages(WPObject *somSelf, 
		HWND hwndNotebook);
#pragma linkage(somTP_WPObject_wpAddSettingsPages, system)
typedef somTP_WPObject_wpAddSettingsPages *somTD_WPObject_wpAddSettingsPages;
#define somMD_WPObject_wpAddSettingsPages "::WPObject::wpAddSettingsPages"
#define WPObject_wpAddSettingsPages(somSelf,hwndNotebook) \
    (SOM_Resolve(somSelf, WPObject, wpAddSettingsPages) \
	(somSelf,hwndNotebook))
#ifndef SOMGD_wpAddSettingsPages
    #if (defined(_wpAddSettingsPages) || defined(__wpAddSettingsPages))
        #undef _wpAddSettingsPages
        #undef __wpAddSettingsPages
        #define SOMGD_wpAddSettingsPages 1
    #else
        #define _wpAddSettingsPages WPObject_wpAddSettingsPages
    #endif /* _wpAddSettingsPages */
#endif /* SOMGD_wpAddSettingsPages */

/*
 * New Method: wpAddToObjUseList
 */
typedef BOOL   SOMLINK somTP_WPObject_wpAddToObjUseList(WPObject *somSelf, 
		PUSEITEM pUseItem);
#pragma linkage(somTP_WPObject_wpAddToObjUseList, system)
typedef somTP_WPObject_wpAddToObjUseList *somTD_WPObject_wpAddToObjUseList;
#define somMD_WPObject_wpAddToObjUseList "::WPObject::wpAddToObjUseList"
#define WPObject_wpAddToObjUseList(somSelf,pUseItem) \
    (SOM_Resolve(somSelf, WPObject, wpAddToObjUseList) \
	(somSelf,pUseItem))
#ifndef SOMGD_wpAddToObjUseList
    #if (defined(_wpAddToObjUseList) || defined(__wpAddToObjUseList))
        #undef _wpAddToObjUseList
        #undef __wpAddToObjUseList
        #define SOMGD_wpAddToObjUseList 1
    #else
        #define _wpAddToObjUseList WPObject_wpAddToObjUseList
    #endif /* _wpAddToObjUseList */
#endif /* SOMGD_wpAddToObjUseList */

/*
 * New Method: wpAllocMem
 */
typedef PBYTE   SOMLINK somTP_WPObject_wpAllocMem(WPObject *somSelf, 
		ULONG cbBytes, 
		PULONG prc);
#pragma linkage(somTP_WPObject_wpAllocMem, system)
typedef somTP_WPObject_wpAllocMem *somTD_WPObject_wpAllocMem;
#define somMD_WPObject_wpAllocMem "::WPObject::wpAllocMem"
#define WPObject_wpAllocMem(somSelf,cbBytes,prc) \
    (SOM_Resolve(somSelf, WPObject, wpAllocMem) \
	(somSelf,cbBytes,prc))
#ifndef SOMGD_wpAllocMem
    #if (defined(_wpAllocMem) || defined(__wpAllocMem))
        #undef _wpAllocMem
        #undef __wpAllocMem
        #define SOMGD_wpAllocMem 1
    #else
        #define _wpAllocMem WPObject_wpAllocMem
    #endif /* _wpAllocMem */
#endif /* SOMGD_wpAllocMem */

/*
 * New Method: wpAppendObject
 */
typedef BOOL32   SOMLINK somTP_WPObject_wpAppendObject(WPObject *somSelf, 
		WPObject* targetObject, 
		BOOL32 fMove);
#pragma linkage(somTP_WPObject_wpAppendObject, system)
typedef somTP_WPObject_wpAppendObject *somTD_WPObject_wpAppendObject;
#define somMD_WPObject_wpAppendObject "::WPObject::wpAppendObject"
#define WPObject_wpAppendObject(somSelf,targetObject,fMove) \
    (SOM_Resolve(somSelf, WPObject, wpAppendObject) \
	(somSelf,targetObject,fMove))
#ifndef SOMGD_wpAppendObject
    #if (defined(_wpAppendObject) || defined(__wpAppendObject))
        #undef _wpAppendObject
        #undef __wpAppendObject
        #define SOMGD_wpAppendObject 1
    #else
        #define _wpAppendObject WPObject_wpAppendObject
    #endif /* _wpAppendObject */
#endif /* SOMGD_wpAppendObject */

/*
 * New Method: wpAssertObjectMutexSem
 */
typedef BOOL   SOMLINK somTP_WPObject_wpAssertObjectMutexSem(WPObject *somSelf);
#pragma linkage(somTP_WPObject_wpAssertObjectMutexSem, system)
typedef somTP_WPObject_wpAssertObjectMutexSem *somTD_WPObject_wpAssertObjectMutexSem;
#define somMD_WPObject_wpAssertObjectMutexSem "::WPObject::wpAssertObjectMutexSem"
#define WPObject_wpAssertObjectMutexSem(somSelf) \
    (SOM_Resolve(somSelf, WPObject, wpAssertObjectMutexSem) \
	(somSelf))
#ifndef SOMGD_wpAssertObjectMutexSem
    #if (defined(_wpAssertObjectMutexSem) || defined(__wpAssertObjectMutexSem))
        #undef _wpAssertObjectMutexSem
        #undef __wpAssertObjectMutexSem
        #define SOMGD_wpAssertObjectMutexSem 1
    #else
        #define _wpAssertObjectMutexSem WPObject_wpAssertObjectMutexSem
    #endif /* _wpAssertObjectMutexSem */
#endif /* SOMGD_wpAssertObjectMutexSem */

/*
 * New Method: wpClose
 */
typedef BOOL   SOMLINK somTP_WPObject_wpClose(WPObject *somSelf);
#pragma linkage(somTP_WPObject_wpClose, system)
typedef somTP_WPObject_wpClose *somTD_WPObject_wpClose;
#define somMD_WPObject_wpClose "::WPObject::wpClose"
#define WPObject_wpClose(somSelf) \
    (SOM_Resolve(somSelf, WPObject, wpClose) \
	(somSelf))
#ifndef SOMGD_wpClose
    #if (defined(_wpClose) || defined(__wpClose))
        #undef _wpClose
        #undef __wpClose
        #define SOMGD_wpClose 1
    #else
        #define _wpClose WPObject_wpClose
    #endif /* _wpClose */
#endif /* SOMGD_wpClose */

/*
 * New Method: wpCnrInsertObject
 */
typedef PMINIRECORDCORE   SOMLINK somTP_WPObject_wpCnrInsertObject(WPObject *somSelf, 
		HWND hwndCnr, 
		PPOINTL pptlIcon, 
		PMINIRECORDCORE preccParent, 
		PRECORDINSERT pRecInsert);
#pragma linkage(somTP_WPObject_wpCnrInsertObject, system)
typedef somTP_WPObject_wpCnrInsertObject *somTD_WPObject_wpCnrInsertObject;
#define somMD_WPObject_wpCnrInsertObject "::WPObject::wpCnrInsertObject"
#define WPObject_wpCnrInsertObject(somSelf,hwndCnr,pptlIcon,preccParent,pRecInsert) \
    (SOM_Resolve(somSelf, WPObject, wpCnrInsertObject) \
	(somSelf,hwndCnr,pptlIcon,preccParent,pRecInsert))
#ifndef SOMGD_wpCnrInsertObject
    #if (defined(_wpCnrInsertObject) || defined(__wpCnrInsertObject))
        #undef _wpCnrInsertObject
        #undef __wpCnrInsertObject
        #define SOMGD_wpCnrInsertObject 1
    #else
        #define _wpCnrInsertObject WPObject_wpCnrInsertObject
    #endif /* _wpCnrInsertObject */
#endif /* SOMGD_wpCnrInsertObject */

/*
 * New Method: wpCnrRemoveObject
 */
typedef BOOL   SOMLINK somTP_WPObject_wpCnrRemoveObject(WPObject *somSelf, 
		HWND hwndCnr);
#pragma linkage(somTP_WPObject_wpCnrRemoveObject, system)
typedef somTP_WPObject_wpCnrRemoveObject *somTD_WPObject_wpCnrRemoveObject;
#define somMD_WPObject_wpCnrRemoveObject "::WPObject::wpCnrRemoveObject"
#define WPObject_wpCnrRemoveObject(somSelf,hwndCnr) \
    (SOM_Resolve(somSelf, WPObject, wpCnrRemoveObject) \
	(somSelf,hwndCnr))
#ifndef SOMGD_wpCnrRemoveObject
    #if (defined(_wpCnrRemoveObject) || defined(__wpCnrRemoveObject))
        #undef _wpCnrRemoveObject
        #undef __wpCnrRemoveObject
        #define SOMGD_wpCnrRemoveObject 1
    #else
        #define _wpCnrRemoveObject WPObject_wpCnrRemoveObject
    #endif /* _wpCnrRemoveObject */
#endif /* SOMGD_wpCnrRemoveObject */

/*
 * New Method: wpCnrSetEmphasis
 */
typedef BOOL   SOMLINK somTP_WPObject_wpCnrSetEmphasis(WPObject *somSelf, 
		ULONG ulEmphasisAttr, 
		BOOL fTurnOn);
#pragma linkage(somTP_WPObject_wpCnrSetEmphasis, system)
typedef somTP_WPObject_wpCnrSetEmphasis *somTD_WPObject_wpCnrSetEmphasis;
#define somMD_WPObject_wpCnrSetEmphasis "::WPObject::wpCnrSetEmphasis"
#define WPObject_wpCnrSetEmphasis(somSelf,ulEmphasisAttr,fTurnOn) \
    (SOM_Resolve(somSelf, WPObject, wpCnrSetEmphasis) \
	(somSelf,ulEmphasisAttr,fTurnOn))
#ifndef SOMGD_wpCnrSetEmphasis
    #if (defined(_wpCnrSetEmphasis) || defined(__wpCnrSetEmphasis))
        #undef _wpCnrSetEmphasis
        #undef __wpCnrSetEmphasis
        #define SOMGD_wpCnrSetEmphasis 1
    #else
        #define _wpCnrSetEmphasis WPObject_wpCnrSetEmphasis
    #endif /* _wpCnrSetEmphasis */
#endif /* SOMGD_wpCnrSetEmphasis */

/*
 * New Method: wpConfirmDelete
 */
typedef ULONG   SOMLINK somTP_WPObject_wpConfirmDelete(WPObject *somSelf, 
		ULONG fConfirmations);
#pragma linkage(somTP_WPObject_wpConfirmDelete, system)
typedef somTP_WPObject_wpConfirmDelete *somTD_WPObject_wpConfirmDelete;
#define somMD_WPObject_wpConfirmDelete "::WPObject::wpConfirmDelete"
#define WPObject_wpConfirmDelete(somSelf,fConfirmations) \
    (SOM_Resolve(somSelf, WPObject, wpConfirmDelete) \
	(somSelf,fConfirmations))
#ifndef SOMGD_wpConfirmDelete
    #if (defined(_wpConfirmDelete) || defined(__wpConfirmDelete))
        #undef _wpConfirmDelete
        #undef __wpConfirmDelete
        #define SOMGD_wpConfirmDelete 1
    #else
        #define _wpConfirmDelete WPObject_wpConfirmDelete
    #endif /* _wpConfirmDelete */
#endif /* SOMGD_wpConfirmDelete */

/*
 * New Method: wpConfirmObjectTitle
 */
typedef ULONG   SOMLINK somTP_WPObject_wpConfirmObjectTitle(WPObject *somSelf, 
		WPFolder* Folder, 
		WPObject** ppDuplicate, 
		PSZ pszTitle, 
		ULONG cbTitle, 
		ULONG menuID);
#pragma linkage(somTP_WPObject_wpConfirmObjectTitle, system)
typedef somTP_WPObject_wpConfirmObjectTitle *somTD_WPObject_wpConfirmObjectTitle;
#define somMD_WPObject_wpConfirmObjectTitle "::WPObject::wpConfirmObjectTitle"
#define WPObject_wpConfirmObjectTitle(somSelf,Folder,ppDuplicate,pszTitle,cbTitle,menuID) \
    (SOM_Resolve(somSelf, WPObject, wpConfirmObjectTitle) \
	(somSelf,Folder,ppDuplicate,pszTitle,cbTitle,menuID))
#ifndef SOMGD_wpConfirmObjectTitle
    #if (defined(_wpConfirmObjectTitle) || defined(__wpConfirmObjectTitle))
        #undef _wpConfirmObjectTitle
        #undef __wpConfirmObjectTitle
        #define SOMGD_wpConfirmObjectTitle 1
    #else
        #define _wpConfirmObjectTitle WPObject_wpConfirmObjectTitle
    #endif /* _wpConfirmObjectTitle */
#endif /* SOMGD_wpConfirmObjectTitle */

/*
 * New Method: wpCopiedFromTemplate
 */
typedef void   SOMLINK somTP_WPObject_wpCopiedFromTemplate(WPObject *somSelf);
#pragma linkage(somTP_WPObject_wpCopiedFromTemplate, system)
typedef somTP_WPObject_wpCopiedFromTemplate *somTD_WPObject_wpCopiedFromTemplate;
#define somMD_WPObject_wpCopiedFromTemplate "::WPObject::wpCopiedFromTemplate"
#define WPObject_wpCopiedFromTemplate(somSelf) \
    (SOM_Resolve(somSelf, WPObject, wpCopiedFromTemplate) \
	(somSelf))
#ifndef SOMGD_wpCopiedFromTemplate
    #if (defined(_wpCopiedFromTemplate) || defined(__wpCopiedFromTemplate))
        #undef _wpCopiedFromTemplate
        #undef __wpCopiedFromTemplate
        #define SOMGD_wpCopiedFromTemplate 1
    #else
        #define _wpCopiedFromTemplate WPObject_wpCopiedFromTemplate
    #endif /* _wpCopiedFromTemplate */
#endif /* SOMGD_wpCopiedFromTemplate */

/*
 * New Method: wpCopyObject
 */
typedef WPObject*   SOMLINK somTP_WPObject_wpCopyObject(WPObject *somSelf, 
		WPFolder* Folder, 
		BOOL fLock);
#pragma linkage(somTP_WPObject_wpCopyObject, system)
typedef somTP_WPObject_wpCopyObject *somTD_WPObject_wpCopyObject;
#define somMD_WPObject_wpCopyObject "::WPObject::wpCopyObject"
#define WPObject_wpCopyObject(somSelf,Folder,fLock) \
    (SOM_Resolve(somSelf, WPObject, wpCopyObject) \
	(somSelf,Folder,fLock))
#ifndef SOMGD_wpCopyObject
    #if (defined(_wpCopyObject) || defined(__wpCopyObject))
        #undef _wpCopyObject
        #undef __wpCopyObject
        #define SOMGD_wpCopyObject 1
    #else
        #define _wpCopyObject WPObject_wpCopyObject
    #endif /* _wpCopyObject */
#endif /* SOMGD_wpCopyObject */

/*
 * New Method: wpCreateAnother
 */
typedef WPObject*   SOMLINK somTP_WPObject_wpCreateAnother(WPObject *somSelf, 
		PSZ pszTitle, 
		PSZ pszSetupEnv, 
		WPFolder* Folder);
#pragma linkage(somTP_WPObject_wpCreateAnother, system)
typedef somTP_WPObject_wpCreateAnother *somTD_WPObject_wpCreateAnother;
#define somMD_WPObject_wpCreateAnother "::WPObject::wpCreateAnother"
#define WPObject_wpCreateAnother(somSelf,pszTitle,pszSetupEnv,Folder) \
    (SOM_Resolve(somSelf, WPObject, wpCreateAnother) \
	(somSelf,pszTitle,pszSetupEnv,Folder))
#ifndef SOMGD_wpCreateAnother
    #if (defined(_wpCreateAnother) || defined(__wpCreateAnother))
        #undef _wpCreateAnother
        #undef __wpCreateAnother
        #define SOMGD_wpCreateAnother 1
    #else
        #define _wpCreateAnother WPObject_wpCreateAnother
    #endif /* _wpCreateAnother */
#endif /* SOMGD_wpCreateAnother */

/*
 * New Method: wpCreateFromTemplate
 */
typedef WPObject*   SOMLINK somTP_WPObject_wpCreateFromTemplate(WPObject *somSelf, 
		WPFolder* folder, 
		BOOL fLock);
#pragma linkage(somTP_WPObject_wpCreateFromTemplate, system)
typedef somTP_WPObject_wpCreateFromTemplate *somTD_WPObject_wpCreateFromTemplate;
#define somMD_WPObject_wpCreateFromTemplate "::WPObject::wpCreateFromTemplate"
#define WPObject_wpCreateFromTemplate(somSelf,folder,fLock) \
    (SOM_Resolve(somSelf, WPObject, wpCreateFromTemplate) \
	(somSelf,folder,fLock))
#ifndef SOMGD_wpCreateFromTemplate
    #if (defined(_wpCreateFromTemplate) || defined(__wpCreateFromTemplate))
        #undef _wpCreateFromTemplate
        #undef __wpCreateFromTemplate
        #define SOMGD_wpCreateFromTemplate 1
    #else
        #define _wpCreateFromTemplate WPObject_wpCreateFromTemplate
    #endif /* _wpCreateFromTemplate */
#endif /* SOMGD_wpCreateFromTemplate */

/*
 * New Method: wpCreateShadowObject
 */
typedef WPObject*   SOMLINK somTP_WPObject_wpCreateShadowObject(WPObject *somSelf, 
		WPFolder* Folder, 
		BOOL fLock);
#pragma linkage(somTP_WPObject_wpCreateShadowObject, system)
typedef somTP_WPObject_wpCreateShadowObject *somTD_WPObject_wpCreateShadowObject;
#define somMD_WPObject_wpCreateShadowObject "::WPObject::wpCreateShadowObject"
#define WPObject_wpCreateShadowObject(somSelf,Folder,fLock) \
    (SOM_Resolve(somSelf, WPObject, wpCreateShadowObject) \
	(somSelf,Folder,fLock))
#ifndef SOMGD_wpCreateShadowObject
    #if (defined(_wpCreateShadowObject) || defined(__wpCreateShadowObject))
        #undef _wpCreateShadowObject
        #undef __wpCreateShadowObject
        #define SOMGD_wpCreateShadowObject 1
    #else
        #define _wpCreateShadowObject WPObject_wpCreateShadowObject
    #endif /* _wpCreateShadowObject */
#endif /* SOMGD_wpCreateShadowObject */

/*
 * New Method: wpDelete
 */
typedef ULONG   SOMLINK somTP_WPObject_wpDelete(WPObject *somSelf, 
		ULONG fConfirmations);
#pragma linkage(somTP_WPObject_wpDelete, system)
typedef somTP_WPObject_wpDelete *somTD_WPObject_wpDelete;
#define somMD_WPObject_wpDelete "::WPObject::wpDelete"
#define WPObject_wpDelete(somSelf,fConfirmations) \
    (SOM_Resolve(somSelf, WPObject, wpDelete) \
	(somSelf,fConfirmations))
#ifndef SOMGD_wpDelete
    #if (defined(_wpDelete) || defined(__wpDelete))
        #undef _wpDelete
        #undef __wpDelete
        #define SOMGD_wpDelete 1
    #else
        #define _wpDelete WPObject_wpDelete
    #endif /* _wpDelete */
#endif /* SOMGD_wpDelete */

/*
 * New Method: wpDeleteFromObjUseList
 */
typedef BOOL   SOMLINK somTP_WPObject_wpDeleteFromObjUseList(WPObject *somSelf, 
		PUSEITEM pUseItem);
#pragma linkage(somTP_WPObject_wpDeleteFromObjUseList, system)
typedef somTP_WPObject_wpDeleteFromObjUseList *somTD_WPObject_wpDeleteFromObjUseList;
#define somMD_WPObject_wpDeleteFromObjUseList "::WPObject::wpDeleteFromObjUseList"
#define WPObject_wpDeleteFromObjUseList(somSelf,pUseItem) \
    (SOM_Resolve(somSelf, WPObject, wpDeleteFromObjUseList) \
	(somSelf,pUseItem))
#ifndef SOMGD_wpDeleteFromObjUseList
    #if (defined(_wpDeleteFromObjUseList) || defined(__wpDeleteFromObjUseList))
        #undef _wpDeleteFromObjUseList
        #undef __wpDeleteFromObjUseList
        #define SOMGD_wpDeleteFromObjUseList 1
    #else
        #define _wpDeleteFromObjUseList WPObject_wpDeleteFromObjUseList
    #endif /* _wpDeleteFromObjUseList */
#endif /* SOMGD_wpDeleteFromObjUseList */

/*
 * New Method: wpDisplayHelp
 */
typedef BOOL   SOMLINK somTP_WPObject_wpDisplayHelp(WPObject *somSelf, 
		ULONG HelpPanelId, 
		PSZ HelpLibrary);
#pragma linkage(somTP_WPObject_wpDisplayHelp, system)
typedef somTP_WPObject_wpDisplayHelp *somTD_WPObject_wpDisplayHelp;
#define somMD_WPObject_wpDisplayHelp "::WPObject::wpDisplayHelp"
#define WPObject_wpDisplayHelp(somSelf,HelpPanelId,HelpLibrary) \
    (SOM_Resolve(somSelf, WPObject, wpDisplayHelp) \
	(somSelf,HelpPanelId,HelpLibrary))
#ifndef SOMGD_wpDisplayHelp
    #if (defined(_wpDisplayHelp) || defined(__wpDisplayHelp))
        #undef _wpDisplayHelp
        #undef __wpDisplayHelp
        #define SOMGD_wpDisplayHelp 1
    #else
        #define _wpDisplayHelp WPObject_wpDisplayHelp
    #endif /* _wpDisplayHelp */
#endif /* SOMGD_wpDisplayHelp */

/*
 * New Method: wpDisplayMenu
 */
typedef HWND   SOMLINK somTP_WPObject_wpDisplayMenu(WPObject *somSelf, 
		HWND hwndOwner, 
		HWND hwndClient, 
		POINTL* ptlPopupPt, 
		ULONG ulMenuType, 
		ULONG ulReserved);
#pragma linkage(somTP_WPObject_wpDisplayMenu, system)
typedef somTP_WPObject_wpDisplayMenu *somTD_WPObject_wpDisplayMenu;
#define somMD_WPObject_wpDisplayMenu "::WPObject::wpDisplayMenu"
#define WPObject_wpDisplayMenu(somSelf,hwndOwner,hwndClient,ptlPopupPt,ulMenuType,ulReserved) \
    (SOM_Resolve(somSelf, WPObject, wpDisplayMenu) \
	(somSelf,hwndOwner,hwndClient,ptlPopupPt,ulMenuType,ulReserved))
#ifndef SOMGD_wpDisplayMenu
    #if (defined(_wpDisplayMenu) || defined(__wpDisplayMenu))
        #undef _wpDisplayMenu
        #undef __wpDisplayMenu
        #define SOMGD_wpDisplayMenu 1
    #else
        #define _wpDisplayMenu WPObject_wpDisplayMenu
    #endif /* _wpDisplayMenu */
#endif /* SOMGD_wpDisplayMenu */

/*
 * New Method: wpDoesObjectMatch
 */
typedef BOOL   SOMLINK somTP_WPObject_wpDoesObjectMatch(WPObject *somSelf, 
		PVOID pvoidExtendedCriteria);
#pragma linkage(somTP_WPObject_wpDoesObjectMatch, system)
typedef somTP_WPObject_wpDoesObjectMatch *somTD_WPObject_wpDoesObjectMatch;
#define somMD_WPObject_wpDoesObjectMatch "::WPObject::wpDoesObjectMatch"
#define WPObject_wpDoesObjectMatch(somSelf,pvoidExtendedCriteria) \
    (SOM_Resolve(somSelf, WPObject, wpDoesObjectMatch) \
	(somSelf,pvoidExtendedCriteria))
#ifndef SOMGD_wpDoesObjectMatch
    #if (defined(_wpDoesObjectMatch) || defined(__wpDoesObjectMatch))
        #undef _wpDoesObjectMatch
        #undef __wpDoesObjectMatch
        #define SOMGD_wpDoesObjectMatch 1
    #else
        #define _wpDoesObjectMatch WPObject_wpDoesObjectMatch
    #endif /* _wpDoesObjectMatch */
#endif /* SOMGD_wpDoesObjectMatch */

/*
 * New Method: wpDraggedOverObject
 */
typedef MRESULT   SOMLINK somTP_WPObject_wpDraggedOverObject(WPObject *somSelf, 
		WPObject* DraggedOverObject);
#pragma linkage(somTP_WPObject_wpDraggedOverObject, system)
typedef somTP_WPObject_wpDraggedOverObject *somTD_WPObject_wpDraggedOverObject;
#define somMD_WPObject_wpDraggedOverObject "::WPObject::wpDraggedOverObject"
#define WPObject_wpDraggedOverObject(somSelf,DraggedOverObject) \
    (SOM_Resolve(somSelf, WPObject, wpDraggedOverObject) \
	(somSelf,DraggedOverObject))
#ifndef SOMGD_wpDraggedOverObject
    #if (defined(_wpDraggedOverObject) || defined(__wpDraggedOverObject))
        #undef _wpDraggedOverObject
        #undef __wpDraggedOverObject
        #define SOMGD_wpDraggedOverObject 1
    #else
        #define _wpDraggedOverObject WPObject_wpDraggedOverObject
    #endif /* _wpDraggedOverObject */
#endif /* SOMGD_wpDraggedOverObject */

/*
 * New Method: wpDragOver
 */
typedef MRESULT   SOMLINK somTP_WPObject_wpDragOver(WPObject *somSelf, 
		HWND hwndCnr, 
		PDRAGINFO pdrgInfo);
#pragma linkage(somTP_WPObject_wpDragOver, system)
typedef somTP_WPObject_wpDragOver *somTD_WPObject_wpDragOver;
#define somMD_WPObject_wpDragOver "::WPObject::wpDragOver"
#define WPObject_wpDragOver(somSelf,hwndCnr,pdrgInfo) \
    (SOM_Resolve(somSelf, WPObject, wpDragOver) \
	(somSelf,hwndCnr,pdrgInfo))
#ifndef SOMGD_wpDragOver
    #if (defined(_wpDragOver) || defined(__wpDragOver))
        #undef _wpDragOver
        #undef __wpDragOver
        #define SOMGD_wpDragOver 1
    #else
        #define _wpDragOver WPObject_wpDragOver
    #endif /* _wpDragOver */
#endif /* SOMGD_wpDragOver */

/*
 * New Method: wpDrop
 */
typedef MRESULT   SOMLINK somTP_WPObject_wpDrop(WPObject *somSelf, 
		HWND hwndCnr, 
		PDRAGINFO pdrgInfo, 
		PDRAGITEM pdrgItem);
#pragma linkage(somTP_WPObject_wpDrop, system)
typedef somTP_WPObject_wpDrop *somTD_WPObject_wpDrop;
#define somMD_WPObject_wpDrop "::WPObject::wpDrop"
#define WPObject_wpDrop(somSelf,hwndCnr,pdrgInfo,pdrgItem) \
    (SOM_Resolve(somSelf, WPObject, wpDrop) \
	(somSelf,hwndCnr,pdrgInfo,pdrgItem))
#ifndef SOMGD_wpDrop
    #if (defined(_wpDrop) || defined(__wpDrop))
        #undef _wpDrop
        #undef __wpDrop
        #define SOMGD_wpDrop 1
    #else
        #define _wpDrop WPObject_wpDrop
    #endif /* _wpDrop */
#endif /* SOMGD_wpDrop */

/*
 * New Method: wpDroppedOnObject
 */
typedef BOOL   SOMLINK somTP_WPObject_wpDroppedOnObject(WPObject *somSelf, 
		WPObject* DroppedOnObject);
#pragma linkage(somTP_WPObject_wpDroppedOnObject, system)
typedef somTP_WPObject_wpDroppedOnObject *somTD_WPObject_wpDroppedOnObject;
#define somMD_WPObject_wpDroppedOnObject "::WPObject::wpDroppedOnObject"
#define WPObject_wpDroppedOnObject(somSelf,DroppedOnObject) \
    (SOM_Resolve(somSelf, WPObject, wpDroppedOnObject) \
	(somSelf,DroppedOnObject))
#ifndef SOMGD_wpDroppedOnObject
    #if (defined(_wpDroppedOnObject) || defined(__wpDroppedOnObject))
        #undef _wpDroppedOnObject
        #undef __wpDroppedOnObject
        #define SOMGD_wpDroppedOnObject 1
    #else
        #define _wpDroppedOnObject WPObject_wpDroppedOnObject
    #endif /* _wpDroppedOnObject */
#endif /* SOMGD_wpDroppedOnObject */

/*
 * New Method: wpEndConversation
 */
typedef MRESULT   SOMLINK somTP_WPObject_wpEndConversation(WPObject *somSelf, 
		ULONG ulItemID, 
		ULONG flResult);
#pragma linkage(somTP_WPObject_wpEndConversation, system)
typedef somTP_WPObject_wpEndConversation *somTD_WPObject_wpEndConversation;
#define somMD_WPObject_wpEndConversation "::WPObject::wpEndConversation"
#define WPObject_wpEndConversation(somSelf,ulItemID,flResult) \
    (SOM_Resolve(somSelf, WPObject, wpEndConversation) \
	(somSelf,ulItemID,flResult))
#ifndef SOMGD_wpEndConversation
    #if (defined(_wpEndConversation) || defined(__wpEndConversation))
        #undef _wpEndConversation
        #undef __wpEndConversation
        #define SOMGD_wpEndConversation 1
    #else
        #define _wpEndConversation WPObject_wpEndConversation
    #endif /* _wpEndConversation */
#endif /* SOMGD_wpEndConversation */

/*
 * New Method: wpFilterPopupMenu
 */
typedef ULONG   SOMLINK somTP_WPObject_wpFilterPopupMenu(WPObject *somSelf, 
		ULONG ulFlags, 
		HWND hwndCnr, 
		BOOL fMultiSelect);
#pragma linkage(somTP_WPObject_wpFilterPopupMenu, system)
typedef somTP_WPObject_wpFilterPopupMenu *somTD_WPObject_wpFilterPopupMenu;
#define somMD_WPObject_wpFilterPopupMenu "::WPObject::wpFilterPopupMenu"
#define WPObject_wpFilterPopupMenu(somSelf,ulFlags,hwndCnr,fMultiSelect) \
    (SOM_Resolve(somSelf, WPObject, wpFilterPopupMenu) \
	(somSelf,ulFlags,hwndCnr,fMultiSelect))
#ifndef SOMGD_wpFilterPopupMenu
    #if (defined(_wpFilterPopupMenu) || defined(__wpFilterPopupMenu))
        #undef _wpFilterPopupMenu
        #undef __wpFilterPopupMenu
        #define SOMGD_wpFilterPopupMenu 1
    #else
        #define _wpFilterPopupMenu WPObject_wpFilterPopupMenu
    #endif /* _wpFilterPopupMenu */
#endif /* SOMGD_wpFilterPopupMenu */

/*
 * New Method: wpFilterMenu
 */
typedef BOOL   SOMLINK somTP_WPObject_wpFilterMenu(WPObject *somSelf, 
		FILTERFLAGS* pFlags, 
		HWND hwndCnr, 
		BOOL fMultiSelect, 
		ULONG ulMenuType, 
		ULONG ulView, 
		ULONG ulReserved);
#pragma linkage(somTP_WPObject_wpFilterMenu, system)
typedef somTP_WPObject_wpFilterMenu *somTD_WPObject_wpFilterMenu;
#define somMD_WPObject_wpFilterMenu "::WPObject::wpFilterMenu"
#define WPObject_wpFilterMenu(somSelf,pFlags,hwndCnr,fMultiSelect,ulMenuType,ulView,ulReserved) \
    (SOM_Resolve(somSelf, WPObject, wpFilterMenu) \
	(somSelf,pFlags,hwndCnr,fMultiSelect,ulMenuType,ulView,ulReserved))
#ifndef SOMGD_wpFilterMenu
    #if (defined(_wpFilterMenu) || defined(__wpFilterMenu))
        #undef _wpFilterMenu
        #undef __wpFilterMenu
        #define SOMGD_wpFilterMenu 1
    #else
        #define _wpFilterMenu WPObject_wpFilterMenu
    #endif /* _wpFilterMenu */
#endif /* SOMGD_wpFilterMenu */

/*
 * New Method: wpFindUseItem
 */
typedef PUSEITEM   SOMLINK somTP_WPObject_wpFindUseItem(WPObject *somSelf, 
		ULONG type, 
		PUSEITEM pCurrentItem);
#pragma linkage(somTP_WPObject_wpFindUseItem, system)
typedef somTP_WPObject_wpFindUseItem *somTD_WPObject_wpFindUseItem;
#define somMD_WPObject_wpFindUseItem "::WPObject::wpFindUseItem"
#define WPObject_wpFindUseItem(somSelf,type,pCurrentItem) \
    (SOM_Resolve(somSelf, WPObject, wpFindUseItem) \
	(somSelf,type,pCurrentItem))
#ifndef SOMGD_wpFindUseItem
    #if (defined(_wpFindUseItem) || defined(__wpFindUseItem))
        #undef _wpFindUseItem
        #undef __wpFindUseItem
        #define SOMGD_wpFindUseItem 1
    #else
        #define _wpFindUseItem WPObject_wpFindUseItem
    #endif /* _wpFindUseItem */
#endif /* SOMGD_wpFindUseItem */

/*
 * New Method: wpFormatDragItem
 */
typedef BOOL   SOMLINK somTP_WPObject_wpFormatDragItem(WPObject *somSelf, 
		PDRAGITEM pdrgItem);
#pragma linkage(somTP_WPObject_wpFormatDragItem, system)
typedef somTP_WPObject_wpFormatDragItem *somTD_WPObject_wpFormatDragItem;
#define somMD_WPObject_wpFormatDragItem "::WPObject::wpFormatDragItem"
#define WPObject_wpFormatDragItem(somSelf,pdrgItem) \
    (SOM_Resolve(somSelf, WPObject, wpFormatDragItem) \
	(somSelf,pdrgItem))
#ifndef SOMGD_wpFormatDragItem
    #if (defined(_wpFormatDragItem) || defined(__wpFormatDragItem))
        #undef _wpFormatDragItem
        #undef __wpFormatDragItem
        #define SOMGD_wpFormatDragItem 1
    #else
        #define _wpFormatDragItem WPObject_wpFormatDragItem
    #endif /* _wpFormatDragItem */
#endif /* SOMGD_wpFormatDragItem */

/*
 * New Method: wpFree
 */
typedef BOOL   SOMLINK somTP_WPObject_wpFree(WPObject *somSelf);
#pragma linkage(somTP_WPObject_wpFree, system)
typedef somTP_WPObject_wpFree *somTD_WPObject_wpFree;
#define somMD_WPObject_wpFree "::WPObject::wpFree"
#define WPObject_wpFree(somSelf) \
    (SOM_Resolve(somSelf, WPObject, wpFree) \
	(somSelf))
#ifndef SOMGD_wpFree
    #if (defined(_wpFree) || defined(__wpFree))
        #undef _wpFree
        #undef __wpFree
        #define SOMGD_wpFree 1
    #else
        #define _wpFree WPObject_wpFree
    #endif /* _wpFree */
#endif /* SOMGD_wpFree */

/*
 * New Method: wpFreeMem
 */
typedef BOOL   SOMLINK somTP_WPObject_wpFreeMem(WPObject *somSelf, 
		PBYTE pByte);
#pragma linkage(somTP_WPObject_wpFreeMem, system)
typedef somTP_WPObject_wpFreeMem *somTD_WPObject_wpFreeMem;
#define somMD_WPObject_wpFreeMem "::WPObject::wpFreeMem"
#define WPObject_wpFreeMem(somSelf,pByte) \
    (SOM_Resolve(somSelf, WPObject, wpFreeMem) \
	(somSelf,pByte))
#ifndef SOMGD_wpFreeMem
    #if (defined(_wpFreeMem) || defined(__wpFreeMem))
        #undef _wpFreeMem
        #undef __wpFreeMem
        #define SOMGD_wpFreeMem 1
    #else
        #define _wpFreeMem WPObject_wpFreeMem
    #endif /* _wpFreeMem */
#endif /* SOMGD_wpFreeMem */

/*
 * New Method: wpHide
 */
typedef BOOL   SOMLINK somTP_WPObject_wpHide(WPObject *somSelf);
#pragma linkage(somTP_WPObject_wpHide, system)
typedef somTP_WPObject_wpHide *somTD_WPObject_wpHide;
#define somMD_WPObject_wpHide "::WPObject::wpHide"
#define WPObject_wpHide(somSelf) \
    (SOM_Resolve(somSelf, WPObject, wpHide) \
	(somSelf))
#ifndef SOMGD_wpHide
    #if (defined(_wpHide) || defined(__wpHide))
        #undef _wpHide
        #undef __wpHide
        #define SOMGD_wpHide 1
    #else
        #define _wpHide WPObject_wpHide
    #endif /* _wpHide */
#endif /* SOMGD_wpHide */

/*
 * New Method: wpInitData
 */
typedef void   SOMLINK somTP_WPObject_wpInitData(WPObject *somSelf);
#pragma linkage(somTP_WPObject_wpInitData, system)
typedef somTP_WPObject_wpInitData *somTD_WPObject_wpInitData;
#define somMD_WPObject_wpInitData "::WPObject::wpInitData"
#define WPObject_wpInitData(somSelf) \
    (SOM_Resolve(somSelf, WPObject, wpInitData) \
	(somSelf))
#ifndef SOMGD_wpInitData
    #if (defined(_wpInitData) || defined(__wpInitData))
        #undef _wpInitData
        #undef __wpInitData
        #define SOMGD_wpInitData 1
    #else
        #define _wpInitData WPObject_wpInitData
    #endif /* _wpInitData */
#endif /* SOMGD_wpInitData */

/*
 * New Method: wpInsertPopupMenuItems
 */
typedef BOOL   SOMLINK somTP_WPObject_wpInsertPopupMenuItems(WPObject *somSelf, 
		HWND hwndMenu, 
		ULONG iPosition, 
		HMODULE hmod, 
		ULONG MenuID, 
		ULONG SubMenuID);
#pragma linkage(somTP_WPObject_wpInsertPopupMenuItems, system)
typedef somTP_WPObject_wpInsertPopupMenuItems *somTD_WPObject_wpInsertPopupMenuItems;
#define somMD_WPObject_wpInsertPopupMenuItems "::WPObject::wpInsertPopupMenuItems"
#define WPObject_wpInsertPopupMenuItems(somSelf,hwndMenu,iPosition,hmod,MenuID,SubMenuID) \
    (SOM_Resolve(somSelf, WPObject, wpInsertPopupMenuItems) \
	(somSelf,hwndMenu,iPosition,hmod,MenuID,SubMenuID))
#ifndef SOMGD_wpInsertPopupMenuItems
    #if (defined(_wpInsertPopupMenuItems) || defined(__wpInsertPopupMenuItems))
        #undef _wpInsertPopupMenuItems
        #undef __wpInsertPopupMenuItems
        #define SOMGD_wpInsertPopupMenuItems 1
    #else
        #define _wpInsertPopupMenuItems WPObject_wpInsertPopupMenuItems
    #endif /* _wpInsertPopupMenuItems */
#endif /* SOMGD_wpInsertPopupMenuItems */

/*
 * New Method: wpInsertMenuItems
 */
typedef BOOL   SOMLINK somTP_WPObject_wpInsertMenuItems(WPObject *somSelf, 
		HWND hwndMenu, 
		ULONG iPosition, 
		HMODULE hmod, 
		ULONG MenuID, 
		ULONG SubMenuID);
#pragma linkage(somTP_WPObject_wpInsertMenuItems, system)
typedef somTP_WPObject_wpInsertMenuItems *somTD_WPObject_wpInsertMenuItems;
#define somMD_WPObject_wpInsertMenuItems "::WPObject::wpInsertMenuItems"
#define WPObject_wpInsertMenuItems(somSelf,hwndMenu,iPosition,hmod,MenuID,SubMenuID) \
    (SOM_Resolve(somSelf, WPObject, wpInsertMenuItems) \
	(somSelf,hwndMenu,iPosition,hmod,MenuID,SubMenuID))
#ifndef SOMGD_wpInsertMenuItems
    #if (defined(_wpInsertMenuItems) || defined(__wpInsertMenuItems))
        #undef _wpInsertMenuItems
        #undef __wpInsertMenuItems
        #define SOMGD_wpInsertMenuItems 1
    #else
        #define _wpInsertMenuItems WPObject_wpInsertMenuItems
    #endif /* _wpInsertMenuItems */
#endif /* SOMGD_wpInsertMenuItems */

/*
 * New Method: wpInsertSettingsPage
 */
typedef ULONG   SOMLINK somTP_WPObject_wpInsertSettingsPage(WPObject *somSelf, 
		HWND hwndNotebook, 
		PPAGEINFO ppageinfo);
#pragma linkage(somTP_WPObject_wpInsertSettingsPage, system)
typedef somTP_WPObject_wpInsertSettingsPage *somTD_WPObject_wpInsertSettingsPage;
#define somMD_WPObject_wpInsertSettingsPage "::WPObject::wpInsertSettingsPage"
#define WPObject_wpInsertSettingsPage(somSelf,hwndNotebook,ppageinfo) \
    (SOM_Resolve(somSelf, WPObject, wpInsertSettingsPage) \
	(somSelf,hwndNotebook,ppageinfo))
#ifndef SOMGD_wpInsertSettingsPage
    #if (defined(_wpInsertSettingsPage) || defined(__wpInsertSettingsPage))
        #undef _wpInsertSettingsPage
        #undef __wpInsertSettingsPage
        #define SOMGD_wpInsertSettingsPage 1
    #else
        #define _wpInsertSettingsPage WPObject_wpInsertSettingsPage
    #endif /* _wpInsertSettingsPage */
#endif /* SOMGD_wpInsertSettingsPage */

/*
 * New Method: wpMenuItemHelpSelected
 */
typedef BOOL   SOMLINK somTP_WPObject_wpMenuItemHelpSelected(WPObject *somSelf, 
		ULONG MenuId);
#pragma linkage(somTP_WPObject_wpMenuItemHelpSelected, system)
typedef somTP_WPObject_wpMenuItemHelpSelected *somTD_WPObject_wpMenuItemHelpSelected;
#define somMD_WPObject_wpMenuItemHelpSelected "::WPObject::wpMenuItemHelpSelected"
#define WPObject_wpMenuItemHelpSelected(somSelf,MenuId) \
    (SOM_Resolve(somSelf, WPObject, wpMenuItemHelpSelected) \
	(somSelf,MenuId))
#ifndef SOMGD_wpMenuItemHelpSelected
    #if (defined(_wpMenuItemHelpSelected) || defined(__wpMenuItemHelpSelected))
        #undef _wpMenuItemHelpSelected
        #undef __wpMenuItemHelpSelected
        #define SOMGD_wpMenuItemHelpSelected 1
    #else
        #define _wpMenuItemHelpSelected WPObject_wpMenuItemHelpSelected
    #endif /* _wpMenuItemHelpSelected */
#endif /* SOMGD_wpMenuItemHelpSelected */

/*
 * New Method: wpMenuItemSelected
 */
typedef BOOL   SOMLINK somTP_WPObject_wpMenuItemSelected(WPObject *somSelf, 
		HWND hwndFrame, 
		ULONG ulMenuId);
#pragma linkage(somTP_WPObject_wpMenuItemSelected, system)
typedef somTP_WPObject_wpMenuItemSelected *somTD_WPObject_wpMenuItemSelected;
#define somMD_WPObject_wpMenuItemSelected "::WPObject::wpMenuItemSelected"
#define WPObject_wpMenuItemSelected(somSelf,hwndFrame,ulMenuId) \
    (SOM_Resolve(somSelf, WPObject, wpMenuItemSelected) \
	(somSelf,hwndFrame,ulMenuId))
#ifndef SOMGD_wpMenuItemSelected
    #if (defined(_wpMenuItemSelected) || defined(__wpMenuItemSelected))
        #undef _wpMenuItemSelected
        #undef __wpMenuItemSelected
        #define SOMGD_wpMenuItemSelected 1
    #else
        #define _wpMenuItemSelected WPObject_wpMenuItemSelected
    #endif /* _wpMenuItemSelected */
#endif /* SOMGD_wpMenuItemSelected */

/*
 * New Method: wpModifyPopupMenu
 */
typedef BOOL   SOMLINK somTP_WPObject_wpModifyPopupMenu(WPObject *somSelf, 
		HWND hwndMenu, 
		HWND hwndCnr, 
		ULONG iPosition);
#pragma linkage(somTP_WPObject_wpModifyPopupMenu, system)
typedef somTP_WPObject_wpModifyPopupMenu *somTD_WPObject_wpModifyPopupMenu;
#define somMD_WPObject_wpModifyPopupMenu "::WPObject::wpModifyPopupMenu"
#define WPObject_wpModifyPopupMenu(somSelf,hwndMenu,hwndCnr,iPosition) \
    (SOM_Resolve(somSelf, WPObject, wpModifyPopupMenu) \
	(somSelf,hwndMenu,hwndCnr,iPosition))
#ifndef SOMGD_wpModifyPopupMenu
    #if (defined(_wpModifyPopupMenu) || defined(__wpModifyPopupMenu))
        #undef _wpModifyPopupMenu
        #undef __wpModifyPopupMenu
        #define SOMGD_wpModifyPopupMenu 1
    #else
        #define _wpModifyPopupMenu WPObject_wpModifyPopupMenu
    #endif /* _wpModifyPopupMenu */
#endif /* SOMGD_wpModifyPopupMenu */

/*
 * New Method: wpModifyMenu
 */
typedef BOOL   SOMLINK somTP_WPObject_wpModifyMenu(WPObject *somSelf, 
		HWND hwndMenu, 
		HWND hwndCnr, 
		ULONG iPosition, 
		ULONG ulMenuType, 
		ULONG ulView, 
		ULONG ulReserved);
#pragma linkage(somTP_WPObject_wpModifyMenu, system)
typedef somTP_WPObject_wpModifyMenu *somTD_WPObject_wpModifyMenu;
#define somMD_WPObject_wpModifyMenu "::WPObject::wpModifyMenu"
#define WPObject_wpModifyMenu(somSelf,hwndMenu,hwndCnr,iPosition,ulMenuType,ulView,ulReserved) \
    (SOM_Resolve(somSelf, WPObject, wpModifyMenu) \
	(somSelf,hwndMenu,hwndCnr,iPosition,ulMenuType,ulView,ulReserved))
#ifndef SOMGD_wpModifyMenu
    #if (defined(_wpModifyMenu) || defined(__wpModifyMenu))
        #undef _wpModifyMenu
        #undef __wpModifyMenu
        #define SOMGD_wpModifyMenu 1
    #else
        #define _wpModifyMenu WPObject_wpModifyMenu
    #endif /* _wpModifyMenu */
#endif /* SOMGD_wpModifyMenu */

/*
 * New Method: wpMoveObject
 */
typedef BOOL   SOMLINK somTP_WPObject_wpMoveObject(WPObject *somSelf, 
		WPFolder* Folder);
#pragma linkage(somTP_WPObject_wpMoveObject, system)
typedef somTP_WPObject_wpMoveObject *somTD_WPObject_wpMoveObject;
#define somMD_WPObject_wpMoveObject "::WPObject::wpMoveObject"
#define WPObject_wpMoveObject(somSelf,Folder) \
    (SOM_Resolve(somSelf, WPObject, wpMoveObject) \
	(somSelf,Folder))
#ifndef SOMGD_wpMoveObject
    #if (defined(_wpMoveObject) || defined(__wpMoveObject))
        #undef _wpMoveObject
        #undef __wpMoveObject
        #define SOMGD_wpMoveObject 1
    #else
        #define _wpMoveObject WPObject_wpMoveObject
    #endif /* _wpMoveObject */
#endif /* SOMGD_wpMoveObject */

/*
 * New Method: wpOpen
 */
typedef HWND   SOMLINK somTP_WPObject_wpOpen(WPObject *somSelf, 
		HWND hwndCnr, 
		ULONG ulView, 
		ULONG param);
#pragma linkage(somTP_WPObject_wpOpen, system)
typedef somTP_WPObject_wpOpen *somTD_WPObject_wpOpen;
#define somMD_WPObject_wpOpen "::WPObject::wpOpen"
#define WPObject_wpOpen(somSelf,hwndCnr,ulView,param) \
    (SOM_Resolve(somSelf, WPObject, wpOpen) \
	(somSelf,hwndCnr,ulView,param))
#ifndef SOMGD_wpOpen
    #if (defined(_wpOpen) || defined(__wpOpen))
        #undef _wpOpen
        #undef __wpOpen
        #define SOMGD_wpOpen 1
    #else
        #define _wpOpen WPObject_wpOpen
    #endif /* _wpOpen */
#endif /* SOMGD_wpOpen */

/*
 * New Method: wpPrintObject
 */
typedef BOOL   SOMLINK somTP_WPObject_wpPrintObject(WPObject *somSelf, 
		PPRINTDEST pPrintDest, 
		ULONG ulReserved);
#pragma linkage(somTP_WPObject_wpPrintObject, system)
typedef somTP_WPObject_wpPrintObject *somTD_WPObject_wpPrintObject;
#define somMD_WPObject_wpPrintObject "::WPObject::wpPrintObject"
#define WPObject_wpPrintObject(somSelf,pPrintDest,ulReserved) \
    (SOM_Resolve(somSelf, WPObject, wpPrintObject) \
	(somSelf,pPrintDest,ulReserved))
#ifndef SOMGD_wpPrintObject
    #if (defined(_wpPrintObject) || defined(__wpPrintObject))
        #undef _wpPrintObject
        #undef __wpPrintObject
        #define SOMGD_wpPrintObject 1
    #else
        #define _wpPrintObject WPObject_wpPrintObject
    #endif /* _wpPrintObject */
#endif /* SOMGD_wpPrintObject */

/*
 * New Method: wpQueryConcurrentView
 */
typedef ULONG   SOMLINK somTP_WPObject_wpQueryConcurrentView(WPObject *somSelf);
#pragma linkage(somTP_WPObject_wpQueryConcurrentView, system)
typedef somTP_WPObject_wpQueryConcurrentView *somTD_WPObject_wpQueryConcurrentView;
#define somMD_WPObject_wpQueryConcurrentView "::WPObject::wpQueryConcurrentView"
#define WPObject_wpQueryConcurrentView(somSelf) \
    (SOM_Resolve(somSelf, WPObject, wpQueryConcurrentView) \
	(somSelf))
#ifndef SOMGD_wpQueryConcurrentView
    #if (defined(_wpQueryConcurrentView) || defined(__wpQueryConcurrentView))
        #undef _wpQueryConcurrentView
        #undef __wpQueryConcurrentView
        #define SOMGD_wpQueryConcurrentView 1
    #else
        #define _wpQueryConcurrentView WPObject_wpQueryConcurrentView
    #endif /* _wpQueryConcurrentView */
#endif /* SOMGD_wpQueryConcurrentView */

/*
 * New Method: wpQueryButtonAppearance
 */
typedef ULONG   SOMLINK somTP_WPObject_wpQueryButtonAppearance(WPObject *somSelf);
#pragma linkage(somTP_WPObject_wpQueryButtonAppearance, system)
typedef somTP_WPObject_wpQueryButtonAppearance *somTD_WPObject_wpQueryButtonAppearance;
#define somMD_WPObject_wpQueryButtonAppearance "::WPObject::wpQueryButtonAppearance"
#define WPObject_wpQueryButtonAppearance(somSelf) \
    (SOM_Resolve(somSelf, WPObject, wpQueryButtonAppearance) \
	(somSelf))
#ifndef SOMGD_wpQueryButtonAppearance
    #if (defined(_wpQueryButtonAppearance) || defined(__wpQueryButtonAppearance))
        #undef _wpQueryButtonAppearance
        #undef __wpQueryButtonAppearance
        #define SOMGD_wpQueryButtonAppearance 1
    #else
        #define _wpQueryButtonAppearance WPObject_wpQueryButtonAppearance
    #endif /* _wpQueryButtonAppearance */
#endif /* SOMGD_wpQueryButtonAppearance */

/*
 * New Method: wpQueryConfirmations
 */
typedef ULONG   SOMLINK somTP_WPObject_wpQueryConfirmations(WPObject *somSelf);
#pragma linkage(somTP_WPObject_wpQueryConfirmations, system)
typedef somTP_WPObject_wpQueryConfirmations *somTD_WPObject_wpQueryConfirmations;
#define somMD_WPObject_wpQueryConfirmations "::WPObject::wpQueryConfirmations"
#define WPObject_wpQueryConfirmations(somSelf) \
    (SOM_Resolve(somSelf, WPObject, wpQueryConfirmations) \
	(somSelf))
#ifndef SOMGD_wpQueryConfirmations
    #if (defined(_wpQueryConfirmations) || defined(__wpQueryConfirmations))
        #undef _wpQueryConfirmations
        #undef __wpQueryConfirmations
        #define SOMGD_wpQueryConfirmations 1
    #else
        #define _wpQueryConfirmations WPObject_wpQueryConfirmations
    #endif /* _wpQueryConfirmations */
#endif /* SOMGD_wpQueryConfirmations */

/*
 * New Method: wpQueryDefaultHelp
 */
typedef BOOL   SOMLINK somTP_WPObject_wpQueryDefaultHelp(WPObject *somSelf, 
		PULONG pHelpPanelId, 
		PSZ HelpLibrary);
#pragma linkage(somTP_WPObject_wpQueryDefaultHelp, system)
typedef somTP_WPObject_wpQueryDefaultHelp *somTD_WPObject_wpQueryDefaultHelp;
#define somMD_WPObject_wpQueryDefaultHelp "::WPObject::wpQueryDefaultHelp"
#define WPObject_wpQueryDefaultHelp(somSelf,pHelpPanelId,HelpLibrary) \
    (SOM_Resolve(somSelf, WPObject, wpQueryDefaultHelp) \
	(somSelf,pHelpPanelId,HelpLibrary))
#ifndef SOMGD_wpQueryDefaultHelp
    #if (defined(_wpQueryDefaultHelp) || defined(__wpQueryDefaultHelp))
        #undef _wpQueryDefaultHelp
        #undef __wpQueryDefaultHelp
        #define SOMGD_wpQueryDefaultHelp 1
    #else
        #define _wpQueryDefaultHelp WPObject_wpQueryDefaultHelp
    #endif /* _wpQueryDefaultHelp */
#endif /* SOMGD_wpQueryDefaultHelp */

/*
 * New Method: wpQueryDefaultView
 */
typedef ULONG   SOMLINK somTP_WPObject_wpQueryDefaultView(WPObject *somSelf);
#pragma linkage(somTP_WPObject_wpQueryDefaultView, system)
typedef somTP_WPObject_wpQueryDefaultView *somTD_WPObject_wpQueryDefaultView;
#define somMD_WPObject_wpQueryDefaultView "::WPObject::wpQueryDefaultView"
#define WPObject_wpQueryDefaultView(somSelf) \
    (SOM_Resolve(somSelf, WPObject, wpQueryDefaultView) \
	(somSelf))
#ifndef SOMGD_wpQueryDefaultView
    #if (defined(_wpQueryDefaultView) || defined(__wpQueryDefaultView))
        #undef _wpQueryDefaultView
        #undef __wpQueryDefaultView
        #define SOMGD_wpQueryDefaultView 1
    #else
        #define _wpQueryDefaultView WPObject_wpQueryDefaultView
    #endif /* _wpQueryDefaultView */
#endif /* SOMGD_wpQueryDefaultView */

/*
 * New Method: wpQueryDetailsData
 */
typedef ULONG   SOMLINK somTP_WPObject_wpQueryDetailsData(WPObject *somSelf, 
		PVOID* ppDetailsData, 
		PULONG pcp);
#pragma linkage(somTP_WPObject_wpQueryDetailsData, system)
typedef somTP_WPObject_wpQueryDetailsData *somTD_WPObject_wpQueryDetailsData;
#define somMD_WPObject_wpQueryDetailsData "::WPObject::wpQueryDetailsData"
#define WPObject_wpQueryDetailsData(somSelf,ppDetailsData,pcp) \
    (SOM_Resolve(somSelf, WPObject, wpQueryDetailsData) \
	(somSelf,ppDetailsData,pcp))
#ifndef SOMGD_wpQueryDetailsData
    #if (defined(_wpQueryDetailsData) || defined(__wpQueryDetailsData))
        #undef _wpQueryDetailsData
        #undef __wpQueryDetailsData
        #define SOMGD_wpQueryDetailsData 1
    #else
        #define _wpQueryDetailsData WPObject_wpQueryDetailsData
    #endif /* _wpQueryDetailsData */
#endif /* SOMGD_wpQueryDetailsData */

/*
 * New Method: wpQueryError
 */
typedef ULONG   SOMLINK somTP_WPObject_wpQueryError(WPObject *somSelf);
#pragma linkage(somTP_WPObject_wpQueryError, system)
typedef somTP_WPObject_wpQueryError *somTD_WPObject_wpQueryError;
#define somMD_WPObject_wpQueryError "::WPObject::wpQueryError"
#define WPObject_wpQueryError(somSelf) \
    (SOM_Resolve(somSelf, WPObject, wpQueryError) \
	(somSelf))
#ifndef SOMGD_wpQueryError
    #if (defined(_wpQueryError) || defined(__wpQueryError))
        #undef _wpQueryError
        #undef __wpQueryError
        #define SOMGD_wpQueryError 1
    #else
        #define _wpQueryError WPObject_wpQueryError
    #endif /* _wpQueryError */
#endif /* SOMGD_wpQueryError */

/*
 * New Method: wpSetFolder
 */
typedef BOOL   SOMLINK somTP_WPObject_wpSetFolder(WPObject *somSelf, 
		WPObject* container);
#pragma linkage(somTP_WPObject_wpSetFolder, system)
typedef somTP_WPObject_wpSetFolder *somTD_WPObject_wpSetFolder;
#define somMD_WPObject_wpSetFolder "::WPObject::wpSetFolder"
#define WPObject_wpSetFolder(somSelf,container) \
    (SOM_Resolve(somSelf, WPObject, wpSetFolder) \
	(somSelf,container))
#ifndef SOMGD_wpSetFolder
    #if (defined(_wpSetFolder) || defined(__wpSetFolder))
        #undef _wpSetFolder
        #undef __wpSetFolder
        #define SOMGD_wpSetFolder 1
    #else
        #define _wpSetFolder WPObject_wpSetFolder
    #endif /* _wpSetFolder */
#endif /* SOMGD_wpSetFolder */

/*
 * New Method: wpQueryFolder
 */
typedef WPObject*   SOMLINK somTP_WPObject_wpQueryFolder(WPObject *somSelf);
#pragma linkage(somTP_WPObject_wpQueryFolder, system)
typedef somTP_WPObject_wpQueryFolder *somTD_WPObject_wpQueryFolder;
#define somMD_WPObject_wpQueryFolder "::WPObject::wpQueryFolder"
#define WPObject_wpQueryFolder(somSelf) \
    (SOM_Resolve(somSelf, WPObject, wpQueryFolder) \
	(somSelf))
#ifndef SOMGD_wpQueryFolder
    #if (defined(_wpQueryFolder) || defined(__wpQueryFolder))
        #undef _wpQueryFolder
        #undef __wpQueryFolder
        #define SOMGD_wpQueryFolder 1
    #else
        #define _wpQueryFolder WPObject_wpQueryFolder
    #endif /* _wpQueryFolder */
#endif /* SOMGD_wpQueryFolder */

/*
 * New Method: wpQueryIcon
 */
typedef HPOINTER   SOMLINK somTP_WPObject_wpQueryIcon(WPObject *somSelf);
#pragma linkage(somTP_WPObject_wpQueryIcon, system)
typedef somTP_WPObject_wpQueryIcon *somTD_WPObject_wpQueryIcon;
#define somMD_WPObject_wpQueryIcon "::WPObject::wpQueryIcon"
#define WPObject_wpQueryIcon(somSelf) \
    (SOM_Resolve(somSelf, WPObject, wpQueryIcon) \
	(somSelf))
#ifndef SOMGD_wpQueryIcon
    #if (defined(_wpQueryIcon) || defined(__wpQueryIcon))
        #undef _wpQueryIcon
        #undef __wpQueryIcon
        #define SOMGD_wpQueryIcon 1
    #else
        #define _wpQueryIcon WPObject_wpQueryIcon
    #endif /* _wpQueryIcon */
#endif /* SOMGD_wpQueryIcon */

/*
 * New Method: wpQueryIconData
 */
typedef ULONG   SOMLINK somTP_WPObject_wpQueryIconData(WPObject *somSelf, 
		PICONINFO pIconInfo);
#pragma linkage(somTP_WPObject_wpQueryIconData, system)
typedef somTP_WPObject_wpQueryIconData *somTD_WPObject_wpQueryIconData;
#define somMD_WPObject_wpQueryIconData "::WPObject::wpQueryIconData"
#define WPObject_wpQueryIconData(somSelf,pIconInfo) \
    (SOM_Resolve(somSelf, WPObject, wpQueryIconData) \
	(somSelf,pIconInfo))
#ifndef SOMGD_wpQueryIconData
    #if (defined(_wpQueryIconData) || defined(__wpQueryIconData))
        #undef _wpQueryIconData
        #undef __wpQueryIconData
        #define SOMGD_wpQueryIconData 1
    #else
        #define _wpQueryIconData WPObject_wpQueryIconData
    #endif /* _wpQueryIconData */
#endif /* SOMGD_wpQueryIconData */

/*
 * New Method: wpQueryMinWindow
 */
typedef ULONG   SOMLINK somTP_WPObject_wpQueryMinWindow(WPObject *somSelf);
#pragma linkage(somTP_WPObject_wpQueryMinWindow, system)
typedef somTP_WPObject_wpQueryMinWindow *somTD_WPObject_wpQueryMinWindow;
#define somMD_WPObject_wpQueryMinWindow "::WPObject::wpQueryMinWindow"
#define WPObject_wpQueryMinWindow(somSelf) \
    (SOM_Resolve(somSelf, WPObject, wpQueryMinWindow) \
	(somSelf))
#ifndef SOMGD_wpQueryMinWindow
    #if (defined(_wpQueryMinWindow) || defined(__wpQueryMinWindow))
        #undef _wpQueryMinWindow
        #undef __wpQueryMinWindow
        #define SOMGD_wpQueryMinWindow 1
    #else
        #define _wpQueryMinWindow WPObject_wpQueryMinWindow
    #endif /* _wpQueryMinWindow */
#endif /* SOMGD_wpQueryMinWindow */

/*
 * New Method: wpQueryNameClashOptions
 */
typedef ULONG   SOMLINK somTP_WPObject_wpQueryNameClashOptions(WPObject *somSelf, 
		ULONG menuID);
#pragma linkage(somTP_WPObject_wpQueryNameClashOptions, system)
typedef somTP_WPObject_wpQueryNameClashOptions *somTD_WPObject_wpQueryNameClashOptions;
#define somMD_WPObject_wpQueryNameClashOptions "::WPObject::wpQueryNameClashOptions"
#define WPObject_wpQueryNameClashOptions(somSelf,menuID) \
    (SOM_Resolve(somSelf, WPObject, wpQueryNameClashOptions) \
	(somSelf,menuID))
#ifndef SOMGD_wpQueryNameClashOptions
    #if (defined(_wpQueryNameClashOptions) || defined(__wpQueryNameClashOptions))
        #undef _wpQueryNameClashOptions
        #undef __wpQueryNameClashOptions
        #define SOMGD_wpQueryNameClashOptions 1
    #else
        #define _wpQueryNameClashOptions WPObject_wpQueryNameClashOptions
    #endif /* _wpQueryNameClashOptions */
#endif /* SOMGD_wpQueryNameClashOptions */

/*
 * New Method: wpQueryStyle
 */
typedef ULONG   SOMLINK somTP_WPObject_wpQueryStyle(WPObject *somSelf);
#pragma linkage(somTP_WPObject_wpQueryStyle, system)
typedef somTP_WPObject_wpQueryStyle *somTD_WPObject_wpQueryStyle;
#define somMD_WPObject_wpQueryStyle "::WPObject::wpQueryStyle"
#define WPObject_wpQueryStyle(somSelf) \
    (SOM_Resolve(somSelf, WPObject, wpQueryStyle) \
	(somSelf))
#ifndef SOMGD_wpQueryStyle
    #if (defined(_wpQueryStyle) || defined(__wpQueryStyle))
        #undef _wpQueryStyle
        #undef __wpQueryStyle
        #define SOMGD_wpQueryStyle 1
    #else
        #define _wpQueryStyle WPObject_wpQueryStyle
    #endif /* _wpQueryStyle */
#endif /* SOMGD_wpQueryStyle */

/*
 * New Method: wpSetTaskRec
 */
typedef BOOL32   SOMLINK somTP_WPObject_wpSetTaskRec(WPObject *somSelf, 
		PTASKREC pNew, 
		PTASKREC pOld);
#pragma linkage(somTP_WPObject_wpSetTaskRec, system)
typedef somTP_WPObject_wpSetTaskRec *somTD_WPObject_wpSetTaskRec;
#define somMD_WPObject_wpSetTaskRec "::WPObject::wpSetTaskRec"
#define WPObject_wpSetTaskRec(somSelf,pNew,pOld) \
    (SOM_Resolve(somSelf, WPObject, wpSetTaskRec) \
	(somSelf,pNew,pOld))
#ifndef SOMGD_wpSetTaskRec
    #if (defined(_wpSetTaskRec) || defined(__wpSetTaskRec))
        #undef _wpSetTaskRec
        #undef __wpSetTaskRec
        #define SOMGD_wpSetTaskRec 1
    #else
        #define _wpSetTaskRec WPObject_wpSetTaskRec
    #endif /* _wpSetTaskRec */
#endif /* SOMGD_wpSetTaskRec */

/*
 * New Method: wpFindTaskRec
 */
typedef PTASKREC   SOMLINK somTP_WPObject_wpFindTaskRec(WPObject *somSelf);
#pragma linkage(somTP_WPObject_wpFindTaskRec, system)
typedef somTP_WPObject_wpFindTaskRec *somTD_WPObject_wpFindTaskRec;
#define somMD_WPObject_wpFindTaskRec "::WPObject::wpFindTaskRec"
#define WPObject_wpFindTaskRec(somSelf) \
    (SOM_Resolve(somSelf, WPObject, wpFindTaskRec) \
	(somSelf))
#ifndef SOMGD_wpFindTaskRec
    #if (defined(_wpFindTaskRec) || defined(__wpFindTaskRec))
        #undef _wpFindTaskRec
        #undef __wpFindTaskRec
        #define SOMGD_wpFindTaskRec 1
    #else
        #define _wpFindTaskRec WPObject_wpFindTaskRec
    #endif /* _wpFindTaskRec */
#endif /* SOMGD_wpFindTaskRec */

/*
 * New Method: wpQueryTitle
 */
typedef PSZ   SOMLINK somTP_WPObject_wpQueryTitle(WPObject *somSelf);
#pragma linkage(somTP_WPObject_wpQueryTitle, system)
typedef somTP_WPObject_wpQueryTitle *somTD_WPObject_wpQueryTitle;
#define somMD_WPObject_wpQueryTitle "::WPObject::wpQueryTitle"
#define WPObject_wpQueryTitle(somSelf) \
    (SOM_Resolve(somSelf, WPObject, wpQueryTitle) \
	(somSelf))
#ifndef SOMGD_wpQueryTitle
    #if (defined(_wpQueryTitle) || defined(__wpQueryTitle))
        #undef _wpQueryTitle
        #undef __wpQueryTitle
        #define SOMGD_wpQueryTitle 1
    #else
        #define _wpQueryTitle WPObject_wpQueryTitle
    #endif /* _wpQueryTitle */
#endif /* SOMGD_wpQueryTitle */

/*
 * New Method: wpRegisterView
 */
typedef BOOL   SOMLINK somTP_WPObject_wpRegisterView(WPObject *somSelf, 
		HWND hwndFrame, 
		PSZ pszViewTitle);
#pragma linkage(somTP_WPObject_wpRegisterView, system)
typedef somTP_WPObject_wpRegisterView *somTD_WPObject_wpRegisterView;
#define somMD_WPObject_wpRegisterView "::WPObject::wpRegisterView"
#define WPObject_wpRegisterView(somSelf,hwndFrame,pszViewTitle) \
    (SOM_Resolve(somSelf, WPObject, wpRegisterView) \
	(somSelf,hwndFrame,pszViewTitle))
#ifndef SOMGD_wpRegisterView
    #if (defined(_wpRegisterView) || defined(__wpRegisterView))
        #undef _wpRegisterView
        #undef __wpRegisterView
        #define SOMGD_wpRegisterView 1
    #else
        #define _wpRegisterView WPObject_wpRegisterView
    #endif /* _wpRegisterView */
#endif /* SOMGD_wpRegisterView */

/*
 * New Method: wpReleaseObjectMutexSem
 */
typedef ULONG   SOMLINK somTP_WPObject_wpReleaseObjectMutexSem(WPObject *somSelf);
#pragma linkage(somTP_WPObject_wpReleaseObjectMutexSem, system)
typedef somTP_WPObject_wpReleaseObjectMutexSem *somTD_WPObject_wpReleaseObjectMutexSem;
#define somMD_WPObject_wpReleaseObjectMutexSem "::WPObject::wpReleaseObjectMutexSem"
#define WPObject_wpReleaseObjectMutexSem(somSelf) \
    (SOM_Resolve(somSelf, WPObject, wpReleaseObjectMutexSem) \
	(somSelf))
#ifndef SOMGD_wpReleaseObjectMutexSem
    #if (defined(_wpReleaseObjectMutexSem) || defined(__wpReleaseObjectMutexSem))
        #undef _wpReleaseObjectMutexSem
        #undef __wpReleaseObjectMutexSem
        #define SOMGD_wpReleaseObjectMutexSem 1
    #else
        #define _wpReleaseObjectMutexSem WPObject_wpReleaseObjectMutexSem
    #endif /* _wpReleaseObjectMutexSem */
#endif /* SOMGD_wpReleaseObjectMutexSem */

/*
 * New Method: wpRender
 */
typedef MRESULT   SOMLINK somTP_WPObject_wpRender(WPObject *somSelf, 
		PDRAGTRANSFER pdxfer);
#pragma linkage(somTP_WPObject_wpRender, system)
typedef somTP_WPObject_wpRender *somTD_WPObject_wpRender;
#define somMD_WPObject_wpRender "::WPObject::wpRender"
#define WPObject_wpRender(somSelf,pdxfer) \
    (SOM_Resolve(somSelf, WPObject, wpRender) \
	(somSelf,pdxfer))
#ifndef SOMGD_wpRender
    #if (defined(_wpRender) || defined(__wpRender))
        #undef _wpRender
        #undef __wpRender
        #define SOMGD_wpRender 1
    #else
        #define _wpRender WPObject_wpRender
    #endif /* _wpRender */
#endif /* SOMGD_wpRender */

/*
 * New Method: wpRenderComplete
 */
typedef MRESULT   SOMLINK somTP_WPObject_wpRenderComplete(WPObject *somSelf, 
		PDRAGTRANSFER pdxfer, 
		ULONG ulResult);
#pragma linkage(somTP_WPObject_wpRenderComplete, system)
typedef somTP_WPObject_wpRenderComplete *somTD_WPObject_wpRenderComplete;
#define somMD_WPObject_wpRenderComplete "::WPObject::wpRenderComplete"
#define WPObject_wpRenderComplete(somSelf,pdxfer,ulResult) \
    (SOM_Resolve(somSelf, WPObject, wpRenderComplete) \
	(somSelf,pdxfer,ulResult))
#ifndef SOMGD_wpRenderComplete
    #if (defined(_wpRenderComplete) || defined(__wpRenderComplete))
        #undef _wpRenderComplete
        #undef __wpRenderComplete
        #define SOMGD_wpRenderComplete 1
    #else
        #define _wpRenderComplete WPObject_wpRenderComplete
    #endif /* _wpRenderComplete */
#endif /* SOMGD_wpRenderComplete */

/*
 * New Method: wpReplaceObject
 */
typedef BOOL32   SOMLINK somTP_WPObject_wpReplaceObject(WPObject *somSelf, 
		WPObject* targetObject, 
		BOOL32 fMove);
#pragma linkage(somTP_WPObject_wpReplaceObject, system)
typedef somTP_WPObject_wpReplaceObject *somTD_WPObject_wpReplaceObject;
#define somMD_WPObject_wpReplaceObject "::WPObject::wpReplaceObject"
#define WPObject_wpReplaceObject(somSelf,targetObject,fMove) \
    (SOM_Resolve(somSelf, WPObject, wpReplaceObject) \
	(somSelf,targetObject,fMove))
#ifndef SOMGD_wpReplaceObject
    #if (defined(_wpReplaceObject) || defined(__wpReplaceObject))
        #undef _wpReplaceObject
        #undef __wpReplaceObject
        #define SOMGD_wpReplaceObject 1
    #else
        #define _wpReplaceObject WPObject_wpReplaceObject
    #endif /* _wpReplaceObject */
#endif /* SOMGD_wpReplaceObject */

/*
 * New Method: wpRequestObjectMutexSem
 */
typedef ULONG   SOMLINK somTP_WPObject_wpRequestObjectMutexSem(WPObject *somSelf, 
		ULONG ulTimeout);
#pragma linkage(somTP_WPObject_wpRequestObjectMutexSem, system)
typedef somTP_WPObject_wpRequestObjectMutexSem *somTD_WPObject_wpRequestObjectMutexSem;
#define somMD_WPObject_wpRequestObjectMutexSem "::WPObject::wpRequestObjectMutexSem"
#define WPObject_wpRequestObjectMutexSem(somSelf,ulTimeout) \
    (SOM_Resolve(somSelf, WPObject, wpRequestObjectMutexSem) \
	(somSelf,ulTimeout))
#ifndef SOMGD_wpRequestObjectMutexSem
    #if (defined(_wpRequestObjectMutexSem) || defined(__wpRequestObjectMutexSem))
        #undef _wpRequestObjectMutexSem
        #undef __wpRequestObjectMutexSem
        #define SOMGD_wpRequestObjectMutexSem 1
    #else
        #define _wpRequestObjectMutexSem WPObject_wpRequestObjectMutexSem
    #endif /* _wpRequestObjectMutexSem */
#endif /* SOMGD_wpRequestObjectMutexSem */

/*
 * New Method: wpRestore
 */
typedef BOOL   SOMLINK somTP_WPObject_wpRestore(WPObject *somSelf);
#pragma linkage(somTP_WPObject_wpRestore, system)
typedef somTP_WPObject_wpRestore *somTD_WPObject_wpRestore;
#define somMD_WPObject_wpRestore "::WPObject::wpRestore"
#define WPObject_wpRestore(somSelf) \
    (SOM_Resolve(somSelf, WPObject, wpRestore) \
	(somSelf))
#ifndef SOMGD_wpRestore
    #if (defined(_wpRestore) || defined(__wpRestore))
        #undef _wpRestore
        #undef __wpRestore
        #define SOMGD_wpRestore 1
    #else
        #define _wpRestore WPObject_wpRestore
    #endif /* _wpRestore */
#endif /* SOMGD_wpRestore */

/*
 * New Method: wpRestoreData
 */
typedef BOOL   SOMLINK somTP_WPObject_wpRestoreData(WPObject *somSelf, 
		PSZ pszClass, 
		ULONG ulKey, 
		PBYTE pValue, 
		PULONG pcbValue);
#pragma linkage(somTP_WPObject_wpRestoreData, system)
typedef somTP_WPObject_wpRestoreData *somTD_WPObject_wpRestoreData;
#define somMD_WPObject_wpRestoreData "::WPObject::wpRestoreData"
#define WPObject_wpRestoreData(somSelf,pszClass,ulKey,pValue,pcbValue) \
    (SOM_Resolve(somSelf, WPObject, wpRestoreData) \
	(somSelf,pszClass,ulKey,pValue,pcbValue))
#ifndef SOMGD_wpRestoreData
    #if (defined(_wpRestoreData) || defined(__wpRestoreData))
        #undef _wpRestoreData
        #undef __wpRestoreData
        #define SOMGD_wpRestoreData 1
    #else
        #define _wpRestoreData WPObject_wpRestoreData
    #endif /* _wpRestoreData */
#endif /* SOMGD_wpRestoreData */

/*
 * New Method: wpRestoreLong
 */
typedef BOOL   SOMLINK somTP_WPObject_wpRestoreLong(WPObject *somSelf, 
		PSZ pszClass, 
		ULONG ulKey, 
		PULONG pulValue);
#pragma linkage(somTP_WPObject_wpRestoreLong, system)
typedef somTP_WPObject_wpRestoreLong *somTD_WPObject_wpRestoreLong;
#define somMD_WPObject_wpRestoreLong "::WPObject::wpRestoreLong"
#define WPObject_wpRestoreLong(somSelf,pszClass,ulKey,pulValue) \
    (SOM_Resolve(somSelf, WPObject, wpRestoreLong) \
	(somSelf,pszClass,ulKey,pulValue))
#ifndef SOMGD_wpRestoreLong
    #if (defined(_wpRestoreLong) || defined(__wpRestoreLong))
        #undef _wpRestoreLong
        #undef __wpRestoreLong
        #define SOMGD_wpRestoreLong 1
    #else
        #define _wpRestoreLong WPObject_wpRestoreLong
    #endif /* _wpRestoreLong */
#endif /* SOMGD_wpRestoreLong */

/*
 * New Method: wpRestoreState
 */
typedef BOOL   SOMLINK somTP_WPObject_wpRestoreState(WPObject *somSelf, 
		ULONG ulReserved);
#pragma linkage(somTP_WPObject_wpRestoreState, system)
typedef somTP_WPObject_wpRestoreState *somTD_WPObject_wpRestoreState;
#define somMD_WPObject_wpRestoreState "::WPObject::wpRestoreState"
#define WPObject_wpRestoreState(somSelf,ulReserved) \
    (SOM_Resolve(somSelf, WPObject, wpRestoreState) \
	(somSelf,ulReserved))
#ifndef SOMGD_wpRestoreState
    #if (defined(_wpRestoreState) || defined(__wpRestoreState))
        #undef _wpRestoreState
        #undef __wpRestoreState
        #define SOMGD_wpRestoreState 1
    #else
        #define _wpRestoreState WPObject_wpRestoreState
    #endif /* _wpRestoreState */
#endif /* SOMGD_wpRestoreState */

/*
 * New Method: wpRestoreString
 */
typedef BOOL   SOMLINK somTP_WPObject_wpRestoreString(WPObject *somSelf, 
		PSZ pszClass, 
		ULONG ulKey, 
		PSZ pszValue, 
		PULONG pcbValue);
#pragma linkage(somTP_WPObject_wpRestoreString, system)
typedef somTP_WPObject_wpRestoreString *somTD_WPObject_wpRestoreString;
#define somMD_WPObject_wpRestoreString "::WPObject::wpRestoreString"
#define WPObject_wpRestoreString(somSelf,pszClass,ulKey,pszValue,pcbValue) \
    (SOM_Resolve(somSelf, WPObject, wpRestoreString) \
	(somSelf,pszClass,ulKey,pszValue,pcbValue))
#ifndef SOMGD_wpRestoreString
    #if (defined(_wpRestoreString) || defined(__wpRestoreString))
        #undef _wpRestoreString
        #undef __wpRestoreString
        #define SOMGD_wpRestoreString 1
    #else
        #define _wpRestoreString WPObject_wpRestoreString
    #endif /* _wpRestoreString */
#endif /* SOMGD_wpRestoreString */

/*
 * New Method: wpSaveData
 */
typedef BOOL   SOMLINK somTP_WPObject_wpSaveData(WPObject *somSelf, 
		PSZ pszClass, 
		ULONG ulKey, 
		PBYTE pValue, 
		ULONG cbValue);
#pragma linkage(somTP_WPObject_wpSaveData, system)
typedef somTP_WPObject_wpSaveData *somTD_WPObject_wpSaveData;
#define somMD_WPObject_wpSaveData "::WPObject::wpSaveData"
#define WPObject_wpSaveData(somSelf,pszClass,ulKey,pValue,cbValue) \
    (SOM_Resolve(somSelf, WPObject, wpSaveData) \
	(somSelf,pszClass,ulKey,pValue,cbValue))
#ifndef SOMGD_wpSaveData
    #if (defined(_wpSaveData) || defined(__wpSaveData))
        #undef _wpSaveData
        #undef __wpSaveData
        #define SOMGD_wpSaveData 1
    #else
        #define _wpSaveData WPObject_wpSaveData
    #endif /* _wpSaveData */
#endif /* SOMGD_wpSaveData */

/*
 * New Method: wpSaveImmediate
 */
typedef BOOL   SOMLINK somTP_WPObject_wpSaveImmediate(WPObject *somSelf);
#pragma linkage(somTP_WPObject_wpSaveImmediate, system)
typedef somTP_WPObject_wpSaveImmediate *somTD_WPObject_wpSaveImmediate;
#define somMD_WPObject_wpSaveImmediate "::WPObject::wpSaveImmediate"
#define WPObject_wpSaveImmediate(somSelf) \
    (SOM_Resolve(somSelf, WPObject, wpSaveImmediate) \
	(somSelf))
#ifndef SOMGD_wpSaveImmediate
    #if (defined(_wpSaveImmediate) || defined(__wpSaveImmediate))
        #undef _wpSaveImmediate
        #undef __wpSaveImmediate
        #define SOMGD_wpSaveImmediate 1
    #else
        #define _wpSaveImmediate WPObject_wpSaveImmediate
    #endif /* _wpSaveImmediate */
#endif /* SOMGD_wpSaveImmediate */

/*
 * New Method: wpSaveDeferred
 */
typedef BOOL   SOMLINK somTP_WPObject_wpSaveDeferred(WPObject *somSelf);
#pragma linkage(somTP_WPObject_wpSaveDeferred, system)
typedef somTP_WPObject_wpSaveDeferred *somTD_WPObject_wpSaveDeferred;
#define somMD_WPObject_wpSaveDeferred "::WPObject::wpSaveDeferred"
#define WPObject_wpSaveDeferred(somSelf) \
    (SOM_Resolve(somSelf, WPObject, wpSaveDeferred) \
	(somSelf))
#ifndef SOMGD_wpSaveDeferred
    #if (defined(_wpSaveDeferred) || defined(__wpSaveDeferred))
        #undef _wpSaveDeferred
        #undef __wpSaveDeferred
        #define SOMGD_wpSaveDeferred 1
    #else
        #define _wpSaveDeferred WPObject_wpSaveDeferred
    #endif /* _wpSaveDeferred */
#endif /* SOMGD_wpSaveDeferred */

/*
 * New Method: wpSaveLong
 */
typedef BOOL   SOMLINK somTP_WPObject_wpSaveLong(WPObject *somSelf, 
		PSZ pszClass, 
		ULONG ulKey, 
		ULONG ulValue);
#pragma linkage(somTP_WPObject_wpSaveLong, system)
typedef somTP_WPObject_wpSaveLong *somTD_WPObject_wpSaveLong;
#define somMD_WPObject_wpSaveLong "::WPObject::wpSaveLong"
#define WPObject_wpSaveLong(somSelf,pszClass,ulKey,ulValue) \
    (SOM_Resolve(somSelf, WPObject, wpSaveLong) \
	(somSelf,pszClass,ulKey,ulValue))
#ifndef SOMGD_wpSaveLong
    #if (defined(_wpSaveLong) || defined(__wpSaveLong))
        #undef _wpSaveLong
        #undef __wpSaveLong
        #define SOMGD_wpSaveLong 1
    #else
        #define _wpSaveLong WPObject_wpSaveLong
    #endif /* _wpSaveLong */
#endif /* SOMGD_wpSaveLong */

/*
 * New Method: wpSaveState
 */
typedef BOOL   SOMLINK somTP_WPObject_wpSaveState(WPObject *somSelf);
#pragma linkage(somTP_WPObject_wpSaveState, system)
typedef somTP_WPObject_wpSaveState *somTD_WPObject_wpSaveState;
#define somMD_WPObject_wpSaveState "::WPObject::wpSaveState"
#define WPObject_wpSaveState(somSelf) \
    (SOM_Resolve(somSelf, WPObject, wpSaveState) \
	(somSelf))
#ifndef SOMGD_wpSaveState
    #if (defined(_wpSaveState) || defined(__wpSaveState))
        #undef _wpSaveState
        #undef __wpSaveState
        #define SOMGD_wpSaveState 1
    #else
        #define _wpSaveState WPObject_wpSaveState
    #endif /* _wpSaveState */
#endif /* SOMGD_wpSaveState */

/*
 * New Method: wpSaveString
 */
typedef BOOL   SOMLINK somTP_WPObject_wpSaveString(WPObject *somSelf, 
		PSZ pszClass, 
		ULONG ulKey, 
		PSZ pszValue);
#pragma linkage(somTP_WPObject_wpSaveString, system)
typedef somTP_WPObject_wpSaveString *somTD_WPObject_wpSaveString;
#define somMD_WPObject_wpSaveString "::WPObject::wpSaveString"
#define WPObject_wpSaveString(somSelf,pszClass,ulKey,pszValue) \
    (SOM_Resolve(somSelf, WPObject, wpSaveString) \
	(somSelf,pszClass,ulKey,pszValue))
#ifndef SOMGD_wpSaveString
    #if (defined(_wpSaveString) || defined(__wpSaveString))
        #undef _wpSaveString
        #undef __wpSaveString
        #define SOMGD_wpSaveString 1
    #else
        #define _wpSaveString WPObject_wpSaveString
    #endif /* _wpSaveString */
#endif /* SOMGD_wpSaveString */

/*
 * New Method: wpScanSetupString
 */
typedef BOOL   SOMLINK somTP_WPObject_wpScanSetupString(WPObject *somSelf, 
		PSZ pszSetupString, 
		PSZ pszKey, 
		PSZ pszValue, 
		PULONG pcbValue);
#pragma linkage(somTP_WPObject_wpScanSetupString, system)
typedef somTP_WPObject_wpScanSetupString *somTD_WPObject_wpScanSetupString;
#define somMD_WPObject_wpScanSetupString "::WPObject::wpScanSetupString"
#define WPObject_wpScanSetupString(somSelf,pszSetupString,pszKey,pszValue,pcbValue) \
    (SOM_Resolve(somSelf, WPObject, wpScanSetupString) \
	(somSelf,pszSetupString,pszKey,pszValue,pcbValue))
#ifndef SOMGD_wpScanSetupString
    #if (defined(_wpScanSetupString) || defined(__wpScanSetupString))
        #undef _wpScanSetupString
        #undef __wpScanSetupString
        #define SOMGD_wpScanSetupString 1
    #else
        #define _wpScanSetupString WPObject_wpScanSetupString
    #endif /* _wpScanSetupString */
#endif /* SOMGD_wpScanSetupString */

/*
 * New Method: wpSetConcurrentView
 */
typedef void   SOMLINK somTP_WPObject_wpSetConcurrentView(WPObject *somSelf, 
		ULONG ulCCView);
#pragma linkage(somTP_WPObject_wpSetConcurrentView, system)
typedef somTP_WPObject_wpSetConcurrentView *somTD_WPObject_wpSetConcurrentView;
#define somMD_WPObject_wpSetConcurrentView "::WPObject::wpSetConcurrentView"
#define WPObject_wpSetConcurrentView(somSelf,ulCCView) \
    (SOM_Resolve(somSelf, WPObject, wpSetConcurrentView) \
	(somSelf,ulCCView))
#ifndef SOMGD_wpSetConcurrentView
    #if (defined(_wpSetConcurrentView) || defined(__wpSetConcurrentView))
        #undef _wpSetConcurrentView
        #undef __wpSetConcurrentView
        #define SOMGD_wpSetConcurrentView 1
    #else
        #define _wpSetConcurrentView WPObject_wpSetConcurrentView
    #endif /* _wpSetConcurrentView */
#endif /* SOMGD_wpSetConcurrentView */

/*
 * New Method: wpSetButtonAppearance
 */
typedef void   SOMLINK somTP_WPObject_wpSetButtonAppearance(WPObject *somSelf, 
		ULONG ulButtonType);
#pragma linkage(somTP_WPObject_wpSetButtonAppearance, system)
typedef somTP_WPObject_wpSetButtonAppearance *somTD_WPObject_wpSetButtonAppearance;
#define somMD_WPObject_wpSetButtonAppearance "::WPObject::wpSetButtonAppearance"
#define WPObject_wpSetButtonAppearance(somSelf,ulButtonType) \
    (SOM_Resolve(somSelf, WPObject, wpSetButtonAppearance) \
	(somSelf,ulButtonType))
#ifndef SOMGD_wpSetButtonAppearance
    #if (defined(_wpSetButtonAppearance) || defined(__wpSetButtonAppearance))
        #undef _wpSetButtonAppearance
        #undef __wpSetButtonAppearance
        #define SOMGD_wpSetButtonAppearance 1
    #else
        #define _wpSetButtonAppearance WPObject_wpSetButtonAppearance
    #endif /* _wpSetButtonAppearance */
#endif /* SOMGD_wpSetButtonAppearance */

/*
 * New Method: wpSetDefaultHelp
 */
typedef BOOL   SOMLINK somTP_WPObject_wpSetDefaultHelp(WPObject *somSelf, 
		ULONG HelpPanelId, 
		PSZ HelpLibrary);
#pragma linkage(somTP_WPObject_wpSetDefaultHelp, system)
typedef somTP_WPObject_wpSetDefaultHelp *somTD_WPObject_wpSetDefaultHelp;
#define somMD_WPObject_wpSetDefaultHelp "::WPObject::wpSetDefaultHelp"
#define WPObject_wpSetDefaultHelp(somSelf,HelpPanelId,HelpLibrary) \
    (SOM_Resolve(somSelf, WPObject, wpSetDefaultHelp) \
	(somSelf,HelpPanelId,HelpLibrary))
#ifndef SOMGD_wpSetDefaultHelp
    #if (defined(_wpSetDefaultHelp) || defined(__wpSetDefaultHelp))
        #undef _wpSetDefaultHelp
        #undef __wpSetDefaultHelp
        #define SOMGD_wpSetDefaultHelp 1
    #else
        #define _wpSetDefaultHelp WPObject_wpSetDefaultHelp
    #endif /* _wpSetDefaultHelp */
#endif /* SOMGD_wpSetDefaultHelp */

/*
 * New Method: wpSetDefaultView
 */
typedef BOOL   SOMLINK somTP_WPObject_wpSetDefaultView(WPObject *somSelf, 
		ULONG ulView);
#pragma linkage(somTP_WPObject_wpSetDefaultView, system)
typedef somTP_WPObject_wpSetDefaultView *somTD_WPObject_wpSetDefaultView;
#define somMD_WPObject_wpSetDefaultView "::WPObject::wpSetDefaultView"
#define WPObject_wpSetDefaultView(somSelf,ulView) \
    (SOM_Resolve(somSelf, WPObject, wpSetDefaultView) \
	(somSelf,ulView))
#ifndef SOMGD_wpSetDefaultView
    #if (defined(_wpSetDefaultView) || defined(__wpSetDefaultView))
        #undef _wpSetDefaultView
        #undef __wpSetDefaultView
        #define SOMGD_wpSetDefaultView 1
    #else
        #define _wpSetDefaultView WPObject_wpSetDefaultView
    #endif /* _wpSetDefaultView */
#endif /* SOMGD_wpSetDefaultView */

/*
 * New Method: wpSetError
 */
typedef BOOL   SOMLINK somTP_WPObject_wpSetError(WPObject *somSelf, 
		ULONG ulErrorId);
#pragma linkage(somTP_WPObject_wpSetError, system)
typedef somTP_WPObject_wpSetError *somTD_WPObject_wpSetError;
#define somMD_WPObject_wpSetError "::WPObject::wpSetError"
#define WPObject_wpSetError(somSelf,ulErrorId) \
    (SOM_Resolve(somSelf, WPObject, wpSetError) \
	(somSelf,ulErrorId))
#ifndef SOMGD_wpSetError
    #if (defined(_wpSetError) || defined(__wpSetError))
        #undef _wpSetError
        #undef __wpSetError
        #define SOMGD_wpSetError 1
    #else
        #define _wpSetError WPObject_wpSetError
    #endif /* _wpSetError */
#endif /* SOMGD_wpSetError */

/*
 * New Method: wpQueryScreenGroupID
 */
typedef SGID   SOMLINK somTP_WPObject_wpQueryScreenGroupID(WPObject *somSelf, 
		SGID sgidPrevSgId);
#pragma linkage(somTP_WPObject_wpQueryScreenGroupID, system)
typedef somTP_WPObject_wpQueryScreenGroupID *somTD_WPObject_wpQueryScreenGroupID;
#define somMD_WPObject_wpQueryScreenGroupID "::WPObject::wpQueryScreenGroupID"
#define WPObject_wpQueryScreenGroupID(somSelf,sgidPrevSgId) \
    (SOM_Resolve(somSelf, WPObject, wpQueryScreenGroupID) \
	(somSelf,sgidPrevSgId))
#ifndef SOMGD_wpQueryScreenGroupID
    #if (defined(_wpQueryScreenGroupID) || defined(__wpQueryScreenGroupID))
        #undef _wpQueryScreenGroupID
        #undef __wpQueryScreenGroupID
        #define SOMGD_wpQueryScreenGroupID 1
    #else
        #define _wpQueryScreenGroupID WPObject_wpQueryScreenGroupID
    #endif /* _wpQueryScreenGroupID */
#endif /* SOMGD_wpQueryScreenGroupID */

/*
 * New Method: wpSetupOnce
 */
typedef BOOL   SOMLINK somTP_WPObject_wpSetupOnce(WPObject *somSelf, 
		PSZ pszSetupString);
#pragma linkage(somTP_WPObject_wpSetupOnce, system)
typedef somTP_WPObject_wpSetupOnce *somTD_WPObject_wpSetupOnce;
#define somMD_WPObject_wpSetupOnce "::WPObject::wpSetupOnce"
#define WPObject_wpSetupOnce(somSelf,pszSetupString) \
    (SOM_Resolve(somSelf, WPObject, wpSetupOnce) \
	(somSelf,pszSetupString))
#ifndef SOMGD_wpSetupOnce
    #if (defined(_wpSetupOnce) || defined(__wpSetupOnce))
        #undef _wpSetupOnce
        #undef __wpSetupOnce
        #define SOMGD_wpSetupOnce 1
    #else
        #define _wpSetupOnce WPObject_wpSetupOnce
    #endif /* _wpSetupOnce */
#endif /* SOMGD_wpSetupOnce */

/*
 * New Method: wpSetIcon
 */
typedef BOOL   SOMLINK somTP_WPObject_wpSetIcon(WPObject *somSelf, 
		HPOINTER hptrNewIcon);
#pragma linkage(somTP_WPObject_wpSetIcon, system)
typedef somTP_WPObject_wpSetIcon *somTD_WPObject_wpSetIcon;
#define somMD_WPObject_wpSetIcon "::WPObject::wpSetIcon"
#define WPObject_wpSetIcon(somSelf,hptrNewIcon) \
    (SOM_Resolve(somSelf, WPObject, wpSetIcon) \
	(somSelf,hptrNewIcon))
#ifndef SOMGD_wpSetIcon
    #if (defined(_wpSetIcon) || defined(__wpSetIcon))
        #undef _wpSetIcon
        #undef __wpSetIcon
        #define SOMGD_wpSetIcon 1
    #else
        #define _wpSetIcon WPObject_wpSetIcon
    #endif /* _wpSetIcon */
#endif /* SOMGD_wpSetIcon */

/*
 * New Method: wpSetIconData
 */
typedef BOOL   SOMLINK somTP_WPObject_wpSetIconData(WPObject *somSelf, 
		PICONINFO pIconInfo);
#pragma linkage(somTP_WPObject_wpSetIconData, system)
typedef somTP_WPObject_wpSetIconData *somTD_WPObject_wpSetIconData;
#define somMD_WPObject_wpSetIconData "::WPObject::wpSetIconData"
#define WPObject_wpSetIconData(somSelf,pIconInfo) \
    (SOM_Resolve(somSelf, WPObject, wpSetIconData) \
	(somSelf,pIconInfo))
#ifndef SOMGD_wpSetIconData
    #if (defined(_wpSetIconData) || defined(__wpSetIconData))
        #undef _wpSetIconData
        #undef __wpSetIconData
        #define SOMGD_wpSetIconData 1
    #else
        #define _wpSetIconData WPObject_wpSetIconData
    #endif /* _wpSetIconData */
#endif /* SOMGD_wpSetIconData */

/*
 * New Method: wpSetMinWindow
 */
typedef void   SOMLINK somTP_WPObject_wpSetMinWindow(WPObject *somSelf, 
		ULONG ulMinWindow);
#pragma linkage(somTP_WPObject_wpSetMinWindow, system)
typedef somTP_WPObject_wpSetMinWindow *somTD_WPObject_wpSetMinWindow;
#define somMD_WPObject_wpSetMinWindow "::WPObject::wpSetMinWindow"
#define WPObject_wpSetMinWindow(somSelf,ulMinWindow) \
    (SOM_Resolve(somSelf, WPObject, wpSetMinWindow) \
	(somSelf,ulMinWindow))
#ifndef SOMGD_wpSetMinWindow
    #if (defined(_wpSetMinWindow) || defined(__wpSetMinWindow))
        #undef _wpSetMinWindow
        #undef __wpSetMinWindow
        #define SOMGD_wpSetMinWindow 1
    #else
        #define _wpSetMinWindow WPObject_wpSetMinWindow
    #endif /* _wpSetMinWindow */
#endif /* SOMGD_wpSetMinWindow */

/*
 * New Method: wpModifyStyle
 */
typedef BOOL   SOMLINK somTP_WPObject_wpModifyStyle(WPObject *somSelf, 
		ULONG ulStyleFlags, 
		ULONG ulStyleMask);
#pragma linkage(somTP_WPObject_wpModifyStyle, system)
typedef somTP_WPObject_wpModifyStyle *somTD_WPObject_wpModifyStyle;
#define somMD_WPObject_wpModifyStyle "::WPObject::wpModifyStyle"
#define WPObject_wpModifyStyle(somSelf,ulStyleFlags,ulStyleMask) \
    (SOM_Resolve(somSelf, WPObject, wpModifyStyle) \
	(somSelf,ulStyleFlags,ulStyleMask))
#ifndef SOMGD_wpModifyStyle
    #if (defined(_wpModifyStyle) || defined(__wpModifyStyle))
        #undef _wpModifyStyle
        #undef __wpModifyStyle
        #define SOMGD_wpModifyStyle 1
    #else
        #define _wpModifyStyle WPObject_wpModifyStyle
    #endif /* _wpModifyStyle */
#endif /* SOMGD_wpModifyStyle */

/*
 * New Method: wpSetTitle
 */
typedef BOOL   SOMLINK somTP_WPObject_wpSetTitle(WPObject *somSelf, 
		PSZ pszNewTitle);
#pragma linkage(somTP_WPObject_wpSetTitle, system)
typedef somTP_WPObject_wpSetTitle *somTD_WPObject_wpSetTitle;
#define somMD_WPObject_wpSetTitle "::WPObject::wpSetTitle"
#define WPObject_wpSetTitle(somSelf,pszNewTitle) \
    (SOM_Resolve(somSelf, WPObject, wpSetTitle) \
	(somSelf,pszNewTitle))
#ifndef SOMGD_wpSetTitle
    #if (defined(_wpSetTitle) || defined(__wpSetTitle))
        #undef _wpSetTitle
        #undef __wpSetTitle
        #define SOMGD_wpSetTitle 1
    #else
        #define _wpSetTitle WPObject_wpSetTitle
    #endif /* _wpSetTitle */
#endif /* SOMGD_wpSetTitle */

/*
 * New Method: wpSetup
 */
typedef BOOL   SOMLINK somTP_WPObject_wpSetup(WPObject *somSelf, 
		PSZ pszSetupString);
#pragma linkage(somTP_WPObject_wpSetup, system)
typedef somTP_WPObject_wpSetup *somTD_WPObject_wpSetup;
#define somMD_WPObject_wpSetup "::WPObject::wpSetup"
#define WPObject_wpSetup(somSelf,pszSetupString) \
    (SOM_Resolve(somSelf, WPObject, wpSetup) \
	(somSelf,pszSetupString))
#ifndef SOMGD_wpSetup
    #if (defined(_wpSetup) || defined(__wpSetup))
        #undef _wpSetup
        #undef __wpSetup
        #define SOMGD_wpSetup 1
    #else
        #define _wpSetup WPObject_wpSetup
    #endif /* _wpSetup */
#endif /* SOMGD_wpSetup */

/*
 * New Method: wpSwitchTo
 */
typedef BOOL   SOMLINK somTP_WPObject_wpSwitchTo(WPObject *somSelf, 
		ULONG View);
#pragma linkage(somTP_WPObject_wpSwitchTo, system)
typedef somTP_WPObject_wpSwitchTo *somTD_WPObject_wpSwitchTo;
#define somMD_WPObject_wpSwitchTo "::WPObject::wpSwitchTo"
#define WPObject_wpSwitchTo(somSelf,View) \
    (SOM_Resolve(somSelf, WPObject, wpSwitchTo) \
	(somSelf,View))
#ifndef SOMGD_wpSwitchTo
    #if (defined(_wpSwitchTo) || defined(__wpSwitchTo))
        #undef _wpSwitchTo
        #undef __wpSwitchTo
        #define SOMGD_wpSwitchTo 1
    #else
        #define _wpSwitchTo WPObject_wpSwitchTo
    #endif /* _wpSwitchTo */
#endif /* SOMGD_wpSwitchTo */

/*
 * New Method: wpUnInitData
 */
typedef void   SOMLINK somTP_WPObject_wpUnInitData(WPObject *somSelf);
#pragma linkage(somTP_WPObject_wpUnInitData, system)
typedef somTP_WPObject_wpUnInitData *somTD_WPObject_wpUnInitData;
#define somMD_WPObject_wpUnInitData "::WPObject::wpUnInitData"
#define WPObject_wpUnInitData(somSelf) \
    (SOM_Resolve(somSelf, WPObject, wpUnInitData) \
	(somSelf))
#ifndef SOMGD_wpUnInitData
    #if (defined(_wpUnInitData) || defined(__wpUnInitData))
        #undef _wpUnInitData
        #undef __wpUnInitData
        #define SOMGD_wpUnInitData 1
    #else
        #define _wpUnInitData WPObject_wpUnInitData
    #endif /* _wpUnInitData */
#endif /* SOMGD_wpUnInitData */

/*
 * New Method: wpViewObject
 */
typedef HWND   SOMLINK somTP_WPObject_wpViewObject(WPObject *somSelf, 
		HWND hwndCnr, 
		ULONG ulView, 
		ULONG param);
#pragma linkage(somTP_WPObject_wpViewObject, system)
typedef somTP_WPObject_wpViewObject *somTD_WPObject_wpViewObject;
#define somMD_WPObject_wpViewObject "::WPObject::wpViewObject"
#define WPObject_wpViewObject(somSelf,hwndCnr,ulView,param) \
    (SOM_Resolve(somSelf, WPObject, wpViewObject) \
	(somSelf,hwndCnr,ulView,param))
#ifndef SOMGD_wpViewObject
    #if (defined(_wpViewObject) || defined(__wpViewObject))
        #undef _wpViewObject
        #undef __wpViewObject
        #define SOMGD_wpViewObject 1
    #else
        #define _wpViewObject WPObject_wpViewObject
    #endif /* _wpViewObject */
#endif /* SOMGD_wpViewObject */

/*
 * Direct call procedure
 */
typedef ULONG   SOMLINK somTP_WPObject_wpQueryTrueStyle(WPObject *somSelf);
#pragma linkage(somTP_WPObject_wpQueryTrueStyle, system)
typedef somTP_WPObject_wpQueryTrueStyle *somTD_WPObject_wpQueryTrueStyle;
#define WPObject_wpQueryTrueStyle ((somTD_WPObject_wpQueryTrueStyle) WPObjectClassData.wpQueryTrueStyle)
#ifndef SOMGD_wpQueryTrueStyle
    #if (defined(_wpQueryTrueStyle) || defined(__wpQueryTrueStyle))
        #undef _wpQueryTrueStyle
        #undef __wpQueryTrueStyle
        #define SOMGD_wpQueryTrueStyle 1
    #else
        #define _wpQueryTrueStyle WPObject_wpQueryTrueStyle
    #endif /* _wpQueryTrueStyle */
#endif /* SOMGD_wpQueryTrueStyle */

/*
 * New Method: wpQueryHandle
 */
typedef HOBJECT   SOMLINK somTP_WPObject_wpQueryHandle(WPObject *somSelf);
#pragma linkage(somTP_WPObject_wpQueryHandle, system)
typedef somTP_WPObject_wpQueryHandle *somTD_WPObject_wpQueryHandle;
#define somMD_WPObject_wpQueryHandle "::WPObject::wpQueryHandle"
#define WPObject_wpQueryHandle(somSelf) \
    (SOM_Resolve(somSelf, WPObject, wpQueryHandle) \
	(somSelf))
#ifndef SOMGD_wpQueryHandle
    #if (defined(_wpQueryHandle) || defined(__wpQueryHandle))
        #undef _wpQueryHandle
        #undef __wpQueryHandle
        #define SOMGD_wpQueryHandle 1
    #else
        #define _wpQueryHandle WPObject_wpQueryHandle
    #endif /* _wpQueryHandle */
#endif /* SOMGD_wpQueryHandle */

/*
 * New Method: wpUnlockObject
 */
typedef BOOL   SOMLINK somTP_WPObject_wpUnlockObject(WPObject *somSelf);
#pragma linkage(somTP_WPObject_wpUnlockObject, system)
typedef somTP_WPObject_wpUnlockObject *somTD_WPObject_wpUnlockObject;
#define somMD_WPObject_wpUnlockObject "::WPObject::wpUnlockObject"
#define WPObject_wpUnlockObject(somSelf) \
    (SOM_Resolve(somSelf, WPObject, wpUnlockObject) \
	(somSelf))
#ifndef SOMGD_wpUnlockObject
    #if (defined(_wpUnlockObject) || defined(__wpUnlockObject))
        #undef _wpUnlockObject
        #undef __wpUnlockObject
        #define SOMGD_wpUnlockObject 1
    #else
        #define _wpUnlockObject WPObject_wpUnlockObject
    #endif /* _wpUnlockObject */
#endif /* SOMGD_wpUnlockObject */

/*
 * New Method: wpObjectReady
 */
typedef void   SOMLINK somTP_WPObject_wpObjectReady(WPObject *somSelf, 
		ULONG ulCode, 
		WPObject* refObject);
#pragma linkage(somTP_WPObject_wpObjectReady, system)
typedef somTP_WPObject_wpObjectReady *somTD_WPObject_wpObjectReady;
#define somMD_WPObject_wpObjectReady "::WPObject::wpObjectReady"
#define WPObject_wpObjectReady(somSelf,ulCode,refObject) \
    (SOM_Resolve(somSelf, WPObject, wpObjectReady) \
	(somSelf,ulCode,refObject))
#ifndef SOMGD_wpObjectReady
    #if (defined(_wpObjectReady) || defined(__wpObjectReady))
        #undef _wpObjectReady
        #undef __wpObjectReady
        #define SOMGD_wpObjectReady 1
    #else
        #define _wpObjectReady WPObject_wpObjectReady
    #endif /* _wpObjectReady */
#endif /* SOMGD_wpObjectReady */

/*
 * New Method: wpIsObjectInitialized
 */
typedef BOOL   SOMLINK somTP_WPObject_wpIsObjectInitialized(WPObject *somSelf);
#pragma linkage(somTP_WPObject_wpIsObjectInitialized, system)
typedef somTP_WPObject_wpIsObjectInitialized *somTD_WPObject_wpIsObjectInitialized;
#define somMD_WPObject_wpIsObjectInitialized "::WPObject::wpIsObjectInitialized"
#define WPObject_wpIsObjectInitialized(somSelf) \
    (SOM_Resolve(somSelf, WPObject, wpIsObjectInitialized) \
	(somSelf))
#ifndef SOMGD_wpIsObjectInitialized
    #if (defined(_wpIsObjectInitialized) || defined(__wpIsObjectInitialized))
        #undef _wpIsObjectInitialized
        #undef __wpIsObjectInitialized
        #define SOMGD_wpIsObjectInitialized 1
    #else
        #define _wpIsObjectInitialized WPObject_wpIsObjectInitialized
    #endif /* _wpIsObjectInitialized */
#endif /* SOMGD_wpIsObjectInitialized */

/*
 * New Method: wpCreateShadowObjectExt
 */
typedef WPObject*   SOMLINK somTP_WPObject_wpCreateShadowObjectExt(WPObject *somSelf, 
		WPFolder* Folder, 
		BOOL fLock, 
		PSZ pszSetup, 
		M_WPObject* shadowClass);
#pragma linkage(somTP_WPObject_wpCreateShadowObjectExt, system)
typedef somTP_WPObject_wpCreateShadowObjectExt *somTD_WPObject_wpCreateShadowObjectExt;
#define somMD_WPObject_wpCreateShadowObjectExt "::WPObject::wpCreateShadowObjectExt"
#define WPObject_wpCreateShadowObjectExt(somSelf,Folder,fLock,pszSetup,shadowClass) \
    (SOM_Resolve(somSelf, WPObject, wpCreateShadowObjectExt) \
	(somSelf,Folder,fLock,pszSetup,shadowClass))
#ifndef SOMGD_wpCreateShadowObjectExt
    #if (defined(_wpCreateShadowObjectExt) || defined(__wpCreateShadowObjectExt))
        #undef _wpCreateShadowObjectExt
        #undef __wpCreateShadowObjectExt
        #define SOMGD_wpCreateShadowObjectExt 1
    #else
        #define _wpCreateShadowObjectExt WPObject_wpCreateShadowObjectExt
    #endif /* _wpCreateShadowObjectExt */
#endif /* SOMGD_wpCreateShadowObjectExt */

/*
 * New Method: wpCnrDeleteUseItem
 */
typedef BOOL   SOMLINK somTP_WPObject_wpCnrDeleteUseItem(WPObject *somSelf, 
		HWND hwndCnr);
#pragma linkage(somTP_WPObject_wpCnrDeleteUseItem, system)
typedef somTP_WPObject_wpCnrDeleteUseItem *somTD_WPObject_wpCnrDeleteUseItem;
#define somMD_WPObject_wpCnrDeleteUseItem "::WPObject::wpCnrDeleteUseItem"
#define WPObject_wpCnrDeleteUseItem(somSelf,hwndCnr) \
    (SOM_Resolve(somSelf, WPObject, wpCnrDeleteUseItem) \
	(somSelf,hwndCnr))
#ifndef SOMGD_wpCnrDeleteUseItem
    #if (defined(_wpCnrDeleteUseItem) || defined(__wpCnrDeleteUseItem))
        #undef _wpCnrDeleteUseItem
        #undef __wpCnrDeleteUseItem
        #define SOMGD_wpCnrDeleteUseItem 1
    #else
        #define _wpCnrDeleteUseItem WPObject_wpCnrDeleteUseItem
    #endif /* _wpCnrDeleteUseItem */
#endif /* SOMGD_wpCnrDeleteUseItem */

/*
 * New Method: wpIsDeleteable
 */
typedef BOOL   SOMLINK somTP_WPObject_wpIsDeleteable(WPObject *somSelf);
#pragma linkage(somTP_WPObject_wpIsDeleteable, system)
typedef somTP_WPObject_wpIsDeleteable *somTD_WPObject_wpIsDeleteable;
#define somMD_WPObject_wpIsDeleteable "::WPObject::wpIsDeleteable"
#define WPObject_wpIsDeleteable(somSelf) \
    (SOM_Resolve(somSelf, WPObject, wpIsDeleteable) \
	(somSelf))
#ifndef SOMGD_wpIsDeleteable
    #if (defined(_wpIsDeleteable) || defined(__wpIsDeleteable))
        #undef _wpIsDeleteable
        #undef __wpIsDeleteable
        #define SOMGD_wpIsDeleteable 1
    #else
        #define _wpIsDeleteable WPObject_wpIsDeleteable
    #endif /* _wpIsDeleteable */
#endif /* SOMGD_wpIsDeleteable */

/*
 * New Method: wpQueryCoreRecord
 */
typedef PMINIRECORDCORE   SOMLINK somTP_WPObject_wpQueryCoreRecord(WPObject *somSelf);
#pragma linkage(somTP_WPObject_wpQueryCoreRecord, system)
typedef somTP_WPObject_wpQueryCoreRecord *somTD_WPObject_wpQueryCoreRecord;
#define somMD_WPObject_wpQueryCoreRecord "::WPObject::wpQueryCoreRecord"
#define WPObject_wpQueryCoreRecord(somSelf) \
    (SOM_Resolve(somSelf, WPObject, wpQueryCoreRecord) \
	(somSelf))
#ifndef SOMGD_wpQueryCoreRecord
    #if (defined(_wpQueryCoreRecord) || defined(__wpQueryCoreRecord))
        #undef _wpQueryCoreRecord
        #undef __wpQueryCoreRecord
        #define SOMGD_wpQueryCoreRecord 1
    #else
        #define _wpQueryCoreRecord WPObject_wpQueryCoreRecord
    #endif /* _wpQueryCoreRecord */
#endif /* SOMGD_wpQueryCoreRecord */

/*
 * New Method: wpSetObjectID
 */
typedef BOOL   SOMLINK somTP_WPObject_wpSetObjectID(WPObject *somSelf, 
		PSZ pszObjectID);
#pragma linkage(somTP_WPObject_wpSetObjectID, system)
typedef somTP_WPObject_wpSetObjectID *somTD_WPObject_wpSetObjectID;
#define somMD_WPObject_wpSetObjectID "::WPObject::wpSetObjectID"
#define WPObject_wpSetObjectID(somSelf,pszObjectID) \
    (SOM_Resolve(somSelf, WPObject, wpSetObjectID) \
	(somSelf,pszObjectID))
#ifndef SOMGD_wpSetObjectID
    #if (defined(_wpSetObjectID) || defined(__wpSetObjectID))
        #undef _wpSetObjectID
        #undef __wpSetObjectID
        #define SOMGD_wpSetObjectID 1
    #else
        #define _wpSetObjectID WPObject_wpSetObjectID
    #endif /* _wpSetObjectID */
#endif /* SOMGD_wpSetObjectID */

/*
 * New Method: wpQueryObjectID
 */
typedef PSZ   SOMLINK somTP_WPObject_wpQueryObjectID(WPObject *somSelf);
#pragma linkage(somTP_WPObject_wpQueryObjectID, system)
typedef somTP_WPObject_wpQueryObjectID *somTD_WPObject_wpQueryObjectID;
#define somMD_WPObject_wpQueryObjectID "::WPObject::wpQueryObjectID"
#define WPObject_wpQueryObjectID(somSelf) \
    (SOM_Resolve(somSelf, WPObject, wpQueryObjectID) \
	(somSelf))
#ifndef SOMGD_wpQueryObjectID
    #if (defined(_wpQueryObjectID) || defined(__wpQueryObjectID))
        #undef _wpQueryObjectID
        #undef __wpQueryObjectID
        #define SOMGD_wpQueryObjectID 1
    #else
        #define _wpQueryObjectID WPObject_wpQueryObjectID
    #endif /* _wpQueryObjectID */
#endif /* SOMGD_wpQueryObjectID */

/*
 * New Method: wpSetDefaultIconPos
 */
typedef BOOL   SOMLINK somTP_WPObject_wpSetDefaultIconPos(WPObject *somSelf, 
		PPOINTL pPointl);
#pragma linkage(somTP_WPObject_wpSetDefaultIconPos, system)
typedef somTP_WPObject_wpSetDefaultIconPos *somTD_WPObject_wpSetDefaultIconPos;
#define somMD_WPObject_wpSetDefaultIconPos "::WPObject::wpSetDefaultIconPos"
#define WPObject_wpSetDefaultIconPos(somSelf,pPointl) \
    (SOM_Resolve(somSelf, WPObject, wpSetDefaultIconPos) \
	(somSelf,pPointl))
#ifndef SOMGD_wpSetDefaultIconPos
    #if (defined(_wpSetDefaultIconPos) || defined(__wpSetDefaultIconPos))
        #undef _wpSetDefaultIconPos
        #undef __wpSetDefaultIconPos
        #define SOMGD_wpSetDefaultIconPos 1
    #else
        #define _wpSetDefaultIconPos WPObject_wpSetDefaultIconPos
    #endif /* _wpSetDefaultIconPos */
#endif /* SOMGD_wpSetDefaultIconPos */

/*
 * New Method: wpQueryDefaultIconPos
 */
typedef BOOL   SOMLINK somTP_WPObject_wpQueryDefaultIconPos(WPObject *somSelf, 
		PPOINTL pPointl);
#pragma linkage(somTP_WPObject_wpQueryDefaultIconPos, system)
typedef somTP_WPObject_wpQueryDefaultIconPos *somTD_WPObject_wpQueryDefaultIconPos;
#define somMD_WPObject_wpQueryDefaultIconPos "::WPObject::wpQueryDefaultIconPos"
#define WPObject_wpQueryDefaultIconPos(somSelf,pPointl) \
    (SOM_Resolve(somSelf, WPObject, wpQueryDefaultIconPos) \
	(somSelf,pPointl))
#ifndef SOMGD_wpQueryDefaultIconPos
    #if (defined(_wpQueryDefaultIconPos) || defined(__wpQueryDefaultIconPos))
        #undef _wpQueryDefaultIconPos
        #undef __wpQueryDefaultIconPos
        #define SOMGD_wpQueryDefaultIconPos 1
    #else
        #define _wpQueryDefaultIconPos WPObject_wpQueryDefaultIconPos
    #endif /* _wpQueryDefaultIconPos */
#endif /* SOMGD_wpQueryDefaultIconPos */

/*
 * New Method: wpCnrRefreshDetails
 */
typedef void   SOMLINK somTP_WPObject_wpCnrRefreshDetails(WPObject *somSelf);
#pragma linkage(somTP_WPObject_wpCnrRefreshDetails, system)
typedef somTP_WPObject_wpCnrRefreshDetails *somTD_WPObject_wpCnrRefreshDetails;
#define somMD_WPObject_wpCnrRefreshDetails "::WPObject::wpCnrRefreshDetails"
#define WPObject_wpCnrRefreshDetails(somSelf) \
    (SOM_Resolve(somSelf, WPObject, wpCnrRefreshDetails) \
	(somSelf))
#ifndef SOMGD_wpCnrRefreshDetails
    #if (defined(_wpCnrRefreshDetails) || defined(__wpCnrRefreshDetails))
        #undef _wpCnrRefreshDetails
        #undef __wpCnrRefreshDetails
        #define SOMGD_wpCnrRefreshDetails 1
    #else
        #define _wpCnrRefreshDetails WPObject_wpCnrRefreshDetails
    #endif /* _wpCnrRefreshDetails */
#endif /* SOMGD_wpCnrRefreshDetails */

/*
 * New Method: wpFindViewItem
 */
typedef PVIEWITEM   SOMLINK somTP_WPObject_wpFindViewItem(WPObject *somSelf, 
		ULONG flViews, 
		PVIEWITEM pCurrentItem);
#pragma linkage(somTP_WPObject_wpFindViewItem, system)
typedef somTP_WPObject_wpFindViewItem *somTD_WPObject_wpFindViewItem;
#define somMD_WPObject_wpFindViewItem "::WPObject::wpFindViewItem"
#define WPObject_wpFindViewItem(somSelf,flViews,pCurrentItem) \
    (SOM_Resolve(somSelf, WPObject, wpFindViewItem) \
	(somSelf,flViews,pCurrentItem))
#ifndef SOMGD_wpFindViewItem
    #if (defined(_wpFindViewItem) || defined(__wpFindViewItem))
        #undef _wpFindViewItem
        #undef __wpFindViewItem
        #define SOMGD_wpFindViewItem 1
    #else
        #define _wpFindViewItem WPObject_wpFindViewItem
    #endif /* _wpFindViewItem */
#endif /* SOMGD_wpFindViewItem */

/*
 * New Method: wpLockObject
 */
typedef void   SOMLINK somTP_WPObject_wpLockObject(WPObject *somSelf);
#pragma linkage(somTP_WPObject_wpLockObject, system)
typedef somTP_WPObject_wpLockObject *somTD_WPObject_wpLockObject;
#define somMD_WPObject_wpLockObject "::WPObject::wpLockObject"
#define WPObject_wpLockObject(somSelf) \
    (SOM_Resolve(somSelf, WPObject, wpLockObject) \
	(somSelf))
#ifndef SOMGD_wpLockObject
    #if (defined(_wpLockObject) || defined(__wpLockObject))
        #undef _wpLockObject
        #undef __wpLockObject
        #define SOMGD_wpLockObject 1
    #else
        #define _wpLockObject WPObject_wpLockObject
    #endif /* _wpLockObject */
#endif /* SOMGD_wpLockObject */

/*
 * New Method: wpIsLocked
 */
typedef BOOL   SOMLINK somTP_WPObject_wpIsLocked(WPObject *somSelf);
#pragma linkage(somTP_WPObject_wpIsLocked, system)
typedef somTP_WPObject_wpIsLocked *somTD_WPObject_wpIsLocked;
#define somMD_WPObject_wpIsLocked "::WPObject::wpIsLocked"
#define WPObject_wpIsLocked(somSelf) \
    (SOM_Resolve(somSelf, WPObject, wpIsLocked) \
	(somSelf))
#ifndef SOMGD_wpIsLocked
    #if (defined(_wpIsLocked) || defined(__wpIsLocked))
        #undef _wpIsLocked
        #undef __wpIsLocked
        #define SOMGD_wpIsLocked 1
    #else
        #define _wpIsLocked WPObject_wpIsLocked
    #endif /* _wpIsLocked */
#endif /* SOMGD_wpIsLocked */

/*
 * New Method: wpQueryContainerFlagPtr
 */
typedef PULONG   SOMLINK somTP_WPObject_wpQueryContainerFlagPtr(WPObject *somSelf);
#pragma linkage(somTP_WPObject_wpQueryContainerFlagPtr, system)
typedef somTP_WPObject_wpQueryContainerFlagPtr *somTD_WPObject_wpQueryContainerFlagPtr;
#define somMD_WPObject_wpQueryContainerFlagPtr "::WPObject::wpQueryContainerFlagPtr"
#define WPObject_wpQueryContainerFlagPtr(somSelf) \
    (SOM_Resolve(somSelf, WPObject, wpQueryContainerFlagPtr) \
	(somSelf))
#ifndef SOMGD_wpQueryContainerFlagPtr
    #if (defined(_wpQueryContainerFlagPtr) || defined(__wpQueryContainerFlagPtr))
        #undef _wpQueryContainerFlagPtr
        #undef __wpQueryContainerFlagPtr
        #define SOMGD_wpQueryContainerFlagPtr 1
    #else
        #define _wpQueryContainerFlagPtr WPObject_wpQueryContainerFlagPtr
    #endif /* _wpQueryContainerFlagPtr */
#endif /* SOMGD_wpQueryContainerFlagPtr */

/*
 * New Method: wpWaitForClose
 */
typedef ULONG   SOMLINK somTP_WPObject_wpWaitForClose(WPObject *somSelf, 
		LHANDLE lhView, 
		ULONG ulViews, 
		long lTimeOut, 
		BOOL bAutoClose);
#pragma linkage(somTP_WPObject_wpWaitForClose, system)
typedef somTP_WPObject_wpWaitForClose *somTD_WPObject_wpWaitForClose;
#define somMD_WPObject_wpWaitForClose "::WPObject::wpWaitForClose"
#define WPObject_wpWaitForClose(somSelf,lhView,ulViews,lTimeOut,bAutoClose) \
    (SOM_Resolve(somSelf, WPObject, wpWaitForClose) \
	(somSelf,lhView,ulViews,lTimeOut,bAutoClose))
#ifndef SOMGD_wpWaitForClose
    #if (defined(_wpWaitForClose) || defined(__wpWaitForClose))
        #undef _wpWaitForClose
        #undef __wpWaitForClose
        #define SOMGD_wpWaitForClose 1
    #else
        #define _wpWaitForClose WPObject_wpWaitForClose
    #endif /* _wpWaitForClose */
#endif /* SOMGD_wpWaitForClose */

/*
 * New Method: wpSetMenuStyle
 */
typedef BOOL   SOMLINK somTP_WPObject_wpSetMenuStyle(WPObject *somSelf, 
		ULONG ulStyle);
#pragma linkage(somTP_WPObject_wpSetMenuStyle, system)
typedef somTP_WPObject_wpSetMenuStyle *somTD_WPObject_wpSetMenuStyle;
#define somMD_WPObject_wpSetMenuStyle "::WPObject::wpSetMenuStyle"
#define WPObject_wpSetMenuStyle(somSelf,ulStyle) \
    (SOM_Resolve(somSelf, WPObject, wpSetMenuStyle) \
	(somSelf,ulStyle))
#ifndef SOMGD_wpSetMenuStyle
    #if (defined(_wpSetMenuStyle) || defined(__wpSetMenuStyle))
        #undef _wpSetMenuStyle
        #undef __wpSetMenuStyle
        #define SOMGD_wpSetMenuStyle 1
    #else
        #define _wpSetMenuStyle WPObject_wpSetMenuStyle
    #endif /* _wpSetMenuStyle */
#endif /* SOMGD_wpSetMenuStyle */

/*
 * New Method: wpQueryMenuStyle
 */
typedef ULONG   SOMLINK somTP_WPObject_wpQueryMenuStyle(WPObject *somSelf);
#pragma linkage(somTP_WPObject_wpQueryMenuStyle, system)
typedef somTP_WPObject_wpQueryMenuStyle *somTD_WPObject_wpQueryMenuStyle;
#define somMD_WPObject_wpQueryMenuStyle "::WPObject::wpQueryMenuStyle"
#define WPObject_wpQueryMenuStyle(somSelf) \
    (SOM_Resolve(somSelf, WPObject, wpQueryMenuStyle) \
	(somSelf))
#ifndef SOMGD_wpQueryMenuStyle
    #if (defined(_wpQueryMenuStyle) || defined(__wpQueryMenuStyle))
        #undef _wpQueryMenuStyle
        #undef __wpQueryMenuStyle
        #define SOMGD_wpQueryMenuStyle 1
    #else
        #define _wpQueryMenuStyle WPObject_wpQueryMenuStyle
    #endif /* _wpQueryMenuStyle */
#endif /* SOMGD_wpQueryMenuStyle */

/*
 * New Method: wpIdentify
 */
typedef BOOL   SOMLINK somTP_WPObject_wpIdentify(WPObject *somSelf, 
		PSZ pszIdentity);
#pragma linkage(somTP_WPObject_wpIdentify, system)
typedef somTP_WPObject_wpIdentify *somTD_WPObject_wpIdentify;
#define somMD_WPObject_wpIdentify "::WPObject::wpIdentify"
#define WPObject_wpIdentify(somSelf,pszIdentity) \
    (SOM_Resolve(somSelf, WPObject, wpIdentify) \
	(somSelf,pszIdentity))
#ifndef SOMGD_wpIdentify
    #if (defined(_wpIdentify) || defined(__wpIdentify))
        #undef _wpIdentify
        #undef __wpIdentify
        #define SOMGD_wpIdentify 1
    #else
        #define _wpIdentify WPObject_wpIdentify
    #endif /* _wpIdentify */
#endif /* SOMGD_wpIdentify */

/*
 * New Method: wpSetStyle
 */
typedef BOOL   SOMLINK somTP_WPObject_wpSetStyle(WPObject *somSelf, 
		ULONG ulNewStyle);
#pragma linkage(somTP_WPObject_wpSetStyle, system)
typedef somTP_WPObject_wpSetStyle *somTD_WPObject_wpSetStyle;
#define somMD_WPObject_wpSetStyle "::WPObject::wpSetStyle"
#define WPObject_wpSetStyle(somSelf,ulNewStyle) \
    (SOM_Resolve(somSelf, WPObject, wpSetStyle) \
	(somSelf,ulNewStyle))
#ifndef SOMGD_wpSetStyle
    #if (defined(_wpSetStyle) || defined(__wpSetStyle))
        #undef _wpSetStyle
        #undef __wpSetStyle
        #define SOMGD_wpSetStyle 1
    #else
        #define _wpSetStyle WPObject_wpSetStyle
    #endif /* _wpSetStyle */
#endif /* SOMGD_wpSetStyle */
#ifndef SOM_DONT_USE_INHERITED_MACROS
#define WPObject_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define WPObject_somDefaultAssign SOMObject_somDefaultAssign
#define WPObject_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define WPObject_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define WPObject_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define WPObject_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define WPObject_somDefaultVAssign SOMObject_somDefaultVAssign
#define WPObject_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define WPObject_somFree SOMObject_somFree
#define WPObject_somGetClass SOMObject_somGetClass
#define WPObject_somGetClassName SOMObject_somGetClassName
#define WPObject_somGetSize SOMObject_somGetSize
#define WPObject_somIsA SOMObject_somIsA
#define WPObject_somIsInstanceOf SOMObject_somIsInstanceOf
#define WPObject_somRespondsTo SOMObject_somRespondsTo
#define WPObject_somDispatch SOMObject_somDispatch
#define WPObject_somClassDispatch SOMObject_somClassDispatch
#define WPObject_somCastObj SOMObject_somCastObj
#define WPObject_somResetObj SOMObject_somResetObj
#define WPObject_somDispatchV SOMObject_somDispatchV
#define WPObject_somDispatchL SOMObject_somDispatchL
#define WPObject_somDispatchA SOMObject_somDispatchA
#define WPObject_somDispatchD SOMObject_somDispatchD
#define WPObject_somPrintSelf SOMObject_somPrintSelf
#define WPObject_somDumpSelf SOMObject_somDumpSelf
#define WPObject_somDumpSelfInt SOMObject_somDumpSelfInt
#endif /* SOM_DONT_USE_INHERITED_MACROS */

#endif       /* SOM_WPObject_h */

#ifndef SOM_M_WPObject_h
#define SOM_M_WPObject_h


#include <som.h>

/*
 * -- This emitter treats Method Tokens as Thunks by default.
 * -- Use the sc modifier "nothunks" to change this default
 */
#undef somresolve_
#define somresolve_(obj,mToken) ((somMethodProc*)((void)obj, mToken))

/*
 * Define the class name as an object type
 */
#ifndef M_WPObject
#define M_WPObject SOMObject
#endif
#include <somcls.h>

/*
 * Start of bindings for IDL types
 */


/*
 * End of bindings for IDL types.
 */

#define M_WPObject_MajorVersion 1
#define M_WPObject_MinorVersion 2

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define M_WPObjectNewClass wpobjc
#pragma linkage(wpobjc, system)
#define M_WPObjectClassData wpobjd
#define M_WPObjectCClassData wpobjx
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define M_WPObject_classObj M_WPObjectClassData.classObject
#define _M_WPObject M_WPObject_classObj

/*
 * Declare the class creation procedure
 */
SOMEXTERN SOMClass * SOMLINK M_WPObjectNewClass(integer4 somtmajorVersion,
		integer4 somtminorVersion);
#pragma linkage(M_WPObjectNewClass, system)

/*
 * Declare the class data structure
 */
SOMEXTERN struct M_WPObjectClassDataStructure {
	SOMClass *classObject;
	somMToken wpclsInitData;
	somMToken wpclsUnInitData;
	somMToken withdrawn8;
	somMToken wpclsMakeAwake;
	somMToken wpclsIncUsage;
	somMToken wpclsDecUsage;
	somMToken wpclsQueryTitle;
	somMToken wpclsQueryIcon;
	somMToken wpclsQueryDefaultHelp;
	somMToken wpclsQueryStyle;
	somMToken wpclsQueryDetailsInfo;
	somMToken wpclsQueryDefaultView;
	somMToken wpclsQueryDetails;
	somMToken wpclsQuerySearchInfo;
	somMToken wpclsQueryExtendedCriteria;
	somMToken wpclsCreateDefaultTemplates;
	somMToken withdrawn9;
	somMToken wpclsFindObjectFirst;
	somMToken wpclsFindObjectNext;
	somMToken wpclsFindObjectEnd;
	somMToken wpclsObjectPrivate1;
	somMToken wpclsSetError;
	somMToken wpclsQueryError;
	somMToken wpclsQuerySettingsPageSize;
	somMToken wpclsSetSettingsPageSize;
	somMToken wpclsQueryIconData;
	somMToken wpclsSetIcon;
	somMToken wpclsSetIconData;
	somMToken wpclsQueryObject;
	somMToken wpclsObjectFromHandle;
	somMToken wpclsObjectPrivate2;
	somMToken wpclsObjectPrivate3;
	somMToken wpclsObjectPrivate4;
	somMToken wpclsObjectPrivate5;
	somMToken wpclsObjectPrivate6;
	somMToken wpclsQueryButtonAppearance;
	somMToken wpclsNew;
	somMToken wpclsQueryFolder;
	somMToken wpclsObjectPrivate7;
	somMToken wpclsObjectPrivate8;
	somMToken wpclsRemoveObjects;
	somMToken wpclsInsertMultipleObjects;
	somMToken wpclsObjectPrivate9;
	somMToken wpclsFindOneObject;
	somMToken wpclsObjectPrivate10;
} SOMDLINK M_WPObjectClassData;

/*
 * Declare the C specific class data structure
 */
SOMEXTERN struct M_WPObjectCClassDataStructure {
	somMethodTabs parentMtab;
	somDToken instanceDataToken;
} SOMDLINK M_WPObjectCClassData;

/*
 * New and Renew macros for M_WPObject
 */
#define M_WPObjectNew() \
   ( _M_WPObject ? \
	_somNew(_M_WPObject) \
	: ( M_WPObjectNewClass(\
		M_WPObject_MajorVersion, \
		M_WPObject_MinorVersion),\
	   _somNew(_M_WPObject)))
#define M_WPObjectRenew(buf) \
   ( _M_WPObject ? \
	_somRenew(_M_WPObject, buf) \
	: ( M_WPObjectNewClass(\
		M_WPObject_MajorVersion, \
		M_WPObject_MinorVersion),\
	   _somRenew(_M_WPObject, buf)))

/*
 * Override method: somUninit
 */
#define M_WPObject_somUninit(somSelf) \
	SOMObject_somUninit(somSelf)

/*
 * Override method: somClassReady
 */
#define M_WPObject_somClassReady(somSelf) \
	SOMClass_somClassReady(somSelf)

/*
 * Override method: somNew
 */
#define M_WPObject_somNew(somSelf) \
	SOMClass_somNew(somSelf)

/*
 * Override method: somRenew
 */
#define M_WPObject_somRenew(somSelf,obj) \
	SOMClass_somRenew(somSelf,obj)

/*
 * New Method: wpclsCreateDefaultTemplates
 */
typedef BOOL   SOMLINK somTP_M_WPObject_wpclsCreateDefaultTemplates(M_WPObject *somSelf, 
		WPObject* Folder);
#pragma linkage(somTP_M_WPObject_wpclsCreateDefaultTemplates, system)
typedef somTP_M_WPObject_wpclsCreateDefaultTemplates *somTD_M_WPObject_wpclsCreateDefaultTemplates;
#define somMD_M_WPObject_wpclsCreateDefaultTemplates "::M_WPObject::wpclsCreateDefaultTemplates"
#define M_WPObject_wpclsCreateDefaultTemplates(somSelf,Folder) \
    (SOM_Resolve(somSelf, M_WPObject, wpclsCreateDefaultTemplates) \
	(somSelf,Folder))
#ifndef SOMGD_wpclsCreateDefaultTemplates
    #if (defined(_wpclsCreateDefaultTemplates) || defined(__wpclsCreateDefaultTemplates))
        #undef _wpclsCreateDefaultTemplates
        #undef __wpclsCreateDefaultTemplates
        #define SOMGD_wpclsCreateDefaultTemplates 1
    #else
        #define _wpclsCreateDefaultTemplates M_WPObject_wpclsCreateDefaultTemplates
    #endif /* _wpclsCreateDefaultTemplates */
#endif /* SOMGD_wpclsCreateDefaultTemplates */

/*
 * New Method: wpclsInitData
 */
typedef void   SOMLINK somTP_M_WPObject_wpclsInitData(M_WPObject *somSelf);
#pragma linkage(somTP_M_WPObject_wpclsInitData, system)
typedef somTP_M_WPObject_wpclsInitData *somTD_M_WPObject_wpclsInitData;
#define somMD_M_WPObject_wpclsInitData "::M_WPObject::wpclsInitData"
#define M_WPObject_wpclsInitData(somSelf) \
    (SOM_Resolve(somSelf, M_WPObject, wpclsInitData) \
	(somSelf))
#ifndef SOMGD_wpclsInitData
    #if (defined(_wpclsInitData) || defined(__wpclsInitData))
        #undef _wpclsInitData
        #undef __wpclsInitData
        #define SOMGD_wpclsInitData 1
    #else
        #define _wpclsInitData M_WPObject_wpclsInitData
    #endif /* _wpclsInitData */
#endif /* SOMGD_wpclsInitData */

/*
 * New Method: wpclsMakeAwake
 */
typedef WPObject*   SOMLINK somTP_M_WPObject_wpclsMakeAwake(M_WPObject *somSelf, 
		PSZ pszTitle, 
		ULONG ulStyle, 
		HPOINTER hptrIcon, 
		POBJDATA pObjData, 
		WPFolder* Folder, 
		ULONG ulUser);
#pragma linkage(somTP_M_WPObject_wpclsMakeAwake, system)
typedef somTP_M_WPObject_wpclsMakeAwake *somTD_M_WPObject_wpclsMakeAwake;
#define somMD_M_WPObject_wpclsMakeAwake "::M_WPObject::wpclsMakeAwake"
#define M_WPObject_wpclsMakeAwake(somSelf,pszTitle,ulStyle,hptrIcon,pObjData,Folder,ulUser) \
    (SOM_Resolve(somSelf, M_WPObject, wpclsMakeAwake) \
	(somSelf,pszTitle,ulStyle,hptrIcon,pObjData,Folder,ulUser))
#ifndef SOMGD_wpclsMakeAwake
    #if (defined(_wpclsMakeAwake) || defined(__wpclsMakeAwake))
        #undef _wpclsMakeAwake
        #undef __wpclsMakeAwake
        #define SOMGD_wpclsMakeAwake 1
    #else
        #define _wpclsMakeAwake M_WPObject_wpclsMakeAwake
    #endif /* _wpclsMakeAwake */
#endif /* SOMGD_wpclsMakeAwake */

/*
 * New Method: wpclsNew
 */
typedef WPObject*   SOMLINK somTP_M_WPObject_wpclsNew(M_WPObject *somSelf, 
		PSZ pszTitle, 
		PSZ pszSetupEnv, 
		WPFolder* Folder, 
		BOOL fLock);
#pragma linkage(somTP_M_WPObject_wpclsNew, system)
typedef somTP_M_WPObject_wpclsNew *somTD_M_WPObject_wpclsNew;
#define somMD_M_WPObject_wpclsNew "::M_WPObject::wpclsNew"
#define M_WPObject_wpclsNew(somSelf,pszTitle,pszSetupEnv,Folder,fLock) \
    (SOM_Resolve(somSelf, M_WPObject, wpclsNew) \
	(somSelf,pszTitle,pszSetupEnv,Folder,fLock))
#ifndef SOMGD_wpclsNew
    #if (defined(_wpclsNew) || defined(__wpclsNew))
        #undef _wpclsNew
        #undef __wpclsNew
        #define SOMGD_wpclsNew 1
    #else
        #define _wpclsNew M_WPObject_wpclsNew
    #endif /* _wpclsNew */
#endif /* SOMGD_wpclsNew */

/*
 * New Method: wpclsQueryDefaultHelp
 */
typedef BOOL   SOMLINK somTP_M_WPObject_wpclsQueryDefaultHelp(M_WPObject *somSelf, 
		PULONG pHelpPanelId, 
		PSZ pszHelpLibrary);
#pragma linkage(somTP_M_WPObject_wpclsQueryDefaultHelp, system)
typedef somTP_M_WPObject_wpclsQueryDefaultHelp *somTD_M_WPObject_wpclsQueryDefaultHelp;
#define somMD_M_WPObject_wpclsQueryDefaultHelp "::M_WPObject::wpclsQueryDefaultHelp"
#define M_WPObject_wpclsQueryDefaultHelp(somSelf,pHelpPanelId,pszHelpLibrary) \
    (SOM_Resolve(somSelf, M_WPObject, wpclsQueryDefaultHelp) \
	(somSelf,pHelpPanelId,pszHelpLibrary))
#ifndef SOMGD_wpclsQueryDefaultHelp
    #if (defined(_wpclsQueryDefaultHelp) || defined(__wpclsQueryDefaultHelp))
        #undef _wpclsQueryDefaultHelp
        #undef __wpclsQueryDefaultHelp
        #define SOMGD_wpclsQueryDefaultHelp 1
    #else
        #define _wpclsQueryDefaultHelp M_WPObject_wpclsQueryDefaultHelp
    #endif /* _wpclsQueryDefaultHelp */
#endif /* SOMGD_wpclsQueryDefaultHelp */

/*
 * New Method: wpclsQueryDefaultView
 */
typedef ULONG   SOMLINK somTP_M_WPObject_wpclsQueryDefaultView(M_WPObject *somSelf);
#pragma linkage(somTP_M_WPObject_wpclsQueryDefaultView, system)
typedef somTP_M_WPObject_wpclsQueryDefaultView *somTD_M_WPObject_wpclsQueryDefaultView;
#define somMD_M_WPObject_wpclsQueryDefaultView "::M_WPObject::wpclsQueryDefaultView"
#define M_WPObject_wpclsQueryDefaultView(somSelf) \
    (SOM_Resolve(somSelf, M_WPObject, wpclsQueryDefaultView) \
	(somSelf))
#ifndef SOMGD_wpclsQueryDefaultView
    #if (defined(_wpclsQueryDefaultView) || defined(__wpclsQueryDefaultView))
        #undef _wpclsQueryDefaultView
        #undef __wpclsQueryDefaultView
        #define SOMGD_wpclsQueryDefaultView 1
    #else
        #define _wpclsQueryDefaultView M_WPObject_wpclsQueryDefaultView
    #endif /* _wpclsQueryDefaultView */
#endif /* SOMGD_wpclsQueryDefaultView */

/*
 * New Method: wpclsQueryDetails
 */
typedef PCLASSDETAILS   SOMLINK somTP_M_WPObject_wpclsQueryDetails(M_WPObject *somSelf);
#pragma linkage(somTP_M_WPObject_wpclsQueryDetails, system)
typedef somTP_M_WPObject_wpclsQueryDetails *somTD_M_WPObject_wpclsQueryDetails;
#define somMD_M_WPObject_wpclsQueryDetails "::M_WPObject::wpclsQueryDetails"
#define M_WPObject_wpclsQueryDetails(somSelf) \
    (SOM_Resolve(somSelf, M_WPObject, wpclsQueryDetails) \
	(somSelf))
#ifndef SOMGD_wpclsQueryDetails
    #if (defined(_wpclsQueryDetails) || defined(__wpclsQueryDetails))
        #undef _wpclsQueryDetails
        #undef __wpclsQueryDetails
        #define SOMGD_wpclsQueryDetails 1
    #else
        #define _wpclsQueryDetails M_WPObject_wpclsQueryDetails
    #endif /* _wpclsQueryDetails */
#endif /* SOMGD_wpclsQueryDetails */

/*
 * New Method: wpclsQueryDetailsInfo
 */
typedef ULONG   SOMLINK somTP_M_WPObject_wpclsQueryDetailsInfo(M_WPObject *somSelf, 
		PCLASSFIELDINFO* ppClassFieldInfo, 
		PULONG pSize);
#pragma linkage(somTP_M_WPObject_wpclsQueryDetailsInfo, system)
typedef somTP_M_WPObject_wpclsQueryDetailsInfo *somTD_M_WPObject_wpclsQueryDetailsInfo;
#define somMD_M_WPObject_wpclsQueryDetailsInfo "::M_WPObject::wpclsQueryDetailsInfo"
#define M_WPObject_wpclsQueryDetailsInfo(somSelf,ppClassFieldInfo,pSize) \
    (SOM_Resolve(somSelf, M_WPObject, wpclsQueryDetailsInfo) \
	(somSelf,ppClassFieldInfo,pSize))
#ifndef SOMGD_wpclsQueryDetailsInfo
    #if (defined(_wpclsQueryDetailsInfo) || defined(__wpclsQueryDetailsInfo))
        #undef _wpclsQueryDetailsInfo
        #undef __wpclsQueryDetailsInfo
        #define SOMGD_wpclsQueryDetailsInfo 1
    #else
        #define _wpclsQueryDetailsInfo M_WPObject_wpclsQueryDetailsInfo
    #endif /* _wpclsQueryDetailsInfo */
#endif /* SOMGD_wpclsQueryDetailsInfo */

/*
 * New Method: wpclsQueryExtendedCriteria
 */
typedef BOOL   SOMLINK somTP_M_WPObject_wpclsQueryExtendedCriteria(M_WPObject *somSelf, 
		PSZ pszName, 
		ULONG ulSearchType, 
		PVOID pvoidExtendedCriteria);
#pragma linkage(somTP_M_WPObject_wpclsQueryExtendedCriteria, system)
typedef somTP_M_WPObject_wpclsQueryExtendedCriteria *somTD_M_WPObject_wpclsQueryExtendedCriteria;
#define somMD_M_WPObject_wpclsQueryExtendedCriteria "::M_WPObject::wpclsQueryExtendedCriteria"
#define M_WPObject_wpclsQueryExtendedCriteria(somSelf,pszName,ulSearchType,pvoidExtendedCriteria) \
    (SOM_Resolve(somSelf, M_WPObject, wpclsQueryExtendedCriteria) \
	(somSelf,pszName,ulSearchType,pvoidExtendedCriteria))
#ifndef SOMGD_wpclsQueryExtendedCriteria
    #if (defined(_wpclsQueryExtendedCriteria) || defined(__wpclsQueryExtendedCriteria))
        #undef _wpclsQueryExtendedCriteria
        #undef __wpclsQueryExtendedCriteria
        #define SOMGD_wpclsQueryExtendedCriteria 1
    #else
        #define _wpclsQueryExtendedCriteria M_WPObject_wpclsQueryExtendedCriteria
    #endif /* _wpclsQueryExtendedCriteria */
#endif /* SOMGD_wpclsQueryExtendedCriteria */

/*
 * New Method: wpclsQueryFolder
 */
typedef WPObject*   SOMLINK somTP_M_WPObject_wpclsQueryFolder(M_WPObject *somSelf, 
		PSZ pszLocation, 
		BOOL fLock);
#pragma linkage(somTP_M_WPObject_wpclsQueryFolder, system)
typedef somTP_M_WPObject_wpclsQueryFolder *somTD_M_WPObject_wpclsQueryFolder;
#define somMD_M_WPObject_wpclsQueryFolder "::M_WPObject::wpclsQueryFolder"
#define M_WPObject_wpclsQueryFolder(somSelf,pszLocation,fLock) \
    (SOM_Resolve(somSelf, M_WPObject, wpclsQueryFolder) \
	(somSelf,pszLocation,fLock))
#ifndef SOMGD_wpclsQueryFolder
    #if (defined(_wpclsQueryFolder) || defined(__wpclsQueryFolder))
        #undef _wpclsQueryFolder
        #undef __wpclsQueryFolder
        #define SOMGD_wpclsQueryFolder 1
    #else
        #define _wpclsQueryFolder M_WPObject_wpclsQueryFolder
    #endif /* _wpclsQueryFolder */
#endif /* SOMGD_wpclsQueryFolder */

/*
 * New Method: wpclsQueryIcon
 */
typedef HPOINTER   SOMLINK somTP_M_WPObject_wpclsQueryIcon(M_WPObject *somSelf);
#pragma linkage(somTP_M_WPObject_wpclsQueryIcon, system)
typedef somTP_M_WPObject_wpclsQueryIcon *somTD_M_WPObject_wpclsQueryIcon;
#define somMD_M_WPObject_wpclsQueryIcon "::M_WPObject::wpclsQueryIcon"
#define M_WPObject_wpclsQueryIcon(somSelf) \
    (SOM_Resolve(somSelf, M_WPObject, wpclsQueryIcon) \
	(somSelf))
#ifndef SOMGD_wpclsQueryIcon
    #if (defined(_wpclsQueryIcon) || defined(__wpclsQueryIcon))
        #undef _wpclsQueryIcon
        #undef __wpclsQueryIcon
        #define SOMGD_wpclsQueryIcon 1
    #else
        #define _wpclsQueryIcon M_WPObject_wpclsQueryIcon
    #endif /* _wpclsQueryIcon */
#endif /* SOMGD_wpclsQueryIcon */

/*
 * New Method: wpclsQuerySearchInfo
 */
typedef void   SOMLINK somTP_M_WPObject_wpclsQuerySearchInfo(M_WPObject *somSelf, 
		M_WPObject** ClassExtended, 
		M_WPObject** ClassCreate, 
		PULONG pulClassCriteriaSize);
#pragma linkage(somTP_M_WPObject_wpclsQuerySearchInfo, system)
typedef somTP_M_WPObject_wpclsQuerySearchInfo *somTD_M_WPObject_wpclsQuerySearchInfo;
#define somMD_M_WPObject_wpclsQuerySearchInfo "::M_WPObject::wpclsQuerySearchInfo"
#define M_WPObject_wpclsQuerySearchInfo(somSelf,ClassExtended,ClassCreate,pulClassCriteriaSize) \
    (SOM_Resolve(somSelf, M_WPObject, wpclsQuerySearchInfo) \
	(somSelf,ClassExtended,ClassCreate,pulClassCriteriaSize))
#ifndef SOMGD_wpclsQuerySearchInfo
    #if (defined(_wpclsQuerySearchInfo) || defined(__wpclsQuerySearchInfo))
        #undef _wpclsQuerySearchInfo
        #undef __wpclsQuerySearchInfo
        #define SOMGD_wpclsQuerySearchInfo 1
    #else
        #define _wpclsQuerySearchInfo M_WPObject_wpclsQuerySearchInfo
    #endif /* _wpclsQuerySearchInfo */
#endif /* SOMGD_wpclsQuerySearchInfo */

/*
 * New Method: wpclsQueryStyle
 */
typedef ULONG   SOMLINK somTP_M_WPObject_wpclsQueryStyle(M_WPObject *somSelf);
#pragma linkage(somTP_M_WPObject_wpclsQueryStyle, system)
typedef somTP_M_WPObject_wpclsQueryStyle *somTD_M_WPObject_wpclsQueryStyle;
#define somMD_M_WPObject_wpclsQueryStyle "::M_WPObject::wpclsQueryStyle"
#define M_WPObject_wpclsQueryStyle(somSelf) \
    (SOM_Resolve(somSelf, M_WPObject, wpclsQueryStyle) \
	(somSelf))
#ifndef SOMGD_wpclsQueryStyle
    #if (defined(_wpclsQueryStyle) || defined(__wpclsQueryStyle))
        #undef _wpclsQueryStyle
        #undef __wpclsQueryStyle
        #define SOMGD_wpclsQueryStyle 1
    #else
        #define _wpclsQueryStyle M_WPObject_wpclsQueryStyle
    #endif /* _wpclsQueryStyle */
#endif /* SOMGD_wpclsQueryStyle */

/*
 * New Method: wpclsQueryTitle
 */
typedef PSZ   SOMLINK somTP_M_WPObject_wpclsQueryTitle(M_WPObject *somSelf);
#pragma linkage(somTP_M_WPObject_wpclsQueryTitle, system)
typedef somTP_M_WPObject_wpclsQueryTitle *somTD_M_WPObject_wpclsQueryTitle;
#define somMD_M_WPObject_wpclsQueryTitle "::M_WPObject::wpclsQueryTitle"
#define M_WPObject_wpclsQueryTitle(somSelf) \
    (SOM_Resolve(somSelf, M_WPObject, wpclsQueryTitle) \
	(somSelf))
#ifndef SOMGD_wpclsQueryTitle
    #if (defined(_wpclsQueryTitle) || defined(__wpclsQueryTitle))
        #undef _wpclsQueryTitle
        #undef __wpclsQueryTitle
        #define SOMGD_wpclsQueryTitle 1
    #else
        #define _wpclsQueryTitle M_WPObject_wpclsQueryTitle
    #endif /* _wpclsQueryTitle */
#endif /* SOMGD_wpclsQueryTitle */

/*
 * New Method: wpclsUnInitData
 */
typedef void   SOMLINK somTP_M_WPObject_wpclsUnInitData(M_WPObject *somSelf);
#pragma linkage(somTP_M_WPObject_wpclsUnInitData, system)
typedef somTP_M_WPObject_wpclsUnInitData *somTD_M_WPObject_wpclsUnInitData;
#define somMD_M_WPObject_wpclsUnInitData "::M_WPObject::wpclsUnInitData"
#define M_WPObject_wpclsUnInitData(somSelf) \
    (SOM_Resolve(somSelf, M_WPObject, wpclsUnInitData) \
	(somSelf))
#ifndef SOMGD_wpclsUnInitData
    #if (defined(_wpclsUnInitData) || defined(__wpclsUnInitData))
        #undef _wpclsUnInitData
        #undef __wpclsUnInitData
        #define SOMGD_wpclsUnInitData 1
    #else
        #define _wpclsUnInitData M_WPObject_wpclsUnInitData
    #endif /* _wpclsUnInitData */
#endif /* SOMGD_wpclsUnInitData */

/*
 * New Method: wpclsFindObjectFirst
 */
typedef BOOL   SOMLINK somTP_M_WPObject_wpclsFindObjectFirst(M_WPObject *somSelf, 
		PCLASS pClassList, 
		PHFIND phFind, 
		PSZ pszTitle, 
		WPFolder* Folder, 
		BOOL fSubfolders, 
		PVOID pExtendedCriteria, 
		POBJECT pBuffer, 
		PULONG pCount);
#pragma linkage(somTP_M_WPObject_wpclsFindObjectFirst, system)
typedef somTP_M_WPObject_wpclsFindObjectFirst *somTD_M_WPObject_wpclsFindObjectFirst;
#define somMD_M_WPObject_wpclsFindObjectFirst "::M_WPObject::wpclsFindObjectFirst"
#define M_WPObject_wpclsFindObjectFirst(somSelf,pClassList,phFind,pszTitle,Folder,fSubfolders,pExtendedCriteria,pBuffer,pCount) \
    (SOM_Resolve(somSelf, M_WPObject, wpclsFindObjectFirst) \
	(somSelf,pClassList,phFind,pszTitle,Folder,fSubfolders,pExtendedCriteria,pBuffer,pCount))
#ifndef SOMGD_wpclsFindObjectFirst
    #if (defined(_wpclsFindObjectFirst) || defined(__wpclsFindObjectFirst))
        #undef _wpclsFindObjectFirst
        #undef __wpclsFindObjectFirst
        #define SOMGD_wpclsFindObjectFirst 1
    #else
        #define _wpclsFindObjectFirst M_WPObject_wpclsFindObjectFirst
    #endif /* _wpclsFindObjectFirst */
#endif /* SOMGD_wpclsFindObjectFirst */

/*
 * New Method: wpclsFindObjectNext
 */
typedef BOOL   SOMLINK somTP_M_WPObject_wpclsFindObjectNext(M_WPObject *somSelf, 
		HFIND hFind, 
		POBJECT pBuffer, 
		PULONG pCount);
#pragma linkage(somTP_M_WPObject_wpclsFindObjectNext, system)
typedef somTP_M_WPObject_wpclsFindObjectNext *somTD_M_WPObject_wpclsFindObjectNext;
#define somMD_M_WPObject_wpclsFindObjectNext "::M_WPObject::wpclsFindObjectNext"
#define M_WPObject_wpclsFindObjectNext(somSelf,hFind,pBuffer,pCount) \
    (SOM_Resolve(somSelf, M_WPObject, wpclsFindObjectNext) \
	(somSelf,hFind,pBuffer,pCount))
#ifndef SOMGD_wpclsFindObjectNext
    #if (defined(_wpclsFindObjectNext) || defined(__wpclsFindObjectNext))
        #undef _wpclsFindObjectNext
        #undef __wpclsFindObjectNext
        #define SOMGD_wpclsFindObjectNext 1
    #else
        #define _wpclsFindObjectNext M_WPObject_wpclsFindObjectNext
    #endif /* _wpclsFindObjectNext */
#endif /* SOMGD_wpclsFindObjectNext */

/*
 * New Method: wpclsFindObjectEnd
 */
typedef BOOL   SOMLINK somTP_M_WPObject_wpclsFindObjectEnd(M_WPObject *somSelf, 
		HFIND hFind);
#pragma linkage(somTP_M_WPObject_wpclsFindObjectEnd, system)
typedef somTP_M_WPObject_wpclsFindObjectEnd *somTD_M_WPObject_wpclsFindObjectEnd;
#define somMD_M_WPObject_wpclsFindObjectEnd "::M_WPObject::wpclsFindObjectEnd"
#define M_WPObject_wpclsFindObjectEnd(somSelf,hFind) \
    (SOM_Resolve(somSelf, M_WPObject, wpclsFindObjectEnd) \
	(somSelf,hFind))
#ifndef SOMGD_wpclsFindObjectEnd
    #if (defined(_wpclsFindObjectEnd) || defined(__wpclsFindObjectEnd))
        #undef _wpclsFindObjectEnd
        #undef __wpclsFindObjectEnd
        #define SOMGD_wpclsFindObjectEnd 1
    #else
        #define _wpclsFindObjectEnd M_WPObject_wpclsFindObjectEnd
    #endif /* _wpclsFindObjectEnd */
#endif /* SOMGD_wpclsFindObjectEnd */

/*
 * New Method: wpclsSetError
 */
typedef BOOL   SOMLINK somTP_M_WPObject_wpclsSetError(M_WPObject *somSelf, 
		ULONG ulErrorId);
#pragma linkage(somTP_M_WPObject_wpclsSetError, system)
typedef somTP_M_WPObject_wpclsSetError *somTD_M_WPObject_wpclsSetError;
#define somMD_M_WPObject_wpclsSetError "::M_WPObject::wpclsSetError"
#define M_WPObject_wpclsSetError(somSelf,ulErrorId) \
    (SOM_Resolve(somSelf, M_WPObject, wpclsSetError) \
	(somSelf,ulErrorId))
#ifndef SOMGD_wpclsSetError
    #if (defined(_wpclsSetError) || defined(__wpclsSetError))
        #undef _wpclsSetError
        #undef __wpclsSetError
        #define SOMGD_wpclsSetError 1
    #else
        #define _wpclsSetError M_WPObject_wpclsSetError
    #endif /* _wpclsSetError */
#endif /* SOMGD_wpclsSetError */

/*
 * New Method: wpclsQueryError
 */
typedef ULONG   SOMLINK somTP_M_WPObject_wpclsQueryError(M_WPObject *somSelf);
#pragma linkage(somTP_M_WPObject_wpclsQueryError, system)
typedef somTP_M_WPObject_wpclsQueryError *somTD_M_WPObject_wpclsQueryError;
#define somMD_M_WPObject_wpclsQueryError "::M_WPObject::wpclsQueryError"
#define M_WPObject_wpclsQueryError(somSelf) \
    (SOM_Resolve(somSelf, M_WPObject, wpclsQueryError) \
	(somSelf))
#ifndef SOMGD_wpclsQueryError
    #if (defined(_wpclsQueryError) || defined(__wpclsQueryError))
        #undef _wpclsQueryError
        #undef __wpclsQueryError
        #define SOMGD_wpclsQueryError 1
    #else
        #define _wpclsQueryError M_WPObject_wpclsQueryError
    #endif /* _wpclsQueryError */
#endif /* SOMGD_wpclsQueryError */

/*
 * New Method: wpclsQuerySettingsPageSize
 */
typedef BOOL   SOMLINK somTP_M_WPObject_wpclsQuerySettingsPageSize(M_WPObject *somSelf, 
		PSIZEL pSizl);
#pragma linkage(somTP_M_WPObject_wpclsQuerySettingsPageSize, system)
typedef somTP_M_WPObject_wpclsQuerySettingsPageSize *somTD_M_WPObject_wpclsQuerySettingsPageSize;
#define somMD_M_WPObject_wpclsQuerySettingsPageSize "::M_WPObject::wpclsQuerySettingsPageSize"
#define M_WPObject_wpclsQuerySettingsPageSize(somSelf,pSizl) \
    (SOM_Resolve(somSelf, M_WPObject, wpclsQuerySettingsPageSize) \
	(somSelf,pSizl))
#ifndef SOMGD_wpclsQuerySettingsPageSize
    #if (defined(_wpclsQuerySettingsPageSize) || defined(__wpclsQuerySettingsPageSize))
        #undef _wpclsQuerySettingsPageSize
        #undef __wpclsQuerySettingsPageSize
        #define SOMGD_wpclsQuerySettingsPageSize 1
    #else
        #define _wpclsQuerySettingsPageSize M_WPObject_wpclsQuerySettingsPageSize
    #endif /* _wpclsQuerySettingsPageSize */
#endif /* SOMGD_wpclsQuerySettingsPageSize */

/*
 * New Method: wpclsQueryIconData
 */
typedef ULONG   SOMLINK somTP_M_WPObject_wpclsQueryIconData(M_WPObject *somSelf, 
		PICONINFO pIconInfo);
#pragma linkage(somTP_M_WPObject_wpclsQueryIconData, system)
typedef somTP_M_WPObject_wpclsQueryIconData *somTD_M_WPObject_wpclsQueryIconData;
#define somMD_M_WPObject_wpclsQueryIconData "::M_WPObject::wpclsQueryIconData"
#define M_WPObject_wpclsQueryIconData(somSelf,pIconInfo) \
    (SOM_Resolve(somSelf, M_WPObject, wpclsQueryIconData) \
	(somSelf,pIconInfo))
#ifndef SOMGD_wpclsQueryIconData
    #if (defined(_wpclsQueryIconData) || defined(__wpclsQueryIconData))
        #undef _wpclsQueryIconData
        #undef __wpclsQueryIconData
        #define SOMGD_wpclsQueryIconData 1
    #else
        #define _wpclsQueryIconData M_WPObject_wpclsQueryIconData
    #endif /* _wpclsQueryIconData */
#endif /* SOMGD_wpclsQueryIconData */

/*
 * New Method: wpclsQueryObject
 */
typedef WPObject*   SOMLINK somTP_M_WPObject_wpclsQueryObject(M_WPObject *somSelf, 
		HOBJECT hObject);
#pragma linkage(somTP_M_WPObject_wpclsQueryObject, system)
typedef somTP_M_WPObject_wpclsQueryObject *somTD_M_WPObject_wpclsQueryObject;
#define somMD_M_WPObject_wpclsQueryObject "::M_WPObject::wpclsQueryObject"
#define M_WPObject_wpclsQueryObject(somSelf,hObject) \
    (SOM_Resolve(somSelf, M_WPObject, wpclsQueryObject) \
	(somSelf,hObject))
#ifndef SOMGD_wpclsQueryObject
    #if (defined(_wpclsQueryObject) || defined(__wpclsQueryObject))
        #undef _wpclsQueryObject
        #undef __wpclsQueryObject
        #define SOMGD_wpclsQueryObject 1
    #else
        #define _wpclsQueryObject M_WPObject_wpclsQueryObject
    #endif /* _wpclsQueryObject */
#endif /* SOMGD_wpclsQueryObject */

/*
 * New Method: wpclsQueryButtonAppearance
 */
typedef ULONG   SOMLINK somTP_M_WPObject_wpclsQueryButtonAppearance(M_WPObject *somSelf);
#pragma linkage(somTP_M_WPObject_wpclsQueryButtonAppearance, system)
typedef somTP_M_WPObject_wpclsQueryButtonAppearance *somTD_M_WPObject_wpclsQueryButtonAppearance;
#define somMD_M_WPObject_wpclsQueryButtonAppearance "::M_WPObject::wpclsQueryButtonAppearance"
#define M_WPObject_wpclsQueryButtonAppearance(somSelf) \
    (SOM_Resolve(somSelf, M_WPObject, wpclsQueryButtonAppearance) \
	(somSelf))
#ifndef SOMGD_wpclsQueryButtonAppearance
    #if (defined(_wpclsQueryButtonAppearance) || defined(__wpclsQueryButtonAppearance))
        #undef _wpclsQueryButtonAppearance
        #undef __wpclsQueryButtonAppearance
        #define SOMGD_wpclsQueryButtonAppearance 1
    #else
        #define _wpclsQueryButtonAppearance M_WPObject_wpclsQueryButtonAppearance
    #endif /* _wpclsQueryButtonAppearance */
#endif /* SOMGD_wpclsQueryButtonAppearance */

/*
 * New Method: wpclsDecUsage
 */
typedef void   SOMLINK somTP_M_WPObject_wpclsDecUsage(M_WPObject *somSelf);
#pragma linkage(somTP_M_WPObject_wpclsDecUsage, system)
typedef somTP_M_WPObject_wpclsDecUsage *somTD_M_WPObject_wpclsDecUsage;
#define somMD_M_WPObject_wpclsDecUsage "::M_WPObject::wpclsDecUsage"
#define M_WPObject_wpclsDecUsage(somSelf) \
    (SOM_Resolve(somSelf, M_WPObject, wpclsDecUsage) \
	(somSelf))
#ifndef SOMGD_wpclsDecUsage
    #if (defined(_wpclsDecUsage) || defined(__wpclsDecUsage))
        #undef _wpclsDecUsage
        #undef __wpclsDecUsage
        #define SOMGD_wpclsDecUsage 1
    #else
        #define _wpclsDecUsage M_WPObject_wpclsDecUsage
    #endif /* _wpclsDecUsage */
#endif /* SOMGD_wpclsDecUsage */

/*
 * New Method: wpclsIncUsage
 */
typedef void   SOMLINK somTP_M_WPObject_wpclsIncUsage(M_WPObject *somSelf);
#pragma linkage(somTP_M_WPObject_wpclsIncUsage, system)
typedef somTP_M_WPObject_wpclsIncUsage *somTD_M_WPObject_wpclsIncUsage;
#define somMD_M_WPObject_wpclsIncUsage "::M_WPObject::wpclsIncUsage"
#define M_WPObject_wpclsIncUsage(somSelf) \
    (SOM_Resolve(somSelf, M_WPObject, wpclsIncUsage) \
	(somSelf))
#ifndef SOMGD_wpclsIncUsage
    #if (defined(_wpclsIncUsage) || defined(__wpclsIncUsage))
        #undef _wpclsIncUsage
        #undef __wpclsIncUsage
        #define SOMGD_wpclsIncUsage 1
    #else
        #define _wpclsIncUsage M_WPObject_wpclsIncUsage
    #endif /* _wpclsIncUsage */
#endif /* SOMGD_wpclsIncUsage */

/*
 * New Method: wpclsInsertMultipleObjects
 */
typedef BOOL   SOMLINK somTP_M_WPObject_wpclsInsertMultipleObjects(M_WPObject *somSelf, 
		HWND hwndCnr, 
		PPOINTL pptlIcon, 
		PVOID* pObjectArray, 
		PVOID pRecordParent, 
		ULONG NumRecords);
#pragma linkage(somTP_M_WPObject_wpclsInsertMultipleObjects, system)
typedef somTP_M_WPObject_wpclsInsertMultipleObjects *somTD_M_WPObject_wpclsInsertMultipleObjects;
#define somMD_M_WPObject_wpclsInsertMultipleObjects "::M_WPObject::wpclsInsertMultipleObjects"
#define M_WPObject_wpclsInsertMultipleObjects(somSelf,hwndCnr,pptlIcon,pObjectArray,pRecordParent,NumRecords) \
    (SOM_Resolve(somSelf, M_WPObject, wpclsInsertMultipleObjects) \
	(somSelf,hwndCnr,pptlIcon,pObjectArray,pRecordParent,NumRecords))
#ifndef SOMGD_wpclsInsertMultipleObjects
    #if (defined(_wpclsInsertMultipleObjects) || defined(__wpclsInsertMultipleObjects))
        #undef _wpclsInsertMultipleObjects
        #undef __wpclsInsertMultipleObjects
        #define SOMGD_wpclsInsertMultipleObjects 1
    #else
        #define _wpclsInsertMultipleObjects M_WPObject_wpclsInsertMultipleObjects
    #endif /* _wpclsInsertMultipleObjects */
#endif /* SOMGD_wpclsInsertMultipleObjects */

/*
 * New Method: wpclsFindOneObject
 */
typedef WPObject*   SOMLINK somTP_M_WPObject_wpclsFindOneObject(M_WPObject *somSelf, 
		HWND hwndOwner, 
		PSZ pszFindParams);
#pragma linkage(somTP_M_WPObject_wpclsFindOneObject, system)
typedef somTP_M_WPObject_wpclsFindOneObject *somTD_M_WPObject_wpclsFindOneObject;
#define somMD_M_WPObject_wpclsFindOneObject "::M_WPObject::wpclsFindOneObject"
#define M_WPObject_wpclsFindOneObject(somSelf,hwndOwner,pszFindParams) \
    (SOM_Resolve(somSelf, M_WPObject, wpclsFindOneObject) \
	(somSelf,hwndOwner,pszFindParams))
#ifndef SOMGD_wpclsFindOneObject
    #if (defined(_wpclsFindOneObject) || defined(__wpclsFindOneObject))
        #undef _wpclsFindOneObject
        #undef __wpclsFindOneObject
        #define SOMGD_wpclsFindOneObject 1
    #else
        #define _wpclsFindOneObject M_WPObject_wpclsFindOneObject
    #endif /* _wpclsFindOneObject */
#endif /* SOMGD_wpclsFindOneObject */

/*
 * New Method: wpclsSetSettingsPageSize
 */
typedef BOOL   SOMLINK somTP_M_WPObject_wpclsSetSettingsPageSize(M_WPObject *somSelf, 
		PSIZEL pSizl);
#pragma linkage(somTP_M_WPObject_wpclsSetSettingsPageSize, system)
typedef somTP_M_WPObject_wpclsSetSettingsPageSize *somTD_M_WPObject_wpclsSetSettingsPageSize;
#define somMD_M_WPObject_wpclsSetSettingsPageSize "::M_WPObject::wpclsSetSettingsPageSize"
#define M_WPObject_wpclsSetSettingsPageSize(somSelf,pSizl) \
    (SOM_Resolve(somSelf, M_WPObject, wpclsSetSettingsPageSize) \
	(somSelf,pSizl))
#ifndef SOMGD_wpclsSetSettingsPageSize
    #if (defined(_wpclsSetSettingsPageSize) || defined(__wpclsSetSettingsPageSize))
        #undef _wpclsSetSettingsPageSize
        #undef __wpclsSetSettingsPageSize
        #define SOMGD_wpclsSetSettingsPageSize 1
    #else
        #define _wpclsSetSettingsPageSize M_WPObject_wpclsSetSettingsPageSize
    #endif /* _wpclsSetSettingsPageSize */
#endif /* SOMGD_wpclsSetSettingsPageSize */

/*
 * New Method: wpclsSetIconData
 */
typedef BOOL   SOMLINK somTP_M_WPObject_wpclsSetIconData(M_WPObject *somSelf, 
		PICONINFO pIconInfo);
#pragma linkage(somTP_M_WPObject_wpclsSetIconData, system)
typedef somTP_M_WPObject_wpclsSetIconData *somTD_M_WPObject_wpclsSetIconData;
#define somMD_M_WPObject_wpclsSetIconData "::M_WPObject::wpclsSetIconData"
#define M_WPObject_wpclsSetIconData(somSelf,pIconInfo) \
    (SOM_Resolve(somSelf, M_WPObject, wpclsSetIconData) \
	(somSelf,pIconInfo))
#ifndef SOMGD_wpclsSetIconData
    #if (defined(_wpclsSetIconData) || defined(__wpclsSetIconData))
        #undef _wpclsSetIconData
        #undef __wpclsSetIconData
        #define SOMGD_wpclsSetIconData 1
    #else
        #define _wpclsSetIconData M_WPObject_wpclsSetIconData
    #endif /* _wpclsSetIconData */
#endif /* SOMGD_wpclsSetIconData */

/*
 * New Method: wpclsSetIcon
 */
typedef BOOL   SOMLINK somTP_M_WPObject_wpclsSetIcon(M_WPObject *somSelf, 
		HPOINTER hptrNewIcon);
#pragma linkage(somTP_M_WPObject_wpclsSetIcon, system)
typedef somTP_M_WPObject_wpclsSetIcon *somTD_M_WPObject_wpclsSetIcon;
#define somMD_M_WPObject_wpclsSetIcon "::M_WPObject::wpclsSetIcon"
#define M_WPObject_wpclsSetIcon(somSelf,hptrNewIcon) \
    (SOM_Resolve(somSelf, M_WPObject, wpclsSetIcon) \
	(somSelf,hptrNewIcon))
#ifndef SOMGD_wpclsSetIcon
    #if (defined(_wpclsSetIcon) || defined(__wpclsSetIcon))
        #undef _wpclsSetIcon
        #undef __wpclsSetIcon
        #define SOMGD_wpclsSetIcon 1
    #else
        #define _wpclsSetIcon M_WPObject_wpclsSetIcon
    #endif /* _wpclsSetIcon */
#endif /* SOMGD_wpclsSetIcon */

/*
 * New Method: wpclsObjectFromHandle
 */
typedef WPObject*   SOMLINK somTP_M_WPObject_wpclsObjectFromHandle(M_WPObject *somSelf, 
		HOBJECT hObject);
#pragma linkage(somTP_M_WPObject_wpclsObjectFromHandle, system)
typedef somTP_M_WPObject_wpclsObjectFromHandle *somTD_M_WPObject_wpclsObjectFromHandle;
#define somMD_M_WPObject_wpclsObjectFromHandle "::M_WPObject::wpclsObjectFromHandle"
#define M_WPObject_wpclsObjectFromHandle(somSelf,hObject) \
    (SOM_Resolve(somSelf, M_WPObject, wpclsObjectFromHandle) \
	(somSelf,hObject))
#ifndef SOMGD_wpclsObjectFromHandle
    #if (defined(_wpclsObjectFromHandle) || defined(__wpclsObjectFromHandle))
        #undef _wpclsObjectFromHandle
        #undef __wpclsObjectFromHandle
        #define SOMGD_wpclsObjectFromHandle 1
    #else
        #define _wpclsObjectFromHandle M_WPObject_wpclsObjectFromHandle
    #endif /* _wpclsObjectFromHandle */
#endif /* SOMGD_wpclsObjectFromHandle */

/*
 * New Method: wpclsRemoveObjects
 */
typedef BOOL   SOMLINK somTP_M_WPObject_wpclsRemoveObjects(M_WPObject *somSelf, 
		HWND hwndCnr, 
		PVOID* pRecordArray, 
		ULONG NumRecords, 
		BOOL RemoveAll);
#pragma linkage(somTP_M_WPObject_wpclsRemoveObjects, system)
typedef somTP_M_WPObject_wpclsRemoveObjects *somTD_M_WPObject_wpclsRemoveObjects;
#define somMD_M_WPObject_wpclsRemoveObjects "::M_WPObject::wpclsRemoveObjects"
#define M_WPObject_wpclsRemoveObjects(somSelf,hwndCnr,pRecordArray,NumRecords,RemoveAll) \
    (SOM_Resolve(somSelf, M_WPObject, wpclsRemoveObjects) \
	(somSelf,hwndCnr,pRecordArray,NumRecords,RemoveAll))
#ifndef SOMGD_wpclsRemoveObjects
    #if (defined(_wpclsRemoveObjects) || defined(__wpclsRemoveObjects))
        #undef _wpclsRemoveObjects
        #undef __wpclsRemoveObjects
        #define SOMGD_wpclsRemoveObjects 1
    #else
        #define _wpclsRemoveObjects M_WPObject_wpclsRemoveObjects
    #endif /* _wpclsRemoveObjects */
#endif /* SOMGD_wpclsRemoveObjects */
#ifndef SOM_DONT_USE_INHERITED_MACROS
#define M_WPObject__get_somDataAlignment SOMClass__get_somDataAlignment
#define M_WPObject__get_somInstanceDataOffsets SOMClass__get_somInstanceDataOffsets
#define M_WPObject__get_somDirectInitClasses SOMClass__get_somDirectInitClasses
#define M_WPObject__set_somDirectInitClasses SOMClass__set_somDirectInitClasses
#define M_WPObject_somNewNoInit SOMClass_somNewNoInit
#define M_WPObject_somRenewNoInit SOMClass_somRenewNoInit
#define M_WPObject_somRenewNoZero SOMClass_somRenewNoZero
#define M_WPObject_somRenewNoInitNoZero SOMClass_somRenewNoInitNoZero
#define M_WPObject_somAllocate SOMClass_somAllocate
#define M_WPObject_somDeallocate SOMClass_somDeallocate
#define M_WPObject__get_somClassAllocate SOMClass__get_somClassAllocate
#define M_WPObject__get_somClassDeallocate SOMClass__get_somClassDeallocate
#define M_WPObject_somGetInstanceInitMask SOMClass_somGetInstanceInitMask
#define M_WPObject_somGetInstanceDestructionMask SOMClass_somGetInstanceDestructionMask
#define M_WPObject_somGetInstanceAssignmentMask SOMClass_somGetInstanceAssignmentMask
#define M_WPObject_somInitClass SOMClass_somInitClass
#define M_WPObject_somInitMIClass SOMClass_somInitMIClass
#define M_WPObject_somAddStaticMethod SOMClass_somAddStaticMethod
#define M_WPObject_somAddDynamicMethod SOMClass_somAddDynamicMethod
#define M_WPObject_somOverrideSMethod SOMClass_somOverrideSMethod
#define M_WPObject_somGetApplyStub SOMClass_somGetApplyStub
#define M_WPObject_somGetClassData SOMClass_somGetClassData
#define M_WPObject_somSetClassData SOMClass_somSetClassData
#define M_WPObject_somGetClassMtab SOMClass_somGetClassMtab
#define M_WPObject_somGetInstanceOffset SOMClass_somGetInstanceOffset
#define M_WPObject_somGetInstancePartSize SOMClass_somGetInstancePartSize
#define M_WPObject_somGetInstanceSize SOMClass_somGetInstanceSize
#define M_WPObject_somGetInstanceToken SOMClass_somGetInstanceToken
#define M_WPObject_somGetMemberToken SOMClass_somGetMemberToken
#define M_WPObject_somGetMethodData SOMClass_somGetMethodData
#define M_WPObject_somGetRdStub SOMClass_somGetRdStub
#define M_WPObject_somGetMethodDescriptor SOMClass_somGetMethodDescriptor
#define M_WPObject_somGetMethodIndex SOMClass_somGetMethodIndex
#define M_WPObject_somGetMethodToken SOMClass_somGetMethodToken
#define M_WPObject_somGetName SOMClass_somGetName
#define M_WPObject_somGetNthMethodData SOMClass_somGetNthMethodData
#define M_WPObject_somGetNthMethodInfo SOMClass_somGetNthMethodInfo
#define M_WPObject_somGetNumMethods SOMClass_somGetNumMethods
#define M_WPObject_somGetNumStaticMethods SOMClass_somGetNumStaticMethods
#define M_WPObject_somGetParent SOMClass_somGetParent
#define M_WPObject_somGetParents SOMClass_somGetParents
#define M_WPObject_somGetPClsMtab SOMClass_somGetPClsMtab
#define M_WPObject_somGetPClsMtabs SOMClass_somGetPClsMtabs
#define M_WPObject_somGetVersionNumbers SOMClass_somGetVersionNumbers
#define M_WPObject_somSetMethodDescriptor SOMClass_somSetMethodDescriptor
#define M_WPObject_somFindMethod SOMClass_somFindMethod
#define M_WPObject_somFindMethodOk SOMClass_somFindMethodOk
#define M_WPObject_somFindSMethod SOMClass_somFindSMethod
#define M_WPObject_somFindSMethodOk SOMClass_somFindSMethodOk
#define M_WPObject_somLookupMethod SOMClass_somLookupMethod
#define M_WPObject_somCheckVersion SOMClass_somCheckVersion
#define M_WPObject_somDescendedFrom SOMClass_somDescendedFrom
#define M_WPObject_somSupportsMethod SOMClass_somSupportsMethod
#define M_WPObject_somDefinedMethod SOMClass_somDefinedMethod
#define M_WPObject_somOverrideMtab SOMClass_somOverrideMtab
#define M_WPObject_somDefaultInit SOMObject_somDefaultInit
#define M_WPObject_somDestruct SOMObject_somDestruct
#define M_WPObject_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define M_WPObject_somDefaultAssign SOMObject_somDefaultAssign
#define M_WPObject_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define M_WPObject_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define M_WPObject_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define M_WPObject_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define M_WPObject_somDefaultVAssign SOMObject_somDefaultVAssign
#define M_WPObject_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define M_WPObject_somInit SOMObject_somInit
#define M_WPObject_somFree SOMObject_somFree
#define M_WPObject_somGetClass SOMObject_somGetClass
#define M_WPObject_somGetClassName SOMObject_somGetClassName
#define M_WPObject_somGetSize SOMObject_somGetSize
#define M_WPObject_somIsA SOMObject_somIsA
#define M_WPObject_somIsInstanceOf SOMObject_somIsInstanceOf
#define M_WPObject_somRespondsTo SOMObject_somRespondsTo
#define M_WPObject_somDispatch SOMObject_somDispatch
#define M_WPObject_somClassDispatch SOMObject_somClassDispatch
#define M_WPObject_somCastObj SOMObject_somCastObj
#define M_WPObject_somResetObj SOMObject_somResetObj
#define M_WPObject_somDispatchV SOMObject_somDispatchV
#define M_WPObject_somDispatchL SOMObject_somDispatchL
#define M_WPObject_somDispatchA SOMObject_somDispatchA
#define M_WPObject_somDispatchD SOMObject_somDispatchD
#define M_WPObject_somPrintSelf SOMObject_somPrintSelf
#define M_WPObject_somDumpSelf SOMObject_somDumpSelf
#define M_WPObject_somDumpSelfInt SOMObject_somDumpSelfInt
#endif /* SOM_DONT_USE_INHERITED_MACROS */

#endif       /* SOM_M_WPObject_h */
