1 | /**********************************************************************
|
---|
2 | *<
|
---|
3 | FILE: PhyExport.cpp
|
---|
4 |
|
---|
5 | DESCRIPTION: Appwizard generated plugin
|
---|
6 |
|
---|
7 | CREATED BY:
|
---|
8 |
|
---|
9 | HISTORY:
|
---|
10 |
|
---|
11 | *> Copyright (c) 1997, All Rights Reserved.
|
---|
12 | **********************************************************************/
|
---|
13 |
|
---|
14 | #include "PhyExport.h"
|
---|
15 |
|
---|
16 | #define PHYEXPORT_CLASS_ID Class_ID(0x3dc3c42e, 0x185dc5f2)
|
---|
17 |
|
---|
18 |
|
---|
19 |
|
---|
20 | class PhyExport : public GUP {
|
---|
21 | public:
|
---|
22 | static HWND hParams;
|
---|
23 |
|
---|
24 | // GUP Methods
|
---|
25 | DWORD Start ( );
|
---|
26 | void Stop ( );
|
---|
27 | DWORD Control ( DWORD parameter );
|
---|
28 |
|
---|
29 | // Loading/Saving
|
---|
30 | IOResult Save(ISave *isave);
|
---|
31 | IOResult Load(ILoad *iload);
|
---|
32 |
|
---|
33 |
|
---|
34 | //Constructor/Destructor
|
---|
35 |
|
---|
36 | PhyExport();
|
---|
37 | ~PhyExport();
|
---|
38 |
|
---|
39 | };
|
---|
40 |
|
---|
41 |
|
---|
42 | class PhyExportClassDesc:public ClassDesc2 {
|
---|
43 | public:
|
---|
44 | int IsPublic() { return 1; }
|
---|
45 | void * Create(BOOL loading = FALSE) { return new PhyExport(); }
|
---|
46 | const TCHAR * ClassName() { return GetString(IDS_CLASS_NAME); }
|
---|
47 | SClass_ID SuperClassID() { return GUP_CLASS_ID; }
|
---|
48 | Class_ID ClassID() { return PHYEXPORT_CLASS_ID; }
|
---|
49 | const TCHAR* Category() { return GetString(IDS_CATEGORY); }
|
---|
50 |
|
---|
51 | const TCHAR* InternalName() { return _T("PhyExport"); } // returns fixed parsable name (scripter-visible name)
|
---|
52 | HINSTANCE HInstance() { return hInstance; } // returns owning module handle
|
---|
53 |
|
---|
54 | };
|
---|
55 |
|
---|
56 |
|
---|
57 | static PhyExportClassDesc PhyExportDesc;
|
---|
58 | ClassDesc2* GetPhyExportDesc() { return &PhyExportDesc; }
|
---|
59 |
|
---|
60 |
|
---|
61 |
|
---|
62 | PhyExport::PhyExport()
|
---|
63 | {
|
---|
64 |
|
---|
65 | }
|
---|
66 |
|
---|
67 | PhyExport::~PhyExport()
|
---|
68 | {
|
---|
69 |
|
---|
70 | }
|
---|
71 |
|
---|
72 | // Activate and Stay Resident
|
---|
73 | DWORD PhyExport::Start( ) {
|
---|
74 |
|
---|
75 | // TODO: Do plugin initialization here
|
---|
76 |
|
---|
77 | // TODO: Return if you want remain loaded or not
|
---|
78 | return GUPRESULT_KEEP;
|
---|
79 | }
|
---|
80 |
|
---|
81 | void PhyExport::Stop( ) {
|
---|
82 | // TODO: Do plugin un-initialization here
|
---|
83 | }
|
---|
84 |
|
---|
85 | DWORD PhyExport::Control( DWORD parameter ) {
|
---|
86 | return 0;
|
---|
87 | }
|
---|
88 |
|
---|
89 | IOResult PhyExport::Save(ISave *isave)
|
---|
90 | {
|
---|
91 | return IO_OK;
|
---|
92 | }
|
---|
93 |
|
---|
94 | IOResult PhyExport::Load(ILoad *iload)
|
---|
95 | {
|
---|
96 | return IO_OK;
|
---|
97 | }
|
---|
98 |
|
---|