#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "twain.h"
#include "wine/list.h"
Go to the source code of this file.
|
TW_UINT16 | TWAIN_CloseDS (pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN |
|
TW_UINT16 | TWAIN_IdentityGetDefault (pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN |
|
TW_UINT16 | TWAIN_IdentityGetFirst (pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN |
|
TW_UINT16 | TWAIN_IdentityGetNext (pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN |
|
TW_UINT16 | TWAIN_OpenDS (pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN |
|
TW_UINT16 | TWAIN_UserSelect (pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN |
|
TW_UINT16 | TWAIN_CloseDSM (pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN |
|
TW_UINT16 | TWAIN_OpenDSM (pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN |
|
TW_UINT16 | TWAIN_GetDSMStatus (pTW_IDENTITY pOrigin, TW_MEMREF pData) DECLSPEC_HIDDEN |
|
TW_UINT16 | TWAIN_ControlNull (pTW_IDENTITY pOrigin, pTW_IDENTITY pDest, activeDS *pSource, TW_UINT16 MSG, TW_MEMREF pData) DECLSPEC_HIDDEN |
|
TW_UINT16 | TWAIN_ProcessEvent (pTW_IDENTITY pOrigin, activeDS *pSource, TW_MEMREF pData) DECLSPEC_HIDDEN |
|
◆ activeDS
◆ TWAIN_CloseDS()
Definition at line 200 of file dsm_ctrl.c.
201{
205
206 TRACE (
"DG_CONTROL/DAT_IDENTITY/MSG_CLOSEDS\n");
207
210 break;
211 prevDS = currentDS;
212 }
213 if (!currentDS) {
216 }
218
219
220
221 if (prevDS)
222 prevDS->next = currentDS->
next;
223 else
228 else
230 return twRC;
231}
#define HeapFree(x, y, z)
struct tagActiveDS * next
TW_UINT32 TW_UINT16 TW_UINT16 TW_MEMREF pData
struct TW_IDENTITY * pTW_IDENTITY
Referenced by TWAIN_SourceManagerHandler().
◆ TWAIN_CloseDSM()
Definition at line 455 of file dsm_ctrl.c.
456{
458
459 TRACE(
"DG_CONTROL/DAT_PARENT/MSG_CLOSEDSM\n");
460
462 {
464
465
466 while (currentDS !=
NULL)
467 {
468 nextDS = currentDS->
next;
471 currentDS = nextDS;
472 }
477 } else {
480 }
481}
static TW_UINT16 DSM_initialized
Referenced by TWAIN_SourceManagerHandler().
◆ TWAIN_ControlNull()
Definition at line 120 of file dsm_ctrl.c.
121{
123
124 TRACE (
"DG_CONTROL/DAT_NULL MSG=%i\n",
MSG);
125
129 {
132 }
133
136 {
139 }
140
143
144
145
146
147
148
157
159}
static void list_add_tail(struct list_entry *head, struct list_entry *entry)
static UINT event_message
struct list pending_messages
TW_UINT32 TW_UINT16 TW_UINT16 MSG
BOOL WINAPI PostMessageW(_In_opt_ HWND, _In_ UINT, _In_ WPARAM, _In_ LPARAM)
Referenced by DSM_Entry().
◆ TWAIN_GetDSMStatus()
◆ TWAIN_IdentityGetDefault()
Definition at line 234 of file dsm_ctrl.c.
235{
237
238 TRACE(
"DG_CONTROL/DAT_IDENTITY/MSG_GETDEFAULT\n");
243 *pSourceIdentity =
devices[0].identity;
246}
static struct all_devices * devices
static void twain_autodetect(void)
Referenced by TWAIN_SourceManagerHandler().
◆ TWAIN_IdentityGetFirst()
◆ TWAIN_IdentityGetNext()
◆ TWAIN_OpenDS()
Definition at line 280 of file dsm_ctrl.c.
281{
285 const char *modname =
NULL;
287
288 TRACE(
"DG_CONTROL/DAT_IDENTITY/MSG_OPENDS\n");
291 FIXME(
"seq error\n");
294 }
300 }
301
303
306 break;
309 }
310
311
313 if (!newSource) {
315 FIXME(
"Out of memory.\n");
317 }
320 ERR(
"Failed to load TWAIN Source %s\n",
debugstr_a(modname));
324 }
327
334 }
335
345}
int strcmp(const char *String1, const char *String2)
char * strcpy(char *DstString, const char *SrcString)
static void list_init(struct list_entry *head)
#define GetProcAddress(x, y)
HINSTANCE WINAPI DECLSPEC_HOTPATCH LoadLibraryA(LPCSTR lpLibFileName)
static TW_UINT32 DSM_sourceId
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
static PEXPLICIT_ACCESSW *static HMODULE hmod
#define TWCC_OPERATIONERROR
Referenced by TWAIN_SourceManagerHandler().
◆ TWAIN_OpenDSM()
Definition at line 484 of file dsm_ctrl.c.
485{
487
488 TRACE(
"DG_CONTROL/DAT_PARENT/MSG_OPENDSM\n");
495 } else {
496
499 }
501 return twRC;
502}
UINT WINAPI RegisterWindowMessageA(_In_ LPCSTR)
Referenced by TWAIN_SourceManagerHandler().
◆ TWAIN_ProcessEvent()
Definition at line 162 of file dsm_ctrl.c.
163{
167
169
171 {
173 {
176 event->TWMessage =
message->msg;
179 }
180 else
183 }
184
186 {
191 {
193 }
194 }
195
197}
static void list_remove(struct list_entry *entry)
static int list_empty(struct list_entry *head)
BOOL WINAPI PeekMessageW(_Out_ LPMSG, _In_opt_ HWND, _In_ UINT, _In_ UINT, _In_ UINT)
Referenced by DSM_Entry().
◆ TWAIN_UserSelect()
Definition at line 428 of file dsm_ctrl.c.
429{
432
433 TRACE(
"DG_CONTROL/DAT_IDENTITY/MSG_USERSELECT SupportedGroups=0x%x ProductName=%s\n",
435
437
440
443 {
447 }
448
452}
static INT_PTR CALLBACK userselect_dlgproc(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam)
const char int int int static __inline const char * wine_dbgstr_a(const char *s)
TW_UINT32 SupportedGroups
BOOL WINAPI IsWindow(_In_opt_ HWND)
#define MAKEINTRESOURCEW(i)
INT_PTR WINAPI DialogBoxParamW(_In_opt_ HINSTANCE, _In_ LPCWSTR, _In_opt_ HWND, _In_opt_ DLGPROC, _In_ LPARAM)
Referenced by TWAIN_SourceManagerHandler().
◆ DECLSPEC_HIDDEN