devpcdmsyncobjhand.h

来自「《Windows CE 权威指南》(作者:(美)CHRIS MUENCH」· C头文件 代码 · 共 47 行

H
47
字号
//
//	File:
//	=====
//	DevPCDMSyncObjHand.h: Header file
//
//	Description:
//	============
//	Implements the IReplObjHandler interface. Serializes/de-serializes
//	items from and to the desktop.
//

#pragma once

#define MAXDATASIZE	8000

class CPCDMSyncFolder;
class CPCDMSyncObjHandler : public IReplObjHandler
{
protected:
	long	   m_cRef;
    PREPLSETUP m_pWriteSetup;
	PREPLSETUP m_pReadSetup;
	CPCDMSyncFolder *m_pFolder;
	LPBYTE      m_pReadPacket;

private:
	virtual ~CPCDMSyncObjHandler();

public:
    CPCDMSyncObjHandler(CPCDMSyncFolder *pFolder);

    //======== IUnknown methods ==============//

    STDMETHODIMP_(ULONG)    AddRef(void);
    STDMETHODIMP_(ULONG)    Release(void);
    STDMETHODIMP            QueryInterface(const IID& iid, void **ppv);
    
    //======== IReplObjHandler methods ==========//

    STDMETHODIMP Setup(PREPLSETUP pSetup);
    STDMETHODIMP Reset(PREPLSETUP pSetup);

    STDMETHODIMP GetPacket(LPBYTE *lppbData,  DWORD *pcbData, DWORD cbRecommend);
    STDMETHODIMP SetPacket(LPBYTE lpbData, DWORD cbData);
    STDMETHODIMP DeleteObj(PREPLSETUP pSetup);
};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?