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.
18 * @brief Constants, enumerations, and datastructures for the DRM service.
21 #ifndef __TADC_DRM_TYPES_H__
22 #define __TADC_DRM_TYPES_H__
28 #define IF_ERROR_GOTO(error) \
29 if (FAILED(HRESULT_FROM_WIN32(error))) { \
30 nResult = ERRORMSG(error, NULL); \
33 #define IF_TRUE_GOTO(cond, error) \
41 typedef const char *LPCTSTR;
42 typedef unsigned char *LPBYTE;
46 typedef LPCTSTR LPCTSTR;
47 typedef LPCTSTR LPCSTR;
49 //typedef HFile HANDLE;
50 #define ERROR_INVALID_DATA 13L
51 #define ERROR_INSUFFICIENT_BUFFER 122L // dderror
52 //#define CopyMemory AcMemcpy
53 #define INVALID_HOBJ NULL
56 #endif //__TADC_DRM_TYPES_H__