
/*
 * This file was generated by the SOM Compiler.
 * FileName: F:\wpwpsh\rel\ppc\include\os2\wpdesk.h.
 * Generated using:
 *     SOM Precompiler somipc: 2.29.1.3
 *     SOM Emitter emith: 2.41
 */

/*
 *   Module Header
 * 
 *   Module Name: WPDESK
 * 
 *   OS/2 Presentation Manager Workplace class definitions
 * 
 *   Copyright (c) International Business Machines Corporation 1991, 1992
 * 
 */


#ifndef SOM_WPDesktop_h
#define SOM_WPDesktop_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 WPDesktop
#define WPDesktop SOMObject
#endif
#include <wpfolder.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 M_WPFileSystem
    #define M_WPFileSystem SOMObject
#endif /* M_WPFileSystem */
#ifndef M_WPFolder
    #define M_WPFolder SOMObject
#endif /* M_WPFolder */
#ifndef M_WPDesktop
    #define M_WPDesktop SOMObject
#endif /* M_WPDesktop */

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

#define WPDesktop_MajorVersion 1
#define WPDesktop_MinorVersion 2

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define WPDesktopNewClass WPDesktopc
#define WPDesktopClassData WPDesktopd
#define WPDesktopCClassData WPDesktopx
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */

/*
 * Include the meta class file
 */
#include <wpdesk.h>
/*--------------Migration------------*/
#define WPDesktop_classObj WPDesktopClassData.classObject
#define _WPDesktop WPDesktop_classObj

/*
 * Declare the class creation procedure
 */
SOMEXTERN SOMClass * SOMLINK WPDesktopNewClass(integer4 somtmajorVersion,
		integer4 somtminorVersion);

/*
 * Declare the class data structure
 */
SOMEXTERN struct WPDesktopClassDataStructure {
	SOMClass *classObject;
	somMToken wpIsCurrentDesktop;
	somMToken wpAddDesktopLockup1Page;
	somMToken wpAddDesktopLockup2Page;
	somMToken wpAddDesktopLockup3Page;
	somMToken wpAddDesktopArcRest1Page;
	somMToken wpAddDesktopDefDT1Page;
} SOMDLINK WPDesktopClassData;

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

/*
 * New and Renew macros for WPDesktop
 */
#define WPDesktopNew() \
   (_somNew(_WPDesktop ? _WPDesktop : WPDesktopNewClass(WPDesktop_MajorVersion, WPDesktop_MinorVersion)))
#define WPDesktopRenew(buf) \
   (_somRenew(_WPDesktop ? _WPDesktop : WPDesktopNewClass(WPDesktop_MajorVersion, WPDesktop_MinorVersion), buf))

/*
 * Override method: wpInitData
 */
#define WPDesktop_wpInitData(somSelf) \
	WPObject_wpInitData(somSelf)

/*
 * Override method: wpSaveState
 */
#define WPDesktop_wpSaveState(somSelf) \
	WPObject_wpSaveState(somSelf)

/*
 * Override method: wpRestoreState
 */
#define WPDesktop_wpRestoreState(somSelf,ulReserved) \
	WPObject_wpRestoreState(somSelf,ulReserved)

/*
 * Override method: wpModifyPopupMenu
 */
#define WPDesktop_wpModifyPopupMenu(somSelf,hwndMenu,hwndCnr,iPosition) \
	WPObject_wpModifyPopupMenu(somSelf,hwndMenu,hwndCnr,iPosition)

/*
 * Override method: wpMenuItemSelected
 */
#define WPDesktop_wpMenuItemSelected(somSelf,hwndFrame,ulMenuId) \
	WPObject_wpMenuItemSelected(somSelf,hwndFrame,ulMenuId)

/*
 * Override method: wpFilterPopupMenu
 */
#define WPDesktop_wpFilterPopupMenu(somSelf,ulFlags,hwndCnr,fMultiSelect) \
	WPObject_wpFilterPopupMenu(somSelf,ulFlags,hwndCnr,fMultiSelect)

/*
 * Override method: wpAddSettingsPages
 */
#define WPDesktop_wpAddSettingsPages(somSelf,hwndNotebook) \
	WPObject_wpAddSettingsPages(somSelf,hwndNotebook)

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

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

/*
 * New Method: wpIsCurrentDesktop
 */
typedef BOOL   SOMLINK somTP_WPDesktop_wpIsCurrentDesktop(WPDesktop *somSelf);
typedef somTP_WPDesktop_wpIsCurrentDesktop *somTD_WPDesktop_wpIsCurrentDesktop;
#define somMD_WPDesktop_wpIsCurrentDesktop "::WPDesktop::wpIsCurrentDesktop"
#define WPDesktop_wpIsCurrentDesktop(somSelf) \
    (SOM_Resolve(somSelf, WPDesktop, wpIsCurrentDesktop) \
	(somSelf))
#ifndef SOMGD_wpIsCurrentDesktop
    #if (defined(_wpIsCurrentDesktop) || defined(__wpIsCurrentDesktop))
        #undef _wpIsCurrentDesktop
        #undef __wpIsCurrentDesktop
        #define SOMGD_wpIsCurrentDesktop 1
    #else
        #define _wpIsCurrentDesktop WPDesktop_wpIsCurrentDesktop
    #endif /* _wpIsCurrentDesktop */
#endif /* SOMGD_wpIsCurrentDesktop */

/*
 * New Method: wpAddDesktopLockup1Page
 */
typedef ULONG   SOMLINK somTP_WPDesktop_wpAddDesktopLockup1Page(WPDesktop *somSelf, 
		HWND hwndNotebook);
typedef somTP_WPDesktop_wpAddDesktopLockup1Page *somTD_WPDesktop_wpAddDesktopLockup1Page;
#define somMD_WPDesktop_wpAddDesktopLockup1Page "::WPDesktop::wpAddDesktopLockup1Page"
#define WPDesktop_wpAddDesktopLockup1Page(somSelf,hwndNotebook) \
    (SOM_Resolve(somSelf, WPDesktop, wpAddDesktopLockup1Page) \
	(somSelf,hwndNotebook))
