[SHELL/EXPERIMENTS]
[reactos.git] / dll / win32 / activeds / activeds_main.c
index 2fa4ec7..bb05cad 100644 (file)
  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include <stdarg.h>
+#include "precomp.h"
 
-#define COBJMACROS
-#define NONAMELESSUNION
-
-#include "windef.h"
-#include "winbase.h"
-#include "winuser.h"
-
-#include "objbase.h"
-#include "iads.h"
-#include "adshlp.h"
-
-#include "wine/unicode.h"
-#include "wine/debug.h"
+#include <iads.h>
 
+#include <wine/debug.h>
 WINE_DEFAULT_DEBUG_CHANNEL(activeds);
 
 /*****************************************************
@@ -75,6 +64,15 @@ HRESULT WINAPI ADsBuildEnumerator(IADsContainer * pADsContainer, IEnumVARIANT**
     return E_NOTIMPL;
 }
 
+/*****************************************************
+ * ADsFreeEnumerator     [ACTIVEDS.5]
+ */
+HRESULT WINAPI ADsFreeEnumerator(IEnumVARIANT* pEnumVariant)
+{
+    FIXME("(%p)!stub\n",pEnumVariant);
+    return E_NOTIMPL;
+}
+
 /*****************************************************
  * ADsEnumerateNext     [ACTIVEDS.6]
  */
@@ -84,16 +82,42 @@ HRESULT WINAPI ADsEnumerateNext(IEnumVARIANT* pEnumVariant, ULONG cElements, VAR
     return E_NOTIMPL;
 }
 
+/*****************************************************
+ * ADsBuildVarArrayStr     [ACTIVEDS.7]
+ */
+HRESULT WINAPI ADsBuildVarArrayStr(LPWSTR *lppPathNames, DWORD dwPathNames, VARIANT* pvar)
+{
+    FIXME("(%p, %d, %p)!stub\n",*lppPathNames, dwPathNames, pvar);
+    return E_NOTIMPL;
+}
+
+/*****************************************************
+ * ADsBuildVarArrayInt     [ACTIVEDS.8]
+ */
+HRESULT WINAPI ADsBuildVarArrayInt(LPDWORD lpdwObjectTypes, DWORD dwObjectTypes, VARIANT* pvar)
+{
+    FIXME("(%p, %d, %p)!stub\n",lpdwObjectTypes, dwObjectTypes, pvar);
+    return E_NOTIMPL;
+}
+
 /*****************************************************
  * ADsOpenObject     [ACTIVEDS.9]
  */
 HRESULT WINAPI ADsOpenObject(LPCWSTR lpszPathName, LPCWSTR lpszUserName, LPCWSTR lpszPassword, DWORD dwReserved, REFIID riid, VOID** ppObject)
 {
-    FIXME("(%s,%s,%u,%p,%p)!stub\n", debugstr_w(lpszPathName),
+    FIXME("(%s,%s,%u,%s,%p)!stub\n", debugstr_w(lpszPathName),
           debugstr_w(lpszUserName), dwReserved, debugstr_guid(riid), ppObject);
     return E_NOTIMPL;
 }
 
+/*****************************************************
+ * ADsSetLastError    [ACTIVEDS.12]
+ */
+VOID WINAPI ADsSetLastError(DWORD dwErr, LPWSTR pszError, LPWSTR pszProvider)
+{
+    FIXME("(%d,%p,%p)!stub\n", dwErr, pszError, pszProvider);
+}
+
 /*****************************************************
  * ADsGetLastError    [ACTIVEDS.13]
  */
@@ -103,6 +127,15 @@ HRESULT WINAPI ADsGetLastError(LPDWORD perror, LPWSTR errorbuf, DWORD errorbufle
     return E_NOTIMPL;
 }
 
+/*****************************************************
+ * AllocADsMem             [ACTIVEDS.14]
+ */
+LPVOID WINAPI AllocADsMem(DWORD cb)
+{
+    FIXME("(%d)!stub\n",cb);
+    return NULL;
+}
+
 /*****************************************************
  * FreeADsMem             [ACTIVEDS.15]
  */
@@ -111,3 +144,48 @@ BOOL WINAPI FreeADsMem(LPVOID pMem)
     FIXME("(%p)!stub\n",pMem);
     return FALSE;
 }
+
+/*****************************************************
+ * ReallocADsMem             [ACTIVEDS.16]
+ */
+LPVOID WINAPI ReallocADsMem(LPVOID pOldMem, DWORD cbOld, DWORD cbNew)
+{
+    FIXME("(%p,%d,%d)!stub\n", pOldMem, cbOld, cbNew);
+    return NULL;
+}
+
+/*****************************************************
+ * AllocADsStr             [ACTIVEDS.17]
+ */
+LPWSTR WINAPI AllocADsStr(LPWSTR pStr)
+{
+    FIXME("(%p)!stub\n",pStr);
+    return NULL;
+}
+
+/*****************************************************
+ * FreeADsStr             [ACTIVEDS.18]
+ */
+BOOL WINAPI FreeADsStr(LPWSTR pStr)
+{
+    FIXME("(%p)!stub\n",pStr);
+    return FALSE;
+}
+
+/*****************************************************
+ * ReallocADsStr             [ACTIVEDS.19]
+ */
+BOOL WINAPI ReallocADsStr(LPWSTR *ppStr, LPWSTR pStr)
+{
+    FIXME("(%p,%p)!stub\n",*ppStr, pStr);
+    return FALSE;
+}
+
+/*****************************************************
+ * ADsEncodeBinaryData     [ACTIVEDS.20]
+ */
+HRESULT WINAPI ADsEncodeBinaryData(PBYTE pbSrcData, DWORD dwSrcLen, LPWSTR *ppszDestData)
+{
+    FIXME("(%p,%d,%p)!stub\n", pbSrcData, dwSrcLen, *ppszDestData);
+    return E_NOTIMPL;
+}