:pserver:cvsanon@mok.lvcm.com:/CVS/ReactOS reactos
[reactos.git] / lib / shell32 / misc / _stubs.cpp
1 /*
2  *  ReactOS shell32 - 
3  *
4  *  _stubs.cpp
5  *
6  *  Copyright (C) 2002  Robert Dickenson <robd@reactos.org>
7  *
8  *  This program is free software; you can redistribute it and/or modify
9  *  it under the terms of the GNU General Public License as published by
10  *  the Free Software Foundation; either version 2 of the License, or
11  *  (at your option) any later version.
12  *
13  *  This program is distributed in the hope that it will be useful,
14  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
15  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16  *  GNU General Public License for more details.
17  *
18  *  You should have received a copy of the GNU General Public License
19  *  along with this program; if not, write to the Free Software
20  *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21  */
22 /* $Id: stubs.cpp,
23  *
24  * COPYRIGHT:       See COPYING in the top level directory
25  * PROJECT:         ReactOS system libraries
26  * FILE:            lib/shell32/misc/stubs.c
27  * PURPOSE:         C++ Stubbed exports
28  * PROGRAMMER:      Robert Dickenson (robd@reactos.org)
29  */
30
31 //#include <ddk/ntddk.h>
32 #ifdef _MSC_VER
33 #include <Objbase.h>
34 #else
35 #include <windows.h>
36 #endif
37 //#define NDEBUG
38 //#include <debug.h>
39
40 #ifdef __cplusplus
41 extern "C" {
42 #endif
43
44 #include "shell32.h"
45
46
47 #define  STUB  \
48   do  \
49   {   \
50   }   \
51   while (0)
52
53 //    DbgPrint ("%s(%d):%s not implemented\n", __FILE__, __LINE__, __FUNCTION__);
54
55
56 #ifndef __GNUC__
57
58 //long __stdcall
59 STDAPI
60 DllGetClassObject(const CLSID & rclsid, const IID & riid, void ** ppv)
61 {
62   STUB;
63 /*
64 This function supports the standard return values:
65     E_INVALIDARG
66     E_OUTOFMEMORY
67     E_UNEXPECTED
68 as well as the following: 
69     S_OK                      - The object was retrieved successfully
70     CLASS_E_CLASSNOTAVAILABLE - The DLL does not support the class (object definition)
71  */
72   return CLASS_E_CLASSNOTAVAILABLE;
73 }
74
75 #else
76
77 //VOID STDCALL
78 long __stdcall
79 DllGetClassObject(DWORD Unknown1, DWORD Unknown2, DWORD Unknown3)
80 {
81   STUB;
82   return CLASS_E_CLASSNOTAVAILABLE;
83 }
84
85 #endif
86
87 #ifdef __cplusplus
88 };
89 #endif