#ifndef SOMGD_wpAddDesktopLockup1Page
    #if (defined(_wpAddDesktopLockup1Page) || defined(__wpAddDesktopLockup1Page))
        #undef _wpAddDesktopLockup1Page
        #undef __wpAddDesktopLockup1Page
        #define SOMGD_wpAddDesktopLockup1Page 1
    #else
        #define _wpAddDesktopLockup1Page WPDesktop_wpAddDesktopLockup1Page
    #endif /* _wpAddDesktopLockup1Page */
#endif /* SOMGD_wpAddDesktopLockup1Page */

/*
 * New Method: wpAddDesktopLockup2Page
 */
typedef ULONG   SOMLINK somTP_WPDesktop_wpAddDesktopLockup2Page(WPDesktop *somSelf, 
		HWND hwndNotebook);
typedef somTP_WPDesktop_wpAddDesktopLockup2Page *somTD_WPDesktop_wpAddDesktopLockup2Page;
#define somMD_WPDesktop_wpAddDesktopLockup2Page "::WPDesktop::wpAddDesktopLockup2Page"
#define WPDesktop_wpAddDesktopLockup2Page(somSelf,hwndNotebook) \
    (SOM_Resolve(somSelf, WPDesktop, wpAddDesktopLockup2Page) \
	(somSelf,hwndNotebook))
#ifndef SOMGD_wpAddDesktopLockup2Page
    #if (defined(_wpAddDesktopLockup2Page) || defined(__wpAddDesktopLockup2Page))
        #undef _wpAddDesktopLockup2Page
        #undef __wpAddDesktopLockup2Page
        #define SOMGD_wpAddDesktopLockup2Page 1
    #else
        #define _wpAddDesktopLockup2Page WPDesktop_wpAddDesktopLockup2Page
    #endif /* _wpAddDesktopLockup2Page */
#endif /* SOMGD_wpAddDesktopLockup2Page */

/*
 * New Method: wpAddDesktopLockup3Page
 */
typedef ULONG   SOMLINK somTP_WPDesktop_wpAddDesktopLockup3Page(WPDesktop *somSelf, 
		HWND hwndNotebook);
typedef somTP_WPDesktop_wpAddDesktopLockup3Page *somTD_WPDesktop_wpAddDesktopLockup3Page;
#define somMD_WPDesktop_wpAddDesktopLockup3Page "::WPDesktop::wpAddDesktopLockup3Page"
#define WPDesktop_wpAddDesktopLockup3Page(somSelf,hwndNotebook) \
    (SOM_Resolve(somSelf, WPDesktop, wpAddDesktopLockup3Page) \
	(somSelf,hwndNotebook))
#ifndef SOMGD_wpAddDesktopLockup3Page
    #if (defined(_wpAddDesktopLockup3Page) || defined(__wpAddDesktopLockup3Page))
        #undef _wpAddDesktopLockup3Page
        #undef __wpAddDesktopLockup3Page
        #define SOMGD_wpAddDesktopLockup3Page 1
    #else
        #define _wpAddDesktopLockup3Page WPDesktop_wpAddDesktopLockup3Page
    #endif /* _wpAddDesktopLockup3Page */
#endif /* SOMGD_wpAddDesktopLockup3Page */

/*
 * New Method: wpAddDesktopArcRest1Page
 */
typedef ULONG   SOMLINK somTP_WPDesktop_wpAddDesktopArcRest1Page(WPDesktop *somSelf, 
		HWND hwndNotebook);
typedef somTP_WPDesktop_wpAddDesktopArcRest1Page *somTD_WPDesktop_wpAddDesktopArcRest1Page;
#define somMD_WPDesktop_wpAddDesktopArcRest1Page "::WPDesktop::wpAddDesktopArcRest1Page"
#define WPDesktop_wpAddDesktopArcRest1Page(somSelf,hwndNotebook) \
    (SOM_Resolve(somSelf, WPDesktop, wpAddDesktopArcRest1Page) \
	(somSelf,hwndNotebook))
#ifndef SOMGD_wpAddDesktopArcRest1Page
    #if (defined(_wpAddDesktopArcRest1Page) || defined(__wpAddDesktopArcRest1Page))
        #undef _wpAddDesktopArcRest1Page
        #undef __wpAddDesktopArcRest1Page
        #define SOMGD_wpAddDesktopArcRest1Page 1
    #else
        #define _wpAddDesktopArcRest1Page WPDesktop_wpAddDesktopArcRest1Page
    #endif /* _wpAddDesktopArcRest1Page */
#endif /* SOMGD_wpAddDesktopArcRest1Page */

/*
 * New Method: wpAddDesktopDefDT1Page
 */
typedef ULONG   SOMLINK somTP_WPDesktop_wpAddDesktopDefDT1Page(WPDesktop *somSelf, 
		HWND hwndNotebook);
typedef somTP_WPDesktop_wpAddDesktopDefDT1Page *somTD_WPDesktop_wpAddDesktopDefDT1Page;
#define somMD_WPDesktop_wpAddDesktopDefDT1Page "::WPDesktop::wpAddDesktopDefDT1Page"
#define WPDesktop_wpAddDesktopDefDT1Page(somSelf,hwndNotebook) \
    (SOM_Resolve(somSelf, WPDesktop, wpAddDesktopDefDT1Page) \
	(somSelf,hwndNotebook))
#ifndef SOMGD_wpAddDesktopDefDT1Page
    #if (defined(_wpAddDesktopDefDT1Page) || defined(__wpAddDesktopDefDT1Page))
        #undef _wpAddDesktopDefDT1Page
        #undef __wpAddDesktopDefDT1Page
        #define SOMGD_wpAddDesktopDefDT1Page 1
    #else
        #define _wpAddDesktopDefDT1Page WPDesktop_wpAddDesktopDefDT1Page
    #endif /* _wpAddDesktopDefDT1Page */
