-
Notifications
You must be signed in to change notification settings - Fork 2
/
v0.go
11028 lines (10488 loc) · 372 KB
/
v0.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
package imsadminbasew
import (
"context"
"fmt"
"strings"
"unicode/utf16"
dcerpc "github.com/oiweiwei/go-msrpc/dcerpc"
errors "github.com/oiweiwei/go-msrpc/dcerpc/errors"
uuid "github.com/oiweiwei/go-msrpc/midl/uuid"
dcom "github.com/oiweiwei/go-msrpc/msrpc/dcom"
imsa "github.com/oiweiwei/go-msrpc/msrpc/dcom/imsa"
iunknown "github.com/oiweiwei/go-msrpc/msrpc/dcom/iunknown/v0"
dtyp "github.com/oiweiwei/go-msrpc/msrpc/dtyp"
ndr "github.com/oiweiwei/go-msrpc/ndr"
)
var (
_ = context.Background
_ = fmt.Errorf
_ = utf16.Encode
_ = strings.TrimPrefix
_ = ndr.ZeroString
_ = (*uuid.UUID)(nil)
_ = (*dcerpc.SyntaxID)(nil)
_ = (*errors.Error)(nil)
_ = dcom.GoPackage
_ = iunknown.GoPackage
_ = imsa.GoPackage
_ = dtyp.GoPackage
)
var (
// import guard
GoPackage = "dcom/imsa"
)
var (
// IMSAdminBaseW interface identifier 70b51430-b6ca-11d0-b9b9-00a0c922e750
IMSAdminBaseWIID = &dcom.IID{Data1: 0x70b51430, Data2: 0xb6ca, Data3: 0x11d0, Data4: []byte{0xb9, 0xb9, 0x00, 0xa0, 0xc9, 0x22, 0xe7, 0x50}}
// Syntax UUID
IMSAdminBaseWSyntaxUUID = &uuid.UUID{TimeLow: 0x70b51430, TimeMid: 0xb6ca, TimeHiAndVersion: 0x11d0, ClockSeqHiAndReserved: 0xb9, ClockSeqLow: 0xb9, Node: [6]uint8{0x0, 0xa0, 0xc9, 0x22, 0xe7, 0x50}}
// Syntax ID
IMSAdminBaseWSyntaxV0_0 = &dcerpc.SyntaxID{IfUUID: IMSAdminBaseWSyntaxUUID, IfVersionMajor: 0, IfVersionMinor: 0}
)
// IMSAdminBaseW interface.
type IMSAdminBaseWClient interface {
// IUnknown retrieval method.
Unknown() iunknown.UnknownClient
// The AddKey method creates a node and adds it to the metabase as a subnode of an existing
// node at the specified path.
//
// Return Values: A signed 32-bit value that indicates return status. If the method
// returns a negative value, it failed. If the 12-bit facility code (bits 16–27) is
// set to 0x007, the value contains a Win32 error code in the lower 16 bits. Zero or
// positive values indicate success, with the lower 16 bits in positive nonzero values
// containing warnings or flags defined in the method implementation. For more information
// about Win32 error codes and HRESULT values, see [MS-ERREF].
//
// +---------------------------------+--------------------------------------------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +---------------------------------+--------------------------------------------------------+
// +---------------------------------+--------------------------------------------------------+
// | 0x00000000 S_OK | The call was successful. |
// +---------------------------------+--------------------------------------------------------+
// | 0x80070005 E_ACCESSDENIED | General access denied error. |
// +---------------------------------+--------------------------------------------------------+
// | 0x80070006 ERROR_INVALID_HANDLE | The handle is invalid. |
// +---------------------------------+--------------------------------------------------------+
// | 0x80070057 E_INVALIDARG | One or more arguments are invalid. |
// +---------------------------------+--------------------------------------------------------+
// | 0x800700B7 ERROR_ALREADY_EXISTS | Cannot create a file because that file already exists. |
// +---------------------------------+--------------------------------------------------------+
//
// The opnum field value for this method is 3.
AddKey(context.Context, *AddKeyRequest, ...dcerpc.CallOption) (*AddKeyResponse, error)
// The DeleteKey method deletes a node and all its data from the metabase. All of the
// subnodes are recursively deleted.
//
// Return Values: A signed 32-bit value that indicates return status. If the method
// returns a negative value, it failed. If the 12-bit facility code (bits 16–27) is
// set to 0x007, the value contains a Win32 error code in the lower 16 bits. Zero or
// positive values indicate success, with the lower 16 bits in positive nonzero values
// containing warnings or flags defined in the method implementation. For more information
// about Win32 error codes and HRESULT values, see [MS-ERREF].
//
// +---------------------------------+--------------------------------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +---------------------------------+--------------------------------------------+
// +---------------------------------+--------------------------------------------+
// | 0x00000000 S_OK | The call was successful. |
// +---------------------------------+--------------------------------------------+
// | 0x80070003 ERROR_PATH_NOT_FOUND | The system cannot find the path specified. |
// +---------------------------------+--------------------------------------------+
// | 0x80070005 E_ACCESSDENIED | General access denied error. |
// +---------------------------------+--------------------------------------------+
// | 0x80070006 ERROR_INVALID_HANDLE | The handle is invalid. |
// +---------------------------------+--------------------------------------------+
// | 0x80070057 E_INVALIDARG | One or more arguments are invalid. |
// +---------------------------------+--------------------------------------------+
//
// The opnum field value for this method is 4.
DeleteKey(context.Context, *DeleteKeyRequest, ...dcerpc.CallOption) (*DeleteKeyResponse, error)
// The DeleteChildKeys method deletes all subnodes of the specified node and any data
// they contain. It also recursively deletes all nodes below the subnodes.
//
// Return Values: A signed 32-bit value that indicates return status. If the method
// returns a negative value, it failed. If the 12-bit facility code (bits 16–27) is
// set to 0x007, the value contains a Win32 error code in the lower 16 bits. Zero or
// positive values indicate success, with the lower 16 bits in positive nonzero values
// containing warnings or flags defined in the method implementation. For more information
// about Win32 error codes and HRESULT values, see [MS-ERREF].
//
// +---------------------------------+--------------------------------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +---------------------------------+--------------------------------------------+
// +---------------------------------+--------------------------------------------+
// | 0x00000000 S_OK | The call was successful. |
// +---------------------------------+--------------------------------------------+
// | 0x80070003 ERROR_PATH_NOT_FOUND | The system cannot find the path specified. |
// +---------------------------------+--------------------------------------------+
// | 0x80070005 E_ACCESSDENIED | General access denied error. |
// +---------------------------------+--------------------------------------------+
// | 0x80070006 ERROR_INVALID_HANDLE | The handle is invalid. |
// +---------------------------------+--------------------------------------------+
//
// The opnum field value for this method is 5.
DeleteChildKeys(context.Context, *DeleteChildKeysRequest, ...dcerpc.CallOption) (*DeleteChildKeysResponse, error)
// The EnumKeys method enumerates the subnodes of the specified node.
//
// Return Values: A signed 32-bit value that indicates return status. If the method
// returns a negative value, it failed. If the 12-bit facility code (bits 16–27) is
// set to 0x007, the value contains a Win32 error code in the lower 16 bits. Zero or
// positive values indicate success, with the lower 16 bits in positive nonzero values
// containing warnings or flags defined in the method implementation. For more information
// about Win32 error codes and HRESULT values, see [MS-ERREF].
//
// +---------------------------------+--------------------------------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +---------------------------------+--------------------------------------------+
// +---------------------------------+--------------------------------------------+
// | 0x00000000 S_OK | The call was successful. |
// +---------------------------------+--------------------------------------------+
// | 0x80070003 ERROR_PATH_NOT_FOUND | The system cannot find the path specified. |
// +---------------------------------+--------------------------------------------+
// | 0x80070005 E_ACCESSDENIED | General access denied error. |
// +---------------------------------+--------------------------------------------+
// | 0x80070006 ERROR_INVALID_HANDLE | The handle is invalid. |
// +---------------------------------+--------------------------------------------+
// | 0x80070057 E_INVALIDARG | One or more arguments are invalid. |
// +---------------------------------+--------------------------------------------+
// | 0x80070103 ERROR_NO_MORE_ITEMS | No more data is available. |
// +---------------------------------+--------------------------------------------+
//
// The opnum field value for this method is 6.
//
// A subnode can be enumerated once per call. Subnodes are numbered from zero to (NumKeys
// - 1), with NumKeys equal to the number of subnodes below the node.
EnumKeys(context.Context, *EnumKeysRequest, ...dcerpc.CallOption) (*EnumKeysResponse, error)
// The CopyKey method copies or moves a node, including its subnodes and data, to a
// specified destination. The copied or moved node becomes a subnode of the destination
// node.
//
// Return Values: A signed 32-bit value that indicates return status. If the method
// returns a negative value, it failed. If the 12-bit facility code (bits 16–27) is
// set to 0x007, the value contains a Win32 error code in the lower 16 bits. Zero or
// positive values indicate success, with the lower 16 bits in positive nonzero values
// containing warnings or flags defined in the method implementation. For more information
// about Win32 error codes and HRESULT values, see [MS-ERREF].
//
// +---------------------------------+--------------------------------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +---------------------------------+--------------------------------------------+
// +---------------------------------+--------------------------------------------+
// | 0x00000000 S_OK | The call was successful. |
// +---------------------------------+--------------------------------------------+
// | 0x80070003 ERROR_PATH_NOT_FOUND | The system cannot find the path specified. |
// +---------------------------------+--------------------------------------------+
// | 0x80070005 E_ACCESSDENIED | General access denied error. |
// +---------------------------------+--------------------------------------------+
// | 0x80070006 ERROR_INVALID_HANDLE | The handle is invalid. |
// +---------------------------------+--------------------------------------------+
// | 0x80070057 E_INVALIDARG | One or more arguments are invalid. |
// +---------------------------------+--------------------------------------------+
//
// The opnum field value for this method is 7.
CopyKey(context.Context, *CopyKeyRequest, ...dcerpc.CallOption) (*CopyKeyResponse, error)
// The RenameKey method renames a node in the metabase.
//
// Return Values: A signed 32-bit value that indicates return status. If the method
// returns a negative value, it failed. If the 12-bit facility code (bits 16–27) is
// set to 0x007, the value contains a Win32 error code in the lower 16 bits. Zero or
// positive values indicate success, with the lower 16 bits in positive nonzero values
// containing warnings or flags defined in the method implementation. For more information
// about Win32 error codes and HRESULT values, see [MS-ERREF].
//
// +---------------------------------+----------------------------------------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +---------------------------------+----------------------------------------------------+
// +---------------------------------+----------------------------------------------------+
// | 0x00000000 S_OK | The call was successful. |
// +---------------------------------+----------------------------------------------------+
// | 0x80070003 ERROR_PATH_NOT_FOUND | The system cannot find the path specified. |
// +---------------------------------+----------------------------------------------------+
// | 0x80070005 E_ACCESSDENIED | General access denied error. |
// +---------------------------------+----------------------------------------------------+
// | 0x80070006 ERROR_INVALID_HANDLE | The handle is invalid. |
// +---------------------------------+----------------------------------------------------+
// | 0x80070057 E_INVALIDARG | An invalid parameter value was specified. |
// +---------------------------------+----------------------------------------------------+
// | 0x800700B7 ERROR_ALREADY_EXISTS | A key of that name already exists in the database. |
// +---------------------------------+----------------------------------------------------+
//
// The opnum field value for this method is 8.
RenameKey(context.Context, *RenameKeyRequest, ...dcerpc.CallOption) (*RenameKeyResponse, error)
// The R_SetData method sets a data item for a particular node in the metabase.
//
// Return Values: A signed 32-bit value that indicates return status. If the method
// returns a negative value, it failed. If the 12-bit facility code (bits 16 27) is
// set to 0x007, the value contains a Win32 error code in the lower 16 bits. Zero or
// positive values indicate success, with the lower 16 bits in positive nonzero values
// containing warnings or flags defined in the method implementation. For more information
// about Win32 error codes and HRESULT values, see [MS-ERREF].
//
// +----------------------------------------------------+----------------------------------------------------------------------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +----------------------------------------------------+----------------------------------------------------------------------------------+
// +----------------------------------------------------+----------------------------------------------------------------------------------+
// | 0x00000000 S_OK | The call was successful. |
// +----------------------------------------------------+----------------------------------------------------------------------------------+
// | 0x80070003 ERROR_PATH_NOT_FOUND | The system cannot find the path specified. |
// +----------------------------------------------------+----------------------------------------------------------------------------------+
// | 0x80070005 E_ACCESSDENIED | General access denied error. |
// +----------------------------------------------------+----------------------------------------------------------------------------------+
// | 0x80070057 E_INVALIDARG | An invalid parameter value was specified. |
// +----------------------------------------------------+----------------------------------------------------------------------------------+
// | 0x800CC808 MD_ERROR_CANNOT_REMOVE_SECURE_ATTRIBUTE | The METADATA_SECURE attribute cannot be removed from a data item via the |
// | | R_GetData method. Use the DeleteData method to remove the secure data. |
// +----------------------------------------------------+----------------------------------------------------------------------------------+
// | 0x80070008 ERROR_NOT_ENOUGH_MEMORY | There is not enough memory to complete the operation. |
// +----------------------------------------------------+----------------------------------------------------------------------------------+
//
// The opnum field value for this method is 9.
SetData(context.Context, *SetDataRequest, ...dcerpc.CallOption) (*SetDataResponse, error)
// The R_GetData method returns a data entry from a particular node in the metabase.
//
// Return Values: A signed 32-bit value that indicates return status. If the method
// returns a negative value, it failed. If the 12-bit facility code (bits 16–27) is
// set to 0x007, the value contains a Win32 error code in the lower 16 bits. Zero or
// positive values indicate success, with the lower 16 bits in positive nonzero values
// containing warnings or flags defined in the method implementation. For more information
// about Win32 error codes and HRESULT values, see [MS-ERREF].
//
// +--------------------------------------+-----------------------------------------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +--------------------------------------+-----------------------------------------------------+
// +--------------------------------------+-----------------------------------------------------+
// | 0x00000000 S_OK | The call was successful. |
// +--------------------------------------+-----------------------------------------------------+
// | 0x80070003 ERROR_PATH_NOT_FOUND | The system cannot find the path specified. |
// +--------------------------------------+-----------------------------------------------------+
// | 0x80070005 E_ACCESSDENIED | General access denied error. |
// +--------------------------------------+-----------------------------------------------------+
// | 0x80070057 E_INVALIDARG | An invalid parameter value was specified. |
// +--------------------------------------+-----------------------------------------------------+
// | 0x8007007A ERROR_INSUFFICIENT_BUFFER | The data area passed to a system call is too small. |
// +--------------------------------------+-----------------------------------------------------+
// | 0x800CC801 MD_ERROR_DATA_NOT_FOUND | The specified metadata was not found. |
// +--------------------------------------+-----------------------------------------------------+
//
// The opnum field value for this method is 10.
//
// The client describes the data it is requesting by initializing the METADATA_RECORD
// passed in the pmdrMDData parameter.
//
// The client indicates how much decrypted data it is ready to receive by passing the
// number of bytes in the dwMDDataLen field of the pmdrMDData parameter.
//
// The pbMDData field of the pmdrMDData parameter is not used to transfer the actual
// data value. The client MUST set the pbMDData field of pmdrMDData to NULL. The IIS_CRYPTO_BLOB
// structure is used to transfer the actual data value returned by the server and can
// be encrypted when the server sends data marked as secure.
GetData(context.Context, *GetDataRequest, ...dcerpc.CallOption) (*GetDataResponse, error)
// The DeleteData method deletes specific data entries from a node in the metabase.
//
// Return Values: A signed 32-bit value that indicates return status. If the method
// returns a negative value, it failed. If the 12-bit facility code (bits 16–27) is
// set to 0x007, the value contains a Win32 error code in the lower 16 bits. Zero or
// positive values indicate success, with the lower 16 bits in positive nonzero values
// containing warnings or flags defined in the method implementation. For more information
// about Win32 error codes and HRESULT values, see [MS-ERREF].
//
// +------------------------------------+--------------------------------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +------------------------------------+--------------------------------------------+
// +------------------------------------+--------------------------------------------+
// | 0x00000000 S_OK | The call was successful. |
// +------------------------------------+--------------------------------------------+
// | 0x80070003 ERROR_PATH_NOT_FOUND | The system cannot find the path specified. |
// +------------------------------------+--------------------------------------------+
// | 0x80070005 E_ACCESSDENIED | General access denied error. |
// +------------------------------------+--------------------------------------------+
// | 0x80070006 ERROR_INVALID_HANDLE | The handle is invalid. |
// +------------------------------------+--------------------------------------------+
// | 0x800CC801 MD_ERROR_DATA_NOT_FOUND | The specified metadata was not found. |
// +------------------------------------+--------------------------------------------+
//
// The opnum field value for this method is 11.
DeleteData(context.Context, *DeleteDataRequest, ...dcerpc.CallOption) (*DeleteDataResponse, error)
// The R_EnumData method enumerates the data entries of a node in the metabase.
//
// Return Values: A signed 32-bit value that indicates return status. If the method
// returns a negative value, it failed. If the 12-bit facility code (bits 16–27) is
// set to 0x007, the value contains a Win32 error code in the lower 16 bits. Zero or
// positive values indicate success, with the lower 16 bits in positive nonzero values
// containing warnings or flags defined in the method implementation. For more information
// about Win32 error codes and HRESULT values, see [MS-ERREF].
//
// +--------------------------------------+-----------------------------------------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +--------------------------------------+-----------------------------------------------------+
// +--------------------------------------+-----------------------------------------------------+
// | 0x00000000 S_OK | The call was successful. |
// +--------------------------------------+-----------------------------------------------------+
// | 0x80070003 ERROR_PATH_NOT_FOUND | The system cannot find the path specified. |
// +--------------------------------------+-----------------------------------------------------+
// | 0x80070005 E_ACCESSDENIED | General access denied error. |
// +--------------------------------------+-----------------------------------------------------+
// | 0x80070006 ERROR_INVALID_HANDLE | The handle is invalid. |
// +--------------------------------------+-----------------------------------------------------+
// | 0x80070057 E_INVALIDARG | One or more arguments are invalid. |
// +--------------------------------------+-----------------------------------------------------+
// | 0x8007007A ERROR_INSUFFICIENT_BUFFER | The data area passed to a system call is too small. |
// +--------------------------------------+-----------------------------------------------------+
// | 0x80070103 ERROR_NO_MORE_ITEMS | No more data is available. |
// +--------------------------------------+-----------------------------------------------------+
//
// The opnum field value for this method is 12.
//
// The client indicates how much decrypted data it is ready to receive by passing the
// number of bytes in the dwMDDataLen field of the pmdrMDData parameter. If this value
// is too small to contain the decrypted data value, the server MUST return ERROR_INSUFFICIENT_BUFFER
// and return the number of bytes required to hold the data in the pdwMDRequiredDataLen
// parameter.
EnumData(context.Context, *EnumDataRequest, ...dcerpc.CallOption) (*EnumDataResponse, error)
// The R_GetAllData method returns all data associated with a node in the metabase,
// including all values that the node inherits.
//
// Return Values: A signed 32-bit value that indicates return status. If the method
// returns a negative value, it failed. If the 12-bit facility code (bits 16–27) is
// set to 0x007, the value contains a Win32 error code in the lower 16 bits. Zero or
// positive values indicate success, with the lower 16 bits in positive nonzero values
// containing warnings or flags defined in the method implementation. For more information
// about Win32 error codes and HRESULT values, see [MS-ERREF].
//
// Note Invalid dwMDUserType or dwMDDataType parameters result in a E_INVALIDARG return
// status.
//
// +--------------------------------------+-----------------------------------------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +--------------------------------------+-----------------------------------------------------+
// +--------------------------------------+-----------------------------------------------------+
// | 0x00000000 S_OK | The call was successful. |
// +--------------------------------------+-----------------------------------------------------+
// | 0x80070003 ERROR_PATH_NOT_FOUND | The system cannot find the path specified. |
// +--------------------------------------+-----------------------------------------------------+
// | 0x80070005 E_ACCESSDENIED | General access denied error. |
// +--------------------------------------+-----------------------------------------------------+
// | 0x80070057 E_INVALIDARG | An invalid parameter value was specified. |
// +--------------------------------------+-----------------------------------------------------+
// | 0x8007007A ERROR_INSUFFICIENT_BUFFER | The data area passed to a system call is too small. |
// +--------------------------------------+-----------------------------------------------------+
//
// The opnum field value for this method is 13.
//
// The client indicates how much decrypted data it is ready to receive by passing the
// number of bytes in the dwMDBufferSize parameter.
GetAllData(context.Context, *GetAllDataRequest, ...dcerpc.CallOption) (*GetAllDataResponse, error)
// The DeleteAllData method deletes all or a subset of local data associated with a
// particular node.
//
// Return Values: A signed 32-bit value that indicates return status. If the method
// returns a negative value, it failed. If the 12-bit facility code (bits 16–27) is
// set to 0x007, the value contains a Win32 error code in the lower 16 bits. Zero or
// positive values indicate success, with the lower 16 bits in positive nonzero values
// containing warnings or flags defined in the method implementation. For more information
// about Win32 error codes and HRESULT values, see [MS-ERREF].
//
// +---------------------------------+------------------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +---------------------------------+------------------------------+
// +---------------------------------+------------------------------+
// | 0x00000000 S_OK | The call was successful. |
// +---------------------------------+------------------------------+
// | 0x80070005 E_ACCESSDENIED | General access denied error. |
// +---------------------------------+------------------------------+
// | 0x80070006 ERROR_INVALID_HANDLE | The handle is invalid. |
// +---------------------------------+------------------------------+
//
// The opnum field value for this method is 14.
DeleteAllData(context.Context, *DeleteAllDataRequest, ...dcerpc.CallOption) (*DeleteAllDataResponse, error)
// The CopyData method copies or moves data between nodes.
//
// Return Values: A signed 32-bit value that indicates return status. If the method
// returns a negative value, it failed. If the 12-bit facility code (bits 16–27) is
// set to 0x007, the value contains a Win32 error code in the lower 16 bits. Zero or
// positive values indicate success, with the lower 16 bits in positive nonzero values
// containing warnings or flags defined in the method implementation. For more information
// about Win32 error codes and HRESULT values, see [MS-ERREF].
//
// +------------------------------------+-------------------------------------------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +------------------------------------+-------------------------------------------------------+
// +------------------------------------+-------------------------------------------------------+
// | 0x00000000 S_OK | The call was successful. |
// +------------------------------------+-------------------------------------------------------+
// | 0x80070003 ERROR_PATH_NOT_FOUND | The system cannot find the path specified. |
// +------------------------------------+-------------------------------------------------------+
// | 0x80070005 E_ACCESSDENIED | General access denied error. |
// +------------------------------------+-------------------------------------------------------+
// | 0x80070006 ERROR_INVALID_HANDLE | The handle is invalid. |
// +------------------------------------+-------------------------------------------------------+
// | 0x80070057 E_INVALIDARG | One or more arguments are invalid. |
// +------------------------------------+-------------------------------------------------------+
// | 0x80070008 ERROR_NOT_ENOUGH_MEMORY | There is not enough memory to complete the operation. |
// +------------------------------------+-------------------------------------------------------+
//
// The opnum field value for this method is 15.
CopyData(context.Context, *CopyDataRequest, ...dcerpc.CallOption) (*CopyDataResponse, error)
// The GetDataPaths method returns the paths of all nodes in the subtree relative to
// a specified starting node that contains the supplied identifier.
//
// Return Values: A signed 32-bit value that indicates return status. If the method
// returns a negative value, it failed. If the 12-bit facility code (bits 16–27) is
// set to 0x007, the value contains a Win32 error code in the lower 16 bits. Zero or
// positive values indicate success, with the lower 16 bits in positive nonzero values
// containing warnings or flags defined in the method implementation. For more information
// about Win32 error codes and HRESULT values, see [MS-ERREF].
//
// +--------------------------------------+-----------------------------------------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +--------------------------------------+-----------------------------------------------------+
// +--------------------------------------+-----------------------------------------------------+
// | 0x00000000 S_OK | The call was successful. |
// +--------------------------------------+-----------------------------------------------------+
// | 0x80070003 ERROR_PATH_NOT_FOUND | The system cannot find the path specified. |
// +--------------------------------------+-----------------------------------------------------+
// | 0x80070006 ERROR_INVALID_HANDLE | The handle is invalid. |
// +--------------------------------------+-----------------------------------------------------+
// | 0x80070057 E_INVALIDARG | One or more arguments are invalid. |
// +--------------------------------------+-----------------------------------------------------+
// | 0x8007007A ERROR_INSUFFICIENT_BUFFER | The data area passed to a system call is too small. |
// +--------------------------------------+-----------------------------------------------------+
//
// The opnum field value for this method is 16.
GetDataPaths(context.Context, *GetDataPathsRequest, ...dcerpc.CallOption) (*GetDataPathsResponse, error)
// The OpenKey method opens a node for read access, write access, or both. The returned
// handle can be used by several of the other methods in the IMSAdminBaseW interface.
//
// Return Values: A signed 32-bit value that indicates return status. If the method
// returns a negative value, it failed. If the 12-bit facility code (bits 16–27) is
// set to 0x007, the value contains a Win32 error code in the lower 16 bits. Zero or
// positive values indicate success, with the lower 16 bits in positive nonzero values
// containing warnings or flags defined in the method implementation. For more information
// about Win32 error codes and HRESULT values, see [MS-ERREF].
//
// +---------------------------------+-------------------------------------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +---------------------------------+-------------------------------------------------+
// +---------------------------------+-------------------------------------------------+
// | 0x00000000 S_OK | The call was successful. |
// +---------------------------------+-------------------------------------------------+
// | 0x80070003 ERROR_PATH_NOT_FOUND | The system cannot find the path specified. |
// +---------------------------------+-------------------------------------------------+
// | 0x80070006 ERROR_INVALID_HANDLE | The handle is invalid. |
// +---------------------------------+-------------------------------------------------+
// | 0x80070094 ERROR_PATH_BUSY | The path specified cannot be used at this time. |
// +---------------------------------+-------------------------------------------------+
// | 0x80070057 E_INVALIDARG | One or more arguments are invalid. |
// +---------------------------------+-------------------------------------------------+
//
// The opnum field value for this method is 17.
OpenKey(context.Context, *OpenKeyRequest, ...dcerpc.CallOption) (*OpenKeyResponse, error)
// The CloseKey method closes a handle to a node.
//
// Return Values: A signed 32-bit value that indicates return status. If the method
// returns a negative value, it failed. If the 12-bit facility code (bits 16–27) is
// set to 0x007, the value contains a Win32 error code in the lower 16 bits. Zero or
// positive values indicate success, with the lower 16 bits in positive nonzero values
// containing warnings or flags defined in the method implementation. For more information
// about Win32 error codes and HRESULT values, see [MS-ERREF].
//
// +---------------------------------+--------------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +---------------------------------+--------------------------+
// +---------------------------------+--------------------------+
// | 0x00000000 S_OK | The call was successful. |
// +---------------------------------+--------------------------+
// | 0x80070006 ERROR_INVALID_HANDLE | The handle is invalid. |
// +---------------------------------+--------------------------+
//
// The opnum field value for this method is 18.
CloseKey(context.Context, *CloseKeyRequest, ...dcerpc.CallOption) (*CloseKeyResponse, error)
// The ChangePermissions method changes permissions on an open handle.
//
// Return Values: A signed 32-bit value that indicates return status. If the method
// returns a negative value, it failed. If the 12-bit facility code (bits 16–27) is
// set to 0x007, the value contains a Win32 error code in the lower 16 bits. Zero or
// positive values indicate success, with the lower 16 bits in positive nonzero values
// containing warnings or flags defined in the method implementation. For more information
// about Win32 error codes and HRESULT values, see [MS-ERREF].
//
// +---------------------------------+-------------------------------------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +---------------------------------+-------------------------------------------------+
// +---------------------------------+-------------------------------------------------+
// | 0x00000000 S_OK | The call was successful. |
// +---------------------------------+-------------------------------------------------+
// | 0x80070006 ERROR_INVALID_HANDLE | The handle is invalid. |
// +---------------------------------+-------------------------------------------------+
// | 0x80070057 E_INVALIDARG | One or more arguments are invalid. |
// +---------------------------------+-------------------------------------------------+
// | 0x80070094 ERROR_PATH_BUSY | The path specified cannot be used at this time. |
// +---------------------------------+-------------------------------------------------+
//
// The opnum field value for this method is 19.
ChangePermissions(context.Context, *ChangePermissionsRequest, ...dcerpc.CallOption) (*ChangePermissionsResponse, error)
// The SaveData method explicitly flushes the metabase data resident in memory to configuration
// storage.
//
// This method has no parameters.
//
// Return Values: A signed 32-bit value that indicates return status. If the method
// returns a negative value, it failed. If the 12-bit facility code (bits 16–27) is
// set to 0x007, the value contains a Win32 error code in the lower 16 bits. Zero or
// positive values indicate success, with the lower 16 bits in positive nonzero values
// containing warnings or flags defined in the method implementation. For more information
// about Win32 error codes and HRESULT values, see [MS-ERREF].
//
// +----------------------------+-------------------------------------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +----------------------------+-------------------------------------------------+
// +----------------------------+-------------------------------------------------+
// | 0x00000000 S_OK | The call was successful. |
// +----------------------------+-------------------------------------------------+
// | 0x80070094 ERROR_PATH_BUSY | The path specified cannot be used at this time. |
// +----------------------------+-------------------------------------------------+
//
// The opnum field value for this method is 20.
SaveData(context.Context, *SaveDataRequest, ...dcerpc.CallOption) (*SaveDataResponse, error)
// The GetHandleInfo method returns information associated with the specified metabase
// handle.
//
// Return Values: A signed 32-bit value that indicates return status. If the method
// returns a negative value, it failed. If the 12-bit facility code (bits 16–27) is
// set to 0x007, the value contains a Win32 error code in the lower 16 bits. Zero or
// positive values indicate success, with the lower 16 bits in positive nonzero values
// containing warnings or flags defined in the method implementation. For more information
// about Win32 error codes and HRESULT values, see [MS-ERREF].
//
// +---------------------------------+--------------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +---------------------------------+--------------------------+
// +---------------------------------+--------------------------+
// | 0x00000000 S_OK | The call was successful. |
// +---------------------------------+--------------------------+
// | 0x80070006 ERROR_INVALID_HANDLE | The handle is invalid. |
// +---------------------------------+--------------------------+
//
// The opnum field value for this method is 21.
GetHandleInfo(context.Context, *GetHandleInfoRequest, ...dcerpc.CallOption) (*GetHandleInfoResponse, error)
// The GetSystemChangeNumber method returns the number of changes made to data since
// the metabase was created.
//
// Return Values: A signed 32-bit value that indicates return status. If the method
// returns a negative value, it failed. If the 12-bit facility code (bits 16–27) is
// set to 0x007, the value contains a Win32 error code in the lower 16 bits. Zero or
// positive values indicate success, with the lower 16 bits in positive nonzero values
// containing warnings or flags defined in the method implementation. For more information
// about Win32 error codes and HRESULT values, see [MS-ERREF].
//
// +-------------------+--------------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +-------------------+--------------------------+
// +-------------------+--------------------------+
// | 0x00000000 S_OK | The call was successful. |
// +-------------------+--------------------------+
//
// The opnum field value for this method is 22.
GetSystemChangeNumber(context.Context, *GetSystemChangeNumberRequest, ...dcerpc.CallOption) (*GetSystemChangeNumberResponse, error)
// The GetDataSetNumber method returns the dataset number associated with a node in
// the metabase. A dataset number is a unique number identifying the data items at that
// node, including inherited data items. Nodes with the same dataset number have identical
// data.
//
// Return Values: A signed 32-bit value that indicates return status. If the method
// returns a negative value, it failed. If the 12-bit facility code (bits 16–27) is
// set to 0x007, the value contains a Win32 error code in the lower 16 bits. Zero or
// positive values indicate success, with the lower 16 bits in positive nonzero values
// containing warnings or flags defined in the method implementation. For more information
// about Win32 error codes and HRESULT values, see [MS-ERREF].
//
// +-------------------------+------------------------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +-------------------------+------------------------------------+
// +-------------------------+------------------------------------+
// | 0x00000000 S_OK | The call was successful. |
// +-------------------------+------------------------------------+
// | 0x80070057 E_INVALIDARG | One or more arguments are invalid. |
// +-------------------------+------------------------------------+
//
// The opnum field value for this method is 23.
GetDataSetNumber(context.Context, *GetDataSetNumberRequest, ...dcerpc.CallOption) (*GetDataSetNumberResponse, error)
// The SetLastChangeTime method sets the last change time associated with a node in
// the metabase.
//
// Return Values: A signed 32-bit value that indicates return status. If the method
// returns a negative value, it failed. If the 12-bit facility code (bits 16–27) is
// set to 0x007, the value contains a Win32 error code in the lower 16 bits. Zero or
// positive values indicate success, with the lower 16 bits in positive nonzero values
// containing warnings or flags defined in the method implementation. For more information
// about Win32 error codes and HRESULT values, see [MS-ERREF].
//
// +---------------------------------+--------------------------------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +---------------------------------+--------------------------------------------+
// +---------------------------------+--------------------------------------------+
// | 0x00000000 S_OK | The call was successful. |
// +---------------------------------+--------------------------------------------+
// | 0x80070003 ERROR_PATH_NOT_FOUND | The system cannot find the path specified. |
// +---------------------------------+--------------------------------------------+
// | 0x80070005 E_ACCESSDENIED | General access denied error. |
// +---------------------------------+--------------------------------------------+
// | 0x80070057 E_INVALIDARG | One or more arguments are invalid. |
// +---------------------------------+--------------------------------------------+
//
// The opnum field value for this method is 24.
SetLastChangeTime(context.Context, *SetLastChangeTimeRequest, ...dcerpc.CallOption) (*SetLastChangeTimeResponse, error)
// The GetLastChangeTime method returns the last change time associated with a node
// in the metabase.
//
// Return Values: A signed 32-bit value that indicates return status. If the method
// returns a negative value, it failed. If the 12-bit facility code (bits 16–27) is
// set to 0x007, the value contains a Win32 error code in the lower 16 bits. Zero or
// positive values indicate success, with the lower 16 bits in positive nonzero values
// containing warnings or flags defined in the method implementation. For more information
// about Win32 error codes and HRESULT values, see [MS-ERREF].
//
// +---------------------------------+--------------------------------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +---------------------------------+--------------------------------------------+
// +---------------------------------+--------------------------------------------+
// | 0x00000000 S_OK | The call was successful. |
// +---------------------------------+--------------------------------------------+
// | 0x80070003 ERROR_PATH_NOT_FOUND | The system cannot find the path specified. |
// +---------------------------------+--------------------------------------------+
// | 0x80070057 E_INVALIDARG | One or more arguments are invalid. |
// +---------------------------------+--------------------------------------------+
//
// The opnum field value for this method is 25.
GetLastChangeTime(context.Context, *GetLastChangeTimeRequest, ...dcerpc.CallOption) (*GetLastChangeTimeResponse, error)
// The R_KeyExchangePhase1 method receives a pair of encrypted client keys and returns
// server encryption and session keys.
//
// Return Values: A signed 32-bit value that indicates return status. If the method
// returns a negative value, it failed. If the 12-bit facility code (bits 16–27) is
// set to 0x007, the value contains a Win32 error code in the lower 16 bits. Zero or
// positive values indicate success, with the lower 16 bits in positive nonzero values
// containing warnings or flags defined in the method implementation. For more information
// about Win32 error codes and HRESULT values, see [MS-ERREF].
//
// +-------------------+--------------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +-------------------+--------------------------+
// +-------------------+--------------------------+
// | 0x00000000 S_OK | The call was successful. |
// +-------------------+--------------------------+
//
// The opnum field value for this method is 26.
KeyExchangePhase1(context.Context, *KeyExchangePhase1Request, ...dcerpc.CallOption) (*KeyExchangePhase1Response, error)
// The R_KeyExchangePhase2 method receives the encrypted client session and hash keys
// in response to the R_KeyExchangePhase1 method and returns the encrypted server hash
// keys.
//
// Return Values: A signed 32-bit value that indicates return status. If the method
// returns a negative value, it failed. If the 12-bit facility code (bits 16–27) is
// set to 0x007, the value contains a Win32 error code in the lower 16 bits. Zero or
// positive values indicate success, with the lower 16 bits in positive nonzero values
// containing warnings or flags defined in the method implementation. For more information
// about Win32 error codes and HRESULT values, see [MS-ERREF].
//
// +-------------------+--------------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +-------------------+--------------------------+
// +-------------------+--------------------------+
// | 0x00000000 S_OK | The call was successful. |
// +-------------------+--------------------------+
//
// The opnum field value for this method is 27.
KeyExchangePhase2(context.Context, *KeyExchangePhase2Request, ...dcerpc.CallOption) (*KeyExchangePhase2Response, error)
// The Backup method backs up the metabase.
//
// Return Values: A signed 32-bit value that indicates return status. If the method
// returns a negative value, it failed. If the 12-bit facility code (bits 16–27) is
// set to 0x007, the value contains a Win32 error code in the lower 16 bits. Zero or
// positive values indicate success, with the lower 16 bits in positive nonzero values
// containing warnings or flags defined in the method implementation. For more information
// about Win32 error codes and HRESULT values, see [MS-ERREF].
//
// +------------------------------------+----------------------------------------------------------------------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +------------------------------------+----------------------------------------------------------------------------------+
// +------------------------------------+----------------------------------------------------------------------------------+
// | 0x00000000 S_OK | The call was successful. |
// +------------------------------------+----------------------------------------------------------------------------------+
// | 0x80070057 E_INVALIDARG | One or more arguments are invalid. |
// +------------------------------------+----------------------------------------------------------------------------------+
// | 0x000CC809 MD_WARNING_SAVE FAILED | The metadata save prior to backup failed. The previous version of the data was |
// | | backed up. |
// +------------------------------------+----------------------------------------------------------------------------------+
// | 0x80070008 ERROR_NOT_ENOUGH_MEMORY | There is not enough memory to complete the operation. |
// +------------------------------------+----------------------------------------------------------------------------------+
//
// The opnum field value for this method is 28.
//
// The location string can be up to 100 Unicode characters in length. Multiple metabase
// backups can be stored with the same name.
Backup(context.Context, *BackupRequest, ...dcerpc.CallOption) (*BackupResponse, error)
// The Restore method restores the metabase from a backup.
//
// Return Values: A signed 32-bit value that indicates return status. If the method
// returns a negative value, it failed. If the 12-bit facility code (bits 16–27) is
// set to 0x007, the value contains a Win32 error code in the lower 16 bits. Zero or
// positive values indicate success, with the lower 16 bits in positive nonzero values
// containing warnings or flags defined in the method implementation. For more information
// about Win32 error codes and HRESULT values, see [MS-ERREF].
//
// +-------------------------------------+-------------------------------------------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +-------------------------------------+-------------------------------------------------------+
// +-------------------------------------+-------------------------------------------------------+
// | 0x00000000 S_OK | The call was successful. |
// +-------------------------------------+-------------------------------------------------------+
// | 0x80070057 E_INVALIDARG | One or more arguments are invalid. |
// +-------------------------------------+-------------------------------------------------------+
// | 0x80070013 ERROR_INVALID_DATA | The data is invalid. |
// +-------------------------------------+-------------------------------------------------------+
// | 0x800CC802 MD_ERROR_INVALID_VERSION | The version specified by dwMDVersion is invalid. |
// +-------------------------------------+-------------------------------------------------------+
// | 0x000CC805L MD_WARNING_INVALID_DATA | Invalid metabase data. |
// +-------------------------------------+-------------------------------------------------------+
// | 0x80070008 ERROR_NOT_ENOUGH_MEMORY | There is not enough memory to complete the operation. |
// +-------------------------------------+-------------------------------------------------------+
//
// The opnum field value for this method is 29.
Restore(context.Context, *RestoreRequest, ...dcerpc.CallOption) (*RestoreResponse, error)
// The EnumBackups method enumerates metabase backups with a specified backup name or
// all backups.
//
// Return Values: A signed 32-bit value that indicates return status. If the method
// returns a negative value, it failed. If the 12-bit facility code (bits 16–27) is
// set to 0x007, the value contains a Win32 error code in the lower 16 bits. Zero or
// positive values indicate success, with the lower 16 bits in positive nonzero values
// containing warnings or flags defined in the method implementation. For more information
// about Win32 error codes and HRESULT values, see [MS-ERREF].
//
// +--------------------------------+----------------------------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +--------------------------------+----------------------------------------+
// +--------------------------------+----------------------------------------+
// | 0x00000000 S_OK | The call was successful. |
// +--------------------------------+----------------------------------------+
// | 0x80070103 ERROR_NO_MORE_ITEMS | No more data is available. |
// +--------------------------------+----------------------------------------+
// | 0x80070057 E_INVALIDARG | The pszMDBackupName parameter is NULL. |
// +--------------------------------+----------------------------------------+
//
// The opnum field value for this method is 30.
EnumBackups(context.Context, *EnumBackupsRequest, ...dcerpc.CallOption) (*EnumBackupsResponse, error)
// The DeleteBackup method deletes a metabase backup.
//
// Return Values: A signed 32-bit value that indicates return status. If the method
// returns a negative value, it failed. If the 12-bit facility code (bits 16–27) is
// set to 0x007, the value contains a Win32 error code in the lower 16 bits. Zero or
// positive values indicate success, with the lower 16 bits in positive nonzero values
// containing warnings or flags defined in the method implementation. For more information
// about Win32 error codes and HRESULT values, see [MS-ERREF].
//
// +------------------------------------+-------------------------------------------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +------------------------------------+-------------------------------------------------------+
// +------------------------------------+-------------------------------------------------------+
// | 0x00000000 S_OK | The call was successful. |
// +------------------------------------+-------------------------------------------------------+
// | 0x80070057 E_INVALIDARG | One or more arguments are invalid. |
// +------------------------------------+-------------------------------------------------------+
// | 0x80070002 ERROR_FILE_NOT_FOUND | The system cannot find the file specified. |
// +------------------------------------+-------------------------------------------------------+
// | 0x80070008 ERROR_NOT_ENOUGH_MEMORY | There is not enough memory to complete the operation. |
// +------------------------------------+-------------------------------------------------------+
//
// The opnum field value for this method is 31.
DeleteBackup(context.Context, *DeleteBackupRequest, ...dcerpc.CallOption) (*DeleteBackupResponse, error)
// The UnmarshalInterface method returns a pointer to the IMSAdminBaseW interface.
//
// Return Values: A signed 32-bit value that indicates return status. If the method
// returns a negative value, it failed. If the 12-bit facility code (bits 16–27) is
// set to 0x007, the value contains a Win32 error code in the lower 16 bits. Zero or
// positive values indicate success, with the lower 16 bits in positive nonzero values
// containing warnings or flags defined in the method implementation. For more information
// about Win32 error codes and HRESULT values, see [MS-ERREF].
//
// +-------------------+--------------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +-------------------+--------------------------+
// +-------------------+--------------------------+
// | 0x00000000 S_OK | The call was successful. |
// +-------------------+--------------------------+
//
// The opnum field value for this method is 32.
UnmarshalInterface(context.Context, *UnmarshalInterfaceRequest, ...dcerpc.CallOption) (*UnmarshalInterfaceResponse, error)
// The R_GetServerGuid method returns a GUID for this DCOM object.
//
// Return Values: A signed 32-bit value that indicates return status. If the method
// returns a negative value, it failed. If the 12-bit facility code (bits 16–27) is
// set to 0x007, the value contains a Win32 error code in the lower 16 bits. Zero or
// positive values indicate success, with the lower 16 bits in positive nonzero values
// containing warnings or flags defined in the method implementation. For more information
// about Win32 error codes and HRESULT values, see [MS-ERREF].
//
// +-------------------+--------------------------+
// | RETURN | |
// | VALUE/CODE | DESCRIPTION |
// | | |
// +-------------------+--------------------------+
// +-------------------+--------------------------+
// | 0x00000000 S_OK | The call was successful. |
// +-------------------+--------------------------+
//
// The opnum field value for this method is 33.
GetServerGUID(context.Context, *GetServerGUIDRequest, ...dcerpc.CallOption) (*GetServerGUIDResponse, error)
// AlterContext alters the client context.
AlterContext(context.Context, ...dcerpc.Option) error
// IPID sets the object interface identifier.
IPID(context.Context, *dcom.IPID) IMSAdminBaseWClient
}
type xxx_DefaultIMSAdminBaseWClient struct {
iunknown.UnknownClient
cc dcerpc.Conn
ipid *dcom.IPID
}
func (o *xxx_DefaultIMSAdminBaseWClient) Unknown() iunknown.UnknownClient {
return o.UnknownClient
}
func (o *xxx_DefaultIMSAdminBaseWClient) AddKey(ctx context.Context, in *AddKeyRequest, opts ...dcerpc.CallOption) (*AddKeyResponse, error) {
op := in.xxx_ToOp(ctx)
if _, ok := dcom.HasIPID(opts); !ok {
if o.ipid != nil {
opts = append(opts, dcom.WithIPID(o.ipid))
} else {
return nil, fmt.Errorf("%s: ipid is missing", op.OpName())
}
}
if err := o.cc.Invoke(ctx, op, opts...); err != nil {
return nil, err
}
out := &AddKeyResponse{}
out.xxx_FromOp(ctx, op)
if op.Return != int32(0) {
return out, fmt.Errorf("%s: %w", op.OpName(), errors.New(ctx, op.Return))
}
return out, nil
}
func (o *xxx_DefaultIMSAdminBaseWClient) DeleteKey(ctx context.Context, in *DeleteKeyRequest, opts ...dcerpc.CallOption) (*DeleteKeyResponse, error) {
op := in.xxx_ToOp(ctx)
if _, ok := dcom.HasIPID(opts); !ok {
if o.ipid != nil {
opts = append(opts, dcom.WithIPID(o.ipid))
} else {
return nil, fmt.Errorf("%s: ipid is missing", op.OpName())
}
}
if err := o.cc.Invoke(ctx, op, opts...); err != nil {
return nil, err
}
out := &DeleteKeyResponse{}
out.xxx_FromOp(ctx, op)
if op.Return != int32(0) {
return out, fmt.Errorf("%s: %w", op.OpName(), errors.New(ctx, op.Return))
}
return out, nil
}
func (o *xxx_DefaultIMSAdminBaseWClient) DeleteChildKeys(ctx context.Context, in *DeleteChildKeysRequest, opts ...dcerpc.CallOption) (*DeleteChildKeysResponse, error) {
op := in.xxx_ToOp(ctx)
if _, ok := dcom.HasIPID(opts); !ok {
if o.ipid != nil {
opts = append(opts, dcom.WithIPID(o.ipid))
} else {
return nil, fmt.Errorf("%s: ipid is missing", op.OpName())