Go to the documentation of this file.00001 #pragma once
00002
00003
00004
00005 #if !defined(__midl)
00006 #define __$compname_props \
00007 __type_has_adt_prop(compname,nullterminated) \
00008 __type_has_adt_prop(compname,valid_schars) \
00009 __type_has_adt_prop(compname,correct_len) \
00010 __nullterminated
00011 #if defined(UNICODE) || defined(_UNICODE)
00012 #define __$TCHAR unsigned short
00013 #else
00014 #define __$TCHAR char
00015 #endif
00016 typedef __$compname_props char* ValidCompNameA;
00017 typedef __$compname_props unsigned short* ValidCompNameW;
00018 typedef __$compname_props const unsigned short* ConstValidCompNameW;
00019 typedef __$compname_props __$TCHAR* SAL_ValidCompNameT;
00020 typedef __$compname_props const __$TCHAR* SAL_ConstValidCompNameT;
00021 #undef __$compname_props
00022 #undef __$TCHAR
00023 #endif
00024
00025
00026
00027
00028 #if (_MSC_VER >= 1000) && !defined(__midl) && defined(_PREFAST_)
00029 #ifdef __cplusplus
00030 extern "C" {
00031 #endif
00032 void __inline __nothrow __SAL_ValidCompNameA(__out_has_type_adt_props(ValidCompNameA) const void *expr) { expr;}
00033 void __inline __nothrow __SAL_ValidCompNameW(__out_has_type_adt_props(ValidCompNameW) const void *expr) { expr;}
00034 #ifdef __cplusplus
00035 }
00036 #endif
00037 #define __assume_ValidCompNameA(expr) __SAL_ValidCompNameA(expr)
00038 #define __assume_ValidCompNameW(expr) __SAL_ValidCompNameW(expr)
00039 #else
00040 #define __assume_ValidCompNameA(expr)
00041 #define __assume_ValidCompNameW(expr)
00042 #endif
00043
00044