#endif /* SOMGD_wpAddDesktopDefDT1Page */
#ifndef SOM_DONT_USE_INHERITED_MACROS
#define WPDesktop_wpSetFldrFlags WPFolder_wpSetFldrFlags
#define WPDesktop_wpQueryFldrFlags WPFolder_wpQueryFldrFlags
#define WPDesktop_wpSetFldrFont WPFolder_wpSetFldrFont
#define WPDesktop_wpQueryFldrFont WPFolder_wpQueryFldrFont
#define WPDesktop_wpSetFldrAttr WPFolder_wpSetFldrAttr
#define WPDesktop_wpQueryFldrAttr WPFolder_wpQueryFldrAttr
#define WPDesktop_wpSetNextIconPos WPFolder_wpSetNextIconPos
#define WPDesktop_wpQueryNextIconPos WPFolder_wpQueryNextIconPos
#define WPDesktop_wpPopulate WPFolder_wpPopulate
#define WPDesktop_wpQueryContent WPFolder_wpQueryContent
#define WPDesktop_wpAddFolderView1Page WPFolder_wpAddFolderView1Page
#define WPDesktop_wpAddFolderView2Page WPFolder_wpAddFolderView2Page
#define WPDesktop_wpAddFolderView3Page WPFolder_wpAddFolderView3Page
#define WPDesktop_wpAddFolderIncludePage WPFolder_wpAddFolderIncludePage
#define WPDesktop_wpAddFolderSortPage WPFolder_wpAddFolderSortPage
#define WPDesktop_wpAddFolderBackgroundPage WPFolder_wpAddFolderBackgroundPage
#define WPDesktop_wpAddFolderSelfClosePage WPFolder_wpAddFolderSelfClosePage
#define WPDesktop_wpInitIconPosData WPFolder_wpInitIconPosData
#define WPDesktop_wpFreeIconPosData WPFolder_wpFreeIconPosData
#define WPDesktop_wpStoreIconPosData WPFolder_wpStoreIconPosData
#define WPDesktop_wpQueryIconPosition WPFolder_wpQueryIconPosition
#define WPDesktop_wpSetFldrSort WPFolder_wpSetFldrSort
#define WPDesktop_wpQueryFldrSort WPFolder_wpQueryFldrSort
#define WPDesktop_wpRestoreFldrRunObjs WPFolder_wpRestoreFldrRunObjs
#define WPDesktop_wpStoreFldrRunObjs WPFolder_wpStoreFldrRunObjs
#define WPDesktop_wpHideFldrRunObjs WPFolder_wpHideFldrRunObjs
#define WPDesktop_wpDeleteContents WPFolder_wpDeleteContents
#define WPDesktop_wpSetFldrDetailsClass WPFolder_wpSetFldrDetailsClass
#define WPDesktop_wpQueryFldrDetailsClass WPFolder_wpQueryFldrDetailsClass
#define WPDesktop_wpSearchFolder WPFolder_wpSearchFolder
#define WPDesktop_wpContainsFolders WPFolder_wpContainsFolders
#define WPDesktop_wpQueryOpenFolders WPFolder_wpQueryOpenFolders
#define WPDesktop_wpModifyFldrFlags WPFolder_wpModifyFldrFlags
#define WPDesktop_wpAddToContent WPFolder_wpAddToContent
#define WPDesktop_wpDeleteFromContent WPFolder_wpDeleteFromContent
#define WPDesktop_wpSetDetailsColumnVisibility WPFolder_wpSetDetailsColumnVisibility
#define WPDesktop_wpIsDetailsColumnVisible WPFolder_wpIsDetailsColumnVisible
#define WPDesktop_wpSetFldrSortClass WPFolder_wpSetFldrSortClass
#define WPDesktop_wpQueryFldrSortClass WPFolder_wpQueryFldrSortClass
#define WPDesktop_wpSetSortAttribAvailable WPFolder_wpSetSortAttribAvailable
#define WPDesktop_wpIsSortAttribAvailable WPFolder_wpIsSortAttribAvailable
#define WPDesktop_wpQueryIconViewPos WPFolder_wpQueryIconViewPos
#define WPDesktop_wpAddFirstChild WPFolder_wpAddFirstChild
#define WPDesktop_wpSetRealName WPFileSystem_wpSetRealName
#define WPDesktop_wpSetType WPFileSystem_wpSetType
#define WPDesktop_wpQueryType WPFileSystem_wpQueryType
#define WPDesktop_wpSetAttr WPFileSystem_wpSetAttr
#define WPDesktop_wpQueryAttr WPFileSystem_wpQueryAttr
#define WPDesktop_wpAddFile1Page WPFileSystem_wpAddFile1Page
#define WPDesktop_wpAddFile2Page WPFileSystem_wpAddFile2Page
#define WPDesktop_wpAddFile3Page WPFileSystem_wpAddFile3Page
#define WPDesktop_wpAddFileMenuPage WPFileSystem_wpAddFileMenuPage
#define WPDesktop_wpQueryCreation WPFileSystem_wpQueryCreation
#define WPDesktop_wpQueryLastAccess WPFileSystem_wpQueryLastAccess
#define WPDesktop_wpQueryLastWrite WPFileSystem_wpQueryLastWrite
#define WPDesktop_wpQueryFileSize WPFileSystem_wpQueryFileSize
#define WPDesktop_wpQueryEASize WPFileSystem_wpQueryEASize
#define WPDesktop_wpSetDateInfo WPFileSystem_wpSetDateInfo
#define WPDesktop_wpSetFileSizeInfo WPFileSystem_wpSetFileSizeInfo
#define WPDesktop_wpRefresh WPFileSystem_wpRefresh
#define WPDesktop_wpQueryRefreshFlags WPFileSystem_wpQueryRefreshFlags
#define WPDesktop_wpSetRefreshFlags WPFileSystem_wpSetRefreshFlags
#define WPDesktop_wpPrintPlainTextFile WPFileSystem_wpPrintPlainTextFile
#define WPDesktop_wpSetTitleAndRenameFile WPFileSystem_wpSetTitleAndRenameFile
#define WPDesktop_wpConfirmRenameFileWithExt WPFileSystem_wpConfirmRenameFileWithExt
#define WPDesktop_wpVerifyUpdateAccess WPFileSystem_wpVerifyUpdateAccess
#define WPDesktop_wpAddUserItemsToPopupMenu WPFileSystem_wpAddUserItemsToPopupMenu
#define WPDesktop_wpIsDiskSwapped WPFileSystem_wpIsDiskSwapped
#define WPDesktop_wpQueryRealName WPFileSystem_wpQueryRealName
#define WPDesktop_wpQueryFilename WPFileSystem_wpQueryFilename
#define WPDesktop_wpQueryDisk WPFileSystem_wpQueryDisk
#define WPDesktop_wpQueryDateInfo WPFileSystem_wpQueryDateInfo
#define WPDesktop_wpConfirmKeepAssoc WPFileSystem_wpConfirmKeepAssoc
#define WPDesktop_wpAddObjectGeneralPage WPObject_wpAddObjectGeneralPage
#define WPDesktop_wpAddObjectGeneralPage2 WPObject_wpAddObjectGeneralPage2
#define WPDesktop_wpAddObjectWindowPage WPObject_wpAddObjectWindowPage
#define WPDesktop_wpAddToObjUseList WPObject_wpAddToObjUseList
#define WPDesktop_wpAllocMem WPObject_wpAllocMem
#define WPDesktop_wpAppendObject WPObject_wpAppendObject
#define WPDesktop_wpAssertObjectMutexSem WPObject_wpAssertObjectMutexSem
#define WPDesktop_wpClose WPObject_wpClose
#define WPDesktop_wpCnrInsertObject WPObject_wpCnrInsertObject
#define WPDesktop_wpCnrRemoveObject WPObject_wpCnrRemoveObject
#define WPDesktop_wpCnrSetEmphasis WPObject_wpCnrSetEmphasis
#define WPDesktop_wpConfirmDelete WPObject_wpConfirmDelete
#define WPDesktop_wpConfirmObjectTitle WPObject_wpConfirmObjectTitle
#define WPDesktop_wpCopiedFromTemplate WPObject_wpCopiedFromTemplate
#define WPDesktop_wpCopyObject WPObject_wpCopyObject
#define WPDesktop_wpCreateAnother WPObject_wpCreateAnother
#define WPDesktop_wpCreateFromTemplate WPObject_wpCreateFromTemplate
#define WPDesktop_wpCreateShadowObject WPObject_wpCreateShadowObject
#define WPDesktop_wpDelete WPObject_wpDelete
#define WPDesktop_wpDeleteFromObjUseList WPObject_wpDeleteFromObjUseList
#define WPDesktop_wpDisplayHelp WPObject_wpDisplayHelp
#define WPDesktop_wpDisplayMenu WPObject_wpDisplayMenu
#define WPDesktop_wpDoesObjectMatch WPObject_wpDoesObjectMatch
#define WPDesktop_wpDraggedOverObject WPObject_wpDraggedOverObject
#define WPDesktop_wpDragOver WPObject_wpDragOver
#define WPDesktop_wpDrop WPObject_wpDrop
#define WPDesktop_wpDroppedOnObject WPObject_wpDroppedOnObject
#define WPDesktop_wpEndConversation WPObject_wpEndConversation
#define WPDesktop_wpFindUseItem WPObject_wpFindUseItem
#define WPDesktop_wpFormatDragItem WPObject_wpFormatDragItem
#define WPDesktop_wpFree WPObject_wpFree
#define WPDesktop_wpFreeMem WPObject_wpFreeMem
#define WPDesktop_wpHide WPObject_wpHide
#define WPDesktop_wpInsertPopupMenuItems WPObject_wpInsertPopupMenuItems
#define WPDesktop_wpInsertSettingsPage WPObject_wpInsertSettingsPage
#define WPDesktop_wpMenuItemHelpSelected WPObject_wpMenuItemHelpSelected
#define WPDesktop_wpMoveObject WPObject_wpMoveObject
#define WPDesktop_wpOpen WPObject_wpOpen
#define WPDesktop_wpPrintObject WPObject_wpPrintObject
#define WPDesktop_wpQueryConcurrentView WPObject_wpQueryConcurrentView
#define WPDesktop_wpQueryButtonAppearance WPObject_wpQueryButtonAppearance
#define WPDesktop_wpQueryConfirmations WPObject_wpQueryConfirmations
#define WPDesktop_wpQueryDefaultHelp WPObject_wpQueryDefaultHelp
#define WPDesktop_wpQueryDefaultView WPObject_wpQueryDefaultView
#define WPDesktop_wpQueryDetailsData WPObject_wpQueryDetailsData
#define WPDesktop_wpQueryError WPObject_wpQueryError
#define WPDesktop_wpSetFolder WPObject_wpSetFolder
#define WPDesktop_wpQueryFolder WPObject_wpQueryFolder
#define WPDesktop_wpQueryIcon WPObject_wpQueryIcon
#define WPDesktop_wpQueryIconData WPObject_wpQueryIconData
#define WPDesktop_wpQueryMinWindow WPObject_wpQueryMinWindow
#define WPDesktop_wpQueryNameClashOptions WPObject_wpQueryNameClashOptions
#define WPDesktop_wpQueryStyle WPObject_wpQueryStyle
#define WPDesktop_wpSetTaskRec WPObject_wpSetTaskRec
#define WPDesktop_wpFindTaskRec WPObject_wpFindTaskRec
#define WPDesktop_wpQueryTitle WPObject_wpQueryTitle
#define WPDesktop_wpRegisterView WPObject_wpRegisterView
#define WPDesktop_wpReleaseObjectMutexSem WPObject_wpReleaseObjectMutexSem
#define WPDesktop_wpRender WPObject_wpRender
#define WPDesktop_wpRenderComplete WPObject_wpRenderComplete
#define WPDesktop_wpReplaceObject WPObject_wpReplaceObject
#define WPDesktop_wpRequestObjectMutexSem WPObject_wpRequestObjectMutexSem
#define WPDesktop_wpRestore WPObject_wpRestore
#define WPDesktop_wpRestoreData WPObject_wpRestoreData
#define WPDesktop_wpRestoreLong WPObject_wpRestoreLong
#define WPDesktop_wpRestoreString WPObject_wpRestoreString
#define WPDesktop_wpSaveData WPObject_wpSaveData
#define WPDesktop_wpSaveImmediate WPObject_wpSaveImmediate
#define WPDesktop_wpSaveDeferred WPObject_wpSaveDeferred
#define WPDesktop_wpSaveLong WPObject_wpSaveLong
#define WPDesktop_wpSaveString WPObject_wpSaveString
#define WPDesktop_wpScanSetupString WPObject_wpScanSetupString
#define WPDesktop_wpSetConcurrentView WPObject_wpSetConcurrentView
#define WPDesktop_wpSetButtonAppearance WPObject_wpSetButtonAppearance
#define WPDesktop_wpSetDefaultHelp WPObject_wpSetDefaultHelp
#define WPDesktop_wpSetDefaultView WPObject_wpSetDefaultView
#define WPDesktop_wpSetError WPObject_wpSetError
#define WPDesktop_wpSetIconHandle WPObject_wpSetIconHandle
#define WPDesktop_wpQueryScreenGroupID WPObject_wpQueryScreenGroupID
#define WPDesktop_wpSetupOnce WPObject_wpSetupOnce
#define WPDesktop_wpSetIcon WPObject_wpSetIcon
#define WPDesktop_wpSetIconData WPObject_wpSetIconData
#define WPDesktop_wpSetMinWindow WPObject_wpSetMinWindow
#define WPDesktop_wpSetStyle WPObject_wpSetStyle
#define WPDesktop_wpModifyStyle WPObject_wpModifyStyle
#define WPDesktop_wpSetTitle WPObject_wpSetTitle
#define WPDesktop_wpSetup WPObject_wpSetup
#define WPDesktop_wpSwitchTo WPObject_wpSwitchTo
#define WPDesktop_wpUnInitData WPObject_wpUnInitData
#define WPDesktop_wpViewObject WPObject_wpViewObject
#define WPDesktop_wpQueryTrueStyle WPObject_wpQueryTrueStyle
#define WPDesktop_wpQueryHandle WPObject_wpQueryHandle
#define WPDesktop_wpUnlockObject WPObject_wpUnlockObject
#define WPDesktop_wpObjectReady WPObject_wpObjectReady
#define WPDesktop_wpIsObjectInitialized WPObject_wpIsObjectInitialized
#define WPDesktop_wpCreateShadowObjectExt WPObject_wpCreateShadowObjectExt
#define WPDesktop_wpCnrDeleteUseItem WPObject_wpCnrDeleteUseItem
#define WPDesktop_wpIsDeleteable WPObject_wpIsDeleteable
#define WPDesktop_wpQueryCoreRecord WPObject_wpQueryCoreRecord
#define WPDesktop_wpSetObjectID WPObject_wpSetObjectID
#define WPDesktop_wpQueryObjectID WPObject_wpQueryObjectID
#define WPDesktop_wpSetDefaultIconPos WPObject_wpSetDefaultIconPos
#define WPDesktop_wpQueryDefaultIconPos WPObject_wpQueryDefaultIconPos
#define WPDesktop_wpCnrRefreshDetails WPObject_wpCnrRefreshDetails
#define WPDesktop_wpFindViewItem WPObject_wpFindViewItem
#define WPDesktop_wpLockObject WPObject_wpLockObject
#define WPDesktop_wpIsLocked WPObject_wpIsLocked
#define WPDesktop_wpQueryContainerFlagPtr WPObject_wpQueryContainerFlagPtr
#define WPDesktop_wpWaitForClose WPObject_wpWaitForClose
#define WPDesktop_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define WPDesktop_somDefaultAssign SOMObject_somDefaultAssign
#define WPDesktop_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define WPDesktop_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define WPDesktop_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define WPDesktop_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define WPDesktop_somDefaultVAssign SOMObject_somDefaultVAssign
#define WPDesktop_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define WPDesktop_somInit SOMObject_somInit
#define WPDesktop_somFree SOMObject_somFree
#define WPDesktop_somUninit SOMObject_somUninit
#define WPDesktop_somGetClass SOMObject_somGetClass
#define WPDesktop_somGetClassName SOMObject_somGetClassName
#define WPDesktop_somGetSize SOMObject_somGetSize
#define WPDesktop_somIsA SOMObject_somIsA
#define WPDesktop_somIsInstanceOf SOMObject_somIsInstanceOf
#define WPDesktop_somRespondsTo SOMObject_somRespondsTo
#define WPDesktop_somDispatch SOMObject_somDispatch
#define WPDesktop_somClassDispatch SOMObject_somClassDispatch
#define WPDesktop_somCastObj SOMObject_somCastObj
#define WPDesktop_somResetObj SOMObject_somResetObj
#define WPDesktop_somPrintSelf SOMObject_somPrintSelf
#define WPDesktop_somDumpSelf SOMObject_somDumpSelf
#define WPDesktop_somDumpSelfInt SOMObject_somDumpSelfInt
#endif /* SOM_DONT_USE_INHERITED_MACROS */

