Source code of Windows XP (NT5)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

48 lines
1.2 KiB

//-------------------------------------------------------------------
// This is the class for the length-value protocol
// Author: Sergey Ivanov
// Log:
// 11/10/99 - implemented
//-------------------------------------------------------------------
#ifndef __LV_PROTOCOL__
#define __LV_PROTOCOL__
#include "protocol.h"
#pragma PAGEDCODE
class CDevice;
class CLVProtocol : public CProtocol
{
public:
NTSTATUS m_Status;
SAFE_DESTRUCTORS();
protected:
CLVProtocol(){};
public:
CLVProtocol(CDevice* device) : CProtocol(device)
{
TRACE("\nLength-Value protocol was created...\n");
m_Status = STATUS_SUCCESS;
};
virtual ~CLVProtocol()
{
TRACE("Length-Value protocol %8.8lX was destroied...\n",this);
};
virtual VOID dispose()
{
self_delete();
};
virtual VOID set_WTR_Delay(LONG Delay);
virtual ULONG get_WTR_Delay();
virtual VOID set_Default_WTR_Delay();
virtual LONG get_Power_WTR_Delay();
virtual ULONG getCardState();
virtual NTSTATUS writeAndWait(PUCHAR pRequest,ULONG RequestLength,PUCHAR pReply,ULONG* pReplyLength);
virtual NTSTATUS readAndWait(PUCHAR pRequest,ULONG RequestLength,PUCHAR pReply,ULONG* pReplyLength);
};
#endif