1// scanDlg.h : header file
2//
3
4#if !defined(AFX_FileSharing_H__INCLUDED_)
5#define AFX_FileSharing_H__INCLUDED_
6
7#ifndef __AFXWIN_H__
8	#error include 'stdafx.h' before including this file for PCH
9#endif
10#ifdef IDC_STATIC
11#undef IDC_STATIC
12#endif
13#include "resource.h"
14#include "ScanPan.h"
15#include "FileSharingDlg.h"
16
17#ifndef _BETALK_H_
18#include "beCompat.h"
19#include "betalk.h"
20#endif
21
22
23#define iswhite(c)				((c)==' ' || (c)=='\t')
24
25#define BT_MAX_FILE_SHARES		128
26#define BT_MAX_PRINTER_SHARES	16
27
28typedef struct fileShare
29{
30	char path[B_PATH_NAME_LENGTH];
31	char name[B_FILE_NAME_LENGTH];
32	bool used;
33	bool readOnly;
34	bool followLinks;
35	bt_user_rights *rights;
36	int security;
37	struct fileShare *next;
38} bt_fileShare_t;
39
40HFONT InitializeControlFont(char *fontName, int fontWeight, int fontSize);
41int GetSelectedListItem(CListCtrl *pListCtrl);
42void PrintString(FILE *fp, const char *str);
43
44/////////////////////////////////////////////////////////////////////////////
45// CFileSharingApp
46// See FileSharing.cpp for the implementation of this class
47//
48
49class CFileSharingApp : public CWinApp
50{
51public:
52	CFileSharingApp();
53
54// Overrides
55	// ClassWizard generated virtual function overrides
56	//{{AFX_VIRTUAL(CFileSharingApp)
57	//}}AFX_VIRTUAL
58
59	//{{AFX_MSG(CFileSharingApp)
60		// NOTE - the ClassWizard will add and remove member functions here.
61		//    DO NOT EDIT what you see in these blocks of generated code !
62	//}}AFX_MSG
63	DECLARE_MESSAGE_MAP()
64
65	CScanPanel	m_Control;
66	virtual BOOL InitInstance();
67	virtual int ExitInstance();
68};
69
70/////////////////////////////////////////////////////////////////////////////
71
72#endif // !defined(AFX_SCANDLG_H__INCLUDED_)
73