#endif       /* SOM_WPDesktop_h */

#ifndef SOM_M_WPDesktop_h
#define SOM_M_WPDesktop_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_WPDesktop
#define M_WPDesktop SOMObject
#endif
#include <wpfolder.h>

/*
 * Start of bindings for IDL types
 */


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

#define M_WPDesktop_MajorVersion 1
#define M_WPDesktop_MinorVersion 2

/*
 * External name shortening if required
 */
#ifdef SOM_USE_SHORT_EXTERNAL_NAMES
#define M_WPDesktopNewClass WPDesktopc
#define M_WPDesktopClassData WPDesktopd
#define M_WPDesktopCClassData WPDesktopx
#endif /* SOM_USE_SHORT_EXTERNAL_NAMES */
/*--------------Migration------------*/
#define M_WPDesktop_classObj M_WPDesktopClassData.classObject
#define _M_WPDesktop M_WPDesktop_classObj

/*
 * Declare the class creation procedure
 */
SOMEXTERN SOMClass * SOMLINK M_WPDesktopNewClass(integer4 somtmajorVersion,
		integer4 somtminorVersion);

/*
 * Declare the class data structure
 */
SOMEXTERN struct M_WPDesktopClassDataStructure {
	SOMClass *classObject;
	somMToken wpclsQueryObjectFromFrame;
	somMToken wpclsQueryActiveDesktop;
	somMToken wpclsQueryActiveDesktopHWND;
} SOMDLINK M_WPDesktopClassData;

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

