summaryrefslogtreecommitdiffstats
path: root/private/oleauto/src/dispatch/psfactry.h
blob: 5c4dccf959c8c4c00aee75d6c7474a945a3f0266 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/*** 
*psfactry.h
*
*  Copyright (C) 1994, Microsoft Corporation.  All Rights Reserved.
*  Information Contained Herein Is Proprietary and Confidential.
*
*Purpose:
*  Definition of automation proxy/stub factory.
*
*Revision History:
*
* [00]	06-Sep-94 erikc: Added header.
*
*Implementation Notes:
*
*****************************************************************************/
#ifndef _PSFACTRY_H_
#define _PSFACTRY_H_

class FAR COleAutomationPSFactory : public IPSFACTORY
{
public:
    static IPSFACTORY FAR* Create(void);

    // IUnknown Methods
    //
    STDMETHOD(QueryInterface)(REFIID riid, void FAR* FAR* ppv);
    STDMETHOD_(unsigned long, AddRef)(void);
    STDMETHOD_(unsigned long, Release)(void);
		
    // IPSFactory Methods
    //
    STDMETHOD(CreateProxy)(
      IUnknown FAR* punkOuter,
      REFIID riid,
      IPROXY FAR* FAR* ppproxy,
      void FAR* FAR* ppv);

    STDMETHOD(CreateStub)(
      REFIID riid, IUnknown FAR* punkServer, ISTUB FAR* FAR* ppstub);

    COleAutomationPSFactory(){
      m_refs = 0;
    }

private:

    unsigned long m_refs;
};

#endif // _PSFACTRY_H_