Exemple #1
0
class Microsoft_Windows_Runtime_WebAPI_71_0(Etw):
    pattern = Struct("obj" / Int64ul)
Exemple #2
0
class Microsoft_Windows_Wired_AutoConfig_13033_0(Etw):
    pattern = Struct("Result" / Int32ul, "Reason" / Int32ul,
                     "InterfaceGuid" / Guid)
Exemple #3
0
class Microsoft_Windows_Wired_AutoConfig_20037_0(Etw):
    pattern = Struct("InterfaceGuid" / Guid, "Profile" / WString,
                     "Start" / Int32ul, "Stop" / Int32ul, "Duration" / Int32ul)
Exemple #4
0
class Microsoft_Windows_Wired_AutoConfig_15513_0(Etw):
    pattern = Struct("InterfaceGuid" / WString,
                     "InterfaceDescription" / WString)
Exemple #5
0
class Microsoft_Windows_Wired_AutoConfig_20014_0(Etw):
    pattern = Struct("ErrorCode" / Int32ul, "Location" / Int32ul,
                     "Context" / Int32ul, "InterfaceGuid" / Guid,
                     "InterfaceDescription" / WString)
Exemple #6
0
import empower.managers.ranmanager.lvapp as lvapp

from empower.core.ssid import WIFI_NWID_MAXSIZE
from empower.core.etheraddress import EtherAddress
from empower.managers.ranmanager.lvapp.wifiapp import EWApp
from empower.core.app import EVERY

PT_WIFI_SLICE_STATS_REQUEST = 0x4C
PT_WIFI_SLICE_STATS_RESPONSE = 0x4D

WIFI_SLICE_STATS_REQUEST = Struct(
    "version" / Int8ub,
    "type" / Int8ub,
    "length" / Int32ub,
    "seq" / Int32ub,
    "xid" / Int32ub,
    "device" / Bytes(6),
    "ssid" / Bytes(WIFI_NWID_MAXSIZE + 1),
    "slice_id" / Int8ub,
)
WIFI_SLICE_STATS_REQUEST.name = "wifi_slice_stats_request"

SLICE_STATS_ENTRY = Struct(
    "iface_id" / Int32ub,
    "deficit_used" / Int32ub,
    "max_queue_length" / Int32ub,
    "tx_packets" / Int32ub,
    "tx_bytes" / Int32ub,
)
SLICE_STATS_ENTRY.name = "slice_stats_entry"
Exemple #7
0
class Microsoft_Windows_Wired_AutoConfig_15508_0(Etw):
    pattern = Struct("InterfaceGuid" / Guid, "InterfaceDescription" / WString,
                     "NdisPortControlState" / Int32ul,
                     "NdisPortAuthState" / Int32ul)
class Microsoft_Windows_MediaFoundation_Platform_19_0(Etw):
    pattern = Struct(
        "LinkName" / WString,
        "FriendlyName" / WString
    )
class Microsoft_Windows_MediaFoundation_Platform_20_0(Etw):
    pattern = Struct(
        "Category" / Guid
    )
Exemple #10
0
    def _encode(self, obj, ctx, path):
        if obj.year < 2000 or obj.year > 2099:
            raise Exception("Invalid year, possible [2000,2099]")
        year = obj.year - 2000
        hour = obj.hour * 2
        if obj.minute:  # we encode all minute values to h:30
            hour |= 0x01
        return (obj.day, year, hour, obj.month)


Status = "Status" / Struct(
    "cmd" / Const(PROP_INFO_RETURN, Int8ub),
    Const(0x01, Int8ub),
    "mode" / ModeFlags,
    "valve" / Int8ub,
    Const(0x04, Int8ub),
    "target_temp" / TempAdapter(Int8ub),
    "away" / IfThenElse(lambda ctx: ctx.mode.AWAY, 
        AwayDataAdapter(Byte[4]),
        GreedyBytes),
)

