[CMAKE]
authorTimo Kreuzer <timo.kreuzer@reactos.org>
Wed, 1 Dec 2010 09:44:45 +0000 (09:44 +0000)
committerTimo Kreuzer <timo.kreuzer@reactos.org>
Wed, 1 Dec 2010 09:44:45 +0000 (09:44 +0000)
Manual stubs for activeds

svn path=/branches/cmake-bringup/; revision=49879

dll/win32/activeds/CMakeLists.txt
dll/win32/activeds/activeds.spec
dll/win32/activeds/stubs.c [new file with mode: 0644]

index 07f7520..99a35e4 100644 (file)
@@ -7,6 +7,7 @@ spec2def(activeds.dll activeds.spec)
 
 list(APPEND SOURCE
     activeds_main.c
+    stubs.c
     ${CMAKE_CURRENT_BINARY_DIR}/activeds.def)
 
 add_library(activeds SHARED ${SOURCE})
index 2b45834..2b79ca3 100644 (file)
@@ -1,28 +1,28 @@
 3 stdcall ADsGetObject(wstr ptr ptr)
 4 stdcall ADsBuildEnumerator(ptr ptr)
-5 stub ADsFreeEnumerator
+5 stdcall ADsFreeEnumerator(ptr)
 6 stdcall ADsEnumerateNext(ptr long ptr ptr)
-7 stub ADsBuildVarArrayStr
-8 stub ADsBuildVarArrayInt
+7 stdcall ADsBuildVarArrayStr(ptr long ptr)
+8 stdcall ADsBuildVarArrayInt(ptr long ptr)
 9 stdcall ADsOpenObject(wstr wstr wstr long ptr ptr)
-12 stub ADsSetLastError
+12 stdcall ADsSetLastError(long str str)
 13 stdcall ADsGetLastError(ptr ptr long ptr long)
-14 stub AllocADsMem
+14 stdcall AllocADsMem(long)
 15 stdcall FreeADsMem(ptr)
