Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
referent = (
('Data', SHARE_INFO_503_ARRAY),
)
# 2.2.4.28 SHARE_INFO_1004
class SHARE_INFO_1004(NDRSTRUCT):
structure = (
('shi1004_remark', LPWSTR),
)
class LPSHARE_INFO_1004(NDRPOINTER):
referent = (
('Data', SHARE_INFO_1004),
)
class SHARE_INFO_1004_ARRAY(NDRUniConformantArray):
item = SHARE_INFO_1004
class LPSHARE_INFO_1004_ARRAY(NDRPOINTER):
referent = (
('Data', SHARE_INFO_1004_ARRAY),
)
# 2.2.4.29 SHARE_INFO_1005
class SHARE_INFO_1005(NDRSTRUCT):
structure = (
('shi1005_flags', DWORD),
)
class LPSHARE_INFO_1005(NDRPOINTER):
referent = (
('Data', SHARE_INFO_1005),
)
union = {
0: ('Level0', LPWKSTA_USER_INFO_0_CONTAINER),
1: ('Level1', LPWKSTA_USER_INFO_1_CONTAINER),
}
class WKSTA_USER_ENUM_STRUCT(NDRSTRUCT):
structure = (
('Level', ULONG),
('WkstaUserInfo', WKSTA_USER_ENUM_UNION),
)
# 2.2.5.15 WKSTA_TRANSPORT_INFO_0_CONTAINER
class WKSTA_TRANSPORT_INFO_0_ARRAY(NDRUniConformantArray):
item = WKSTA_TRANSPORT_INFO_0
class LPWKSTA_TRANSPORT_INFO_0_ARRAY(NDRPOINTER):
referent = (
('Data', WKSTA_TRANSPORT_INFO_0_ARRAY),
)
class WKSTA_TRANSPORT_INFO_0_CONTAINER(NDRSTRUCT):
structure = (
('EntriesRead', ULONG),
('Buffer', LPWKSTA_TRANSPORT_INFO_0_ARRAY),
)
class LPWKSTA_TRANSPORT_INFO_0_CONTAINER(NDRPOINTER):
referent = (
('Data', WKSTA_TRANSPORT_INFO_0_CONTAINER),
structure = (
('m_lType', LPCSTR),
('m_pwcsPath', LPWSTR),
)
class _WBEM_RECONNECT_INFO_ARRAY(NDRUniConformantArray):
item = _WBEM_RECONNECT_INFO
# 2.2.23 _WBEM_RECONNECT_RESULTS Structure
class _WBEM_RECONNECT_RESULTS(NDRSTRUCT):
structure = (
('m_lId', LONG),
('m_hr', HRESULT),
)
class _WBEM_RECONNECT_RESULTS_ARRAY(NDRUniConformantArray):
item = _WBEM_RECONNECT_INFO
################################################################################
# RPC CALLS
################################################################################
# 3.1.4.1 IWbemLevel1Login Interface
# 3.1.4.1.1 IWbemLevel1Login::EstablishPosition (Opnum 3)
class IWbemLevel1Login_EstablishPosition(DCOMCALL):
opnum = 3
structure = (
('reserved1', LPWSTR),
('reserved2', DWORD),
)
class IWbemLevel1Login_EstablishPositionResponse(DCOMANSWER):
# 3.1.4.30 NetprPathCanonicalize (Opnum 31)
class NetprPathCanonicalize(NDRCALL):
opnum = 31
structure = (
('ServerName', PSRVSVC_HANDLE),
('PathName', WSTR),
('OutbufLen', DWORD),
('Prefix', WSTR),
('PathType', DWORD),
('Flags', DWORD),
)
class NetprPathCanonicalizeResponse(NDRCALL):
structure = (
('Outbuf', NDRUniConformantArray),
('PathType', DWORD),
('ErrorCode',ULONG),
)
# 3.1.4.31 NetprPathCompare (Opnum 32)
class NetprPathCompare(NDRCALL):
opnum = 32
structure = (
('ServerName', PSRVSVC_HANDLE),
('PathName1', WSTR),
('PathName2', WSTR),
('PathType', DWORD),
('Flags', DWORD),
)
class NetprPathCompareResponse(NDRCALL):
# 2.2.30.3 SAFEARR_UNKNOWN
class SAFEARR_UNKNOWN(NDRSTRUCT):
structure = (
('Size', ULONG),
('apUnknown', MInterfacePointer_ARRAY),
)
# 2.2.30.4 SAFEARR_DISPATCH
class SAFEARR_DISPATCH(NDRSTRUCT):
structure = (
('Size', ULONG),
('apDispatch', MInterfacePointer_ARRAY),
)
# 2.2.30.6 SAFEARR_BRECORD
class BRECORD_ARRAY(NDRUniConformantArray):
item = BRECORD
class SAFEARR_BRECORD(NDRSTRUCT):
structure = (
('Size', ULONG),
('aRecord', BRECORD_ARRAY),
)
# 2.2.30.7 SAFEARR_HAVEIID
class SAFEARR_HAVEIID(NDRSTRUCT):
structure = (
('Size', ULONG),
('apUnknown', MInterfacePointer_ARRAY),
('iid', IID),
)
('sesi502_cname', LPWSTR),
('sesi502_username', LPWSTR),
('sesi502_num_opens', DWORD),
('sesi502_time', DWORD),
('sesi502_idle_time', DWORD),
('sesi502_user_flags', DWORD),
('sesi502_cltype_name', LPWSTR),
('sesi502_transport', LPWSTR),
)
class LPSESSION_INFO_502(NDRPOINTER):
referent = (
('Data', SESSION_INFO_502),
)
class SESSION_INFO_502_ARRAY(NDRUniConformantArray):
item = SESSION_INFO_502
class LPSESSION_INFO_502_ARRAY(NDRPOINTER):
referent = (
('Data', SESSION_INFO_502_ARRAY),
)
# 2.2.4.16 SESSION_INFO_0_CONTAINER
class SESSION_INFO_0_CONTAINER(NDRSTRUCT):
structure = (
('EntriesRead', DWORD),
('Buffer', LPSESSION_INFO_0_ARRAY),
)
class LPSESSION_INFO_0_CONTAINER(NDRPOINTER):
referent = (
)
class LPDHCP_OPTION_VALUE_ARRAY(NDRPOINTER):
referent = (
('Data', DHCP_OPTION_VALUE_ARRAY),
)
class DHCP_ALL_OPTION_VALUES(NDRSTRUCT):
structure = (
('ClassName', LPWSTR),
('VendorName', LPWSTR),
('IsVendor', BOOL),
('OptionsArray', LPDHCP_OPTION_VALUE_ARRAY),
)
class OPTION_VALUES_ARRAY(NDRUniConformantArray):
item = DHCP_ALL_OPTION_VALUES
class LPOPTION_VALUES_ARRAY(NDRPOINTER):
referent = (
('Data', OPTION_VALUES_ARRAY),
)
class DHCP_ALL_OPTIONS_VALUES(NDRSTRUCT):
structure = (
('Flags', DWORD),
('NumElements', DWORD),
('Options', LPOPTION_VALUES_ARRAY),
)
class LPDHCP_ALL_OPTION_VALUES(NDRPOINTER):
referent = (
# 2.2.4.7 FILE_INFO_3
class FILE_INFO_3(NDRSTRUCT):
structure = (
('fi3_id', DWORD),
('fi3_permissions', DWORD),
('fi3_num_locks', DWORD),
('fi3_path_name', LPWSTR),
('fi3_username', LPWSTR),
)
class LPFILE_INFO_3(NDRPOINTER):
referent = (
('Data', FILE_INFO_3),
)
class FILE_INFO_3_ARRAY(NDRUniConformantArray):
item = FILE_INFO_3
class LPFILE_INFO_3_ARRAY(NDRPOINTER):
referent = (
('Data', FILE_INFO_3_ARRAY),
)
# 2.2.4.8 FILE_INFO_2_CONTAINER
class FILE_INFO_2_CONTAINER(NDRSTRUCT):
structure = (
('EntriesRead', DWORD),
('Buffer', LPFILE_INFO_2_ARRAY),
)
class LPFILE_INFO_2_CONTAINER(NDRPOINTER):
referent = (
NETLOGON_DELTA_TYPE.AddOrChangeLsaAccount : ('Sid', PRPC_SID),
NETLOGON_DELTA_TYPE.DeleteLsaAccount : ('Sid', PRPC_SID),
NETLOGON_DELTA_TYPE.AddOrChangeLsaSecret : ('Name', LPWSTR),
NETLOGON_DELTA_TYPE.DeleteLsaSecret : ('Name', LPWSTR),
}
# 2.2.1.5.11 NETLOGON_DELTA_ENUM
class NETLOGON_DELTA_ENUM(NDRSTRUCT):
structure = (
('DeltaType', NETLOGON_DELTA_TYPE),
('DeltaID', NETLOGON_DELTA_ID_UNION),
('DeltaUnion', NETLOGON_DELTA_UNION),
)
# 2.2.1.5.12 NETLOGON_DELTA_ENUM_ARRAY
class NETLOGON_DELTA_ENUM_ARRAY_ARRAY(NDRUniConformantArray):
item = NETLOGON_DELTA_ENUM
class PNETLOGON_DELTA_ENUM_ARRAY_ARRAY(NDRSTRUCT):
referent = (
('Data', NETLOGON_DELTA_ENUM_ARRAY_ARRAY),
)
class PNETLOGON_DELTA_ENUM_ARRAY(NDRPOINTER):
structure = (
('CountReturned', DWORD),
('Deltas', PNETLOGON_DELTA_ENUM_ARRAY_ARRAY),
)
# 2.2.1.5.29 SYNC_STATE
class SYNC_STATE(NDRENUM):
class enumItems(Enum):
# 5.168 REPLVALINF_V3
class REPLVALINF_V3(NDRSTRUCT):
structure = (
('pObject', PDSNAME),
('attrTyp', ATTRTYP),
('Aval', ATTRVAL),
('fIsPresent', BOOL),
('MetaData', VALUE_META_DATA_EXT_V3),
)
def fromString(self, data, soFar=0):
retVal = NDRSTRUCT.fromString(self, data, soFar)
# self.dumpRaw()
return retVal
class REPLVALINF_V3_ARRAY(NDRUniConformantArray):
item = REPLVALINF_V3
class PREPLVALINF_V3_ARRAY(NDRPOINTER):
referent = (
('Data', REPLVALINF_V3_ARRAY),
)
# 5.169 REPLVALINF_NATIVE
REPLVALINF_NATIVE = REPLVALINF_V3
# 4.1.10.2.11 DRS_MSG_GETCHGREPLY_V6
class DRS_MSG_GETCHGREPLY_V6(NDRSTRUCT):
structure = (
('uuidDsaObjSrc',UUID),
('uuidInvocIdSrc',UUID),
('pNC',PDSNAME),