Changeset 988 for vendor/current/source4/lib/wmi
- Timestamp:
- Nov 24, 2016, 1:14:11 PM (9 years ago)
- Location:
- vendor/current/source4/lib/wmi
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
vendor/current/source4/lib/wmi/tools/wmis.c
r414 r988 103 103 struct GUID clsid; 104 104 struct GUID iid; 105 WERROR result, coresult; 105 WERROR result; 106 HRESULT coresult; 106 107 struct IUnknown **mqi; 107 108 struct IWbemLevel1Login *pL; -
vendor/current/source4/lib/wmi/wmi_wrap.c
r414 r988 187 187 188 188 if (SWIG_ConvertPtr(obj,vptr,ty.flags) != -1) { 189 / / success code189 /* success code */ 190 190 } else { 191 / /fail code191 /*fail code */ 192 192 } 193 193 … … 196 196 int res = SWIG_ConvertPtr(obj,vptr,ty.flags); 197 197 if (SWIG_IsOK(res)) { 198 / / success code198 /* success code */ 199 199 } else { 200 / / fail code200 /* fail code */ 201 201 } 202 202 … … 206 206 int res = SWIG_ConvertPtr(obj,(void **)(&ptr),ty.flags); 207 207 if (SWIG_IsOK(res)) { 208 / / success code208 /* success code */ 209 209 if (SWIG_IsNewObj(res) { 210 210 ... … … 214 214 } 215 215 } else { 216 / / fail code216 /* fail code */ 217 217 } 218 218 … … 240 240 241 241 Finally, if the SWIG_CASTRANK_MODE is enabled, the result code 242 allows to return the 'cast rank', for example, if you have this242 allows one to return the 'cast rank', for example, if you have this 243 243 244 244 int food(double) … … 247 247 and you call 248 248 249 food(1) / / cast rank '1' (1 -> 1.0)250 fooi(1) / / cast rank '0'249 food(1) /* cast rank '1' (1 -> 1.0) */ 250 fooi(1) /* cast rank '0' */ 251 251 252 252 just use the SWIG_AddCast()/SWIG_CheckState() -
vendor/current/source4/lib/wmi/wmicore.c
r414 r988 58 58 struct GUID clsid; 59 59 struct GUID iid; 60 WERROR result, coresult; 60 WERROR result; 61 HRESULT coresult; 61 62 struct IUnknown **mqi; 62 63 struct IWbemLevel1Login *pL;
Note:
See TracChangeset
for help on using the changeset viewer.