////////////////////////////////////////////////////////////////////////// // 结构体的定义; #ifndef __STDEF_20150808__ #define __STDEF_20150808__ ////////////////////////////////////////////////////////////////////////// // 共享目录信息表NetShareInfo; typedef struct _ST_ImgShareInfo_ { BOOL bEnable; // 是否启用; TCHAR szBranchId[MAX_PATH]; // 域名; TCHAR szShareDirectory[MAX_PATH]; // 共享的目录; BYTE byMinCapacity; // 最小; BYTE byMaxCapacity; // 最大; BYTE byImgType; // 相片类型; BYTE byPriority; // 优先级; _ST_ImgShareInfo_() { memset(szBranchId,0,sizeof(TCHAR)*MAX_PATH); memset(szShareDirectory,0,sizeof(TCHAR)*MAX_PATH); bEnable = FALSE; byMinCapacity = 0; byMaxCapacity = 0; byImgType = 0; byPriority = 0; } _ST_ImgShareInfo_(const _ST_ImgShareInfo_ &another) { bEnable = another.bEnable; byMinCapacity = another.byMinCapacity; byMaxCapacity = another.byMaxCapacity; byPriority = another.byPriority; byImgType = another.byImgType; _stprintf_s(szBranchId,_T("%s"),another.szBranchId); _stprintf_s(szShareDirectory,_T("%s"),another.szShareDirectory); } _ST_ImgShareInfo_& operator=(const _ST_ImgShareInfo_ &another) { if ( this == &another ) { return *this; } bEnable = another.bEnable; byMinCapacity = another.byMinCapacity; byMaxCapacity = another.byMaxCapacity; byPriority = another.byPriority; byImgType = another.byImgType; _stprintf_s(szBranchId,_T("%s"),another.szBranchId); _stprintf_s(szShareDirectory,_T("%s"),another.szShareDirectory); return *this; } }ImgShareInfo,*pImgShareInfo; #endif