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

#ifndef _ExprEval_Test_h
#define _ExprEval_Test_h

const DRM_CONST_STRING g_Test = CREATE_DRM_STRING(L"!exists(secstate.deleted) && (app.minseclevel >= 500?1:(secstate.drmreason=3;0))");

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

const DRM_BYTE rgbGlobalPassword[] = { 0xc,0xc,0xc,0xc,0xc,0xc,0xc,0xc,0xc,0xc,0xc,0xc,0xc,0xc,0xc,0xc };
const DRM_BYTE rgbPassword[] = {0xa,0xa,0xa,0xa,0xa,0xa,0xa,0xa,0xa,0xa,0xa,0xa,0xa,0xa,0xa,0xa,0xa,0xa,0xa,0xa};

/*const DRM_WCHAR g_wcszDRM_VERSION_STRING[] =     L"2.0.0.0"; */
/*const DRM_BYTE g_rgbSecStoreGlobalName[DRM_LID_SIZE] = "global.secstate";*/

#define VER_STRING_MAX_LEN 20
static DRM_WCHAR wszBBVerString[VER_STRING_MAX_LEN];

static DRM_RESULT dr = DRM_SUCCESS;
DRM_BOOL f;
static DRM_LICEVAL_CONTEXT Context = {0};    
DRM_CONST_STRING wszString;
static DRM_CONST_STRING wszKID;
static DRM_WORD wSize = 0;  
static DRM_BYTE bBBVer[VERSION_LEN];
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 DRM_LICSTOREENUM_CONTEXT oLicStoreEnumContext;
static EXPR_EVAL_CONTEXT pExprEvalContext = {0};

static DRM_DWORD appSec;
static DRM_DWORD appcd_subject;

#endif
