crypt32: Fix a failing test in Vista.
[wine] / dlls / dciman32 / dciman_main.c
index af8cfa1..2287c78 100644 (file)
  *
  * You should have received a copy of the GNU Lesser General Public
  * License along with this library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
  */
 
-#include <stdio.h>
+#include <stdarg.h>
+#include <stdio.h> 
 
+#include "windef.h"
 #include "winbase.h"
 #include "winerror.h"
+#include "dciman.h"
 #include "wine/debug.h"
 
+WINE_DEFAULT_DEBUG_CHANNEL(dciman);
+
+/***********************************************************************
+ *           DllEntryPoint (DCIMAN32.@)
+ *
+ * DCIMAN32 initialisation routine.
+ */
+BOOL WINAPI DllMain( HINSTANCE inst, DWORD reason, LPVOID reserved )
+{
+    if (reason == DLL_PROCESS_ATTACH) DisableThreadLibraryCalls( inst );
+    return TRUE;
+}
+
+
 /***********************************************************************
  *             DCIOpenProvider (DCIMAN32.@)
  */
 HDC WINAPI
 DCIOpenProvider(void) {
     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
-    return 0;
+    return NULL;
 }
 
 /***********************************************************************
@@ -42,3 +59,14 @@ DCICloseProvider(HDC hdc) {
     SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
     return;
 }
+
+/**************************************************************************
+ *                 DCICreatePrimary (DCIMAN32.@)
+ */
+int WINAPI 
+DCICreatePrimary(HDC hdc, LPDCISURFACEINFO *pDciSurfaceInfo)
+{
+    SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
+    FIXME("%p %p\n", hdc, pDciSurfaceInfo);
+    return DCI_FAIL_UNSUPPORTED;
+}