[5828] | 1 | /* $Id: dciman32.cpp,v 1.2 2001-05-29 20:25:27 sandervl Exp $ */
|
---|
[4519] | 2 | /*
|
---|
| 3 | * DCIMAN32 Stub code
|
---|
| 4 | *
|
---|
| 5 | * Copyright 2000 Sander van Leeuwen (sandervl@xs4all.nl)
|
---|
| 6 | *
|
---|
| 7 | * Project Odin Software License can be found in LICENSE.TXT
|
---|
| 8 | *
|
---|
| 9 | */
|
---|
| 10 | #include <os2win.h>
|
---|
| 11 | #include <stdlib.h>
|
---|
| 12 | #include <stdarg.h>
|
---|
| 13 | #include <string.h>
|
---|
| 14 | #include <odinwrap.h>
|
---|
| 15 | #include <misc.h>
|
---|
| 16 |
|
---|
[5828] | 17 | #include <dciman.h>
|
---|
[4519] | 18 |
|
---|
| 19 | //******************************************************************************
|
---|
| 20 | //******************************************************************************
|
---|
| 21 | HDC WIN32API DCIOpenProvider()
|
---|
| 22 | {
|
---|
| 23 | dprintf(("DCIOpenProvider"));
|
---|
| 24 | return CreateDCA("DISPLAY", 0, 0, 0);
|
---|
| 25 | }
|
---|
| 26 | //******************************************************************************
|
---|
| 27 | //******************************************************************************
|
---|
[5828] | 28 | void WIN32API DCICloseProvider(HDC hdc)
|
---|
[4519] | 29 | {
|
---|
| 30 | dprintf(("DCICloseProvide %x", hdc));
|
---|
[5828] | 31 | DeleteDC(hdc);
|
---|
[4519] | 32 | }
|
---|
| 33 | //******************************************************************************
|
---|
| 34 | //******************************************************************************
|
---|
[5828] | 35 | int WINAPI DCIEnum(HDC hdc, LPRECT lprDst, LPRECT lprSrc, LPVOID lpFnCallback,
|
---|
| 36 | LPVOID lpContext)
|
---|
[4519] | 37 | {
|
---|
[5828] | 38 | dprintf(("DCIEnum %x %x %x %x %x NOT IMPLEMENTED", hdc, lprDst, lprSrc, lpFnCallback, lpContext));
|
---|
| 39 | return DCI_FAIL_UNSUPPORTED; //NT returns -4
|
---|
[4519] | 40 | }
|
---|
| 41 | //******************************************************************************
|
---|
| 42 | //******************************************************************************
|
---|
[5828] | 43 | int WINAPI DCICreatePrimary(HDC hdc, LPDCISURFACEINFO *lplpSurface)
|
---|
[4519] | 44 | {
|
---|
[5828] | 45 | dprintf(("DCICreatePrimary %x %x NOT IMPLEMENTED", hdc, lplpSurface));
|
---|
| 46 | return DCI_FAIL_UNSUPPORTED;
|
---|
[4519] | 47 | }
|
---|
| 48 | //******************************************************************************
|
---|
| 49 | //******************************************************************************
|
---|
[5828] | 50 | int WINAPI DCICreateOffscreen(HDC hdc, DWORD dwCompression, DWORD dwRedMask,
|
---|
| 51 | DWORD dwGreenMask, DWORD dwBlueMask, DWORD dwWidth,
|
---|
| 52 | DWORD dwHeight, DWORD dwDCICaps, DWORD dwBitCount,
|
---|
| 53 | LPDCIOFFSCREEN *lplpSurface)
|
---|
[4519] | 54 | {
|
---|
[5828] | 55 | dprintf(("DCICreateOffScreen %x %x %x %x %x %x %x %x %x %x NOT IMPLEMENTED", hdc, dwCompression, dwRedMask, dwGreenMask, dwBlueMask, dwWidth, dwHeight, dwDCICaps, dwBitCount, lplpSurface));
|
---|
| 56 | return DCI_FAIL_UNSUPPORTED;
|
---|
[4519] | 57 | }
|
---|
| 58 | //******************************************************************************
|
---|
| 59 | //******************************************************************************
|
---|
[5828] | 60 | int WINAPI DCICreateOverlay(HDC hdc, LPVOID lpOffscreenSurf,
|
---|
| 61 | LPDCIOVERLAY *lplpSurface)
|
---|
[4519] | 62 | {
|
---|
[5828] | 63 | dprintf(("DCICreateOverlay %x %x %x NOT IMPLEMENTED", hdc, lpOffscreenSurf, lplpSurface));
|
---|
| 64 | return DCI_FAIL_UNSUPPORTED;
|
---|
[4519] | 65 | }
|
---|
| 66 | //******************************************************************************
|
---|
| 67 | //******************************************************************************
|
---|
[5828] | 68 | DCIRVAL WINAPI DCIBeginAccess(LPDCISURFACEINFO pdci, int x, int y, int dx, int dy)
|
---|
[4519] | 69 | {
|
---|
[5828] | 70 | dprintf(("DCIBeginAccess %x %x %x %x %x NOT IMPLEMENTED", pdci, x, y, dx, dy));
|
---|
| 71 | return DCI_FAIL_UNSUPPORTED;
|
---|
[4519] | 72 | }
|
---|
| 73 | //******************************************************************************
|
---|
| 74 | //******************************************************************************
|
---|
[5828] | 75 | void WINAPI DCIEndAccess(LPDCISURFACEINFO pdci)
|
---|
[4519] | 76 | {
|
---|
[5828] | 77 | dprintf(("DCIEndAccess %x NOT IMPLEMENTED", pdci));
|
---|
| 78 | return;
|
---|
[4519] | 79 | }
|
---|
| 80 | //******************************************************************************
|
---|
| 81 | //******************************************************************************
|
---|
[5828] | 82 | void WINAPI DCIDestroy(LPDCISURFACEINFO pdci)
|
---|
[4519] | 83 | {
|
---|
[5828] | 84 | dprintf(("DCIDestroy %x NOT IMPLEMENTED", pdci));
|
---|
| 85 | return;
|
---|
[4519] | 86 | }
|
---|
| 87 | //******************************************************************************
|
---|
| 88 | //******************************************************************************
|
---|
[5828] | 89 | DCIRVAL WINAPI DCIDraw(LPDCIOFFSCREEN pdci)
|
---|
[4519] | 90 | {
|
---|
[5828] | 91 | dprintf(("DCIDraw %x NOT IMPLEMENTED", pdci));
|
---|
| 92 | return DCI_FAIL_UNSUPPORTED;
|
---|
[4519] | 93 | }
|
---|
| 94 | //******************************************************************************
|
---|
| 95 | //******************************************************************************
|
---|
[5828] | 96 | DCIRVAL WINAPI DCISetClipList(LPDCIOFFSCREEN pdci, LPRGNDATA prd)
|
---|
[4519] | 97 | {
|
---|
[5828] | 98 | dprintf(("DCISetClipList %x %x NOT IMPLEMENTED", pdci, prd));
|
---|
| 99 | return DCI_FAIL_UNSUPPORTED;
|
---|
[4519] | 100 | }
|
---|
| 101 | //******************************************************************************
|
---|
| 102 | //******************************************************************************
|
---|
[5828] | 103 | DCIRVAL WINAPI DCISetDestination(LPDCIOFFSCREEN pdci, LPRECT dst, LPRECT src)
|
---|
[4519] | 104 | {
|
---|
[5828] | 105 | dprintf(("DCISetDestination %x %x %x NOT IMPLEMENTED", pdci, dst, src));
|
---|
| 106 | return DCI_FAIL_UNSUPPORTED;
|
---|
[4519] | 107 | }
|
---|
| 108 | //******************************************************************************
|
---|
| 109 | //******************************************************************************
|
---|
[5828] | 110 | DCIRVAL WINAPI DCISetSrcDestClip(LPDCIOFFSCREEN pdci, LPRECT srcrc, LPRECT destrc, LPRGNDATA prd )
|
---|
[4519] | 111 | {
|
---|
[5828] | 112 | dprintf(("DCISetSrcDestClip %x %x %x %x NOT IMPLEMENTED", pdci, srcrc, destrc, prd));
|
---|
| 113 | return DCI_FAIL_UNSUPPORTED;
|
---|
[4519] | 114 | }
|
---|
| 115 | //******************************************************************************
|
---|
| 116 | //******************************************************************************
|
---|
[5828] | 117 | HWINWATCH WINAPI WinWatchOpen(HWND hwnd)
|
---|
[4519] | 118 | {
|
---|
[5828] | 119 | dprintf(("WinWatchOpen %x NOT IMPLEMENTED", hwnd));
|
---|
[4519] | 120 | return 0;
|
---|
| 121 | }
|
---|
| 122 | //******************************************************************************
|
---|
| 123 | //******************************************************************************
|
---|
[5828] | 124 | void WINAPI WinWatchClose(HWINWATCH hWW)
|
---|
[4519] | 125 | {
|
---|
[5828] | 126 | dprintf(("WinWatchClose %x NOT IMPLEMENTED", hWW));
|
---|
| 127 | return;
|
---|
[4519] | 128 | }
|
---|
| 129 | //******************************************************************************
|
---|
| 130 | //******************************************************************************
|
---|
[5828] | 131 | UINT WINAPI WinWatchGetClipList(HWINWATCH hWW, LPRECT prc, UINT size, LPRGNDATA prd)
|
---|
[4519] | 132 | {
|
---|
[5828] | 133 | dprintf(("WinWatchGetClipList %x %x %x %xNOT IMPLEMENTED", hWW, prc, size, prd));
|
---|
[4519] | 134 | return 0;
|
---|
| 135 | }
|
---|
| 136 | //******************************************************************************
|
---|
| 137 | //******************************************************************************
|
---|
[5828] | 138 | BOOL WINAPI WinWatchDidStatusChange(HWINWATCH hWW)
|
---|
[4519] | 139 | {
|
---|
[5828] | 140 | dprintf(("WinWatchDidStatusChange %x NOT IMPLEMENTED", hWW));
|
---|
[4519] | 141 | return 0;
|
---|
| 142 | }
|
---|
| 143 | //******************************************************************************
|
---|
| 144 | //******************************************************************************
|
---|
[5828] | 145 | BOOL WINAPI WinWatchNotify(HWINWATCH hWW, WINWATCHNOTIFYPROC NotifyCallback,
|
---|
| 146 | LPARAM NotifyParam )
|
---|
[4519] | 147 | {
|
---|
[5828] | 148 | dprintf(("WinWatchNotify %x NOT IMPLEMENTED", hWW, NotifyCallback, NotifyParam));
|
---|
[4519] | 149 | return 0;
|
---|
| 150 | }
|
---|
| 151 | //******************************************************************************
|
---|
| 152 | //******************************************************************************
|
---|
[5828] | 153 | DWORD WINAPI GetWindowRegionData(HWND hwnd, DWORD size, LPRGNDATA prd)
|
---|
[4519] | 154 | {
|
---|
[5828] | 155 | dprintf(("GetWindowRegionData %x %x %x NOT IMPLEMENTED", hwnd, size, prd));
|
---|
[4519] | 156 | return 0;
|
---|
| 157 | }
|
---|
| 158 | //******************************************************************************
|
---|
| 159 | //******************************************************************************
|
---|
[5828] | 160 | DWORD WINAPI GetDCRegionData(HDC hdc, DWORD size, LPRGNDATA prd)
|
---|
[4519] | 161 | {
|
---|
[5828] | 162 | dprintf(("GetDCRegionData %x %x %x NOT IMPLEMENTED", hdc, size, prd));
|
---|
[4519] | 163 | return 0;
|
---|
| 164 | }
|
---|
| 165 | //******************************************************************************
|
---|
| 166 | //******************************************************************************
|
---|
| 167 |
|
---|