newntui/activex/msdevintegrator/src/msdevintegratorctl.cpp
//----------------------------------------------------------------------------------------
// Call this METHOD if yoi want to send command to the integrator.
//----------------------------------------------------------------------------------------
Call this METHOD if yoi want to send command to the integrator.
Call this METHOD if yoi want to send command to the integrator .
void CMSDEVIntegratorCtrl::Command(LPCTSTR string)  {
unsigned char byte;
	 m_IntegratorServerConnection.Send(signature,4);
     byte=COMMAND_OPCODE;
	 m_IntegratorServerConnection.Send(&byte,1);
	 int len = strlen(string);
	 byte = len & 255;
	 m_IntegratorServerConnection.Send(&byte,1);
	 byte = (len>>8) & 255;
	 m_IntegratorServerConnection.Send(&byte,1);
	 byte = (len>>16) & 255;
	 m_IntegratorServerConnection.Send(&byte,1);
	 byte = (len>>24) & 255;
	 m_IntegratorServerConnection.Send(&byte,1);
	 m_IntegratorServerConnection.Send(string,len);
}
void CMSDEVIntegratorCtrl :: Command ( LPCTSTR string ) { unsigned char byte ; m_IntegratorServerConnection . Send ( signature , 4 ) ; byte = COMMAND_OPCODE ; m_IntegratorServerConnection . Send ( & byte , 1 ) ; int len = strlen ( string ) ; byte = len & 255 ; m_IntegratorServerConnection . Send ( & byte , 1 ) ; byte = ( len >> 8 ) & 255 ; m_IntegratorServerConnection . Send ( & byte , 1 ) ; byte = ( len >> 16 ) & 255 ; m_IntegratorServerConnection . Send ( & byte , 1 ) ; byte = ( len >> 24 ) & 255 ; m_IntegratorServerConnection . Send ( & byte , 1 ) ; m_IntegratorServerConnection . Send ( string , len ) ; }
Call this METHOD if yoi want to send command to the integrator.
Call this METHOD if yoi want to send command to the integrator .