Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
Relevant replacement documents include:
TWAIN Helper Glue/TWDefs.h
// =========================================================================== |
// TWDefs.c TWAIN 1.9 ©1991-2001 TWAIN Working Group |
// =========================================================================== |
// |
// General definitions. |
#ifndef _TWDEFS_ |
#define _TWDEFS_ |
#pragma once |
/* States */ |
#define STATE_PRETW 10 |
#define STATE_DSMLOADED 20 |
#define STATE_DSMOPEN 30 |
#define STATE_DSSELECTED 34 |
#define STATE_DSLOADED 35 |
#define STATE_DSOPEN 40 |
#define STATE_DSENABLED 50 |
#define STATE_DSDISABLED 55 |
#define STATE_XFERREADY 60 |
#define STATE_XFER 70 |
#define STATE_DSCLOSED 80 |
#define STATE_DSMCLOSEDUNLOADED 90 |
/* Miscellaneous Constants */ |
#ifndef OKAY |
#define OKAY 0 |
#endif |
#ifndef TWERR |
#define TWERR -1 |
#endif |
#ifndef TRUE |
#define TRUE 1 |
#endif |
#ifndef FALSE |
#define FALSE 0 |
#endif |
#ifndef ON |
#define ON 1 |
#endif |
#ifndef OFF |
#define OFF 0 |
#endif |
#ifndef NULL |
#define NULL 0L |
#endif |
#define DSMR_type 'DSMR' |
#define DSRC_type 'DSRC' // File type for old 68k data sources |
#define DSrc_type 'DSrc' // File type for new PowerPC data sources |
#endif |
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-07-10