/*
 * New and Renew macros for M_WPDesktop
 */
#define M_WPDesktopNew() \
   (_somNew(_M_WPDesktop ? _M_WPDesktop : M_WPDesktopNewClass(M_WPDesktop_MajorVersion, M_WPDesktop_MinorVersion)))
#define M_WPDesktopRenew(buf) \
   (_somRenew(_M_WPDesktop ? _M_WPDesktop : M_WPDesktopNewClass(M_WPDesktop_MajorVersion, M_WPDesktop_MinorVersion), buf))

/*
 * Override method: wpclsQueryDefaultView
 */
#define M_WPDesktop_wpclsQueryDefaultView(somSelf) \
	M_WPObject_wpclsQueryDefaultView(somSelf)

/*
 * Override method: wpclsQueryTitle
 */
#define M_WPDesktop_wpclsQueryTitle(somSelf) \
	M_WPObject_wpclsQueryTitle(somSelf)

/*
 * Override method: wpclsQueryIconData
 */
#define M_WPDesktop_wpclsQueryIconData(somSelf,pIconInfo) \
	M_WPObject_wpclsQueryIconData(somSelf,pIconInfo)

/*
 * Override method: wpclsQueryIconDataN
 */
#define M_WPDesktop_wpclsQueryIconDataN(somSelf,pIconInfo,ulIconIndex) \
	M_WPFolder_wpclsQueryIconDataN(somSelf,pIconInfo,ulIconIndex)

