1 | /*
|
---|
2 | * This file is (C) Chris Wohlgemuth 1999-2002
|
---|
3 | *
|
---|
4 | * It's part of the Audio/Data-CD-Creator distribution
|
---|
5 | */
|
---|
6 | /*
|
---|
7 | * This program is free software; you can redistribute it and/or modify
|
---|
8 | * it under the terms of the GNU General Public License as published by
|
---|
9 | * the Free Software Foundation; either version 2, or (at your option)
|
---|
10 | * any later version.
|
---|
11 | *
|
---|
12 | * This program is distributed in the hope that it will be useful,
|
---|
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of
|
---|
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
---|
15 | * GNU General Public License for more details.
|
---|
16 | *
|
---|
17 | * You should have received a copy of the GNU General Public License
|
---|
18 | * along with this program; see the file COPYING. If not, write to
|
---|
19 | * the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
|
---|
20 | */
|
---|
21 |
|
---|
22 | #define INCL_DOSERRORS
|
---|
23 |
|
---|
24 | #include "audioshadow.hh"
|
---|
25 | //#include "mediafolderres.h"
|
---|
26 |
|
---|
27 |
|
---|
28 | extern HMODULE hResource;
|
---|
29 | extern char chrInstallDir[];
|
---|
30 |
|
---|
31 | /* Overriden function which returns our class name */
|
---|
32 | PSZ M_CWAudioShadow::wpclsQueryTitle()
|
---|
33 | {
|
---|
34 | return "Audio-Referenz";
|
---|
35 | }
|
---|
36 |
|
---|
37 | ULONG M_CWAudioShadow::wpclsQueryDetailsInfo( PCLASSFIELDINFO* ppClassFieldInfo, PULONG pSize)
|
---|
38 | {
|
---|
39 | M_WPObject *mWPObject;// Class object
|
---|
40 | somId mySomId;
|
---|
41 | ULONG rc;
|
---|
42 |
|
---|
43 | if((mySomId=somIdFromString(CWAUDIO_CLASS_NAME))!=NULLHANDLE) {
|
---|
44 | mWPObject=(M_WPObject*)SOMClassMgrObject->somClassFromId(mySomId);
|
---|
45 | SOMFree(mySomId);
|
---|
46 | if(somIsObj(mWPObject)) {
|
---|
47 | /* got the class object */
|
---|
48 | return mWPObject->wpclsQueryDetailsInfo(ppClassFieldInfo, pSize);
|
---|
49 | }
|
---|
50 | }
|
---|
51 |
|
---|
52 | if((mySomId=somIdFromString("wpclsQueryDetailsInfo"))!=NULLHANDLE) {
|
---|
53 | rc=((somTD_M_WPObject_wpclsQueryDetailsInfo)
|
---|
54 | somParentNumResolve(__ClassObject->somGetPClsMtabs(),
|
---|
55 | 1,
|
---|
56 | __ClassObject->
|
---|
57 | somGetMethodToken(mySomId))
|
---|
58 | )(this, ppClassFieldInfo, pSize);
|
---|
59 | SOMFree(mySomId);
|
---|
60 | return rc;
|
---|
61 | }
|
---|
62 | else
|
---|
63 | return M_WPShadow::wpclsQueryDetailsInfo(ppClassFieldInfo, pSize);
|
---|
64 |
|
---|
65 | return 0;
|
---|
66 | }
|
---|
67 |
|
---|
68 |
|
---|
69 |
|
---|
70 |
|
---|
71 |
|
---|
72 |
|
---|
73 |
|
---|
74 |
|
---|
75 |
|
---|
76 |
|
---|
77 |
|
---|
78 |
|
---|
79 |
|
---|
80 |
|
---|
81 |
|
---|
82 |
|
---|
83 |
|
---|
84 |
|
---|
85 |
|
---|
86 |
|
---|
87 |
|
---|
88 |
|
---|
89 |
|
---|
90 |
|
---|