3 * Copyright (c) 2000-2007 UMTS Software Lab, Mobile Communication Division,
\r
4 * Telecommunication Network Business, Samsung Electronics, Inc.
\r
5 * All rights reserved.
\r
7 * This software is the confidential and proprietary information
\r
8 * of Samsung Electronics, Inc. ("Confidential Information"). You
\r
9 * shall not disclose such Confidential Information and shall use
\r
10 * it only in accordance with the terms of the license agreement
\r
11 * you entered into with Samsung Electronics.
\r
16 * @brief This file includes definitions of constants,
\r
17 * enumerations, and datastructures for the Inka DRM service.
\r
18 # @author Jihyun Lee(ezhyun.lee@samsung.com)
\r
19 # @author Donghyun Yoo(marku.yoo@samsung.com)
\r
23 #ifndef INKA_DRM_TYPES_H
\r
24 #define INKA_DRM_TYPES_H
\r
27 //#include "FileMgr.h"
\r
32 #define IF_ERROR_GOTO( error ) if( FAILED( HRESULT_FROM_WIN32( error ) ) ) { nResult = ERRORMSG( error, NULL ); goto finish; }
\r
33 #define IF_TRUE_GOTO( cond, error ) if( cond ) { nResult = -1; goto finish; }
\r
35 #if defined(_WIN32) || defined(_WIN64)
\r
36 #define snprintf _snprintf
\r
37 #define vsnprintf _vsnprintf
\r
38 #define strcasecmp _stricmp
\r
39 #define strncasecmp _strnicmp
\r
43 typedef void* LPVOID;
\r
44 typedef const char* LPCTSTR;
\r
45 typedef unsigned char* LPBYTE;
\r
47 typedef char* LPTSTR;
\r
48 typedef LPTSTR LPSTR;
\r
49 typedef LPCTSTR LPCTSTR;
\r
50 typedef LPCTSTR LPCSTR;
\r
52 #define DWORD unsigned long
\r
53 #define LPBYTE unsigned char*
\r
54 #define BYTE unsigned char
\r
55 #define UINT unsigned int
\r
56 #define ULONG unsigned long
\r
58 #define INT64 long long
\r
67 //typedef HFile HANDLE;
\r
68 #define ERROR_INVALID_DATA 13L
\r
69 #define ERROR_INSUFFICIENT_BUFFER 122L // dderror
\r
70 //#define CopyMemory AcMemcpy
\r
71 #define INVALID_HOBJ NULL
\r
76 #endif //INKA_DRM_TYPES_H
\r