Exemple #1
0
class tagExtendedDebugPropertyInfo(ctypes.Structure):
    _fields_ = [
        ('dwValidFields', DWORD),
        ('pszName', LPOLESTR),
        ('pszType', LPOLESTR),
        ('pszValue', LPOLESTR),
        ('pszFullName', LPOLESTR),
        ('dwAttrib', DWORD),
        ('pDebugProp', POINTER(IDebugProperty)),
        ('nDISPID', DWORD),
        ('nType', DWORD),
        ('varValue', VARIANT),
        ('plbValue', POINTER(ILockBytes)),
        ('pDebugExtProp', POINTER(IDebugExtendedProperty)),
    ]
Exemple #2
0
 class _Union_0(ctypes.Union):
     _fields_ = [
         ('numberValue', DOUBLE),
         ('stringValue', LPCWSTR),
         ('bstrValue', BSTR),
         ('objectId', PROFILER_HEAP_OBJECT_ID),
         ('externalObjectAddress', PROFILER_EXTERNAL_OBJECT_ADDRESS),
         ('subString', POINTER(PROFILER_PROPERTY_TYPE_SUBSTRING_INFO)),
     ]
Exemple #3
0
class tagDebugPropertyInfo(ctypes.Structure):
    _fields_ = [
        ('m_dwValidFields', DWORD),
        ('m_bstrName', BSTR),
        ('m_bstrType', BSTR),
        ('m_bstrValue', BSTR),
        ('m_bstrFullName', BSTR),
        ('m_dwAttrib', DWORD),
        ('m_pDebugProp', POINTER(IDebugProperty)),
    ]
Exemple #4
0
 class _Union_0(ctypes.Union):
     _fields_ = [
         ('prototype', PROFILER_HEAP_OBJECT_ID),
         ('functionName', LPCWSTR),
         ('elementAttributesSize', UINT),
         ('elementTextChildrenSize', UINT),
         ('scopeList', POINTER(PROFILER_HEAP_OBJECT_SCOPE_LIST)),
         ('INTernalProperty', POINTER(PROFILER_HEAP_OBJECT_RELATIONSHIP)),
         ('namePropertyList',
          POINTER(PROFILER_HEAP_OBJECT_RELATIONSHIP_LIST)),
         ('indexPropertyList',
          POINTER(PROFILER_HEAP_OBJECT_RELATIONSHIP_LIST)),
         ('relationshipList',
          POINTER(PROFILER_HEAP_OBJECT_RELATIONSHIP_LIST)),
         ('eventList', POINTER(PROFILER_HEAP_OBJECT_RELATIONSHIP_LIST)),
         ('weakMapCollectionList',
          POINTER(PROFILER_HEAP_OBJECT_RELATIONSHIP_LIST)),
         ('mapCollectionList',
          POINTER(PROFILER_HEAP_OBJECT_RELATIONSHIP_LIST)),
         ('setCollectionList',
          POINTER(PROFILER_HEAP_OBJECT_RELATIONSHIP_LIST)),
     ]
Exemple #5
0
COMMETHOD = comtypes.COMMETHOD

IDebugApplicationNode100._methods_ = [
    COMMETHOD(
        [],
        HRESULT,
        'SetFilterForEventSink',
        ([], DWORD, 'dwCookie'),
        ([], APPLICATION_NODE_EVENT_FILTER, 'filter'),
    ),
    COMMETHOD(
        [],
        HRESULT,
        'GetExcludedDocuments',
        ([], APPLICATION_NODE_EVENT_FILTER, 'filter'),
        ([], POINTER(TEXT_DOCUMENT_ARRAY), 'pDocuments'),
    ),
    COMMETHOD(
        [],
        HRESULT,
        'QueryIsChildNode',
        ([], POINTER(IDebugDocument), 'pSearchKey'),
    ),
]