/*
 * Override method: wpclsQueryStyle
 */
#define M_WPDesktop_wpclsQueryStyle(somSelf) \
	M_WPObject_wpclsQueryStyle(somSelf)

/*
 * Override method: wpclsQueryDefaultHelp
 */
#define M_WPDesktop_wpclsQueryDefaultHelp(somSelf,pHelpPanelId,pszHelpLibrary) \
	M_WPObject_wpclsQueryDefaultHelp(somSelf,pHelpPanelId,pszHelpLibrary)

/*
 * New Method: wpclsQueryObjectFromFrame
 */
typedef WPObject*   SOMLINK somTP_M_WPDesktop_wpclsQueryObjectFromFrame(M_WPDesktop *somSelf, 
		HWND hwndFrame);
typedef somTP_M_WPDesktop_wpclsQueryObjectFromFrame *somTD_M_WPDesktop_wpclsQueryObjectFromFrame;
#define somMD_M_WPDesktop_wpclsQueryObjectFromFrame "::M_WPDesktop::wpclsQueryObjectFromFrame"
#define M_WPDesktop_wpclsQueryObjectFromFrame(somSelf,hwndFrame) \
    (SOM_Resolve(somSelf, M_WPDesktop, wpclsQueryObjectFromFrame) \
	(somSelf,hwndFrame))
#ifndef SOMGD_wpclsQueryObjectFromFrame
    #if (defined(_wpclsQueryObjectFromFrame) || defined(__wpclsQueryObjectFromFrame))
        #undef _wpclsQueryObjectFromFrame
        #undef __wpclsQueryObjectFromFrame
        #define SOMGD_wpclsQueryObjectFromFrame 1
    #else
        #define _wpclsQueryObjectFromFrame M_WPDesktop_wpclsQueryObjectFromFrame
    #endif /* _wpclsQueryObjectFromFrame */
#endif /* SOMGD_wpclsQueryObjectFromFrame */

/*
 * New Method: wpclsQueryActiveDesktopHWND
 */
typedef HWND   SOMLINK somTP_M_WPDesktop_wpclsQueryActiveDesktopHWND(M_WPDesktop *somSelf);
typedef somTP_M_WPDesktop_wpclsQueryActiveDesktopHWND *somTD_M_WPDesktop_wpclsQueryActiveDesktopHWND;
#define somMD_M_WPDesktop_wpclsQueryActiveDesktopHWND "::M_WPDesktop::wpclsQueryActiveDesktopHWND"
#define M_WPDesktop_wpclsQueryActiveDesktopHWND(somSelf) \
    (SOM_Resolve(somSelf, M_WPDesktop, wpclsQueryActiveDesktopHWND) \
	(somSelf))
#ifndef SOMGD_wpclsQueryActiveDesktopHWND
    #if (defined(_wpclsQueryActiveDesktopHWND) || defined(__wpclsQueryActiveDesktopHWND))
        #undef _wpclsQueryActiveDesktopHWND
        #undef __wpclsQueryActiveDesktopHWND
        #define SOMGD_wpclsQueryActiveDesktopHWND 1
    #else
        #define _wpclsQueryActiveDesktopHWND M_WPDesktop_wpclsQueryActiveDesktopHWND
    #endif /* _wpclsQueryActiveDesktopHWND */
#endif /* SOMGD_wpclsQueryActiveDesktopHWND */

/*
 * New Method: wpclsQueryActiveDesktop
 */
