Sample Code

Windows Driver Samples/ Hyper-V Extensible Switch extension filter driver/ C++/ samples/ forward/ MSForwardExtPolicy.mof/

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
//
// Copyright (c) Microsoft Corporation. All Rights Reserved.
//
// Custom property for MsForwardExt
// MAC Address Allow Policy
//
#pragma namespace("\\\\.\\root\\virtualization\\v2")
 
[ Dynamic,
 UUID("EB29F0F2-F5DC-45C6-81BB-3CD9F219BBBB"),
 ExtensionId("37d9eae6-5bae-48c5-bff1-63a7cdd7e4f4"),
 Provider("VmmsWmiInstanceAndMethodProvider"),
 Locale(0x409),
 InterfaceVersion("1"),
 InterfaceRevision("0"),
DisplayName("MSForwardExt MAC Address Policy") : Amended,
Description("Source MAC Addresses to allow sends on MSForwardExt.") : Amended]
class MSForwardExt_MacAddressRule : Msvm_EthernetSwitchFeatureSettingData {
    
    //
    // MAC Address set on switch to allow sends from.
    //
    [ Read,
      Write,
      WmiDataId(1),
      Max(6),
      InterfaceVersion(1),
      InterfaceRevision(0),
      Description (
         "Mac Address") : Amended]
    uint8 MacAddress[] = {};
};    

Our Services

  • What our customers say about us?

© 2011-2025 All Rights Reserved. Joya Systems. 4425 South Mopac Building II Suite 101 Austin, TX 78735 Tel: 800-DEV-KERNEL

Privacy Policy. Terms of use. Valid XHTML & CSS