IWebAppDiagnosticsSetup._methods_ = [
    COMMETHOD(
        [],
        HRESULT,
        'DiagnosticsSupported',
        ([], POINTER(VARIANT_BOOL), 'pRetVal'),

# __IInspectable_FWD_DEFINED__
# header files for imported files
from unknwn_h import *  # NOQA
from hstring_h import *  # NOQA
# INTerface __MIDL_itf_inspectable_0000_0000
# [local]
# +-------------------------------------------------------------------------

# Microsoft Windows
# Copyright (c) Microsoft Corporation. All rights reserved.

# --------------------------------------------------------------------------
# [unique]
LPINSPECTABLE = POINTER(IInspectable)
# [v1_enum]


class TrustLevel(ENUM):
    BaseTrust = 0
    PartialTrust = BaseTrust + 1
    FullTrust = PartialTrust + 1


# INTerface IInspectable
# [unique][uuid][object]
COMMETHOD = comtypes.COMMETHOD

IInspectable._methods_ = [
    COMMETHOD(
Exemple #7
0
# Microsoft Windows
# Copyright (c) Microsoft Corporation. All rights reserved.

# --------------------------------------------------------------------------
# Declare the HSTRING handle as wire_marshal for midl only


class HSTRING__(ctypes.Structure):
    _fields_ = [
        ('unused', INT),
    ]


# [unique][wire_marshal]
HSTRING = POINTER(HSTRING__)
# Declaring a handle dummy struct for HSTRING the same way DECLARE_HANDLE does.


class HSTRING_HEADER(ctypes.Structure):
    class Reserved(ctypes.Union):
        _fields_ = [
            ('Reserved1', PVOID),
            ('Reserved2', CHAR * 24),
            ('Reserved2', CHAR * 20),
        ]

    _fields_ = [
        ('Reserved', Reserved),
    ]
Exemple #8
0
from wtypes_h import (
    POINTER,
    USHORT
)


WEOF = 0xFFFF
_pctype = POINTER(USHORT)
__PCTYPE_FUNC = _pctype
_pwctype = _pctype

_UPPER = 0x00000001
_LOWER = 0x00000002
_DIGIT = 0x00000004
_SPACE = 0x00000008
_PUNCT = 0x00000010
_CONTROL = 0x00000020
_BLANK = 0x00000040
_HEX = 0x00000080
_LEADBYTE = 0x00008000
_ALPHA = 0x0100 | _UPPER | _LOWER


def __cvt_x(x):
    if not isinstance(x, str):
        x = x.encode('utf-8')
    return ord(x)


def iscntrl(x, _=None):
Exemple #9
0
class AsyncStatus(ENUM):
    Started = 0
    Completed = 1
    Canceled = 2
    Error = 3


COMMETHOD = comtypes.COMMETHOD

IAsyncInfo._methods_ = [
    COMMETHOD(
        [],
        HRESULT,
        'get_Id',
        (['out', 'retval'], POINTER(INT32), 'id'),
    ),
    COMMETHOD(
        [],
        HRESULT,
        'get_Status',
        (['out', 'retval'], POINTER(AsyncStatus), 'status'),
    ),
    COMMETHOD(
        [],
        HRESULT,
        'get_ErrorCode',
        (['out', 'retval'], POINTER(HRESULT), 'errorCode'),
    ),
    COMMETHOD([], HRESULT, 'Close'),
]
Exemple #10
0
    ),
    COMMETHOD(
        [],
        HRESULT,
        'StopProfiling',
        ([], HRESULT, 'hrShutdownReason'),
    ),
]

IActiveScriptProfilerControl2._methods_ = [
    COMMETHOD([], HRESULT, 'PrepareProfilerStop'),
]

PROFILER_HEAP_OBJECT_ID = DWORD_PTR
PROFILER_HEAP_OBJECT_NAME_ID = UINT
PROFILER_EXTERNAL_OBJECT_ADDRESS = POINTER(VOID)


class __MIDL___MIDL_itf_activprof_0000_0002_0001(ENUM):
    PROFILER_HEAP_OBJECT_FLAGS_NEW_OBJECT = 0x1
    PROFILER_HEAP_OBJECT_FLAGS_IS_ROOT = 0x2
    PROFILER_HEAP_OBJECT_FLAGS_SITE_CLOSED = 0x4
    PROFILER_HEAP_OBJECT_FLAGS_EXTERNAL = 0x8
    PROFILER_HEAP_OBJECT_FLAGS_EXTERNAL_UNKNOWN = 0x10
    PROFILER_HEAP_OBJECT_FLAGS_EXTERNAL_DISPATCH = 0x20
    PROFILER_HEAP_OBJECT_FLAGS_SIZE_APPROXIMATE = 0x40
    PROFILER_HEAP_OBJECT_FLAGS_SIZE_UNAVAILABLE = 0x80
    PROFILER_HEAP_OBJECT_FLAGS_NEW_STATE_UNAVAILABLE = 0x100
    PROFILER_HEAP_OBJECT_FLAGS_WINRT_INSTANCE = 0x200
    PROFILER_HEAP_OBJECT_FLAGS_WINRT_RUNTIMECLASS = 0x400
    PROFILER_HEAP_OBJECT_FLAGS_WINRT_DELEGATE = 0x800
Exemple #11
0
    DOT11_ADHOC_CONNECT_FAIL_OTHER = 2


DOT11_ADHOC_CONNECT_FAIL_REASON = tagDOT11_ADHOC_CONNECT_FAIL_REASON

COMMETHOD = comtypes.COMMETHOD

IDot11AdHocManager._methods_ = [
    COMMETHOD(
        [],
        HRESULT,
        'CreateNetwork',
        (['in'], LPCWSTR, 'Name'),
        (['in'], LPCWSTR, 'Password'),
        (['in'], LONG, 'GeographicalId'),
        (['in'], POINTER(IDot11AdHocInterface), 'pInterface'),
        (['in'], POINTER(IDot11AdHocSecuritySettings), 'pSecurity'),
        (['in'], POINTER(GUID), 'pContextGuid'),
        (['out'], POINTER(POINTER(IDot11AdHocNetwork)), 'pIAdHoc'),
    ),
    COMMETHOD(
        [],
        HRESULT,
        'CommitCreatedNetwork',
        (['in'], POINTER(IDot11AdHocNetwork), 'pIAdHoc'),
        (['in'], BOOLEAN, 'fSaveProfile'),
        (['in'], BOOLEAN, 'fMakeSavedProfileUserSpecific'),
    ),
    COMMETHOD(
        [],
        HRESULT,
Exemple #12
0
        ('dwMaxUnscaledY', ULONG),
        ('dwPositionX', ULONG),
        ('dwPositionY', ULONG),
        ('dwBrightness', ULONG),
        ('dwContrast', ULONG),
        ('dwCPType', ULONG),
        ('dwCPCommand', ULONG),
        ('dwCPStandard', ULONG),
        ('dwCPKey', ULONG),
        ('bCP_APSTriggerBits', ULONG),
        ('bOEMCopyProtection', UCHAR * 256),
    ]


VIDEOPARAMETERS = _VIDEOPARAMETERS
PVIDEOPARAMETERS = POINTER(_VIDEOPARAMETERS)
LPVIDEOPARAMETERS = POINTER(_VIDEOPARAMETERS)

VP_COMMAND_GET = 0x00000001
VP_COMMAND_SET = 0x00000002
VP_FLAGS_TV_MODE = 0x00000001
VP_FLAGS_TV_STANDARD = 0x00000002
VP_FLAGS_FLICKER = 0x00000004
VP_FLAGS_OVERSCAN = 0x00000008
VP_FLAGS_MAX_UNSCALED = 0x00000010
VP_FLAGS_POSITION = 0x00000020
VP_FLAGS_BRIGHTNESS = 0x00000040
VP_FLAGS_CONTRAST = 0x00000080
VP_FLAGS_COPYPROTECT = 0x00000100
VP_MODE_WIN_GRAPHICS = 0x00000001
VP_MODE_TV_PLAYBACK = 0x00000002
Exemple #13
0
STATIC_IID_IScriptScriptlet = DEFINE_GUID(0xAEE2A96, 0xBCBB, 0x11D0, 0x8C,
                                          0x72, 0x0, 0xC0, 0x4F, 0xC2, 0xB0,
                                          0x85)
STATIC_IID_IActiveScriptAuthorProcedure = DEFINE_GUID(0x7E2D4B70, 0xBD9A,
                                                      0x11D0, 0x93, 0x36, 0x0,
                                                      0xA0, 0xC9, 0xD, 0xCA,
                                                      0xA9)
SOURCE_TEXT_ATTR = WORD
COMMETHOD = comtypes.COMMETHOD

IScriptNode._methods_ = [
    COMMETHOD(
        [],
        HRESULT,
        'GetParent',
        ([], POINTER(POINTER(IScriptNode)), 'ppsnParent'),
    ),
    COMMETHOD(
        [],
        HRESULT,
        'GetIndexInParent',
        ([], POINTER(ULONG), 'pisn'),
    ),
    COMMETHOD(
        [],
        HRESULT,
        'GetCookie',
        ([], POINTER(DWORD), 'pdwCookie'),
    ),
    COMMETHOD(
        [],
Exemple #14
0
class _iobuf(ctypes.Structure):
    _fields_ = [('_ptr', POINTER(CHAR)), ('_cnt', INT),
                ('_base', POINTER(CHAR)), ('_flag', INT), ('_file', INT),
                ('_charbuf', INT), ('_bufsiz', INT),
                ('_tmpfname', POINTER(CHAR))]
Exemple #15
0
class tagTEXT_DOCUMENT_ARRAY(ctypes.Structure):
    _fields_ = [
        ('dwCount', DWORD),
        ('Members', POINTER(POINTER(IDebugDocumentText))),
    ]
Exemple #16
0
_tcsnccmp = _mbsncmp
_tcsncmp = _mbsnbcmp
_tcsncicmp = _mbsnicmp
_tcsnicmp = _mbsnbicmp
_tcscoll = _mbscoll
_tcsicoll = _mbsicoll
_tcsnccoll = _mbsncoll
_tcsncoll = _mbsnbcoll
_tcsncicoll = _mbsnicoll
_tcsnicoll = _mbsnbicoll
_tcsclen = _mbslen
_tclen = _mbclen
_tccpy = _mbccpy
_tccpy_s = _mbccpy_s
_tccpy_s_l = _mbccpy_s_l
_PUC = POINTER(CHAR)
_CPUC = POINTER(CHAR)
_PC = POINTER(CHAR)
_CRPC = POINTER(CHAR)
_CPC = POINTER(CHAR)
_UI = UINT

_istlegal_l = _ismbclegal_l
_istprint = _ismbcprint
_istprint_l = _ismbcprint_l

__all__ = (
    '_tfreopen',
    '_tfullpath',
    '_istpunct_l',
    '_wcsdec',
Exemple #17
0
        ('pDebugExtProp', POINTER(IDebugExtendedProperty)),
    ]


ExtendedDebugPropertyInfo = tagExtendedDebugPropertyInfo

COMMETHOD = comtypes.COMMETHOD

IDebugProperty._methods_ = [
    COMMETHOD(
        [],
        HRESULT,
        'GetPropertyInfo',
        (['in'], DWORD, 'dwFieldSpec'),
        (['in'], UINT, 'nRadix'),
        (['out'], POINTER(DebugPropertyInfo), 'pPropertyInfo'),
    ),
    COMMETHOD(
        [],
        HRESULT,
        'GetExtendedInfo',
        (['in'], ULONG, 'cInfos'),
        (['in'], POINTER(GUID), 'rgguidExtendedInfo'),
        (['out'], POINTER(VARIANT), 'rgvar'),
    ),
    COMMETHOD(
        [],
        HRESULT,
        'SetValueAsString',
        (['in'], LPCOLESTR, 'pszValue'),
        (['in'], UINT, 'nRadix'),
Exemple #18
0

class ADOProperties(_ADOCollection):
    _case_insensitive_ = True
    _iid_ = IID_ADOProperties
    _idlflags_ = []


COMMETHOD = comtypes.COMMETHOD

_ADOCollection._methods_ = [
    COMMETHOD(
        [],
        HRESULT,
        'get_Count',
        (['out', 'retval'], POINTER(LONG), 'c'),
    ),
    COMMETHOD(
        [],
        HRESULT,
        '_NewEnum',
        (['out', 'retval'], POINTER(POINTER(comtypes.IUnknown)), 'ppvObject'),
    ),
    COMMETHOD(
        [],
        HRESULT,
        'Refresh',
    ),
]

_ADODynaCollection._methods_ = [
Exemple #19
0
SCRIPTTHREADID = DWORD
SCRIPTTHREADID_CURRENT = -1
SCRIPTTHREADID_BASE = -2
SCRIPTTHREADID_ALL = -3
COMMETHOD = comtypes.COMMETHOD

from propidl_h import VARIANT
from oaidl_h import ITypeInfo, EXCEPINFO, IDispatch, DISPPARAMS

IActiveScriptSite._methods_ = [
    COMMETHOD(
        [],
        HRESULT,
        'GetLCID',
        ([], POINTER(LCID), 'plcid'),
    ),
    COMMETHOD(
        [],
        HRESULT,
        'GetItemInfo',
        ([], LPCOLESTR, 'pstrName'),
        ([], DWORD, 'dwReturnMask'),
        ([], POINTER(POINTER(comtypes.IUnknown)), 'ppiunkItem'),
        ([], POINTER(POINTER(ITypeInfo)), 'ppti'),
    ),
    COMMETHOD(
        [],
        HRESULT,
        'GetDocVersionString',
        ([], POINTER(BSTR), 'pbstrVersion'),