typedef WPObject*   SOMLINK somTP_M_WPDesktop_wpclsQueryActiveDesktop(M_WPDesktop *somSelf);
typedef somTP_M_WPDesktop_wpclsQueryActiveDesktop *somTD_M_WPDesktop_wpclsQueryActiveDesktop;
#define somMD_M_WPDesktop_wpclsQueryActiveDesktop "::M_WPDesktop::wpclsQueryActiveDesktop"
#define M_WPDesktop_wpclsQueryActiveDesktop(somSelf) \
    (SOM_Resolve(somSelf, M_WPDesktop, wpclsQueryActiveDesktop) \
	(somSelf))
#ifndef SOMGD_wpclsQueryActiveDesktop
    #if (defined(_wpclsQueryActiveDesktop) || defined(__wpclsQueryActiveDesktop))
        #undef _wpclsQueryActiveDesktop
        #undef __wpclsQueryActiveDesktop
        #define SOMGD_wpclsQueryActiveDesktop 1
    #else
        #define _wpclsQueryActiveDesktop M_WPDesktop_wpclsQueryActiveDesktop
    #endif /* _wpclsQueryActiveDesktop */
#endif /* SOMGD_wpclsQueryActiveDesktop */
#ifndef SOM_DONT_USE_INHERITED_MACROS
#define M_WPDesktop_wpclsQueryIconN M_WPFolder_wpclsQueryIconN
#define M_WPDesktop_wpclsQueryOpenFolders M_WPFolder_wpclsQueryOpenFolders
#define M_WPDesktop_wpclsQueryAwakeObject M_WPFileSystem_wpclsQueryAwakeObject
#define M_WPDesktop_wpclsFileSysExists M_WPFileSystem_wpclsFileSysExists
#define M_WPDesktop_wpclsQueryObjectFromPath M_WPFileSystem_wpclsQueryObjectFromPath
#define M_WPDesktop_wpclsQueryInstanceType M_WPFileSystem_wpclsQueryInstanceType
#define M_WPDesktop_wpclsQueryInstanceFilter M_WPFileSystem_wpclsQueryInstanceFilter
#define M_WPDesktop_wpclsCreateDefaultTemplates M_WPObject_wpclsCreateDefaultTemplates
#define M_WPDesktop_wpclsInitData M_WPObject_wpclsInitData
#define M_WPDesktop_wpclsMakeAwake M_WPObject_wpclsMakeAwake
#define M_WPDesktop_wpclsNew M_WPObject_wpclsNew
#define M_WPDesktop_wpclsQueryDetails M_WPObject_wpclsQueryDetails
#define M_WPDesktop_wpclsQueryDetailsInfo M_WPObject_wpclsQueryDetailsInfo
#define M_WPDesktop_wpclsQueryExtendedCriteria M_WPObject_wpclsQueryExtendedCriteria
#define M_WPDesktop_wpclsQueryFolder M_WPObject_wpclsQueryFolder
#define M_WPDesktop_wpclsQueryIcon M_WPObject_wpclsQueryIcon
#define M_WPDesktop_wpclsQuerySearchInfo M_WPObject_wpclsQuerySearchInfo
#define M_WPDesktop_wpclsUnInitData M_WPObject_wpclsUnInitData
#define M_WPDesktop_wpclsFindObjectFirst M_WPObject_wpclsFindObjectFirst
#define M_WPDesktop_wpclsFindObjectNext M_WPObject_wpclsFindObjectNext
#define M_WPDesktop_wpclsFindObjectEnd M_WPObject_wpclsFindObjectEnd
#define M_WPDesktop_wpclsSetError M_WPObject_wpclsSetError
#define M_WPDesktop_wpclsQueryError M_WPObject_wpclsQueryError
#define M_WPDesktop_wpclsQuerySettingsPageSize M_WPObject_wpclsQuerySettingsPageSize
#define M_WPDesktop_wpclsQueryObject M_WPObject_wpclsQueryObject
#define M_WPDesktop_wpclsQueryButtonAppearance M_WPObject_wpclsQueryButtonAppearance
#define M_WPDesktop_wpclsDecUsage M_WPObject_wpclsDecUsage
#define M_WPDesktop_wpclsIncUsage M_WPObject_wpclsIncUsage
#define M_WPDesktop_wpclsInsertMultipleObjects M_WPObject_wpclsInsertMultipleObjects
#define M_WPDesktop_wpclsFindOneObject M_WPObject_wpclsFindOneObject
#define M_WPDesktop_wpclsSetSettingsPageSize M_WPObject_wpclsSetSettingsPageSize
#define M_WPDesktop_wpclsSetIconData M_WPObject_wpclsSetIconData
#define M_WPDesktop_wpclsSetIcon M_WPObject_wpclsSetIcon
#define M_WPDesktop_wpclsObjectFromHandle M_WPObject_wpclsObjectFromHandle
#define M_WPDesktop_wpclsRemoveObjects M_WPObject_wpclsRemoveObjects
#define M_WPDesktop__get_somDataAlignment SOMClass__get_somDataAlignment
#define M_WPDesktop__get_somInstanceDataOffsets SOMClass__get_somInstanceDataOffsets
#define M_WPDesktop__get_somDirectInitClasses SOMClass__get_somDirectInitClasses
#define M_WPDesktop__set_somDirectInitClasses SOMClass__set_somDirectInitClasses
#define M_WPDesktop_somNew SOMClass_somNew
#define M_WPDesktop_somNewNoInit SOMClass_somNewNoInit
#define M_WPDesktop_somRenew SOMClass_somRenew
#define M_WPDesktop_somRenewNoInit SOMClass_somRenewNoInit
#define M_WPDesktop_somRenewNoZero SOMClass_somRenewNoZero
#define M_WPDesktop_somRenewNoInitNoZero SOMClass_somRenewNoInitNoZero
#define M_WPDesktop_somAllocate SOMClass_somAllocate
#define M_WPDesktop_somDeallocate SOMClass_somDeallocate
#define M_WPDesktop_somGetInstanceInitMask SOMClass_somGetInstanceInitMask
#define M_WPDesktop_somGetInstanceDestructionMask SOMClass_somGetInstanceDestructionMask
#define M_WPDesktop_somGetInstanceAssignmentMask SOMClass_somGetInstanceAssignmentMask
#define M_WPDesktop_somInitClass SOMClass_somInitClass
#define M_WPDesktop_somInitMIClass SOMClass_somInitMIClass
#define M_WPDesktop_somAddStaticMethod SOMClass_somAddStaticMethod
#define M_WPDesktop_somAddDynamicMethod SOMClass_somAddDynamicMethod
#define M_WPDesktop_somOverrideSMethod SOMClass_somOverrideSMethod
#define M_WPDesktop_somClassReady SOMClass_somClassReady
#define M_WPDesktop_somGetApplyStub SOMClass_somGetApplyStub
#define M_WPDesktop_somGetClassData SOMClass_somGetClassData
#define M_WPDesktop_somSetClassData SOMClass_somSetClassData
#define M_WPDesktop_somGetClassMtab SOMClass_somGetClassMtab
#define M_WPDesktop_somGetInstanceOffset SOMClass_somGetInstanceOffset
#define M_WPDesktop_somGetInstancePartSize SOMClass_somGetInstancePartSize
#define M_WPDesktop_somGetInstanceSize SOMClass_somGetInstanceSize
#define M_WPDesktop_somGetInstanceToken SOMClass_somGetInstanceToken
#define M_WPDesktop_somGetMemberToken SOMClass_somGetMemberToken
#define M_WPDesktop_somGetMethodData SOMClass_somGetMethodData
#define M_WPDesktop_somGetRdStub SOMClass_somGetRdStub
#define M_WPDesktop_somGetMethodDescriptor SOMClass_somGetMethodDescriptor
#define M_WPDesktop_somGetMethodIndex SOMClass_somGetMethodIndex
#define M_WPDesktop_somGetMethodToken SOMClass_somGetMethodToken
#define M_WPDesktop_somGetName SOMClass_somGetName
#define M_WPDesktop_somGetNthMethodData SOMClass_somGetNthMethodData
#define M_WPDesktop_somGetNthMethodInfo SOMClass_somGetNthMethodInfo
#define M_WPDesktop_somGetNumMethods SOMClass_somGetNumMethods
#define M_WPDesktop_somGetNumStaticMethods SOMClass_somGetNumStaticMethods
#define M_WPDesktop_somGetParent SOMClass_somGetParent
#define M_WPDesktop_somGetParents SOMClass_somGetParents
#define M_WPDesktop_somGetPClsMtab SOMClass_somGetPClsMtab
#define M_WPDesktop_somGetPClsMtabs SOMClass_somGetPClsMtabs
#define M_WPDesktop_somGetVersionNumbers SOMClass_somGetVersionNumbers
#define M_WPDesktop_somSetMethodDescriptor SOMClass_somSetMethodDescriptor
#define M_WPDesktop_somFindMethod SOMClass_somFindMethod
#define M_WPDesktop_somFindMethodOk SOMClass_somFindMethodOk
#define M_WPDesktop_somFindSMethod SOMClass_somFindSMethod
#define M_WPDesktop_somFindSMethodOk SOMClass_somFindSMethodOk
#define M_WPDesktop_somLookupMethod SOMClass_somLookupMethod
#define M_WPDesktop_somCheckVersion SOMClass_somCheckVersion
#define M_WPDesktop_somDescendedFrom SOMClass_somDescendedFrom
#define M_WPDesktop_somSupportsMethod SOMClass_somSupportsMethod
#define M_WPDesktop_somDefinedMethod SOMClass_somDefinedMethod
#define M_WPDesktop_somOverrideMtab SOMClass_somOverrideMtab
#define M_WPDesktop_somDefaultInit SOMObject_somDefaultInit
#define M_WPDesktop_somDestruct SOMObject_somDestruct
#define M_WPDesktop_somDefaultCopyInit SOMObject_somDefaultCopyInit
#define M_WPDesktop_somDefaultAssign SOMObject_somDefaultAssign
#define M_WPDesktop_somDefaultConstCopyInit SOMObject_somDefaultConstCopyInit
#define M_WPDesktop_somDefaultVCopyInit SOMObject_somDefaultVCopyInit
#define M_WPDesktop_somDefaultConstVCopyInit SOMObject_somDefaultConstVCopyInit
#define M_WPDesktop_somDefaultConstAssign SOMObject_somDefaultConstAssign
#define M_WPDesktop_somDefaultVAssign SOMObject_somDefaultVAssign
#define M_WPDesktop_somDefaultConstVAssign SOMObject_somDefaultConstVAssign
#define M_WPDesktop_somInit SOMObject_somInit
#define M_WPDesktop_somFree SOMObject_somFree
#define M_WPDesktop_somUninit SOMObject_somUninit
#define M_WPDesktop_somGetClass SOMObject_somGetClass
#define M_WPDesktop_somGetClassName SOMObject_somGetClassName
#define M_WPDesktop_somGetSize SOMObject_somGetSize
#define M_WPDesktop_somIsA SOMObject_somIsA
#define M_WPDesktop_somIsInstanceOf SOMObject_somIsInstanceOf
#define M_WPDesktop_somRespondsTo SOMObject_somRespondsTo
#define M_WPDesktop_somDispatch SOMObject_somDispatch
#define M_WPDesktop_somClassDispatch SOMObject_somClassDispatch
#define M_WPDesktop_somCastObj SOMObject_somCastObj
#define M_WPDesktop_somResetObj SOMObject_somResetObj
#define M_WPDesktop_somPrintSelf SOMObject_somPrintSelf
#define M_WPDesktop_somDumpSelf SOMObject_somDumpSelf
#define M_WPDesktop_somDumpSelfInt SOMObject_somDumpSelfInt
#endif /* SOM_DONT_USE_INHERITED_MACROS */

#endif       /* SOM_M_WPDesktop_h */
