2 * Copyright (c) 2000-2015 Samsung Electronics Co., Ltd.
4 * Licensed under the Flora License, Version 1.1 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://floralicense.org/license/
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 * @brief This file includes definitions of constants,
20 * enumerations, and datastructures for the DRM service.
24 #ifndef __TADC_DRM_TYPES_H__
25 #define __TADC_DRM_TYPES_H__
31 #define IF_ERROR_GOTO( error ) if( FAILED( HRESULT_FROM_WIN32( error ) ) ) { nResult = ERRORMSG( error, NULL ); goto finish; }
32 #define IF_TRUE_GOTO( cond, error ) if( cond ) { nResult = -1; goto finish; }
36 typedef const char* LPCTSTR;
37 typedef unsigned char* LPBYTE;
41 typedef LPCTSTR LPCTSTR;
42 typedef LPCTSTR LPCSTR;
44 //typedef HFile HANDLE;
45 #define ERROR_INVALID_DATA 13L
46 #define ERROR_INSUFFICIENT_BUFFER 122L // dderror
47 //#define CopyMemory AcMemcpy
48 #define INVALID_HOBJ NULL
51 #endif //__TADC_DRM_TYPES_H__