/**@@@+++@@@@******************************************************************
**
** Microsoft Windows Media
** Copyright (C) Microsoft Corporation. All rights reserved.
**
***@@@---@@@@******************************************************************
*/
#include "tipatch.h"
         
unsigned long DRM_CHARS2LONG(unsigned char *cc)
{   
    unsigned long rtnVal;
    
    rtnVal   =  ((unsigned long)cc[0])       |
               (((unsigned long)cc[1])<< 8)  |
               (((unsigned long)cc[2])<<16)  |
               (((unsigned long)cc[3])<<24)  ;
    return rtnVal;         
}

void DRM_LONG2CHARS(long val, unsigned char *aa)
{   
    aa[0] =  (unsigned char)(val      & 0xFF);
    aa[1] = (unsigned char)((val>> 8) & 0xFF);
    aa[2] = (unsigned char)((val>>16) & 0xFF);
    aa[3] = (unsigned char)((val>>24) & 0xFF);
}