Schedule = "Schedule" / Struct(
    "cmd" / Enum(Int8ub, **NAME_TO_CMD),
    "day" / Enum(Int8ub, **NAME_TO_DAY),
    "base_temp" / TempAdapter(Int8ub),
    "next_change_at" / TimeAdapter(Int8ub),
    "hours" / GreedyRange(Struct(
        "target_temp" / TempAdapter(Int8ub),
        "next_change_at" / TimeAdapter(Int8ub),
    )),
class Microsoft_Windows_MediaFoundation_Platform_17_0(Etw):
    pattern = Struct(
        "MFTName" / WString
    )
Exemple #12
0
class Microsoft_Windows_Runtime_WebAPI_12_0(Etw):
    pattern = Struct("uri" / WString)
Exemple #13
0
class Microsoft_Windows_Runtime_WebAPI_11_0(Etw):
    pattern = Struct("asyncOperation" / Int32ul, "asyncObject" / Int64ul,
                     "errorCode" / Int32ul, "hresult" / Int32sl)
Exemple #14
0
class Microsoft_Windows_Runtime_WebAPI_8_0(Etw):
    pattern = Struct("asyncOperation" / Int32ul, "asyncObject" / Int64ul,
                     "callback" / Int64ul)
class Microsoft_Windows_MediaFoundation_Platform_11_0(Etw):
    pattern = Struct(
        "clsid" / Guid,
        "Disabled" / Int8ul
    )
class Microsoft_Windows_MediaFoundation_Platform_21_0(Etw):
    pattern = Struct(
        "dwType" / Int32ul,
        "dwConfig" / Int32ul
    )
class Microsoft_Windows_MediaFoundation_Platform_12_0(Etw):
    pattern = Struct(
        "clsid" / Guid,
        "Selector" / WString
    )
class Microsoft_Windows_MediaFoundation_Platform_103_0(Etw):
    pattern = Struct(
        "Type" / Int32sl,
        "KeyName" / WString,
        "lResult" / Int32sl
    )
Exemple #19
0
class Microsoft_Windows_Wired_AutoConfig_15506_0(Etw):
    pattern = Struct("InterfaceGuid" / Guid, "InterfaceDescription" / WString,
                     "ReasonCode" / WString, "BlockingTime" / Int32ul)
class Microsoft_Windows_MediaFoundation_Platform_2_0(Etw):
    pattern = Struct(
        "clsid" / Guid
    )
Exemple #21
0
class Microsoft_Windows_Wired_AutoConfig_15509_0(Etw):
    pattern = Struct("InterfaceGuid" / Guid, "InterfaceDescription" / WString,
                     "AdapterState" / Int32ul)
class Microsoft_Windows_MediaFoundation_Platform_202_0(Etw):
    pattern = Struct(
        "Context" / Int64ul,
        "clsid" / WString
    )
Exemple #23
0
class Microsoft_Windows_Wired_AutoConfig_13022_0(Etw):
    pattern = Struct("Result" / Int32ul, "InterfaceGuid" / Guid,
                     "RequestedFields" / WString)
class Microsoft_Windows_MediaFoundation_Platform_205_0(Etw):
    pattern = Struct(
        "Context" / Int64ul,
        "url" / WString,
        "hr" / Int32ul
    )
Exemple #25
0
class Microsoft_Windows_Wired_AutoConfig_13031_0(Etw):
    pattern = Struct("Result" / Int32ul, "Reason" / Int32ul)
class Microsoft_Windows_MediaFoundation_Platform_303_0(Etw):
    pattern = Struct(
        "string" / WString
    )
Exemple #27
0
class Microsoft_Windows_Wired_AutoConfig_20035_0(Etw):
    pattern = Struct("Error" / Int32ul, "Location" / Int32ul,
                     "Context" / Int32ul, "InterfaceGuid" / Guid,
                     "ProfileName" / WString)
class Microsoft_Windows_MediaFoundation_Platform_2505_0(Etw):
    pattern = Struct(
        "hr" / Int32ul
    )
Exemple #29
0
class Microsoft_Windows_Wired_AutoConfig_20038_0(Etw):
    pattern = Struct("ErrorCode" / Int32ul, "Location" / Int32ul,
                     "Context" / Int32ul)
Exemple #30
0
class Microsoft_Windows_Runtime_WebAPI_69_0(Etw):
    pattern = Struct("uri" / WString, "statusCode" / Int32ul)