194 references to WbemNative
System.ServiceModel (194)
System\ServiceModel\Administration\WbemException.cs (12)
13
internal WbemException(
WbemNative
.WbemStatus hr)
28
internal static void Throw(
WbemNative
.WbemStatus hr)
32
case
WbemNative
.WbemStatus.WBEM_E_NOT_FOUND:
34
case
WbemNative
.WbemStatus.WBEM_E_INVALID_PARAMETER:
36
case
WbemNative
.WbemStatus.WBEM_E_NOT_SUPPORTED:
38
case
WbemNative
.WbemStatus.WBEM_E_INVALID_METHOD:
49
Throw((
WbemNative
.WbemStatus)hr);
57
: base(
WbemNative
.WbemStatus.WBEM_E_NOT_FOUND)
65
: base((int)
WbemNative
.WbemStatus.WBEM_E_INVALID_PARAMETER, name)
70
: base(
WbemNative
.WbemStatus.WBEM_E_INVALID_PARAMETER)
78
: base(
WbemNative
.WbemStatus.WBEM_E_NOT_SUPPORTED)
86
: base(
WbemNative
.WbemStatus.WBEM_E_INVALID_METHOD)
System\ServiceModel\Administration\WbemProvider.cs (182)
20
class WbemProvider :
WbemNative
.IWbemProviderInit,
WbemNative
.IWbemServices
23
WbemNative
.IWbemDecoupledRegistrar wbemRegistrar = null;
24
WbemNative
.IWbemServices wbemServices = null;
56
this.wbemRegistrar = (
WbemNative
.IWbemDecoupledRegistrar)new
WbemNative
.WbemDecoupledRegistrar();
59
if ((int)
WbemNative
.WbemStatus.WBEM_S_NO_ERROR != hr)
76
if ((int)
WbemNative
.WbemStatus.WBEM_S_NO_ERROR != hr)
122
int
WbemNative
.IWbemProviderInit.Initialize(
127
WbemNative
.IWbemServices wbemServices,
128
WbemNative
.IWbemContext wbemContext,
129
WbemNative
.IWbemProviderInitSink wbemSink
133
return (int)
WbemNative
.WbemStatus.WBEM_E_INVALID_PARAMETER;
138
wbemSink.SetStatus((int)
WbemNative
.tag_WBEM_EXTRA_RETURN_CODES.WBEM_S_INITIALIZED, 0);
148
wbemSink.SetStatus((int)
WbemNative
.WbemStatus.WBEM_E_FAILED, 0);
149
return (int)
WbemNative
.WbemStatus.WBEM_E_FAILED;
159
return (int)
WbemNative
.WbemStatus.WBEM_S_NO_ERROR;
166
this.wbemServices = (
WbemNative
.IWbemServices)Marshal.GetObjectForIUnknown(pUnk);
170
int
WbemNative
.IWbemServices.OpenNamespace(
173
WbemNative
.IWbemContext wbemContext,
174
ref
WbemNative
.IWbemServices wbemServices,
178
return (int)
WbemNative
.WbemStatus.WBEM_E_NOT_SUPPORTED;
181
int
WbemNative
.IWbemServices.CancelAsyncCall(
182
WbemNative
.IWbemObjectSink wbemSink
185
return (int)
WbemNative
.WbemStatus.WBEM_E_NOT_SUPPORTED;
188
int
WbemNative
.IWbemServices.QueryObjectSink(
190
out
WbemNative
.IWbemObjectSink wbemSink
194
return (int)
WbemNative
.WbemStatus.WBEM_E_NOT_SUPPORTED;
197
int
WbemNative
.IWbemServices.GetObject(
200
WbemNative
.IWbemContext wbemContext,
201
ref
WbemNative
.IWbemClassObject wbemObject,
205
return (int)
WbemNative
.WbemStatus.WBEM_E_NOT_SUPPORTED;
208
int
WbemNative
.IWbemServices.GetObjectAsync(
211
WbemNative
.IWbemContext wbemContext,
212
WbemNative
.IWbemObjectSink wbemSink)
215
return (int)
WbemNative
.WbemStatus.WBEM_E_INVALID_PARAMETER;
232
(int)
WbemNative
.tag_WBEM_STATUS_TYPE.WBEM_STATUS_COMPLETE,
233
(int)
WbemNative
.WbemStatus.WBEM_S_NO_ERROR,
241
wbemSink.SetStatus((int)
WbemNative
.tag_WBEM_STATUS_TYPE.WBEM_STATUS_COMPLETE,
250
wbemSink.SetStatus((int)
WbemNative
.tag_WBEM_STATUS_TYPE.WBEM_STATUS_COMPLETE,
251
(int)
WbemNative
.WbemStatus.WBEM_E_FAILED, null, null);
252
return (int)
WbemNative
.WbemStatus.WBEM_E_FAILED;
259
return (int)
WbemNative
.WbemStatus.WBEM_S_NO_ERROR;
262
int
WbemNative
.IWbemServices.PutClass(
263
WbemNative
.IWbemClassObject wbemObject,
265
WbemNative
.IWbemContext wbemContext,
268
return (int)
WbemNative
.WbemStatus.WBEM_E_NOT_SUPPORTED;
271
int
WbemNative
.IWbemServices.PutClassAsync(
272
WbemNative
.IWbemClassObject wbemObject,
274
WbemNative
.IWbemContext wbemContext,
275
WbemNative
.IWbemObjectSink wbemSink)
277
return (int)
WbemNative
.WbemStatus.WBEM_E_NOT_SUPPORTED;
280
int
WbemNative
.IWbemServices.DeleteClass(
283
WbemNative
.IWbemContext wbemContext,
286
return (int)
WbemNative
.WbemStatus.WBEM_E_NOT_SUPPORTED;
289
int
WbemNative
.IWbemServices.DeleteClassAsync(
292
WbemNative
.IWbemContext wbemContext,
293
WbemNative
.IWbemObjectSink wbemSink)
295
return (int)
WbemNative
.WbemStatus.WBEM_E_NOT_SUPPORTED;
298
int
WbemNative
.IWbemServices.CreateClassEnum(
301
WbemNative
.IWbemContext wbemContext,
302
out
WbemNative
.IEnumWbemClassObject wbemEnum)
305
return (int)
WbemNative
.WbemStatus.WBEM_E_NOT_SUPPORTED;
308
int
WbemNative
.IWbemServices.CreateClassEnumAsync(
311
WbemNative
.IWbemContext wbemContext,
312
WbemNative
.IWbemObjectSink wbemSink)
314
return (int)
WbemNative
.WbemStatus.WBEM_E_NOT_SUPPORTED;
317
int
WbemNative
.IWbemServices.PutInstance(
318
WbemNative
.IWbemClassObject pInst,
320
WbemNative
.IWbemContext wbemContext,
323
return (int)
WbemNative
.WbemStatus.WBEM_E_NOT_SUPPORTED;
326
int
WbemNative
.IWbemServices.PutInstanceAsync(
327
WbemNative
.IWbemClassObject wbemObject,
329
WbemNative
.IWbemContext wbemContext,
330
WbemNative
.IWbemObjectSink wbemSink
334
return (int)
WbemNative
.WbemStatus.WBEM_E_INVALID_PARAMETER;
355
WbemException.ThrowIfFail(wbemSink.SetStatus((int)
WbemNative
.tag_WBEM_STATUS_TYPE.WBEM_STATUS_COMPLETE,
356
(int)
WbemNative
.WbemStatus.WBEM_S_NO_ERROR, null, null));
362
wbemSink.SetStatus((int)
WbemNative
.tag_WBEM_STATUS_TYPE.WBEM_STATUS_COMPLETE,
371
wbemSink.SetStatus((int)
WbemNative
.tag_WBEM_STATUS_TYPE.WBEM_STATUS_COMPLETE,
372
(int)
WbemNative
.WbemStatus.WBEM_E_FAILED, null, null);
373
return (int)
WbemNative
.WbemStatus.WBEM_E_FAILED;
380
return (int)
WbemNative
.WbemStatus.WBEM_S_NO_ERROR;
383
int
WbemNative
.IWbemServices.DeleteInstance(
386
WbemNative
.IWbemContext wbemContext,
389
return (int)
WbemNative
.WbemStatus.WBEM_E_NOT_SUPPORTED;
392
int
WbemNative
.IWbemServices.DeleteInstanceAsync(
395
WbemNative
.IWbemContext wbemContext,
396
WbemNative
.IWbemObjectSink wbemSink)
399
return (int)
WbemNative
.WbemStatus.WBEM_E_INVALID_PARAMETER;
413
(int)
WbemNative
.tag_WBEM_STATUS_TYPE.WBEM_STATUS_COMPLETE,
414
(int)
WbemNative
.WbemStatus.WBEM_S_NO_ERROR, null, null));
422
wbemSink.SetStatus((int)
WbemNative
.tag_WBEM_STATUS_TYPE.WBEM_STATUS_COMPLETE,
433
wbemSink.SetStatus((int)
WbemNative
.tag_WBEM_STATUS_TYPE.WBEM_STATUS_COMPLETE,
434
(int)
WbemNative
.WbemStatus.WBEM_E_FAILED, null, null);
435
return (int)
WbemNative
.WbemStatus.WBEM_E_FAILED;
441
return (int)
WbemNative
.WbemStatus.WBEM_S_NO_ERROR;
444
int
WbemNative
.IWbemServices.CreateInstanceEnum(
447
WbemNative
.IWbemContext wbemContext,
448
out
WbemNative
.IEnumWbemClassObject wbemEnum
452
return (int)
WbemNative
.WbemStatus.WBEM_E_NOT_SUPPORTED;
455
int
WbemNative
.IWbemServices.CreateInstanceEnumAsync(
458
WbemNative
.IWbemContext wbemContext,
459
WbemNative
.IWbemObjectSink wbemSink)
462
return (int)
WbemNative
.WbemStatus.WBEM_E_INVALID_PARAMETER;
471
(int)
WbemNative
.tag_WBEM_STATUS_TYPE.WBEM_STATUS_COMPLETE,
472
(int)
WbemNative
.WbemStatus.WBEM_S_NO_ERROR,
478
wbemSink.SetStatus((int)
WbemNative
.tag_WBEM_STATUS_TYPE.WBEM_STATUS_COMPLETE,
495
wbemSink.SetStatus((int)
WbemNative
.tag_WBEM_STATUS_TYPE.WBEM_STATUS_COMPLETE,
496
(int)
WbemNative
.WbemStatus.WBEM_E_FAILED, null, null);
497
return (int)
WbemNative
.WbemStatus.WBEM_E_FAILED;
503
return (int)
WbemNative
.WbemStatus.WBEM_S_NO_ERROR;
506
int
WbemNative
.IWbemServices.ExecQuery(
510
WbemNative
.IWbemContext wbemContext,
511
out
WbemNative
.IEnumWbemClassObject wbemEnum)
514
return (int)
WbemNative
.WbemStatus.WBEM_E_NOT_SUPPORTED;
517
int
WbemNative
.IWbemServices.ExecQueryAsync(
521
WbemNative
.IWbemContext wbemContext,
522
WbemNative
.IWbemObjectSink wbemSink)
525
return (int)
WbemNative
.WbemStatus.WBEM_E_INVALID_PARAMETER;
536
(int)
WbemNative
.tag_WBEM_STATUS_TYPE.WBEM_STATUS_COMPLETE,
537
(int)
WbemNative
.WbemStatus.WBEM_S_NO_ERROR, null, null));
545
wbemSink.SetStatus((int)
WbemNative
.tag_WBEM_STATUS_TYPE.WBEM_STATUS_COMPLETE,
556
wbemSink.SetStatus((int)
WbemNative
.tag_WBEM_STATUS_TYPE.WBEM_STATUS_COMPLETE,
557
(int)
WbemNative
.WbemStatus.WBEM_E_FAILED, null, null);
558
return (int)
WbemNative
.WbemStatus.WBEM_E_FAILED;
564
return (int)
WbemNative
.WbemStatus.WBEM_S_NO_ERROR;
567
int
WbemNative
.IWbemServices.ExecNotificationQuery(
571
WbemNative
.IWbemContext wbemContext,
572
out
WbemNative
.IEnumWbemClassObject wbemEnum)
575
return (int)
WbemNative
.WbemStatus.WBEM_E_NOT_SUPPORTED;
578
int
WbemNative
.IWbemServices.ExecNotificationQueryAsync(
582
WbemNative
.IWbemContext wbemContext,
583
WbemNative
.IWbemObjectSink wbemSink)
585
return (int)
WbemNative
.WbemStatus.WBEM_E_NOT_SUPPORTED;
587
int
WbemNative
.IWbemServices.ExecMethod(
591
WbemNative
.IWbemContext wbemContext,
592
WbemNative
.IWbemClassObject wbemInParams,
593
ref
WbemNative
.IWbemClassObject wbemOutParams,
596
return (int)
WbemNative
.WbemStatus.WBEM_E_NOT_SUPPORTED;
599
int
WbemNative
.IWbemServices.ExecMethodAsync(
603
WbemNative
.IWbemContext wbemContext,
604
WbemNative
.IWbemClassObject wbemInParams,
605
WbemNative
.IWbemObjectSink wbemSink)
608
return (int)
WbemNative
.WbemStatus.WBEM_E_INVALID_PARAMETER;
610
int result = (int)
WbemNative
.WbemStatus.WBEM_S_NO_ERROR;
622
result = (int)
WbemNative
.WbemStatus.WBEM_E_NOT_FOUND;
626
(int)
WbemNative
.tag_WBEM_STATUS_TYPE.WBEM_STATUS_COMPLETE,
638
wbemSink.SetStatus((int)
WbemNative
.tag_WBEM_STATUS_TYPE.WBEM_STATUS_COMPLETE,
648
result = (int)
WbemNative
.WbemStatus.WBEM_E_FAILED;
649
wbemSink.SetStatus((int)
WbemNative
.tag_WBEM_STATUS_TYPE.WBEM_STATUS_COMPLETE,
676
new
WbemNative
.IWbemClassObject[] { ((InstanceContext)inst).WbemObject }));
689
internal
WbemNative
.IWbemClassObject WbemObject
714
WbemNative
.IWbemClassObject wbemInParms;
715
WbemNative
.IWbemClassObject wbemOutParms;
718
internal MethodContext(ParameterContext parms, string methodName,
WbemNative
.IWbemClassObject wbemInParms, WbemInstance wbemInstance)
725
WbemNative
.IWbemClassObject wbemObject = null;
729
WbemNative
.IWbemClassObject wbemMethod = null;
752
new
WbemNative
.IWbemClassObject[] { this.wbemOutParms }));
797
WbemException.Throw(
WbemNative
.WbemStatus.WBEM_E_INVALID_OBJECT_PATH);
827
WbemException.Throw(
WbemNative
.WbemStatus.WBEM_E_INVALID_QUERY);
838
WbemNative
.IWbemServices wbemServices;
839
WbemNative
.IWbemContext wbemContext;
840
WbemNative
.IWbemObjectSink wbemSink;
844
WbemNative
.IWbemServices wbemServices,
845
WbemNative
.IWbemContext wbemContext,
846
WbemNative
.IWbemObjectSink wbemSink)
858
internal
WbemNative
.IWbemServices WbemServices
862
internal
WbemNative
.IWbemContext WbemContext
866
internal
WbemNative
.IWbemObjectSink WbemSink
876
WbemNative
.IWbemClassObject wbemObject;
900
WbemNative
.IWbemClassObject tempObj = null;
912
internal WbemInstance(ParameterContext parms,
WbemNative
.IWbemClassObject wbemObject)
918
internal
WbemNative
.IWbemClassObject WbemObject
932
WbemNative
.CIMTYPE type = 0;
954
WbemNative
.IWbemClassObject[] insts = new
WbemNative
.IWbemClassObject[objs.GetLength(0)];
965
type =
WbemNative
.CIMTYPE.CIM_SINT64;
969
if ((int)
WbemNative
.WbemStatus.WBEM_E_TYPE_MISMATCH == hResult || (int)
WbemNative
.WbemStatus.WBEM_E_NOT_FOUND == hResult)
973
if ((int)
WbemNative
.WbemStatus.WBEM_E_TYPE_MISMATCH == hResult)
1007
new
WbemNative
.IWbemClassObject[] { this.wbemObject }));