Some prototypes added in twain and win-snap

This commit is contained in:
Victor Oliveira 2011-12-18 19:55:31 -02:00
parent 54f46cea00
commit c15c3f4828
2 changed files with 14 additions and 1 deletions

View file

@ -211,6 +211,7 @@ char *twainError(int);
char *currentTwainError(pTW_SESSION);
int getImage(pTW_SESSION);
int loadTwainLibrary(pTW_SESSION);
int unloadTwainLibrary(pTW_SESSION twSession);
int openDSM(pTW_SESSION);
int selectDS(pTW_SESSION);
int selectDefaultDS(pTW_SESSION);
@ -220,8 +221,9 @@ int disableDS(pTW_SESSION);
int closeDS(pTW_SESSION);
int closeDSM(pTW_SESSION);
void cancelPendingTransfers(pTW_SESSION);
int scanImage (void);
TW_FIX32 FloatToFix32(float);
TW_FIX32 FloatToFIX32(float);
float FIX32ToFloat(TW_FIX32);
void processTwainMessage(TW_UINT16 message, pTW_SESSION twSession);
@ -230,5 +232,10 @@ pTW_SESSION newSession(pTW_IDENTITY);
void registerWindowHandle(pTW_SESSION, TW_HANDLE);
void registerTransferCallbacks(pTW_SESSION, pTXFR_CB_FUNCS, void *);
void setClientData(pTW_SESSION session, void *clientData);
pTW_SESSION initializeTwain(void);
void LogLastWinError(void);
BOOL InitApplication(HINSTANCE hInstance);
BOOL InitInstance(HINSTANCE hInstance, int nCmdShow, pTW_SESSION twSession);
#endif /* _TW_FUNC_H */

View file

@ -74,6 +74,12 @@
#define APP_NAME PLUG_IN_NAME
#define WM_DOCAPTURE (WM_USER + 100)
/* Prototypes */
void setCaptureType(int capType);
BOOL InitApplication(HINSTANCE hInstance);
BOOL InitInstance(HINSTANCE hInstance, int nCmdShow);
int winsnapWinMain(void);
/* File variables */
static int captureType;
static char buffer[512];