/**@@@+++@@@@******************************************************************
**
** Microsoft Windows Media
** Copyright (C) Microsoft Corporation. All rights reserved.
**
***@@@---@@@@******************************************************************
*/


/* Secure store variable accessor/mutator functions.  These will be given to the Expression evaluator via it's context
   structure.  The implementation lives in exprvariable.c */

extern DRM_RESULT DRM_API 
GlobalSetVariable(DRM_CONST_STRING* pStringToken, TOKEN* pNewValue, TOKEN* pResult, DRM_VOID* pvOpaqueData);
extern DRM_RESULT DRM_API 
GlobalGetVariable(DRM_CONST_STRING* pStringToken, TOKEN* pResult, DRM_VOID* pvOpaqueData);

#define VER_STRING_MAX_LEN 20
static DRM_WCHAR wszBBVerString[VER_STRING_MAX_LEN];
DRM_RESULT dr = DRM_SUCCESS;
DRM_LICEVAL_CONTEXT Context = {0};    
static DRM_CONST_STRING wszKID;
DRM_WORD wSize = 0;  
DRM_BYTE bBBVer[VERSION_LEN];
static DRM_BOOL fEvalResult = FALSE;
static DRM_BB_CONTEXT oBBContext;

static DRM_BYTE rgbDRMLicense[DRM_MAX_LICENSESIZE];
static DRM_DWORD cbKID;
static DRM_BYTE rgbKID[20];
static DRM_LICSTORE_CONTEXT oLicStoreContext;
static EXPR_EVAL_CONTEXT pExprEvalContext = {0};

static DRM_DWORD appSec;
static DRM_DWORD appcd_subject;