-16 stub ReallocADsMem
-17 stub AllocADsStr
-18 stub FreeADsStr
-19 stub ReallocADsStr
-20 stub ADsEncodeBinaryData
-21 stub PropVariantToAdsType
-22 stub AdsTypeToPropVariant
-23 stub AdsFreeAdsValues
-24 stub ADsDecodeBinaryData
-25 stub AdsTypeToPropVariant2
-26 stub PropVariantToAdsType2
-27 stub ConvertSecDescriptorToVariant
-28 stub ConvertSecurityDescriptorToSecDes
-#@ stub DllCanUnloadNow
-#@ stub DllGetClassObject
-#@ stub DllRegisterServer
-#@ stub DllUnregisterServer
+16 stdcall ReallocADsMem(ptr long long)
+17 stdcall AllocADsStr(ptr)
+18 stdcall FreeADsStr(ptr)
+19 stdcall ReallocADsStr(ptr ptr)
+20 stdcall ADsEncodeBinaryData(ptr long ptr)
+21 stdcall PropVariantToAdsType(ptr long ptr ptr)
+22 stdcall AdsTypeToPropVariant(ptr long ptr)
+23 stdcall AdsFreeAdsValues(ptr long)
+24 stdcall ADsDecodeBinaryData(wstr ptr long)
+25 cdecl AdsTypeToPropVariant2() # unknown prototype
+26 cdecl PropVariantToAdsType2() # unknown prototype
+27 cdecl ConvertSecDescriptorToVariant() # unknown prototype
+28 cdecl ConvertSecurityDescriptorToSecDes() # unknown prototype
+#@ stdcall -private DllCanUnloadNow()
+#@ stdcall -private DllGetClassObject(ptr ptr ptr)
+#@ stdcall -private DllRegisterServer()
+#@ stdcall -private DllUnregisterServer()
diff --git a/dll/win32/activeds/stubs.c b/dll/win32/activeds/stubs.c
new file mode 100644 (file)
index 0000000..fbcb114
--- /dev/null
@@ -0,0 +1,176 @@
+#include <windows.h>
+#include <iads.h>
+#include <stubs.h>
+
+// FIXME: should go to iads.h
+typedef struct _adsvalue *PADSVALUE;
+
+HRESULT
+WINAPI
+ADsFreeEnumerator(
+    IN IEnumVARIANT *pEnumVariant)
+{
+       UNIMPLEMENTED;
+       return E_NOTIMPL;
+}
+
+HRESULT
+WINAPI
+ADsBuildVarArrayStr(
+    LPWSTR *lppPathNames,
+    DWORD dwPathNames,
+    VARIANT *pVar)
+{
+       UNIMPLEMENTED;
+       return E_NOTIMPL;
+}
+
+HRESULT
+WINAPI
+ADsBuildVarArrayInt(
+    LPDWORD lpdwObjectTypes,
+    DWORD dwObjectTypes,
+    VARIANT *pVar)
+{
+       UNIMPLEMENTED;
+       return E_NOTIMPL;
+}
+
+VOID
+WINAPI
+ADsSetLastError(
+    IN DWORD dwErr,
+    IN LPCWSTR pszError,
+    IN LPCWSTR pszProvider)
+
+{
+       UNIMPLEMENTED;
+}
+
+LPVOID
+WINAPI
+AllocADsMem(DWORD cb)
+{
+       UNIMPLEMENTED;
+       return NULL;
+}
+
+LPVOID
+WINAPI
+ReallocADsMem(
+   LPVOID pOldMem,
+   DWORD cbOld,
+   DWORD cbNew)
+{
+       UNIMPLEMENTED;
+       return NULL;
+}
+
+LPWSTR
+WINAPI
+AllocADsStr(LPCWSTR pStr)
+{
+       UNIMPLEMENTED;
+       return NULL;
+}
+
+BOOL
+WINAPI
+FreeADsStr(IN LPWSTR pStr)
+{
+       UNIMPLEMENTED;
+       return FALSE;
+}
+
+BOOL
+WINAPI
+ReallocADsStr(
+   IN OUT LPWSTR *ppStr,
+   IN LPWSTR pStr)
+{
+       UNIMPLEMENTED;
+       return FALSE;
+}
+
+HRESULT
+WINAPI
+ADsEncodeBinaryData(
+   PBYTE pbSrcData,
+   DWORD dwSrcLen,
+   OUT LPWSTR *ppszDestData)
+{
+       UNIMPLEMENTED;
+       return E_NOTIMPL;
+}
+
+HRESULT
+WINAPI
+PropVariantToAdsType(
+    VARIANT * pVariant,
+    DWORD dwNumVariant,
+    PADSVALUE *ppAdsValues,
+    PDWORD pdwNumValues)
+{
+       UNIMPLEMENTED;
+       return E_NOTIMPL;
+}
+
+HRESULT
+WINAPI
+AdsTypeToPropVariant(
+    PADSVALUE pAdsValues,
+    DWORD dwNumValues,
+    VARIANT * pVariant)
+{
+       UNIMPLEMENTED;
+       return E_NOTIMPL;
+}
+
+void
+WINAPI
+AdsFreeAdsValues(
+    PADSVALUE pAdsValues,
+    DWORD dwNumValues)
+{
+       UNIMPLEMENTED;
+}
+
+HRESULT
+WINAPI
+ADsDecodeBinaryData(
+   LPCWSTR szSrcData,
+   PBYTE  *ppbDestData,
+   ULONG  *pdwDestLen)
+{
+       UNIMPLEMENTED;
+       return E_NOTIMPL;
+}
+
+int AdsTypeToPropVariant2()
+{
+       DPRINT1("WARNING: calling stub AdsTypeToPropVariant2()\n");
+       __wine_spec_unimplemented_stub("activeds.dll", __FUNCTION__);
+       return 0;
+}
+
+int PropVariantToAdsType2()
+{
+       DPRINT1("WARNING: calling stub PropVariantToAdsType2()\n");
+       __wine_spec_unimplemented_stub("activeds.dll", __FUNCTION__);
+       return 0;
+}
+
+int ConvertSecDescriptorToVariant()
+{
+       DPRINT1("WARNING: calling stub ConvertSecDescriptorToVariant()\n");
+       __wine_spec_unimplemented_stub("activeds.dll", __FUNCTION__);
+       return 0;
+}
+
+int ConvertSecurityDescriptorToSecDes()
+{
+       DPRINT1("WARNING: calling stub ConvertSecurityDescriptorToSecDes()\n");
+       __wine_spec_unimplemented_stub("activeds.dll", __FUNCTION__);
+       return 0;
+}
+