mirror of
https://github.com/hakril/PythonForWindows
synced 2026-06-08 14:31:45 +00:00
cgen: Function generated after COM, handle COM variadic (cdecl) defintion + Comimplem.IID generated avec _functions_ + Add some COM/ComInterceptor definitions
This commit is contained in:
@@ -9,7 +9,7 @@ from simpleparser import *
|
||||
class WinComParser(Parser):
|
||||
PARAM_INFO = ["__RPC__deref_out", "__RPC__in", "__RPC__deref_out_opt", "__RPC__out", "__RPC__in_opt",
|
||||
"__RPC__deref_opt_inout_opt", "__in", "__out", "__out_opt", "__in_opt", "__inout",
|
||||
"__reserved", "__RPC__in_opt_string", "__RPC__inout_opt", "__RPC__in_string"]
|
||||
"__reserved", "__RPC__in_opt_string", "__RPC__inout_opt", "__RPC__in_string", "__deref_out_opt"]
|
||||
PARAM_INFO_WITH_VALUE = ["__RPC__in_ecount", "__RPC__out_ecount_part", "__RPC__in_ecount_full",
|
||||
"__RPC__in_range", "__RPC__out_ecount_full", "__out_ecount_opt", "__out_ecount", "__in_ecount_opt",
|
||||
"__in_ecount", "__out_bcount_opt", "__out_bcount", "__in_bcount", "__in_bcount_opt", "__RPC__out_ecount_full_string"]
|
||||
@@ -68,9 +68,11 @@ class WinComParser(Parser):
|
||||
args = []
|
||||
self.assert_token_type(OpenParenthesisToken)
|
||||
while type(self.peek()) != CloseParenthesisToken:
|
||||
# TODO: handle call with VARGS ?
|
||||
if self.peek().value == "...":
|
||||
if self.peek().value == "...": #TODO: '...' token ?
|
||||
self.next_token()
|
||||
# '...' should be last token before ')'
|
||||
args.append("...") # Put a type ?
|
||||
assert type(self.peek()) == CloseParenthesisToken
|
||||
continue
|
||||
args.append(self.parse_argument())
|
||||
#print("Pass <{0}>".format(p))
|
||||
@@ -117,7 +119,7 @@ class WinComParser(Parser):
|
||||
|
||||
#print(self.data)
|
||||
|
||||
Method = namedtuple("Method", ["ret_type", "name", "args"])
|
||||
Method = namedtuple("Method", ["ret_type", "name", "args", 'functype'])
|
||||
MethodArg = namedtuple("MethodArg", ["type", "byreflevel", "name"])
|
||||
class WinCOMVTABLE(object):
|
||||
def __init__(self, vtbl_name):
|
||||
@@ -129,6 +131,11 @@ class WinCOMVTABLE(object):
|
||||
|
||||
def add_method(self, ret_type, method_name, args):
|
||||
new_args = []
|
||||
functype = 'stdcall'
|
||||
if args[-1] == "...":
|
||||
print("{0}.{1} is a cdecl COM method".format(self.name, method_name))
|
||||
args = args[:-1]
|
||||
functype = 'cdecl'
|
||||
for type, byreflevel, name in args:
|
||||
if type in ["long", "int"]:
|
||||
type = type.upper()
|
||||
@@ -136,7 +143,7 @@ class WinCOMVTABLE(object):
|
||||
|
||||
if ret_type in ["long", "int"]:
|
||||
ret_type = ret_type.upper()
|
||||
self.methods.append(Method(ret_type, method_name, new_args))
|
||||
self.methods.append(Method(ret_type, method_name, new_args, functype))
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
|
||||
@@ -0,0 +1,127 @@
|
||||
typedef struct ICallFrameVtbl
|
||||
{
|
||||
BEGIN_INTERFACE
|
||||
|
||||
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
||||
ICallFrame * This,
|
||||
/* [in] */ REFIID riid,
|
||||
/* [annotation][iid_is][out] */
|
||||
__RPC__deref_out void **ppvObject);
|
||||
|
||||
ULONG ( STDMETHODCALLTYPE *AddRef )(
|
||||
ICallFrame * This);
|
||||
|
||||
ULONG ( STDMETHODCALLTYPE *Release )(
|
||||
ICallFrame * This);
|
||||
|
||||
HRESULT ( STDMETHODCALLTYPE *GetInfo )(
|
||||
ICallFrame * This,
|
||||
/* [out] */ CALLFRAMEINFO *pInfo);
|
||||
|
||||
HRESULT ( STDMETHODCALLTYPE *GetIIDAndMethod )(
|
||||
ICallFrame * This,
|
||||
/* [out] */ IID *pIID,
|
||||
/* [out] */ ULONG *piMethod);
|
||||
|
||||
HRESULT ( STDMETHODCALLTYPE *GetNames )(
|
||||
ICallFrame * This,
|
||||
/* [annotation][out] */
|
||||
__deref_out_opt LPWSTR *pwszInterface,
|
||||
/* [annotation][out] */
|
||||
__deref_out_opt LPWSTR *pwszMethod);
|
||||
|
||||
PVOID ( STDMETHODCALLTYPE *GetStackLocation )(
|
||||
ICallFrame * This);
|
||||
|
||||
VOID ( STDMETHODCALLTYPE *SetStackLocation )(
|
||||
ICallFrame * This,
|
||||
/* [in] */ PVOID pvStack);
|
||||
|
||||
VOID ( STDMETHODCALLTYPE *SetReturnValue )(
|
||||
ICallFrame * This,
|
||||
/* [in] */ HRESULT hr);
|
||||
|
||||
HRESULT ( STDMETHODCALLTYPE *GetReturnValue )(
|
||||
ICallFrame * This);
|
||||
|
||||
HRESULT ( STDMETHODCALLTYPE *GetParamInfo )(
|
||||
ICallFrame * This,
|
||||
/* [in] */ ULONG iparam,
|
||||
/* [out] */ CALLFRAMEPARAMINFO *pInfo);
|
||||
|
||||
HRESULT ( STDMETHODCALLTYPE *SetParam )(
|
||||
ICallFrame * This,
|
||||
/* [in] */ ULONG iparam,
|
||||
/* [in] */ VARIANT *pvar);
|
||||
|
||||
HRESULT ( STDMETHODCALLTYPE *GetParam )(
|
||||
ICallFrame * This,
|
||||
/* [in] */ ULONG iparam,
|
||||
/* [out] */ VARIANT *pvar);
|
||||
|
||||
HRESULT ( STDMETHODCALLTYPE *Copy )(
|
||||
ICallFrame * This,
|
||||
/* [in] */ CALLFRAME_COPY copyControl,
|
||||
/* [in] */ ICallFrameWalker *pWalker,
|
||||
/* [out] */ ICallFrame **ppFrame);
|
||||
|
||||
HRESULT ( STDMETHODCALLTYPE *Free )(
|
||||
ICallFrame * This,
|
||||
/* [in] */ ICallFrame *pframeArgsDest,
|
||||
/* [in] */ ICallFrameWalker *pWalkerDestFree,
|
||||
/* [in] */ ICallFrameWalker *pWalkerCopy,
|
||||
/* [in] */ DWORD freeFlags,
|
||||
/* [in] */ ICallFrameWalker *pWalkerFree,
|
||||
/* [in] */ DWORD nullFlags);
|
||||
|
||||
HRESULT ( STDMETHODCALLTYPE *FreeParam )(
|
||||
ICallFrame * This,
|
||||
/* [in] */ ULONG iparam,
|
||||
/* [in] */ DWORD freeFlags,
|
||||
/* [in] */ ICallFrameWalker *pWalkerFree,
|
||||
/* [in] */ DWORD nullFlags);
|
||||
|
||||
HRESULT ( STDMETHODCALLTYPE *WalkFrame )(
|
||||
ICallFrame * This,
|
||||
/* [in] */ DWORD walkWhat,
|
||||
/* [in] */ ICallFrameWalker *pWalker);
|
||||
|
||||
HRESULT ( STDMETHODCALLTYPE *GetMarshalSizeMax )(
|
||||
ICallFrame * This,
|
||||
/* [in] */ CALLFRAME_MARSHALCONTEXT *pmshlContext,
|
||||
/* [in] */ MSHLFLAGS mshlflags,
|
||||
/* [out] */ ULONG *pcbBufferNeeded);
|
||||
|
||||
HRESULT ( STDMETHODCALLTYPE *Marshal )(
|
||||
ICallFrame * This,
|
||||
/* [in] */ CALLFRAME_MARSHALCONTEXT *pmshlContext,
|
||||
/* [in] */ MSHLFLAGS mshlflags,
|
||||
/* [size_is][in] */ PVOID pBuffer,
|
||||
/* [in] */ ULONG cbBuffer,
|
||||
/* [out] */ ULONG *pcbBufferUsed,
|
||||
/* [out] */ RPCOLEDATAREP *pdataRep,
|
||||
/* [out] */ ULONG *prpcFlags);
|
||||
|
||||
HRESULT ( STDMETHODCALLTYPE *Unmarshal )(
|
||||
ICallFrame * This,
|
||||
/* [size_is][in] */ PVOID pBuffer,
|
||||
/* [in] */ ULONG cbBuffer,
|
||||
/* [in] */ RPCOLEDATAREP dataRep,
|
||||
/* [in] */ CALLFRAME_MARSHALCONTEXT *pcontext,
|
||||
/* [out] */ ULONG *pcbUnmarshalled);
|
||||
|
||||
HRESULT ( STDMETHODCALLTYPE *ReleaseMarshalData )(
|
||||
ICallFrame * This,
|
||||
/* [size_is][in] */ PVOID pBuffer,
|
||||
/* [in] */ ULONG cbBuffer,
|
||||
/* [in] */ ULONG ibFirstRelease,
|
||||
/* [in] */ RPCOLEDATAREP dataRep,
|
||||
/* [in] */ CALLFRAME_MARSHALCONTEXT *pcontext);
|
||||
|
||||
HRESULT ( STDMETHODCALLTYPE *Invoke )(
|
||||
ICallFrame * This,
|
||||
/* [in] */ void *pvReceiver,
|
||||
...);
|
||||
|
||||
END_INTERFACE
|
||||
} ICallFrameVtbl;
|
||||
@@ -0,0 +1,22 @@
|
||||
typedef struct ICallFrameEventsVtbl
|
||||
{
|
||||
BEGIN_INTERFACE
|
||||
|
||||
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
||||
ICallFrameEvents * This,
|
||||
/* [in] */ REFIID riid,
|
||||
/* [annotation][iid_is][out] */
|
||||
__RPC__deref_out void **ppvObject);
|
||||
|
||||
ULONG ( STDMETHODCALLTYPE *AddRef )(
|
||||
ICallFrameEvents * This);
|
||||
|
||||
ULONG ( STDMETHODCALLTYPE *Release )(
|
||||
ICallFrameEvents * This);
|
||||
|
||||
HRESULT ( STDMETHODCALLTYPE *OnCall )(
|
||||
ICallFrameEvents * This,
|
||||
/* [in] */ ICallFrame *pFrame);
|
||||
|
||||
END_INTERFACE
|
||||
} ICallFrameEventsVtbl;
|
||||
@@ -0,0 +1,25 @@
|
||||
typedef struct ICallFrameWalkerVtbl
|
||||
{
|
||||
BEGIN_INTERFACE
|
||||
|
||||
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
||||
ICallFrameWalker * This,
|
||||
/* [in] */ REFIID riid,
|
||||
/* [annotation][iid_is][out] */
|
||||
__RPC__deref_out void **ppvObject);
|
||||
|
||||
ULONG ( STDMETHODCALLTYPE *AddRef )(
|
||||
ICallFrameWalker * This);
|
||||
|
||||
ULONG ( STDMETHODCALLTYPE *Release )(
|
||||
ICallFrameWalker * This);
|
||||
|
||||
HRESULT ( STDMETHODCALLTYPE *OnWalkInterface )(
|
||||
ICallFrameWalker * This,
|
||||
/* [in] */ REFIID iid,
|
||||
/* [in] */ PVOID *ppvInterface,
|
||||
/* [in] */ BOOL fIn,
|
||||
/* [in] */ BOOL fOut);
|
||||
|
||||
END_INTERFACE
|
||||
} ICallFrameWalkerVtbl;
|
||||
@@ -0,0 +1,56 @@
|
||||
typedef struct ICallInterceptorVtbl
|
||||
{
|
||||
BEGIN_INTERFACE
|
||||
|
||||
HRESULT ( STDMETHODCALLTYPE *QueryInterface )(
|
||||
ICallInterceptor * This,
|
||||
/* [in] */ REFIID riid,
|
||||
/* [annotation][iid_is][out] */
|
||||
__RPC__deref_out void **ppvObject);
|
||||
|
||||
ULONG ( STDMETHODCALLTYPE *AddRef )(
|
||||
ICallInterceptor * This);
|
||||
|
||||
ULONG ( STDMETHODCALLTYPE *Release )(
|
||||
ICallInterceptor * This);
|
||||
|
||||
HRESULT ( STDMETHODCALLTYPE *CallIndirect )(
|
||||
ICallInterceptor * This,
|
||||
/* [out] */ HRESULT *phrReturn,
|
||||
/* [in] */ ULONG iMethod,
|
||||
/* [in] */ void *pvArgs,
|
||||
/* [out] */ ULONG *cbArgs);
|
||||
|
||||
HRESULT ( STDMETHODCALLTYPE *GetMethodInfo )(
|
||||
ICallInterceptor * This,
|
||||
/* [in] */ ULONG iMethod,
|
||||
/* [out] */ CALLFRAMEINFO *pInfo,
|
||||
/* [annotation][out] */
|
||||
__deref_out_opt LPWSTR *pwszMethod);
|
||||
|
||||
HRESULT ( STDMETHODCALLTYPE *GetStackSize )(
|
||||
ICallInterceptor * This,
|
||||
/* [in] */ ULONG iMethod,
|
||||
/* [out] */ ULONG *cbArgs);
|
||||
|
||||
HRESULT ( STDMETHODCALLTYPE *GetIID )(
|
||||
ICallInterceptor * This,
|
||||
/* [annotation][out] */
|
||||
__out_opt IID *piid,
|
||||
/* [annotation][out] */
|
||||
__out_opt BOOL *pfDerivesFromIDispatch,
|
||||
/* [annotation][out] */
|
||||
__out_opt ULONG *pcMethod,
|
||||
/* [annotation][out] */
|
||||
__deref_out_opt LPWSTR *pwszInterface);
|
||||
|
||||
HRESULT ( STDMETHODCALLTYPE *RegisterSink )(
|
||||
ICallInterceptor * This,
|
||||
/* [in] */ ICallFrameEvents *psink);
|
||||
|
||||
HRESULT ( STDMETHODCALLTYPE *GetRegisteredSink )(
|
||||
ICallInterceptor * This,
|
||||
/* [out] */ ICallFrameEvents **ppsink);
|
||||
|
||||
END_INTERFACE
|
||||
} ICallInterceptorVtbl;
|
||||
@@ -0,0 +1,31 @@
|
||||
HRESULT WINAPI CoInitializeEx(
|
||||
_In_opt_ LPVOID pvReserved,
|
||||
_In_ DWORD dwCoInit
|
||||
);
|
||||
|
||||
HRESULT WINAPI CoInitializeSecurity(
|
||||
_In_opt_ PSECURITY_DESCRIPTOR pSecDesc,
|
||||
_In_ LONG cAuthSvc,
|
||||
_In_opt_ SOLE_AUTHENTICATION_SERVICE *asAuthSvc,
|
||||
_In_opt_ PVOID pReserved1,
|
||||
_In_ DWORD dwAuthnLevel,
|
||||
_In_ DWORD dwImpLevel,
|
||||
_In_opt_ PVOID pAuthList,
|
||||
_In_ DWORD dwCapabilities,
|
||||
_In_opt_ PVOID pReserved3
|
||||
);
|
||||
|
||||
HRESULT WINAPI CoCreateInstance(
|
||||
_In_ REFCLSID rclsid,
|
||||
_In_ LPUNKNOWN pUnkOuter,
|
||||
_In_ DWORD dwClsContext,
|
||||
_In_ REFIID riid,
|
||||
_Out_ LPVOID *ppv
|
||||
);
|
||||
|
||||
HRESULT WINAPI CoGetInterceptor(
|
||||
_In_ REFIID iidIntercepted,
|
||||
_In_ IUnknown *punkOuter,
|
||||
_In_ REFIID iid,
|
||||
_Out_ PVOID *ppv
|
||||
);
|
||||
@@ -1506,30 +1506,6 @@ BOOL WINAPI LookupAccountSidW(
|
||||
_Out_ PSID_NAME_USE peUse
|
||||
);
|
||||
|
||||
HRESULT WINAPI CoInitializeEx(
|
||||
_In_opt_ LPVOID pvReserved,
|
||||
_In_ DWORD dwCoInit
|
||||
);
|
||||
|
||||
HRESULT WINAPI CoInitializeSecurity(
|
||||
_In_opt_ PSECURITY_DESCRIPTOR pSecDesc,
|
||||
_In_ LONG cAuthSvc,
|
||||
_In_opt_ SOLE_AUTHENTICATION_SERVICE *asAuthSvc,
|
||||
_In_opt_ PVOID pReserved1,
|
||||
_In_ DWORD dwAuthnLevel,
|
||||
_In_ DWORD dwImpLevel,
|
||||
_In_opt_ PVOID pAuthList,
|
||||
_In_ DWORD dwCapabilities,
|
||||
_In_opt_ PVOID pReserved3
|
||||
);
|
||||
|
||||
HRESULT WINAPI CoCreateInstance(
|
||||
_In_ REFCLSID rclsid,
|
||||
_In_ LPUNKNOWN pUnkOuter,
|
||||
_In_ DWORD dwClsContext,
|
||||
_In_ REFIID riid,
|
||||
_Out_ LPVOID *ppv
|
||||
);
|
||||
|
||||
DWORD WINAPI GetInterfaceInfo(
|
||||
_Out_ PIP_INTERFACE_INFO pIfTable,
|
||||
|
||||
@@ -82,6 +82,10 @@ HCURSOR = HANDLE
|
||||
HBRUSH = HANDLE
|
||||
HCRYPTPROV_OR_NCRYPT_KEY_HANDLE = PULONG
|
||||
|
||||
/* COM STUFF */
|
||||
|
||||
RPCOLEDATAREP = ULONG
|
||||
|
||||
/* Function PTR */
|
||||
|
||||
WNDPROC = PVOID
|
||||
|
||||
@@ -0,0 +1,44 @@
|
||||
typedef struct _CALLFRAMEPARAMINFO{
|
||||
BOOLEAN fIn;
|
||||
BOOLEAN fOut;
|
||||
ULONG stackOffset;
|
||||
ULONG cbParam;
|
||||
} CALLFRAMEPARAMINFO;
|
||||
|
||||
typedef struct _CALLFRAMEINFO{
|
||||
ULONG iMethod;
|
||||
BOOL fHasInValues;
|
||||
BOOL fHasInOutValues;
|
||||
BOOL fHasOutValues;
|
||||
BOOL fDerivesFromIDispatch;
|
||||
LONG cInInterfacesMax;
|
||||
LONG cInOutInterfacesMax;
|
||||
LONG cOutInterfacesMax;
|
||||
LONG cTopLevelInInterfaces;
|
||||
IID iid;
|
||||
ULONG cMethod;
|
||||
ULONG cParams;
|
||||
} CALLFRAMEINFO;
|
||||
|
||||
|
||||
typedef struct _CALLFRAME_MARSHALCONTEXT{
|
||||
BOOLEAN fIn;
|
||||
DWORD dwDestContext;
|
||||
LPVOID pvDestContext;
|
||||
PVOID *mshlmgr; // Was <IUnknown> how can I do for this circle dep ?
|
||||
GUID guidTransferSyntax;
|
||||
} CALLFRAME_MARSHALCONTEXT;
|
||||
|
||||
|
||||
typedef enum _CALLFRAME_COPY{
|
||||
CALLFRAME_COPY_NESTED = 1,
|
||||
CALLFRAME_COPY_INDEPENDENT = 2
|
||||
} CALLFRAME_COPY;
|
||||
|
||||
|
||||
typedef enum tagMSHLFLAGS {
|
||||
MSHLFLAGS_NORMAL = 0,
|
||||
MSHLFLAGS_TABLESTRONG = 1,
|
||||
MSHLFLAGS_TABLEWEAK = 2,
|
||||
MSHLFLAGS_NOPING = 4
|
||||
} MSHLFLAGS;
|
||||
@@ -333,10 +333,11 @@ class COMCtypesGenerator(CtypesGenerator):
|
||||
cls_format_param = {"name": name, "iid_python" : iid_python, "iid_str": iid_str}
|
||||
|
||||
self.emitline("class {name}(COMInterface):".format(**cls_format_param))
|
||||
self.emitline(' IID = generate_IID({iid_python}, name="{name}", strid="{iid_str}")'.format(**cls_format_param))
|
||||
self.emitline(' _functions_ = {')
|
||||
self.emit_com_interface_functions(cominterface)
|
||||
self.emitline(' }')
|
||||
# Generate IID after functions because functions might use IID (the typedef of GUID)
|
||||
self.emitline(' IID = generate_IID({iid_python}, name="{name}", strid="{iid_str}")'.format(**cls_format_param))
|
||||
self.emitline('')
|
||||
|
||||
|
||||
@@ -364,7 +365,8 @@ class COMCtypesGenerator(CtypesGenerator):
|
||||
|
||||
# methods_string.append(self.com_interface_method_template.format(method.name, ", ".join([method.ret_type] + str_args), method_nb))
|
||||
params = ", ".join([method.ret_type] + str_args)
|
||||
self.emitline(indent + '"{0}": ctypes.WINFUNCTYPE({1})({2}, "{0}"),'.format(name, params, method_nb))
|
||||
ctypes_functype = 'WINFUNCTYPE' if method.functype == 'stdcall' else 'CFUNCTYPE'
|
||||
self.emitline(indent + '"{0}": ctypes.{functype}({1})({2}, "{0}"),'.format(name, params, method_nb, functype=ctypes_functype))
|
||||
return
|
||||
|
||||
|
||||
@@ -624,15 +626,6 @@ structure_module_generator.add_module_dependancy(definemodulegenerator)
|
||||
structure_module_generator.resolve_dep_and_generate([BasicTypeNodes()])
|
||||
structure_module_generator.generate_doc(from_here(r"..\docs\source\winstructs_generated.rst"))
|
||||
|
||||
print("== Generating functions ==")
|
||||
# Generate function
|
||||
functions_module_generator = ModuleGenerator("winfuncs", FunctionParsedFile, FunctionCtypesGenerator, None, from_here(r"definitions\functions"))
|
||||
# no template file
|
||||
functions_module_generator.get_template_filename = lambda : None
|
||||
functions_module_generator.parse_source_directory()
|
||||
functions_module_generator.add_module_dependancy(structure_module_generator)
|
||||
functions_module_generator.resolve_dep_and_generate([BasicTypeNodes()])
|
||||
|
||||
print("== Generating COM interfaces ==")
|
||||
# Generate COM interfaces
|
||||
com_module_generator = ModuleGenerator("interfaces", COMParsedFile, COMCtypesGenerator, None, from_here(r"definitions\com"))
|
||||
@@ -643,6 +636,17 @@ com_module_generator.add_module_dependancy(structure_module_generator)
|
||||
com_module_generator.resolve_dependancies = com_module_generator.check_dependancies_without_flattening # No real flattening as we have circular dep in Interfaces VTBL
|
||||
com_module_generator.resolve_dep_and_generate([BasicTypeNodes()])
|
||||
|
||||
print("== Generating functions ==")
|
||||
# Generate function
|
||||
functions_module_generator = ModuleGenerator("winfuncs", FunctionParsedFile, FunctionCtypesGenerator, None, from_here(r"definitions\functions"))
|
||||
# no template file
|
||||
functions_module_generator.get_template_filename = lambda : None
|
||||
functions_module_generator.parse_source_directory()
|
||||
functions_module_generator.add_module_dependancy(structure_module_generator)
|
||||
functions_module_generator.add_module_dependancy(com_module_generator)
|
||||
functions_module_generator.resolve_dep_and_generate([BasicTypeNodes()])
|
||||
|
||||
|
||||
print("== Generating META file ==")
|
||||
# Meta-file generator
|
||||
enums_exports = set()
|
||||
|
||||
+625
-625
File diff suppressed because it is too large
Load Diff
@@ -2,6 +2,132 @@
|
||||
|
||||
Winstructs
|
||||
----------
|
||||
_CALLFRAMEPARAMINFO
|
||||
'''''''''''''''''''
|
||||
.. class:: CALLFRAMEPARAMINFO
|
||||
|
||||
Alias for :class:`_CALLFRAMEPARAMINFO`
|
||||
|
||||
.. class:: _CALLFRAMEPARAMINFO
|
||||
|
||||
.. attribute:: fIn
|
||||
|
||||
:class:`BOOLEAN`
|
||||
|
||||
|
||||
.. attribute:: fOut
|
||||
|
||||
:class:`BOOLEAN`
|
||||
|
||||
|
||||
.. attribute:: stackOffset
|
||||
|
||||
:class:`ULONG`
|
||||
|
||||
|
||||
.. attribute:: cbParam
|
||||
|
||||
:class:`ULONG`
|
||||
|
||||
_CALLFRAMEINFO
|
||||
''''''''''''''
|
||||
.. class:: CALLFRAMEINFO
|
||||
|
||||
Alias for :class:`_CALLFRAMEINFO`
|
||||
|
||||
.. class:: _CALLFRAMEINFO
|
||||
|
||||
.. attribute:: iMethod
|
||||
|
||||
:class:`ULONG`
|
||||
|
||||
|
||||
.. attribute:: fHasInValues
|
||||
|
||||
:class:`BOOL`
|
||||
|
||||
|
||||
.. attribute:: fHasInOutValues
|
||||
|
||||
:class:`BOOL`
|
||||
|
||||
|
||||
.. attribute:: fHasOutValues
|
||||
|
||||
:class:`BOOL`
|
||||
|
||||
|
||||
.. attribute:: fDerivesFromIDispatch
|
||||
|
||||
:class:`BOOL`
|
||||
|
||||
|
||||
.. attribute:: cInInterfacesMax
|
||||
|
||||
:class:`LONG`
|
||||
|
||||
|
||||
.. attribute:: cInOutInterfacesMax
|
||||
|
||||
:class:`LONG`
|
||||
|
||||
|
||||
.. attribute:: cOutInterfacesMax
|
||||
|
||||
:class:`LONG`
|
||||
|
||||
|
||||
.. attribute:: cTopLevelInInterfaces
|
||||
|
||||
:class:`LONG`
|
||||
|
||||
|
||||
.. attribute:: iid
|
||||
|
||||
:class:`IID`
|
||||
|
||||
|
||||
.. attribute:: cMethod
|
||||
|
||||
:class:`ULONG`
|
||||
|
||||
|
||||
.. attribute:: cParams
|
||||
|
||||
:class:`ULONG`
|
||||
|
||||
_CALLFRAME_MARSHALCONTEXT
|
||||
'''''''''''''''''''''''''
|
||||
.. class:: CALLFRAME_MARSHALCONTEXT
|
||||
|
||||
Alias for :class:`_CALLFRAME_MARSHALCONTEXT`
|
||||
|
||||
.. class:: _CALLFRAME_MARSHALCONTEXT
|
||||
|
||||
.. attribute:: fIn
|
||||
|
||||
:class:`BOOLEAN`
|
||||
|
||||
|
||||
.. attribute:: dwDestContext
|
||||
|
||||
:class:`DWORD`
|
||||
|
||||
|
||||
.. attribute:: pvDestContext
|
||||
|
||||
:class:`LPVOID`
|
||||
|
||||
|
||||
.. attribute:: mshlmgr
|
||||
|
||||
:class:`PVOID`
|
||||
|
||||
|
||||
.. attribute:: guidTransferSyntax
|
||||
|
||||
:class:`GUID`
|
||||
|
||||
_GUID
|
||||
'''''
|
||||
.. class:: REFCLSID
|
||||
@@ -12563,6 +12689,42 @@ _FILE_ALL_INFORMATION
|
||||
|
||||
WinEnums
|
||||
--------
|
||||
_CALLFRAME_COPY
|
||||
'''''''''''''''
|
||||
.. class:: CALLFRAME_COPY
|
||||
|
||||
Alias for :class:`_CALLFRAME_COPY`
|
||||
|
||||
|
||||
.. class:: _CALLFRAME_COPY
|
||||
|
||||
|
||||
.. attribute:: CALLFRAME_COPY_NESTED(1)
|
||||
|
||||
|
||||
.. attribute:: CALLFRAME_COPY_INDEPENDENT(2)
|
||||
|
||||
tagMSHLFLAGS
|
||||
''''''''''''
|
||||
.. class:: MSHLFLAGS
|
||||
|
||||
Alias for :class:`tagMSHLFLAGS`
|
||||
|
||||
|
||||
.. class:: tagMSHLFLAGS
|
||||
|
||||
|
||||
.. attribute:: MSHLFLAGS_NORMAL(0)
|
||||
|
||||
|
||||
.. attribute:: MSHLFLAGS_TABLESTRONG(1)
|
||||
|
||||
|
||||
.. attribute:: MSHLFLAGS_TABLEWEAK(2)
|
||||
|
||||
|
||||
.. attribute:: MSHLFLAGS_NOPING(4)
|
||||
|
||||
_SYSTEM_INFORMATION_CLASS
|
||||
'''''''''''''''''''''''''
|
||||
.. class:: SYSTEM_INFORMATION_CLASS
|
||||
|
||||
+1
-1
@@ -9,7 +9,7 @@ from windows.generated_def.winstructs import *
|
||||
|
||||
from windows.generated_def import RPC_C_IMP_LEVEL_IMPERSONATE, CLSCTX_INPROC_SERVER
|
||||
from windows.generated_def import interfaces
|
||||
from windows.generated_def.interfaces import generate_IID, IID
|
||||
from windows.generated_def.interfaces import generate_IID, IID, COMImplementation
|
||||
|
||||
|
||||
# Simple raw -> UUID
|
||||
|
||||
@@ -72,7 +72,6 @@ class COMImplementation(object):
|
||||
def Release(self, *args):
|
||||
return 0
|
||||
class IBackgroundCopyCallback(COMInterface):
|
||||
IID = generate_IID(0x97EA99C7, 0x0186, 0x4AD4, 0x8D, 0xF9, 0xC5, 0xB4, 0xE0, 0xED, 0x6B, 0x22, name="IBackgroundCopyCallback", strid="97EA99C7-0186-4AD4-8DF9-C5B4E0ED6B22")
|
||||
_functions_ = {
|
||||
# QueryInterface -> riid:REFIID, ppvObject:**void
|
||||
"QueryInterface": ctypes.WINFUNCTYPE(HRESULT, REFIID, POINTER(PVOID))(0, "QueryInterface"),
|
||||
@@ -87,9 +86,9 @@ class IBackgroundCopyCallback(COMInterface):
|
||||
# JobModification -> pJob:*IBackgroundCopyJob, dwReserved:DWORD
|
||||
"JobModification": ctypes.WINFUNCTYPE(HRESULT, PVOID, DWORD)(5, "JobModification"),
|
||||
}
|
||||
IID = generate_IID(0x97EA99C7, 0x0186, 0x4AD4, 0x8D, 0xF9, 0xC5, 0xB4, 0xE0, 0xED, 0x6B, 0x22, name="IBackgroundCopyCallback", strid="97EA99C7-0186-4AD4-8DF9-C5B4E0ED6B22")
|
||||
|
||||
class IBackgroundCopyError(COMInterface):
|
||||
IID = generate_IID(0x19C613A0, 0xFCB8, 0x4F28, 0x81, 0xAE, 0x89, 0x7C, 0x3D, 0x07, 0x8F, 0x81, name="IBackgroundCopyError", strid="19C613A0-FCB8-4F28-81AE-897C3D078F81")
|
||||
_functions_ = {
|
||||
# QueryInterface -> riid:REFIID, ppvObject:**void
|
||||
"QueryInterface": ctypes.WINFUNCTYPE(HRESULT, REFIID, POINTER(PVOID))(0, "QueryInterface"),
|
||||
@@ -108,9 +107,9 @@ class IBackgroundCopyError(COMInterface):
|
||||
# GetProtocol -> pProtocol:*LPWSTR
|
||||
"GetProtocol": ctypes.WINFUNCTYPE(HRESULT, POINTER(LPWSTR))(7, "GetProtocol"),
|
||||
}
|
||||
IID = generate_IID(0x19C613A0, 0xFCB8, 0x4F28, 0x81, 0xAE, 0x89, 0x7C, 0x3D, 0x07, 0x8F, 0x81, name="IBackgroundCopyError", strid="19C613A0-FCB8-4F28-81AE-897C3D078F81")
|
||||
|
||||
class IBackgroundCopyFile(COMInterface):
|
||||
IID = generate_IID(0x01B7BD23, 0xFB88, 0x4A77, 0x84, 0x90, 0x58, 0x91, 0xD3, 0xE4, 0x65, 0x3A, name="IBackgroundCopyFile", strid="01B7BD23-FB88-4A77-8490-5891D3E4653A")
|
||||
_functions_ = {
|
||||
# QueryInterface -> riid:REFIID, ppvObject:**void
|
||||
"QueryInterface": ctypes.WINFUNCTYPE(HRESULT, REFIID, POINTER(PVOID))(0, "QueryInterface"),
|
||||
@@ -125,9 +124,9 @@ class IBackgroundCopyFile(COMInterface):
|
||||
# GetProgress -> pVal:*BG_FILE_PROGRESS
|
||||
"GetProgress": ctypes.WINFUNCTYPE(HRESULT, POINTER(BG_FILE_PROGRESS))(5, "GetProgress"),
|
||||
}
|
||||
IID = generate_IID(0x01B7BD23, 0xFB88, 0x4A77, 0x84, 0x90, 0x58, 0x91, 0xD3, 0xE4, 0x65, 0x3A, name="IBackgroundCopyFile", strid="01B7BD23-FB88-4A77-8490-5891D3E4653A")
|
||||
|
||||
class IBackgroundCopyJob(COMInterface):
|
||||
IID = generate_IID(0x37668D37, 0x507E, 0x4160, 0x93, 0x16, 0x26, 0x30, 0x6D, 0x15, 0x0B, 0x12, name="IBackgroundCopyJob", strid="37668D37-507E-4160-9316-26306D150B12")
|
||||
_functions_ = {
|
||||
# QueryInterface -> riid:REFIID, ppvObject:**void
|
||||
"QueryInterface": ctypes.WINFUNCTYPE(HRESULT, REFIID, POINTER(PVOID))(0, "QueryInterface"),
|
||||
@@ -200,9 +199,9 @@ class IBackgroundCopyJob(COMInterface):
|
||||
# TakeOwnership ->
|
||||
"TakeOwnership": ctypes.WINFUNCTYPE(HRESULT)(34, "TakeOwnership"),
|
||||
}
|
||||
IID = generate_IID(0x37668D37, 0x507E, 0x4160, 0x93, 0x16, 0x26, 0x30, 0x6D, 0x15, 0x0B, 0x12, name="IBackgroundCopyJob", strid="37668D37-507E-4160-9316-26306D150B12")
|
||||
|
||||
class IBackgroundCopyManager(COMInterface):
|
||||
IID = generate_IID(0x5CE34C0D, 0x0DC9, 0x4C1F, 0x89, 0x7C, 0xDA, 0xA1, 0xB7, 0x8C, 0xEE, 0x7C, name="IBackgroundCopyManager", strid="5CE34C0D-0DC9-4C1F-897C-DAA1B78CEE7C")
|
||||
_functions_ = {
|
||||
# QueryInterface -> riid:REFIID, ppvObject:**void
|
||||
"QueryInterface": ctypes.WINFUNCTYPE(HRESULT, REFIID, POINTER(PVOID))(0, "QueryInterface"),
|
||||
@@ -219,9 +218,107 @@ class IBackgroundCopyManager(COMInterface):
|
||||
# GetErrorDescription -> hResult:HRESULT, LanguageId:DWORD, pErrorDescription:*LPWSTR
|
||||
"GetErrorDescription": ctypes.WINFUNCTYPE(HRESULT, HRESULT, DWORD, POINTER(LPWSTR))(6, "GetErrorDescription"),
|
||||
}
|
||||
IID = generate_IID(0x5CE34C0D, 0x0DC9, 0x4C1F, 0x89, 0x7C, 0xDA, 0xA1, 0xB7, 0x8C, 0xEE, 0x7C, name="IBackgroundCopyManager", strid="5CE34C0D-0DC9-4C1F-897C-DAA1B78CEE7C")
|
||||
|
||||
class ICallFrame(COMInterface):
|
||||
_functions_ = {
|
||||
# QueryInterface -> riid:REFIID, ppvObject:**void
|
||||
"QueryInterface": ctypes.WINFUNCTYPE(HRESULT, REFIID, POINTER(PVOID))(0, "QueryInterface"),
|
||||
# AddRef ->
|
||||
"AddRef": ctypes.WINFUNCTYPE(ULONG)(1, "AddRef"),
|
||||
# Release ->
|
||||
"Release": ctypes.WINFUNCTYPE(ULONG)(2, "Release"),
|
||||
# GetInfo -> pInfo:*CALLFRAMEINFO
|
||||
"GetInfo": ctypes.WINFUNCTYPE(HRESULT, POINTER(CALLFRAMEINFO))(3, "GetInfo"),
|
||||
# GetIIDAndMethod -> pIID:*IID, piMethod:*ULONG
|
||||
"GetIIDAndMethod": ctypes.WINFUNCTYPE(HRESULT, POINTER(IID), POINTER(ULONG))(4, "GetIIDAndMethod"),
|
||||
# GetNames -> pwszInterface:*LPWSTR, pwszMethod:*LPWSTR
|
||||
"GetNames": ctypes.WINFUNCTYPE(HRESULT, POINTER(LPWSTR), POINTER(LPWSTR))(5, "GetNames"),
|
||||
# GetStackLocation ->
|
||||
"GetStackLocation": ctypes.WINFUNCTYPE(PVOID)(6, "GetStackLocation"),
|
||||
# SetStackLocation -> pvStack:PVOID
|
||||
"SetStackLocation": ctypes.WINFUNCTYPE(VOID, PVOID)(7, "SetStackLocation"),
|
||||
# SetReturnValue -> hr:HRESULT
|
||||
"SetReturnValue": ctypes.WINFUNCTYPE(VOID, HRESULT)(8, "SetReturnValue"),
|
||||
# GetReturnValue ->
|
||||
"GetReturnValue": ctypes.WINFUNCTYPE(HRESULT)(9, "GetReturnValue"),
|
||||
# GetParamInfo -> iparam:ULONG, pInfo:*CALLFRAMEPARAMINFO
|
||||
"GetParamInfo": ctypes.WINFUNCTYPE(HRESULT, ULONG, POINTER(CALLFRAMEPARAMINFO))(10, "GetParamInfo"),
|
||||
# SetParam -> iparam:ULONG, pvar:*VARIANT
|
||||
"SetParam": ctypes.WINFUNCTYPE(HRESULT, ULONG, POINTER(VARIANT))(11, "SetParam"),
|
||||
# GetParam -> iparam:ULONG, pvar:*VARIANT
|
||||
"GetParam": ctypes.WINFUNCTYPE(HRESULT, ULONG, POINTER(VARIANT))(12, "GetParam"),
|
||||
# Copy -> copyControl:CALLFRAME_COPY, pWalker:*ICallFrameWalker, ppFrame:**ICallFrame
|
||||
"Copy": ctypes.WINFUNCTYPE(HRESULT, CALLFRAME_COPY, PVOID, POINTER(PVOID))(13, "Copy"),
|
||||
# Free -> pframeArgsDest:*ICallFrame, pWalkerDestFree:*ICallFrameWalker, pWalkerCopy:*ICallFrameWalker, freeFlags:DWORD, pWalkerFree:*ICallFrameWalker, nullFlags:DWORD
|
||||
"Free": ctypes.WINFUNCTYPE(HRESULT, PVOID, PVOID, PVOID, DWORD, PVOID, DWORD)(14, "Free"),
|
||||
# FreeParam -> iparam:ULONG, freeFlags:DWORD, pWalkerFree:*ICallFrameWalker, nullFlags:DWORD
|
||||
"FreeParam": ctypes.WINFUNCTYPE(HRESULT, ULONG, DWORD, PVOID, DWORD)(15, "FreeParam"),
|
||||
# WalkFrame -> walkWhat:DWORD, pWalker:*ICallFrameWalker
|
||||
"WalkFrame": ctypes.WINFUNCTYPE(HRESULT, DWORD, PVOID)(16, "WalkFrame"),
|
||||
# GetMarshalSizeMax -> pmshlContext:*CALLFRAME_MARSHALCONTEXT, mshlflags:MSHLFLAGS, pcbBufferNeeded:*ULONG
|
||||
"GetMarshalSizeMax": ctypes.WINFUNCTYPE(HRESULT, POINTER(CALLFRAME_MARSHALCONTEXT), MSHLFLAGS, POINTER(ULONG))(17, "GetMarshalSizeMax"),
|
||||
# Marshal -> pmshlContext:*CALLFRAME_MARSHALCONTEXT, mshlflags:MSHLFLAGS, pBuffer:PVOID, cbBuffer:ULONG, pcbBufferUsed:*ULONG, pdataRep:*RPCOLEDATAREP, prpcFlags:*ULONG
|
||||
"Marshal": ctypes.WINFUNCTYPE(HRESULT, POINTER(CALLFRAME_MARSHALCONTEXT), MSHLFLAGS, PVOID, ULONG, POINTER(ULONG), POINTER(RPCOLEDATAREP), POINTER(ULONG))(18, "Marshal"),
|
||||
# Unmarshal -> pBuffer:PVOID, cbBuffer:ULONG, dataRep:RPCOLEDATAREP, pcontext:*CALLFRAME_MARSHALCONTEXT, pcbUnmarshalled:*ULONG
|
||||
"Unmarshal": ctypes.WINFUNCTYPE(HRESULT, PVOID, ULONG, RPCOLEDATAREP, POINTER(CALLFRAME_MARSHALCONTEXT), POINTER(ULONG))(19, "Unmarshal"),
|
||||
# ReleaseMarshalData -> pBuffer:PVOID, cbBuffer:ULONG, ibFirstRelease:ULONG, dataRep:RPCOLEDATAREP, pcontext:*CALLFRAME_MARSHALCONTEXT
|
||||
"ReleaseMarshalData": ctypes.WINFUNCTYPE(HRESULT, PVOID, ULONG, ULONG, RPCOLEDATAREP, POINTER(CALLFRAME_MARSHALCONTEXT))(20, "ReleaseMarshalData"),
|
||||
# Invoke -> pvReceiver:*void
|
||||
"Invoke": ctypes.CFUNCTYPE(HRESULT, PVOID)(21, "Invoke"),
|
||||
}
|
||||
IID = generate_IID(0xD573B4B0, 0x894E, 0x11D2, 0xB8, 0xB6, 0x00, 0xC0, 0x4F, 0xB9, 0x61, 0x8A, name="ICallFrame", strid="D573B4B0-894E-11D2-B8B6-00C04FB9618A")
|
||||
|
||||
class ICallFrameEvents(COMInterface):
|
||||
_functions_ = {
|
||||
# QueryInterface -> riid:REFIID, ppvObject:**void
|
||||
"QueryInterface": ctypes.WINFUNCTYPE(HRESULT, REFIID, POINTER(PVOID))(0, "QueryInterface"),
|
||||
# AddRef ->
|
||||
"AddRef": ctypes.WINFUNCTYPE(ULONG)(1, "AddRef"),
|
||||
# Release ->
|
||||
"Release": ctypes.WINFUNCTYPE(ULONG)(2, "Release"),
|
||||
# OnCall -> pFrame:*ICallFrame
|
||||
"OnCall": ctypes.WINFUNCTYPE(HRESULT, PVOID)(3, "OnCall"),
|
||||
}
|
||||
IID = generate_IID(0xFD5E0843, 0xFC91, 0x11D0, 0x97, 0xD7, 0x00, 0xC0, 0x4F, 0xB9, 0x61, 0x8A, name="ICallFrameEvents", strid="FD5E0843-FC91-11D0-97D7-00C04FB9618A")
|
||||
|
||||
class ICallFrameWalker(COMInterface):
|
||||
_functions_ = {
|
||||
# QueryInterface -> riid:REFIID, ppvObject:**void
|
||||
"QueryInterface": ctypes.WINFUNCTYPE(HRESULT, REFIID, POINTER(PVOID))(0, "QueryInterface"),
|
||||
# AddRef ->
|
||||
"AddRef": ctypes.WINFUNCTYPE(ULONG)(1, "AddRef"),
|
||||
# Release ->
|
||||
"Release": ctypes.WINFUNCTYPE(ULONG)(2, "Release"),
|
||||
# OnWalkInterface -> iid:REFIID, ppvInterface:*PVOID, fIn:BOOL, fOut:BOOL
|
||||
"OnWalkInterface": ctypes.WINFUNCTYPE(HRESULT, REFIID, POINTER(PVOID), BOOL, BOOL)(3, "OnWalkInterface"),
|
||||
}
|
||||
IID = generate_IID(0x08B23919, 0x392D, 0x11D2, 0xB8, 0xA4, 0x00, 0xC0, 0x4F, 0xB9, 0x61, 0x8A, name="ICallFrameWalker", strid="08B23919-392D-11D2-B8A4-00C04FB9618A")
|
||||
|
||||
class ICallInterceptor(COMInterface):
|
||||
_functions_ = {
|
||||
# QueryInterface -> riid:REFIID, ppvObject:**void
|
||||
"QueryInterface": ctypes.WINFUNCTYPE(HRESULT, REFIID, POINTER(PVOID))(0, "QueryInterface"),
|
||||
# AddRef ->
|
||||
"AddRef": ctypes.WINFUNCTYPE(ULONG)(1, "AddRef"),
|
||||
# Release ->
|
||||
"Release": ctypes.WINFUNCTYPE(ULONG)(2, "Release"),
|
||||
# CallIndirect -> phrReturn:*HRESULT, iMethod:ULONG, pvArgs:*void, cbArgs:*ULONG
|
||||
"CallIndirect": ctypes.WINFUNCTYPE(HRESULT, POINTER(HRESULT), ULONG, PVOID, POINTER(ULONG))(3, "CallIndirect"),
|
||||
# GetMethodInfo -> iMethod:ULONG, pInfo:*CALLFRAMEINFO, pwszMethod:*LPWSTR
|
||||
"GetMethodInfo": ctypes.WINFUNCTYPE(HRESULT, ULONG, POINTER(CALLFRAMEINFO), POINTER(LPWSTR))(4, "GetMethodInfo"),
|
||||
# GetStackSize -> iMethod:ULONG, cbArgs:*ULONG
|
||||
"GetStackSize": ctypes.WINFUNCTYPE(HRESULT, ULONG, POINTER(ULONG))(5, "GetStackSize"),
|
||||
# GetIID -> piid:*IID, pfDerivesFromIDispatch:*BOOL, pcMethod:*ULONG, pwszInterface:*LPWSTR
|
||||
"GetIID": ctypes.WINFUNCTYPE(HRESULT, POINTER(IID), POINTER(BOOL), POINTER(ULONG), POINTER(LPWSTR))(6, "GetIID"),
|
||||
# RegisterSink -> psink:*ICallFrameEvents
|
||||
"RegisterSink": ctypes.WINFUNCTYPE(HRESULT, PVOID)(7, "RegisterSink"),
|
||||
# GetRegisteredSink -> ppsink:**ICallFrameEvents
|
||||
"GetRegisteredSink": ctypes.WINFUNCTYPE(HRESULT, POINTER(PVOID))(8, "GetRegisteredSink"),
|
||||
}
|
||||
IID = generate_IID(0x60C7CA75, 0x896D, 0x11D2, 0xB8, 0xB6, 0x00, 0xC0, 0x4F, 0xB9, 0x61, 0x8A, name="ICallInterceptor", strid="60C7CA75-896D-11D2-B8B6-00C04FB9618A")
|
||||
|
||||
class IDispatch(COMInterface):
|
||||
IID = generate_IID(0x00020400, 0x0000, 0x0000, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46, name="IDispatch", strid="00020400-0000-0000-C000-000000000046")
|
||||
_functions_ = {
|
||||
# QueryInterface -> riid:REFIID, ppvObject:**void
|
||||
"QueryInterface": ctypes.WINFUNCTYPE(HRESULT, REFIID, POINTER(PVOID))(0, "QueryInterface"),
|
||||
@@ -238,9 +335,9 @@ class IDispatch(COMInterface):
|
||||
# Invoke -> dispIdMember:DISPID, riid:REFIID, lcid:LCID, wFlags:WORD, pDispParams:*DISPPARAMS, pVarResult:*VARIANT, pExcepInfo:*EXCEPINFO, puArgErr:*UINT
|
||||
"Invoke": ctypes.WINFUNCTYPE(HRESULT, DISPID, REFIID, LCID, WORD, POINTER(DISPPARAMS), POINTER(VARIANT), POINTER(EXCEPINFO), POINTER(UINT))(6, "Invoke"),
|
||||
}
|
||||
IID = generate_IID(0x00020400, 0x0000, 0x0000, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46, name="IDispatch", strid="00020400-0000-0000-C000-000000000046")
|
||||
|
||||
class IEnumBackgroundCopyFiles(COMInterface):
|
||||
IID = generate_IID(0xCA51E165, 0xC365, 0x424C, 0x8D, 0x41, 0x24, 0xAA, 0xA4, 0xFF, 0x3C, 0x40, name="IEnumBackgroundCopyFiles", strid="CA51E165-C365-424C-8D41-24AAA4FF3C40")
|
||||
_functions_ = {
|
||||
# QueryInterface -> riid:REFIID, ppvObject:**void
|
||||
"QueryInterface": ctypes.WINFUNCTYPE(HRESULT, REFIID, POINTER(PVOID))(0, "QueryInterface"),
|
||||
@@ -259,9 +356,9 @@ class IEnumBackgroundCopyFiles(COMInterface):
|
||||
# GetCount -> puCount:*ULONG
|
||||
"GetCount": ctypes.WINFUNCTYPE(HRESULT, POINTER(ULONG))(7, "GetCount"),
|
||||
}
|
||||
IID = generate_IID(0xCA51E165, 0xC365, 0x424C, 0x8D, 0x41, 0x24, 0xAA, 0xA4, 0xFF, 0x3C, 0x40, name="IEnumBackgroundCopyFiles", strid="CA51E165-C365-424C-8D41-24AAA4FF3C40")
|
||||
|
||||
class IEnumBackgroundCopyJobs(COMInterface):
|
||||
IID = generate_IID(0x1AF4F612, 0x3B71, 0x466F, 0x8F, 0x58, 0x7B, 0x6F, 0x73, 0xAC, 0x57, 0xAD, name="IEnumBackgroundCopyJobs", strid="1AF4F612-3B71-466F-8F58-7B6F73AC57AD")
|
||||
_functions_ = {
|
||||
# QueryInterface -> riid:REFIID, ppvObject:**void
|
||||
"QueryInterface": ctypes.WINFUNCTYPE(HRESULT, REFIID, POINTER(PVOID))(0, "QueryInterface"),
|
||||
@@ -280,9 +377,9 @@ class IEnumBackgroundCopyJobs(COMInterface):
|
||||
# GetCount -> puCount:*ULONG
|
||||
"GetCount": ctypes.WINFUNCTYPE(HRESULT, POINTER(ULONG))(7, "GetCount"),
|
||||
}
|
||||
IID = generate_IID(0x1AF4F612, 0x3B71, 0x466F, 0x8F, 0x58, 0x7B, 0x6F, 0x73, 0xAC, 0x57, 0xAD, name="IEnumBackgroundCopyJobs", strid="1AF4F612-3B71-466F-8F58-7B6F73AC57AD")
|
||||
|
||||
class IEnumVARIANT(COMInterface):
|
||||
IID = generate_IID(0x00020404, 0x0000, 0x0000, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46, name="IEnumVARIANT", strid="00020404-0000-0000-C000-000000000046")
|
||||
_functions_ = {
|
||||
# QueryInterface -> riid:REFIID, ppvObject:**void
|
||||
"QueryInterface": ctypes.WINFUNCTYPE(HRESULT, REFIID, POINTER(PVOID))(0, "QueryInterface"),
|
||||
@@ -299,9 +396,9 @@ class IEnumVARIANT(COMInterface):
|
||||
# Clone -> ppEnum:**IEnumVARIANT
|
||||
"Clone": ctypes.WINFUNCTYPE(HRESULT, POINTER(PVOID))(6, "Clone"),
|
||||
}
|
||||
IID = generate_IID(0x00020404, 0x0000, 0x0000, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46, name="IEnumVARIANT", strid="00020404-0000-0000-C000-000000000046")
|
||||
|
||||
class IEnumWbemClassObject(COMInterface):
|
||||
IID = generate_IID(0x027947E1, 0xD731, 0x11CE, 0xA3, 0x57, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, name="IEnumWbemClassObject", strid="027947E1-D731-11CE-A357-000000000001")
|
||||
_functions_ = {
|
||||
# QueryInterface -> riid:REFIID, ppvObject:**void
|
||||
"QueryInterface": ctypes.WINFUNCTYPE(HRESULT, REFIID, POINTER(PVOID))(0, "QueryInterface"),
|
||||
@@ -320,9 +417,9 @@ class IEnumWbemClassObject(COMInterface):
|
||||
# Skip -> lTimeout:LONG, nCount:ULONG
|
||||
"Skip": ctypes.WINFUNCTYPE(HRESULT, LONG, ULONG)(7, "Skip"),
|
||||
}
|
||||
IID = generate_IID(0x027947E1, 0xD731, 0x11CE, 0xA3, 0x57, 0x00, 0x00, 0x00, 0x00, 0x00, 0x01, name="IEnumWbemClassObject", strid="027947E1-D731-11CE-A357-000000000001")
|
||||
|
||||
class INetFwPolicy2(COMInterface):
|
||||
IID = generate_IID(0x98325047, 0xC671, 0x4174, 0x8D, 0x81, 0xDE, 0xFC, 0xD3, 0xF0, 0x31, 0x86, name="INetFwPolicy2", strid="98325047-C671-4174-8D81-DEFCD3F03186")
|
||||
_functions_ = {
|
||||
# QueryInterface -> riid:REFIID, ppvObject:**void
|
||||
"QueryInterface": ctypes.WINFUNCTYPE(HRESULT, REFIID, POINTER(PVOID))(0, "QueryInterface"),
|
||||
@@ -383,9 +480,9 @@ class INetFwPolicy2(COMInterface):
|
||||
# get_LocalPolicyModifyState -> modifyState:*NET_FW_MODIFY_STATE
|
||||
"get_LocalPolicyModifyState": ctypes.WINFUNCTYPE(HRESULT, POINTER(NET_FW_MODIFY_STATE))(28, "get_LocalPolicyModifyState"),
|
||||
}
|
||||
IID = generate_IID(0x98325047, 0xC671, 0x4174, 0x8D, 0x81, 0xDE, 0xFC, 0xD3, 0xF0, 0x31, 0x86, name="INetFwPolicy2", strid="98325047-C671-4174-8D81-DEFCD3F03186")
|
||||
|
||||
class INetFwRules(COMInterface):
|
||||
IID = generate_IID(0x9C4C6277, 0x5027, 0x441E, 0xAF, 0xAE, 0xCA, 0x1F, 0x54, 0x2D, 0xA0, 0x09, name="INetFwRules", strid="9C4C6277-5027-441E-AFAE-CA1F542DA009")
|
||||
_functions_ = {
|
||||
# QueryInterface -> riid:REFIID, ppvObject:**void
|
||||
"QueryInterface": ctypes.WINFUNCTYPE(HRESULT, REFIID, POINTER(PVOID))(0, "QueryInterface"),
|
||||
@@ -412,9 +509,9 @@ class INetFwRules(COMInterface):
|
||||
# get__NewEnum -> newEnum:**IUnknown
|
||||
"get__NewEnum": ctypes.WINFUNCTYPE(HRESULT, POINTER(PVOID))(11, "get__NewEnum"),
|
||||
}
|
||||
IID = generate_IID(0x9C4C6277, 0x5027, 0x441E, 0xAF, 0xAE, 0xCA, 0x1F, 0x54, 0x2D, 0xA0, 0x09, name="INetFwRules", strid="9C4C6277-5027-441E-AFAE-CA1F542DA009")
|
||||
|
||||
class INetFwRule(COMInterface):
|
||||
IID = generate_IID(0xAF230D27, 0xBABA, 0x4E42, 0xAC, 0xED, 0xF5, 0x24, 0xF2, 0x2C, 0xFC, 0xE2, name="INetFwRule", strid="AF230D27-BABA-4E42-ACED-F524F22CFCE2")
|
||||
_functions_ = {
|
||||
# QueryInterface -> riid:REFIID, ppvObject:**void
|
||||
"QueryInterface": ctypes.WINFUNCTYPE(HRESULT, REFIID, POINTER(PVOID))(0, "QueryInterface"),
|
||||
@@ -503,9 +600,9 @@ class INetFwRule(COMInterface):
|
||||
# put_Action -> action:NET_FW_ACTION
|
||||
"put_Action": ctypes.WINFUNCTYPE(HRESULT, NET_FW_ACTION)(42, "put_Action"),
|
||||
}
|
||||
IID = generate_IID(0xAF230D27, 0xBABA, 0x4E42, 0xAC, 0xED, 0xF5, 0x24, 0xF2, 0x2C, 0xFC, 0xE2, name="INetFwRule", strid="AF230D27-BABA-4E42-ACED-F524F22CFCE2")
|
||||
|
||||
class INetFwServiceRestriction(COMInterface):
|
||||
IID = generate_IID(0x8267BBE3, 0xF890, 0x491C, 0xB7, 0xB6, 0x2D, 0xB1, 0xEF, 0x0E, 0x5D, 0x2B, name="INetFwServiceRestriction", strid="8267BBE3-F890-491C-B7B6-2DB1EF0E5D2B")
|
||||
_functions_ = {
|
||||
# QueryInterface -> riid:REFIID, ppvObject:**void
|
||||
"QueryInterface": ctypes.WINFUNCTYPE(HRESULT, REFIID, POINTER(PVOID))(0, "QueryInterface"),
|
||||
@@ -528,9 +625,9 @@ class INetFwServiceRestriction(COMInterface):
|
||||
# get_Rules -> rules:**INetFwRules
|
||||
"get_Rules": ctypes.WINFUNCTYPE(HRESULT, POINTER(PVOID))(9, "get_Rules"),
|
||||
}
|
||||
IID = generate_IID(0x8267BBE3, 0xF890, 0x491C, 0xB7, 0xB6, 0x2D, 0xB1, 0xEF, 0x0E, 0x5D, 0x2B, name="INetFwServiceRestriction", strid="8267BBE3-F890-491C-B7B6-2DB1EF0E5D2B")
|
||||
|
||||
class IPersistFile(COMInterface):
|
||||
IID = generate_IID(0x0000010B, 0x0000, 0x0000, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46, name="IPersistFile", strid="0000010B-0000-0000-C000-000000000046")
|
||||
_functions_ = {
|
||||
# QueryInterface -> riid:REFIID, ppvObject:**void
|
||||
"QueryInterface": ctypes.WINFUNCTYPE(HRESULT, REFIID, POINTER(PVOID))(0, "QueryInterface"),
|
||||
@@ -551,9 +648,9 @@ class IPersistFile(COMInterface):
|
||||
# GetCurFile -> ppszFileName:*LPOLESTR
|
||||
"GetCurFile": ctypes.WINFUNCTYPE(HRESULT, POINTER(LPOLESTR))(8, "GetCurFile"),
|
||||
}
|
||||
IID = generate_IID(0x0000010B, 0x0000, 0x0000, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46, name="IPersistFile", strid="0000010B-0000-0000-C000-000000000046")
|
||||
|
||||
class IShellLinkA(COMInterface):
|
||||
IID = generate_IID(0x000214EE, 0x0000, 0x0000, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46, name="IShellLinkA", strid="000214EE-0000-0000-C000-000000000046")
|
||||
_functions_ = {
|
||||
# QueryInterface -> riid:REFIID, ppvObject:**void
|
||||
"QueryInterface": ctypes.WINFUNCTYPE(HRESULT, REFIID, POINTER(PVOID))(0, "QueryInterface"),
|
||||
@@ -598,9 +695,9 @@ class IShellLinkA(COMInterface):
|
||||
# SetPath -> pszFile:LPCSTR
|
||||
"SetPath": ctypes.WINFUNCTYPE(HRESULT, LPCSTR)(20, "SetPath"),
|
||||
}
|
||||
IID = generate_IID(0x000214EE, 0x0000, 0x0000, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46, name="IShellLinkA", strid="000214EE-0000-0000-C000-000000000046")
|
||||
|
||||
class IUnknown(COMInterface):
|
||||
IID = generate_IID(0x00000000, 0x0000, 0x0000, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46, name="IUnknown", strid="00000000-0000-0000-C000-000000000046")
|
||||
_functions_ = {
|
||||
# QueryInterface -> riid:REFIID, ppvObject:**void
|
||||
"QueryInterface": ctypes.WINFUNCTYPE(HRESULT, REFIID, POINTER(PVOID))(0, "QueryInterface"),
|
||||
@@ -609,9 +706,9 @@ class IUnknown(COMInterface):
|
||||
# Release ->
|
||||
"Release": ctypes.WINFUNCTYPE(ULONG)(2, "Release"),
|
||||
}
|
||||
IID = generate_IID(0x00000000, 0x0000, 0x0000, 0xC0, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x46, name="IUnknown", strid="00000000-0000-0000-C000-000000000046")
|
||||
|
||||
class IWbemCallResult(COMInterface):
|
||||
IID = generate_IID(0x44ACA675, 0xE8FC, 0x11D0, 0xA0, 0x7C, 0x00, 0xC0, 0x4F, 0xB6, 0x88, 0x20, name="IWbemCallResult", strid="44ACA675-E8FC-11D0-A07C-00C04FB68820")
|
||||
_functions_ = {
|
||||
# QueryInterface -> riid:REFIID, ppvObject:**void
|
||||
"QueryInterface": ctypes.WINFUNCTYPE(HRESULT, REFIID, POINTER(PVOID))(0, "QueryInterface"),
|
||||
@@ -628,9 +725,9 @@ class IWbemCallResult(COMInterface):
|
||||
# GetCallStatus -> lTimeout:LONG, plStatus:*LONG
|
||||
"GetCallStatus": ctypes.WINFUNCTYPE(HRESULT, LONG, POINTER(LONG))(6, "GetCallStatus"),
|
||||
}
|
||||
IID = generate_IID(0x44ACA675, 0xE8FC, 0x11D0, 0xA0, 0x7C, 0x00, 0xC0, 0x4F, 0xB6, 0x88, 0x20, name="IWbemCallResult", strid="44ACA675-E8FC-11D0-A07C-00C04FB68820")
|
||||
|
||||
class IWbemClassObject(COMInterface):
|
||||
IID = generate_IID(0xDC12A681, 0x737F, 0x11CF, 0x88, 0x4D, 0x00, 0xAA, 0x00, 0x4B, 0x2E, 0x24, name="IWbemClassObject", strid="DC12A681-737F-11CF-884D-00AA004B2E24")
|
||||
_functions_ = {
|
||||
# QueryInterface -> riid:REFIID, ppvObject:**void
|
||||
"QueryInterface": ctypes.WINFUNCTYPE(HRESULT, REFIID, POINTER(PVOID))(0, "QueryInterface"),
|
||||
@@ -687,9 +784,9 @@ class IWbemClassObject(COMInterface):
|
||||
# GetMethodOrigin -> wszMethodName:LPCWSTR, pstrClassName:*BSTR
|
||||
"GetMethodOrigin": ctypes.WINFUNCTYPE(HRESULT, LPCWSTR, POINTER(BSTR))(26, "GetMethodOrigin"),
|
||||
}
|
||||
IID = generate_IID(0xDC12A681, 0x737F, 0x11CF, 0x88, 0x4D, 0x00, 0xAA, 0x00, 0x4B, 0x2E, 0x24, name="IWbemClassObject", strid="DC12A681-737F-11CF-884D-00AA004B2E24")
|
||||
|
||||
class IWbemContext(COMInterface):
|
||||
IID = generate_IID(0x44ACA674, 0xE8FC, 0x11D0, 0xA0, 0x7C, 0x00, 0xC0, 0x4F, 0xB6, 0x88, 0x20, name="IWbemContext", strid="44ACA674-E8FC-11D0-A07C-00C04FB68820")
|
||||
_functions_ = {
|
||||
# QueryInterface -> riid:REFIID, ppvObject:**void
|
||||
"QueryInterface": ctypes.WINFUNCTYPE(HRESULT, REFIID, POINTER(PVOID))(0, "QueryInterface"),
|
||||
@@ -716,9 +813,9 @@ class IWbemContext(COMInterface):
|
||||
# DeleteAll ->
|
||||
"DeleteAll": ctypes.WINFUNCTYPE(HRESULT)(11, "DeleteAll"),
|
||||
}
|
||||
IID = generate_IID(0x44ACA674, 0xE8FC, 0x11D0, 0xA0, 0x7C, 0x00, 0xC0, 0x4F, 0xB6, 0x88, 0x20, name="IWbemContext", strid="44ACA674-E8FC-11D0-A07C-00C04FB68820")
|
||||
|
||||
class IWbemLocator(COMInterface):
|
||||
IID = generate_IID(0xDC12A687, 0x737F, 0x11CF, 0x88, 0x4D, 0x00, 0xAA, 0x00, 0x4B, 0x2E, 0x24, name="IWbemLocator", strid="DC12A687-737F-11CF-884D-00AA004B2E24")
|
||||
_functions_ = {
|
||||
# QueryInterface -> riid:REFIID, ppvObject:**void
|
||||
"QueryInterface": ctypes.WINFUNCTYPE(HRESULT, REFIID, POINTER(PVOID))(0, "QueryInterface"),
|
||||
@@ -729,9 +826,9 @@ class IWbemLocator(COMInterface):
|
||||
# ConnectServer -> strNetworkResource:BSTR, strUser:BSTR, strPassword:BSTR, strLocale:BSTR, lSecurityFlags:LONG, strAuthority:BSTR, pCtx:*IWbemContext, ppNamespace:**IWbemServices
|
||||
"ConnectServer": ctypes.WINFUNCTYPE(HRESULT, BSTR, BSTR, BSTR, BSTR, LONG, BSTR, PVOID, POINTER(PVOID))(3, "ConnectServer"),
|
||||
}
|
||||
IID = generate_IID(0xDC12A687, 0x737F, 0x11CF, 0x88, 0x4D, 0x00, 0xAA, 0x00, 0x4B, 0x2E, 0x24, name="IWbemLocator", strid="DC12A687-737F-11CF-884D-00AA004B2E24")
|
||||
|
||||
class IWbemObjectSink(COMInterface):
|
||||
IID = generate_IID(0x7C857801, 0x7381, 0x11CF, 0x88, 0x4D, 0x00, 0xAA, 0x00, 0x4B, 0x2E, 0x24, name="IWbemObjectSink", strid="7C857801-7381-11CF-884D-00AA004B2E24")
|
||||
_functions_ = {
|
||||
# QueryInterface -> riid:REFIID, ppvObject:**void
|
||||
"QueryInterface": ctypes.WINFUNCTYPE(HRESULT, REFIID, POINTER(PVOID))(0, "QueryInterface"),
|
||||
@@ -744,9 +841,9 @@ class IWbemObjectSink(COMInterface):
|
||||
# SetStatus -> lFlags:LONG, hResult:HRESULT, strParam:BSTR, pObjParam:*IWbemClassObject
|
||||
"SetStatus": ctypes.WINFUNCTYPE(HRESULT, LONG, HRESULT, BSTR, PVOID)(4, "SetStatus"),
|
||||
}
|
||||
IID = generate_IID(0x7C857801, 0x7381, 0x11CF, 0x88, 0x4D, 0x00, 0xAA, 0x00, 0x4B, 0x2E, 0x24, name="IWbemObjectSink", strid="7C857801-7381-11CF-884D-00AA004B2E24")
|
||||
|
||||
class IWbemQualifierSet(COMInterface):
|
||||
IID = generate_IID(0xDC12A680, 0x737F, 0x11CF, 0x88, 0x4D, 0x00, 0xAA, 0x00, 0x4B, 0x2E, 0x24, name="IWbemQualifierSet", strid="DC12A680-737F-11CF-884D-00AA004B2E24")
|
||||
_functions_ = {
|
||||
# QueryInterface -> riid:REFIID, ppvObject:**void
|
||||
"QueryInterface": ctypes.WINFUNCTYPE(HRESULT, REFIID, POINTER(PVOID))(0, "QueryInterface"),
|
||||
@@ -769,9 +866,9 @@ class IWbemQualifierSet(COMInterface):
|
||||
# EndEnumeration ->
|
||||
"EndEnumeration": ctypes.WINFUNCTYPE(HRESULT)(9, "EndEnumeration"),
|
||||
}
|
||||
IID = generate_IID(0xDC12A680, 0x737F, 0x11CF, 0x88, 0x4D, 0x00, 0xAA, 0x00, 0x4B, 0x2E, 0x24, name="IWbemQualifierSet", strid="DC12A680-737F-11CF-884D-00AA004B2E24")
|
||||
|
||||
class IWbemServices(COMInterface):
|
||||
IID = generate_IID(0x9556DC99, 0x828C, 0x11CF, 0xA3, 0x7E, 0x00, 0xAA, 0x00, 0x32, 0x40, 0xC7, name="IWbemServices", strid="9556DC99-828C-11CF-A37E-00AA003240C7")
|
||||
_functions_ = {
|
||||
# QueryInterface -> riid:REFIID, ppvObject:**void
|
||||
"QueryInterface": ctypes.WINFUNCTYPE(HRESULT, REFIID, POINTER(PVOID))(0, "QueryInterface"),
|
||||
@@ -826,4 +923,5 @@ class IWbemServices(COMInterface):
|
||||
# ExecMethodAsync -> strObjectPath:BSTR, strMethodName:BSTR, lFlags:LONG, pCtx:*IWbemContext, pInParams:*IWbemClassObject, pResponseHandler:*IWbemObjectSink
|
||||
"ExecMethodAsync": ctypes.WINFUNCTYPE(HRESULT, BSTR, BSTR, LONG, PVOID, PVOID, PVOID)(25, "ExecMethodAsync"),
|
||||
}
|
||||
IID = generate_IID(0x9556DC99, 0x828C, 0x11CF, 0xA3, 0x7E, 0x00, 0xAA, 0x00, 0x32, 0x40, 0xC7, name="IWbemServices", strid="9556DC99-828C-11CF-A37E-00AA003240C7")
|
||||
|
||||
|
||||
File diff suppressed because one or more lines are too long
+625
-625
File diff suppressed because it is too large
Load Diff
+206
-200
@@ -1,4 +1,65 @@
|
||||
from winstructs import *
|
||||
from interfaces import *
|
||||
#def CoInitializeEx(pvReserved, dwCoInit):
|
||||
# return CoInitializeEx.ctypes_function(pvReserved, dwCoInit)
|
||||
CoInitializeExPrototype = WINFUNCTYPE(HRESULT, LPVOID, DWORD)
|
||||
CoInitializeExParams = ((1, 'pvReserved'), (1, 'dwCoInit'))
|
||||
|
||||
#def CoInitializeSecurity(pSecDesc, cAuthSvc, asAuthSvc, pReserved1, dwAuthnLevel, dwImpLevel, pAuthList, dwCapabilities, pReserved3):
|
||||
# return CoInitializeSecurity.ctypes_function(pSecDesc, cAuthSvc, asAuthSvc, pReserved1, dwAuthnLevel, dwImpLevel, pAuthList, dwCapabilities, pReserved3)
|
||||
CoInitializeSecurityPrototype = WINFUNCTYPE(HRESULT, PSECURITY_DESCRIPTOR, LONG, POINTER(SOLE_AUTHENTICATION_SERVICE), PVOID, DWORD, DWORD, PVOID, DWORD, PVOID)
|
||||
CoInitializeSecurityParams = ((1, 'pSecDesc'), (1, 'cAuthSvc'), (1, 'asAuthSvc'), (1, 'pReserved1'), (1, 'dwAuthnLevel'), (1, 'dwImpLevel'), (1, 'pAuthList'), (1, 'dwCapabilities'), (1, 'pReserved3'))
|
||||
|
||||
#def CoCreateInstance(rclsid, pUnkOuter, dwClsContext, riid, ppv):
|
||||
# return CoCreateInstance.ctypes_function(rclsid, pUnkOuter, dwClsContext, riid, ppv)
|
||||
CoCreateInstancePrototype = WINFUNCTYPE(HRESULT, REFCLSID, LPUNKNOWN, DWORD, REFIID, POINTER(LPVOID))
|
||||
CoCreateInstanceParams = ((1, 'rclsid'), (1, 'pUnkOuter'), (1, 'dwClsContext'), (1, 'riid'), (1, 'ppv'))
|
||||
|
||||
#def CoGetInterceptor(iidIntercepted, punkOuter, iid, ppv):
|
||||
# return CoGetInterceptor.ctypes_function(iidIntercepted, punkOuter, iid, ppv)
|
||||
CoGetInterceptorPrototype = WINFUNCTYPE(HRESULT, REFIID, POINTER(IUnknown), REFIID, POINTER(PVOID))
|
||||
CoGetInterceptorParams = ((1, 'iidIntercepted'), (1, 'punkOuter'), (1, 'iid'), (1, 'ppv'))
|
||||
|
||||
#def TpCallbackSendAlpcMessageOnCompletion(TpHandle, PortHandle, Flags, SendMessage):
|
||||
# return TpCallbackSendAlpcMessageOnCompletion.ctypes_function(TpHandle, PortHandle, Flags, SendMessage)
|
||||
TpCallbackSendAlpcMessageOnCompletionPrototype = WINFUNCTYPE(NTSTATUS, HANDLE, HANDLE, ULONG, PPORT_MESSAGE)
|
||||
TpCallbackSendAlpcMessageOnCompletionParams = ((1, 'TpHandle'), (1, 'PortHandle'), (1, 'Flags'), (1, 'SendMessage'))
|
||||
|
||||
#def OpenEventLogA(lpUNCServerName, lpSourceName):
|
||||
# return OpenEventLogA.ctypes_function(lpUNCServerName, lpSourceName)
|
||||
OpenEventLogAPrototype = WINFUNCTYPE(HANDLE, LPCSTR, LPCSTR)
|
||||
OpenEventLogAParams = ((1, 'lpUNCServerName'), (1, 'lpSourceName'))
|
||||
|
||||
#def OpenEventLogW(lpUNCServerName, lpSourceName):
|
||||
# return OpenEventLogW.ctypes_function(lpUNCServerName, lpSourceName)
|
||||
OpenEventLogWPrototype = WINFUNCTYPE(HANDLE, LPWSTR, LPWSTR)
|
||||
OpenEventLogWParams = ((1, 'lpUNCServerName'), (1, 'lpSourceName'))
|
||||
|
||||
#def ReadEventLogA(hEventLog, dwReadFlags, dwRecordOffset, lpBuffer, nNumberOfBytesToRead, pnBytesRead, pnMinNumberOfBytesNeeded):
|
||||
# return ReadEventLogA.ctypes_function(hEventLog, dwReadFlags, dwRecordOffset, lpBuffer, nNumberOfBytesToRead, pnBytesRead, pnMinNumberOfBytesNeeded)
|
||||
ReadEventLogAPrototype = WINFUNCTYPE(BOOL, HANDLE, DWORD, DWORD, LPVOID, DWORD, POINTER(DWORD), POINTER(DWORD))
|
||||
ReadEventLogAParams = ((1, 'hEventLog'), (1, 'dwReadFlags'), (1, 'dwRecordOffset'), (1, 'lpBuffer'), (1, 'nNumberOfBytesToRead'), (1, 'pnBytesRead'), (1, 'pnMinNumberOfBytesNeeded'))
|
||||
|
||||
#def ReadEventLogW(hEventLog, dwReadFlags, dwRecordOffset, lpBuffer, nNumberOfBytesToRead, pnBytesRead, pnMinNumberOfBytesNeeded):
|
||||
# return ReadEventLogW.ctypes_function(hEventLog, dwReadFlags, dwRecordOffset, lpBuffer, nNumberOfBytesToRead, pnBytesRead, pnMinNumberOfBytesNeeded)
|
||||
ReadEventLogWPrototype = WINFUNCTYPE(BOOL, HANDLE, DWORD, DWORD, LPVOID, DWORD, POINTER(DWORD), POINTER(DWORD))
|
||||
ReadEventLogWParams = ((1, 'hEventLog'), (1, 'dwReadFlags'), (1, 'dwRecordOffset'), (1, 'lpBuffer'), (1, 'nNumberOfBytesToRead'), (1, 'pnBytesRead'), (1, 'pnMinNumberOfBytesNeeded'))
|
||||
|
||||
#def GetEventLogInformation(hEventLog, dwInfoLevel, lpBuffer, cbBufSize, pcbBytesNeeded):
|
||||
# return GetEventLogInformation.ctypes_function(hEventLog, dwInfoLevel, lpBuffer, cbBufSize, pcbBytesNeeded)
|
||||
GetEventLogInformationPrototype = WINFUNCTYPE(BOOL, HANDLE, DWORD, LPVOID, DWORD, LPDWORD)
|
||||
GetEventLogInformationParams = ((1, 'hEventLog'), (1, 'dwInfoLevel'), (1, 'lpBuffer'), (1, 'cbBufSize'), (1, 'pcbBytesNeeded'))
|
||||
|
||||
#def GetNumberOfEventLogRecords(hEventLog, NumberOfRecords):
|
||||
# return GetNumberOfEventLogRecords.ctypes_function(hEventLog, NumberOfRecords)
|
||||
GetNumberOfEventLogRecordsPrototype = WINFUNCTYPE(BOOL, HANDLE, PDWORD)
|
||||
GetNumberOfEventLogRecordsParams = ((1, 'hEventLog'), (1, 'NumberOfRecords'))
|
||||
|
||||
#def CloseEventLog(hEventLog):
|
||||
# return CloseEventLog.ctypes_function(hEventLog)
|
||||
CloseEventLogPrototype = WINFUNCTYPE(BOOL, HANDLE)
|
||||
CloseEventLogParams = ((1, 'hEventLog'),)
|
||||
|
||||
#def CreateFileTransactedA(lpFileName, dwDesiredAccess, dwShareMode, lpSecurityAttributes, dwCreationDisposition, dwFlagsAndAttributes, hTemplateFile, hTransaction, pusMiniVersion, pExtendedParameter):
|
||||
# return CreateFileTransactedA.ctypes_function(lpFileName, dwDesiredAccess, dwShareMode, lpSecurityAttributes, dwCreationDisposition, dwFlagsAndAttributes, hTemplateFile, hTransaction, pusMiniVersion, pExtendedParameter)
|
||||
CreateFileTransactedAPrototype = WINFUNCTYPE(HANDLE, LPCSTR, DWORD, DWORD, LPSECURITY_ATTRIBUTES, DWORD, DWORD, HANDLE, HANDLE, PUSHORT, PVOID)
|
||||
@@ -1174,21 +1235,6 @@ LookupAccountSidAParams = ((1, 'lpSystemName'), (1, 'lpSid'), (1, 'lpName'), (1,
|
||||
LookupAccountSidWPrototype = WINFUNCTYPE(BOOL, LPWSTR, PSID, LPWSTR, LPDWORD, LPWSTR, LPDWORD, PSID_NAME_USE)
|
||||
LookupAccountSidWParams = ((1, 'lpSystemName'), (1, 'lpSid'), (1, 'lpName'), (1, 'cchName'), (1, 'lpReferencedDomainName'), (1, 'cchReferencedDomainName'), (1, 'peUse'))
|
||||
|
||||
#def CoInitializeEx(pvReserved, dwCoInit):
|
||||
# return CoInitializeEx.ctypes_function(pvReserved, dwCoInit)
|
||||
CoInitializeExPrototype = WINFUNCTYPE(HRESULT, LPVOID, DWORD)
|
||||
CoInitializeExParams = ((1, 'pvReserved'), (1, 'dwCoInit'))
|
||||
|
||||
#def CoInitializeSecurity(pSecDesc, cAuthSvc, asAuthSvc, pReserved1, dwAuthnLevel, dwImpLevel, pAuthList, dwCapabilities, pReserved3):
|
||||
# return CoInitializeSecurity.ctypes_function(pSecDesc, cAuthSvc, asAuthSvc, pReserved1, dwAuthnLevel, dwImpLevel, pAuthList, dwCapabilities, pReserved3)
|
||||
CoInitializeSecurityPrototype = WINFUNCTYPE(HRESULT, PSECURITY_DESCRIPTOR, LONG, POINTER(SOLE_AUTHENTICATION_SERVICE), PVOID, DWORD, DWORD, PVOID, DWORD, PVOID)
|
||||
CoInitializeSecurityParams = ((1, 'pSecDesc'), (1, 'cAuthSvc'), (1, 'asAuthSvc'), (1, 'pReserved1'), (1, 'dwAuthnLevel'), (1, 'dwImpLevel'), (1, 'pAuthList'), (1, 'dwCapabilities'), (1, 'pReserved3'))
|
||||
|
||||
#def CoCreateInstance(rclsid, pUnkOuter, dwClsContext, riid, ppv):
|
||||
# return CoCreateInstance.ctypes_function(rclsid, pUnkOuter, dwClsContext, riid, ppv)
|
||||
CoCreateInstancePrototype = WINFUNCTYPE(HRESULT, REFCLSID, LPUNKNOWN, DWORD, REFIID, POINTER(LPVOID))
|
||||
CoCreateInstanceParams = ((1, 'rclsid'), (1, 'pUnkOuter'), (1, 'dwClsContext'), (1, 'riid'), (1, 'ppv'))
|
||||
|
||||
#def GetInterfaceInfo(pIfTable, dwOutBufLen):
|
||||
# return GetInterfaceInfo.ctypes_function(pIfTable, dwOutBufLen)
|
||||
GetInterfaceInfoPrototype = WINFUNCTYPE(DWORD, PIP_INTERFACE_INFO, PULONG)
|
||||
@@ -1374,6 +1420,151 @@ RtlDosPathNameToNtPathName_UParams = ((1, 'DosName'), (1, 'NtName'), (1, 'PartNa
|
||||
ApiSetResolveToHostPrototype = WINFUNCTYPE(NTSTATUS, PVOID, PUNICODE_STRING, PUNICODE_STRING, PBOOLEAN, PUNICODE_STRING)
|
||||
ApiSetResolveToHostParams = ((1, 'Schema'), (1, 'FileNameIn'), (1, 'ParentName'), (1, 'Resolved'), (1, 'HostBinary'))
|
||||
|
||||
#def GetCursorPos(lpPoint):
|
||||
# return GetCursorPos.ctypes_function(lpPoint)
|
||||
GetCursorPosPrototype = WINFUNCTYPE(BOOL, LPPOINT)
|
||||
GetCursorPosParams = ((1, 'lpPoint'),)
|
||||
|
||||
#def WindowFromPoint(Point):
|
||||
# return WindowFromPoint.ctypes_function(Point)
|
||||
WindowFromPointPrototype = WINFUNCTYPE(HWND, POINT)
|
||||
WindowFromPointParams = ((1, 'Point'),)
|
||||
|
||||
#def GetWindowRect(hWnd, lpRect):
|
||||
# return GetWindowRect.ctypes_function(hWnd, lpRect)
|
||||
GetWindowRectPrototype = WINFUNCTYPE(BOOL, HWND, LPRECT)
|
||||
GetWindowRectParams = ((1, 'hWnd'), (1, 'lpRect'))
|
||||
|
||||
#def EnumWindows(lpEnumFunc, lParam):
|
||||
# return EnumWindows.ctypes_function(lpEnumFunc, lParam)
|
||||
EnumWindowsPrototype = WINFUNCTYPE(BOOL, WNDENUMPROC, LPARAM)
|
||||
EnumWindowsParams = ((1, 'lpEnumFunc'), (1, 'lParam'))
|
||||
|
||||
#def GetWindowTextA(hWnd, lpString, nMaxCount):
|
||||
# return GetWindowTextA.ctypes_function(hWnd, lpString, nMaxCount)
|
||||
GetWindowTextAPrototype = WINFUNCTYPE(INT, HWND, LPSTR, INT)
|
||||
GetWindowTextAParams = ((1, 'hWnd'), (1, 'lpString'), (1, 'nMaxCount'))
|
||||
|
||||
#def GetParent(hWnd):
|
||||
# return GetParent.ctypes_function(hWnd)
|
||||
GetParentPrototype = WINFUNCTYPE(HWND, HWND)
|
||||
GetParentParams = ((1, 'hWnd'),)
|
||||
|
||||
#def GetWindowTextW(hWnd, lpString, nMaxCount):
|
||||
# return GetWindowTextW.ctypes_function(hWnd, lpString, nMaxCount)
|
||||
GetWindowTextWPrototype = WINFUNCTYPE(INT, HWND, LPWSTR, INT)
|
||||
GetWindowTextWParams = ((1, 'hWnd'), (1, 'lpString'), (1, 'nMaxCount'))
|
||||
|
||||
#def GetWindowModuleFileNameA(hwnd, pszFileName, cchFileNameMax):
|
||||
# return GetWindowModuleFileNameA.ctypes_function(hwnd, pszFileName, cchFileNameMax)
|
||||
GetWindowModuleFileNameAPrototype = WINFUNCTYPE(UINT, HWND, LPSTR, UINT)
|
||||
GetWindowModuleFileNameAParams = ((1, 'hwnd'), (1, 'pszFileName'), (1, 'cchFileNameMax'))
|
||||
|
||||
#def GetWindowModuleFileNameW(hwnd, pszFileName, cchFileNameMax):
|
||||
# return GetWindowModuleFileNameW.ctypes_function(hwnd, pszFileName, cchFileNameMax)
|
||||
GetWindowModuleFileNameWPrototype = WINFUNCTYPE(UINT, HWND, LPWSTR, UINT)
|
||||
GetWindowModuleFileNameWParams = ((1, 'hwnd'), (1, 'pszFileName'), (1, 'cchFileNameMax'))
|
||||
|
||||
#def EnumChildWindows(hWndParent, lpEnumFunc, lParam):
|
||||
# return EnumChildWindows.ctypes_function(hWndParent, lpEnumFunc, lParam)
|
||||
EnumChildWindowsPrototype = WINFUNCTYPE(BOOL, HWND, WNDENUMPROC, LPARAM)
|
||||
EnumChildWindowsParams = ((1, 'hWndParent'), (1, 'lpEnumFunc'), (1, 'lParam'))
|
||||
|
||||
#def CloseWindow(hWnd):
|
||||
# return CloseWindow.ctypes_function(hWnd)
|
||||
CloseWindowPrototype = WINFUNCTYPE(BOOL, HWND)
|
||||
CloseWindowParams = ((1, 'hWnd'),)
|
||||
|
||||
#def GetDesktopWindow():
|
||||
# return GetDesktopWindow.ctypes_function()
|
||||
GetDesktopWindowPrototype = WINFUNCTYPE(HWND)
|
||||
GetDesktopWindowParams = ()
|
||||
|
||||
#def GetForegroundWindow():
|
||||
# return GetForegroundWindow.ctypes_function()
|
||||
GetForegroundWindowPrototype = WINFUNCTYPE(HWND)
|
||||
GetForegroundWindowParams = ()
|
||||
|
||||
#def BringWindowToTop(hWnd):
|
||||
# return BringWindowToTop.ctypes_function(hWnd)
|
||||
BringWindowToTopPrototype = WINFUNCTYPE(BOOL, HWND)
|
||||
BringWindowToTopParams = ((1, 'hWnd'),)
|
||||
|
||||
#def MoveWindow(hWnd, X, Y, nWidth, nHeight, bRepaint):
|
||||
# return MoveWindow.ctypes_function(hWnd, X, Y, nWidth, nHeight, bRepaint)
|
||||
MoveWindowPrototype = WINFUNCTYPE(BOOL, HWND, INT, INT, INT, INT, BOOL)
|
||||
MoveWindowParams = ((1, 'hWnd'), (1, 'X'), (1, 'Y'), (1, 'nWidth'), (1, 'nHeight'), (1, 'bRepaint'))
|
||||
|
||||
#def SetWindowPos(hWnd, hWndInsertAfter, X, Y, cx, cy, uFlags):
|
||||
# return SetWindowPos.ctypes_function(hWnd, hWndInsertAfter, X, Y, cx, cy, uFlags)
|
||||
SetWindowPosPrototype = WINFUNCTYPE(BOOL, HWND, HWND, INT, INT, INT, INT, UINT)
|
||||
SetWindowPosParams = ((1, 'hWnd'), (1, 'hWndInsertAfter'), (1, 'X'), (1, 'Y'), (1, 'cx'), (1, 'cy'), (1, 'uFlags'))
|
||||
|
||||
#def SetWindowTextA(hWnd, lpString):
|
||||
# return SetWindowTextA.ctypes_function(hWnd, lpString)
|
||||
SetWindowTextAPrototype = WINFUNCTYPE(BOOL, HWND, LPCSTR)
|
||||
SetWindowTextAParams = ((1, 'hWnd'), (1, 'lpString'))
|
||||
|
||||
#def SetWindowTextW(hWnd, lpString):
|
||||
# return SetWindowTextW.ctypes_function(hWnd, lpString)
|
||||
SetWindowTextWPrototype = WINFUNCTYPE(BOOL, HWND, LPWSTR)
|
||||
SetWindowTextWParams = ((1, 'hWnd'), (1, 'lpString'))
|
||||
|
||||
#def RealGetWindowClassA(hwnd, pszType, cchType):
|
||||
# return RealGetWindowClassA.ctypes_function(hwnd, pszType, cchType)
|
||||
RealGetWindowClassAPrototype = WINFUNCTYPE(UINT, HWND, LPCSTR, UINT)
|
||||
RealGetWindowClassAParams = ((1, 'hwnd'), (1, 'pszType'), (1, 'cchType'))
|
||||
|
||||
#def RealGetWindowClassW(hwnd, pszType, cchType):
|
||||
# return RealGetWindowClassW.ctypes_function(hwnd, pszType, cchType)
|
||||
RealGetWindowClassWPrototype = WINFUNCTYPE(UINT, HWND, LPWSTR, UINT)
|
||||
RealGetWindowClassWParams = ((1, 'hwnd'), (1, 'pszType'), (1, 'cchType'))
|
||||
|
||||
#def GetClassInfoExA(hinst, lpszClass, lpwcx):
|
||||
# return GetClassInfoExA.ctypes_function(hinst, lpszClass, lpwcx)
|
||||
GetClassInfoExAPrototype = WINFUNCTYPE(BOOL, HINSTANCE, LPCSTR, LPWNDCLASSEXA)
|
||||
GetClassInfoExAParams = ((1, 'hinst'), (1, 'lpszClass'), (1, 'lpwcx'))
|
||||
|
||||
#def GetClassInfoExW(hinst, lpszClass, lpwcx):
|
||||
# return GetClassInfoExW.ctypes_function(hinst, lpszClass, lpwcx)
|
||||
GetClassInfoExWPrototype = WINFUNCTYPE(BOOL, HINSTANCE, LPCWSTR, LPWNDCLASSEXW)
|
||||
GetClassInfoExWParams = ((1, 'hinst'), (1, 'lpszClass'), (1, 'lpwcx'))
|
||||
|
||||
#def GetClassNameA(hWnd, lpClassName, nMaxCount):
|
||||
# return GetClassNameA.ctypes_function(hWnd, lpClassName, nMaxCount)
|
||||
GetClassNameAPrototype = WINFUNCTYPE(INT, HWND, LPCSTR, INT)
|
||||
GetClassNameAParams = ((1, 'hWnd'), (1, 'lpClassName'), (1, 'nMaxCount'))
|
||||
|
||||
#def GetClassNameW(hWnd, lpClassName, nMaxCount):
|
||||
# return GetClassNameW.ctypes_function(hWnd, lpClassName, nMaxCount)
|
||||
GetClassNameWPrototype = WINFUNCTYPE(INT, HWND, LPWSTR, INT)
|
||||
GetClassNameWParams = ((1, 'hWnd'), (1, 'lpClassName'), (1, 'nMaxCount'))
|
||||
|
||||
#def GetWindowThreadProcessId(hWnd, lpdwProcessId):
|
||||
# return GetWindowThreadProcessId.ctypes_function(hWnd, lpdwProcessId)
|
||||
GetWindowThreadProcessIdPrototype = WINFUNCTYPE(DWORD, HWND, LPDWORD)
|
||||
GetWindowThreadProcessIdParams = ((1, 'hWnd'), (1, 'lpdwProcessId'))
|
||||
|
||||
#def CreateNamedPipeA(lpName, dwOpenMode, dwPipeMode, nMaxInstances, nOutBufferSize, nInBufferSize, nDefaultTimeOut, lpSecurityAttributes):
|
||||
# return CreateNamedPipeA.ctypes_function(lpName, dwOpenMode, dwPipeMode, nMaxInstances, nOutBufferSize, nInBufferSize, nDefaultTimeOut, lpSecurityAttributes)
|
||||
CreateNamedPipeAPrototype = WINFUNCTYPE(HANDLE, LPCSTR, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, LPSECURITY_ATTRIBUTES)
|
||||
CreateNamedPipeAParams = ((1, 'lpName'), (1, 'dwOpenMode'), (1, 'dwPipeMode'), (1, 'nMaxInstances'), (1, 'nOutBufferSize'), (1, 'nInBufferSize'), (1, 'nDefaultTimeOut'), (1, 'lpSecurityAttributes'))
|
||||
|
||||
#def CreateNamedPipeW(lpName, dwOpenMode, dwPipeMode, nMaxInstances, nOutBufferSize, nInBufferSize, nDefaultTimeOut, lpSecurityAttributes):
|
||||
# return CreateNamedPipeW.ctypes_function(lpName, dwOpenMode, dwPipeMode, nMaxInstances, nOutBufferSize, nInBufferSize, nDefaultTimeOut, lpSecurityAttributes)
|
||||
CreateNamedPipeWPrototype = WINFUNCTYPE(HANDLE, LPWSTR, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, LPSECURITY_ATTRIBUTES)
|
||||
CreateNamedPipeWParams = ((1, 'lpName'), (1, 'dwOpenMode'), (1, 'dwPipeMode'), (1, 'nMaxInstances'), (1, 'nOutBufferSize'), (1, 'nInBufferSize'), (1, 'nDefaultTimeOut'), (1, 'lpSecurityAttributes'))
|
||||
|
||||
#def ConnectNamedPipe(hNamedPipe, lpOverlapped):
|
||||
# return ConnectNamedPipe.ctypes_function(hNamedPipe, lpOverlapped)
|
||||
ConnectNamedPipePrototype = WINFUNCTYPE(BOOL, HANDLE, LPOVERLAPPED)
|
||||
ConnectNamedPipeParams = ((1, 'hNamedPipe'), (1, 'lpOverlapped'))
|
||||
|
||||
#def SetNamedPipeHandleState(hNamedPipe, lpMode, lpMaxCollectionCount, lpCollectDataTimeout):
|
||||
# return SetNamedPipeHandleState.ctypes_function(hNamedPipe, lpMode, lpMaxCollectionCount, lpCollectDataTimeout)
|
||||
SetNamedPipeHandleStatePrototype = WINFUNCTYPE(BOOL, HANDLE, LPDWORD, LPDWORD, LPDWORD)
|
||||
SetNamedPipeHandleStateParams = ((1, 'hNamedPipe'), (1, 'lpMode'), (1, 'lpMaxCollectionCount'), (1, 'lpCollectDataTimeout'))
|
||||
|
||||
#def CryptCATAdminCalcHashFromFileHandle(hFile, pcbHash, pbHash, dwFlags):
|
||||
# return CryptCATAdminCalcHashFromFileHandle.ctypes_function(hFile, pcbHash, pbHash, dwFlags)
|
||||
CryptCATAdminCalcHashFromFileHandlePrototype = WINFUNCTYPE(BOOL, HANDLE, POINTER(DWORD), POINTER(BYTE), DWORD)
|
||||
@@ -1624,188 +1815,3 @@ CryptMsgVerifyCountersignatureEncodedExParams = ((1, 'hCryptProv'), (1, 'dwEncod
|
||||
CryptHashCertificatePrototype = WINFUNCTYPE(BOOL, HCRYPTPROV_LEGACY, ALG_ID, DWORD, POINTER(BYTE), DWORD, POINTER(BYTE), POINTER(DWORD))
|
||||
CryptHashCertificateParams = ((1, 'hCryptProv'), (1, 'Algid'), (1, 'dwFlags'), (1, 'pbEncoded'), (1, 'cbEncoded'), (1, 'pbComputedHash'), (1, 'pcbComputedHash'))
|
||||
|
||||
#def GetCursorPos(lpPoint):
|
||||
# return GetCursorPos.ctypes_function(lpPoint)
|
||||
GetCursorPosPrototype = WINFUNCTYPE(BOOL, LPPOINT)
|
||||
GetCursorPosParams = ((1, 'lpPoint'),)
|
||||
|
||||
#def WindowFromPoint(Point):
|
||||
# return WindowFromPoint.ctypes_function(Point)
|
||||
WindowFromPointPrototype = WINFUNCTYPE(HWND, POINT)
|
||||
WindowFromPointParams = ((1, 'Point'),)
|
||||
|
||||
#def GetWindowRect(hWnd, lpRect):
|
||||
# return GetWindowRect.ctypes_function(hWnd, lpRect)
|
||||
GetWindowRectPrototype = WINFUNCTYPE(BOOL, HWND, LPRECT)
|
||||
GetWindowRectParams = ((1, 'hWnd'), (1, 'lpRect'))
|
||||
|
||||
#def EnumWindows(lpEnumFunc, lParam):
|
||||
# return EnumWindows.ctypes_function(lpEnumFunc, lParam)
|
||||
EnumWindowsPrototype = WINFUNCTYPE(BOOL, WNDENUMPROC, LPARAM)
|
||||
EnumWindowsParams = ((1, 'lpEnumFunc'), (1, 'lParam'))
|
||||
|
||||
#def GetWindowTextA(hWnd, lpString, nMaxCount):
|
||||
# return GetWindowTextA.ctypes_function(hWnd, lpString, nMaxCount)
|
||||
GetWindowTextAPrototype = WINFUNCTYPE(INT, HWND, LPSTR, INT)
|
||||
GetWindowTextAParams = ((1, 'hWnd'), (1, 'lpString'), (1, 'nMaxCount'))
|
||||
|
||||
#def GetParent(hWnd):
|
||||
# return GetParent.ctypes_function(hWnd)
|
||||
GetParentPrototype = WINFUNCTYPE(HWND, HWND)
|
||||
GetParentParams = ((1, 'hWnd'),)
|
||||
|
||||
#def GetWindowTextW(hWnd, lpString, nMaxCount):
|
||||
# return GetWindowTextW.ctypes_function(hWnd, lpString, nMaxCount)
|
||||
GetWindowTextWPrototype = WINFUNCTYPE(INT, HWND, LPWSTR, INT)
|
||||
GetWindowTextWParams = ((1, 'hWnd'), (1, 'lpString'), (1, 'nMaxCount'))
|
||||
|
||||
#def GetWindowModuleFileNameA(hwnd, pszFileName, cchFileNameMax):
|
||||
# return GetWindowModuleFileNameA.ctypes_function(hwnd, pszFileName, cchFileNameMax)
|
||||
GetWindowModuleFileNameAPrototype = WINFUNCTYPE(UINT, HWND, LPSTR, UINT)
|
||||
GetWindowModuleFileNameAParams = ((1, 'hwnd'), (1, 'pszFileName'), (1, 'cchFileNameMax'))
|
||||
|
||||
#def GetWindowModuleFileNameW(hwnd, pszFileName, cchFileNameMax):
|
||||
# return GetWindowModuleFileNameW.ctypes_function(hwnd, pszFileName, cchFileNameMax)
|
||||
GetWindowModuleFileNameWPrototype = WINFUNCTYPE(UINT, HWND, LPWSTR, UINT)
|
||||
GetWindowModuleFileNameWParams = ((1, 'hwnd'), (1, 'pszFileName'), (1, 'cchFileNameMax'))
|
||||
|
||||
#def EnumChildWindows(hWndParent, lpEnumFunc, lParam):
|
||||
# return EnumChildWindows.ctypes_function(hWndParent, lpEnumFunc, lParam)
|
||||
EnumChildWindowsPrototype = WINFUNCTYPE(BOOL, HWND, WNDENUMPROC, LPARAM)
|
||||
EnumChildWindowsParams = ((1, 'hWndParent'), (1, 'lpEnumFunc'), (1, 'lParam'))
|
||||
|
||||
#def CloseWindow(hWnd):
|
||||
# return CloseWindow.ctypes_function(hWnd)
|
||||
CloseWindowPrototype = WINFUNCTYPE(BOOL, HWND)
|
||||
CloseWindowParams = ((1, 'hWnd'),)
|
||||
|
||||
#def GetDesktopWindow():
|
||||
# return GetDesktopWindow.ctypes_function()
|
||||
GetDesktopWindowPrototype = WINFUNCTYPE(HWND)
|
||||
GetDesktopWindowParams = ()
|
||||
|
||||
#def GetForegroundWindow():
|
||||
# return GetForegroundWindow.ctypes_function()
|
||||
GetForegroundWindowPrototype = WINFUNCTYPE(HWND)
|
||||
GetForegroundWindowParams = ()
|
||||
|
||||
#def BringWindowToTop(hWnd):
|
||||
# return BringWindowToTop.ctypes_function(hWnd)
|
||||
BringWindowToTopPrototype = WINFUNCTYPE(BOOL, HWND)
|
||||
BringWindowToTopParams = ((1, 'hWnd'),)
|
||||
|
||||
#def MoveWindow(hWnd, X, Y, nWidth, nHeight, bRepaint):
|
||||
# return MoveWindow.ctypes_function(hWnd, X, Y, nWidth, nHeight, bRepaint)
|
||||
MoveWindowPrototype = WINFUNCTYPE(BOOL, HWND, INT, INT, INT, INT, BOOL)
|
||||
MoveWindowParams = ((1, 'hWnd'), (1, 'X'), (1, 'Y'), (1, 'nWidth'), (1, 'nHeight'), (1, 'bRepaint'))
|
||||
|
||||
#def SetWindowPos(hWnd, hWndInsertAfter, X, Y, cx, cy, uFlags):
|
||||
# return SetWindowPos.ctypes_function(hWnd, hWndInsertAfter, X, Y, cx, cy, uFlags)
|
||||
SetWindowPosPrototype = WINFUNCTYPE(BOOL, HWND, HWND, INT, INT, INT, INT, UINT)
|
||||
SetWindowPosParams = ((1, 'hWnd'), (1, 'hWndInsertAfter'), (1, 'X'), (1, 'Y'), (1, 'cx'), (1, 'cy'), (1, 'uFlags'))
|
||||
|
||||
#def SetWindowTextA(hWnd, lpString):
|
||||
# return SetWindowTextA.ctypes_function(hWnd, lpString)
|
||||
SetWindowTextAPrototype = WINFUNCTYPE(BOOL, HWND, LPCSTR)
|
||||
SetWindowTextAParams = ((1, 'hWnd'), (1, 'lpString'))
|
||||
|
||||
#def SetWindowTextW(hWnd, lpString):
|
||||
# return SetWindowTextW.ctypes_function(hWnd, lpString)
|
||||
SetWindowTextWPrototype = WINFUNCTYPE(BOOL, HWND, LPWSTR)
|
||||
SetWindowTextWParams = ((1, 'hWnd'), (1, 'lpString'))
|
||||
|
||||
#def RealGetWindowClassA(hwnd, pszType, cchType):
|
||||
# return RealGetWindowClassA.ctypes_function(hwnd, pszType, cchType)
|
||||
RealGetWindowClassAPrototype = WINFUNCTYPE(UINT, HWND, LPCSTR, UINT)
|
||||
RealGetWindowClassAParams = ((1, 'hwnd'), (1, 'pszType'), (1, 'cchType'))
|
||||
|
||||
#def RealGetWindowClassW(hwnd, pszType, cchType):
|
||||
# return RealGetWindowClassW.ctypes_function(hwnd, pszType, cchType)
|
||||
RealGetWindowClassWPrototype = WINFUNCTYPE(UINT, HWND, LPWSTR, UINT)
|
||||
RealGetWindowClassWParams = ((1, 'hwnd'), (1, 'pszType'), (1, 'cchType'))
|
||||
|
||||
#def GetClassInfoExA(hinst, lpszClass, lpwcx):
|
||||
# return GetClassInfoExA.ctypes_function(hinst, lpszClass, lpwcx)
|
||||
GetClassInfoExAPrototype = WINFUNCTYPE(BOOL, HINSTANCE, LPCSTR, LPWNDCLASSEXA)
|
||||
GetClassInfoExAParams = ((1, 'hinst'), (1, 'lpszClass'), (1, 'lpwcx'))
|
||||
|
||||
#def GetClassInfoExW(hinst, lpszClass, lpwcx):
|
||||
# return GetClassInfoExW.ctypes_function(hinst, lpszClass, lpwcx)
|
||||
GetClassInfoExWPrototype = WINFUNCTYPE(BOOL, HINSTANCE, LPCWSTR, LPWNDCLASSEXW)
|
||||
GetClassInfoExWParams = ((1, 'hinst'), (1, 'lpszClass'), (1, 'lpwcx'))
|
||||
|
||||
#def GetClassNameA(hWnd, lpClassName, nMaxCount):
|
||||
# return GetClassNameA.ctypes_function(hWnd, lpClassName, nMaxCount)
|
||||
GetClassNameAPrototype = WINFUNCTYPE(INT, HWND, LPCSTR, INT)
|
||||
GetClassNameAParams = ((1, 'hWnd'), (1, 'lpClassName'), (1, 'nMaxCount'))
|
||||
|
||||
#def GetClassNameW(hWnd, lpClassName, nMaxCount):
|
||||
# return GetClassNameW.ctypes_function(hWnd, lpClassName, nMaxCount)
|
||||
GetClassNameWPrototype = WINFUNCTYPE(INT, HWND, LPWSTR, INT)
|
||||
GetClassNameWParams = ((1, 'hWnd'), (1, 'lpClassName'), (1, 'nMaxCount'))
|
||||
|
||||
#def GetWindowThreadProcessId(hWnd, lpdwProcessId):
|
||||
# return GetWindowThreadProcessId.ctypes_function(hWnd, lpdwProcessId)
|
||||
GetWindowThreadProcessIdPrototype = WINFUNCTYPE(DWORD, HWND, LPDWORD)
|
||||
GetWindowThreadProcessIdParams = ((1, 'hWnd'), (1, 'lpdwProcessId'))
|
||||
|
||||
#def OpenEventLogA(lpUNCServerName, lpSourceName):
|
||||
# return OpenEventLogA.ctypes_function(lpUNCServerName, lpSourceName)
|
||||
OpenEventLogAPrototype = WINFUNCTYPE(HANDLE, LPCSTR, LPCSTR)
|
||||
OpenEventLogAParams = ((1, 'lpUNCServerName'), (1, 'lpSourceName'))
|
||||
|
||||
#def OpenEventLogW(lpUNCServerName, lpSourceName):
|
||||
# return OpenEventLogW.ctypes_function(lpUNCServerName, lpSourceName)
|
||||
OpenEventLogWPrototype = WINFUNCTYPE(HANDLE, LPWSTR, LPWSTR)
|
||||
OpenEventLogWParams = ((1, 'lpUNCServerName'), (1, 'lpSourceName'))
|
||||
|
||||
#def ReadEventLogA(hEventLog, dwReadFlags, dwRecordOffset, lpBuffer, nNumberOfBytesToRead, pnBytesRead, pnMinNumberOfBytesNeeded):
|
||||
# return ReadEventLogA.ctypes_function(hEventLog, dwReadFlags, dwRecordOffset, lpBuffer, nNumberOfBytesToRead, pnBytesRead, pnMinNumberOfBytesNeeded)
|
||||
ReadEventLogAPrototype = WINFUNCTYPE(BOOL, HANDLE, DWORD, DWORD, LPVOID, DWORD, POINTER(DWORD), POINTER(DWORD))
|
||||
ReadEventLogAParams = ((1, 'hEventLog'), (1, 'dwReadFlags'), (1, 'dwRecordOffset'), (1, 'lpBuffer'), (1, 'nNumberOfBytesToRead'), (1, 'pnBytesRead'), (1, 'pnMinNumberOfBytesNeeded'))
|
||||
|
||||
#def ReadEventLogW(hEventLog, dwReadFlags, dwRecordOffset, lpBuffer, nNumberOfBytesToRead, pnBytesRead, pnMinNumberOfBytesNeeded):
|
||||
# return ReadEventLogW.ctypes_function(hEventLog, dwReadFlags, dwRecordOffset, lpBuffer, nNumberOfBytesToRead, pnBytesRead, pnMinNumberOfBytesNeeded)
|
||||
ReadEventLogWPrototype = WINFUNCTYPE(BOOL, HANDLE, DWORD, DWORD, LPVOID, DWORD, POINTER(DWORD), POINTER(DWORD))
|
||||
ReadEventLogWParams = ((1, 'hEventLog'), (1, 'dwReadFlags'), (1, 'dwRecordOffset'), (1, 'lpBuffer'), (1, 'nNumberOfBytesToRead'), (1, 'pnBytesRead'), (1, 'pnMinNumberOfBytesNeeded'))
|
||||
|
||||
#def GetEventLogInformation(hEventLog, dwInfoLevel, lpBuffer, cbBufSize, pcbBytesNeeded):
|
||||
# return GetEventLogInformation.ctypes_function(hEventLog, dwInfoLevel, lpBuffer, cbBufSize, pcbBytesNeeded)
|
||||
GetEventLogInformationPrototype = WINFUNCTYPE(BOOL, HANDLE, DWORD, LPVOID, DWORD, LPDWORD)
|
||||
GetEventLogInformationParams = ((1, 'hEventLog'), (1, 'dwInfoLevel'), (1, 'lpBuffer'), (1, 'cbBufSize'), (1, 'pcbBytesNeeded'))
|
||||
|
||||
#def GetNumberOfEventLogRecords(hEventLog, NumberOfRecords):
|
||||
# return GetNumberOfEventLogRecords.ctypes_function(hEventLog, NumberOfRecords)
|
||||
GetNumberOfEventLogRecordsPrototype = WINFUNCTYPE(BOOL, HANDLE, PDWORD)
|
||||
GetNumberOfEventLogRecordsParams = ((1, 'hEventLog'), (1, 'NumberOfRecords'))
|
||||
|
||||
#def CloseEventLog(hEventLog):
|
||||
# return CloseEventLog.ctypes_function(hEventLog)
|
||||
CloseEventLogPrototype = WINFUNCTYPE(BOOL, HANDLE)
|
||||
CloseEventLogParams = ((1, 'hEventLog'),)
|
||||
|
||||
#def TpCallbackSendAlpcMessageOnCompletion(TpHandle, PortHandle, Flags, SendMessage):
|
||||
# return TpCallbackSendAlpcMessageOnCompletion.ctypes_function(TpHandle, PortHandle, Flags, SendMessage)
|
||||
TpCallbackSendAlpcMessageOnCompletionPrototype = WINFUNCTYPE(NTSTATUS, HANDLE, HANDLE, ULONG, PPORT_MESSAGE)
|
||||
TpCallbackSendAlpcMessageOnCompletionParams = ((1, 'TpHandle'), (1, 'PortHandle'), (1, 'Flags'), (1, 'SendMessage'))
|
||||
|
||||
#def CreateNamedPipeA(lpName, dwOpenMode, dwPipeMode, nMaxInstances, nOutBufferSize, nInBufferSize, nDefaultTimeOut, lpSecurityAttributes):
|
||||
# return CreateNamedPipeA.ctypes_function(lpName, dwOpenMode, dwPipeMode, nMaxInstances, nOutBufferSize, nInBufferSize, nDefaultTimeOut, lpSecurityAttributes)
|
||||
CreateNamedPipeAPrototype = WINFUNCTYPE(HANDLE, LPCSTR, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, LPSECURITY_ATTRIBUTES)
|
||||
CreateNamedPipeAParams = ((1, 'lpName'), (1, 'dwOpenMode'), (1, 'dwPipeMode'), (1, 'nMaxInstances'), (1, 'nOutBufferSize'), (1, 'nInBufferSize'), (1, 'nDefaultTimeOut'), (1, 'lpSecurityAttributes'))
|
||||
|
||||
#def CreateNamedPipeW(lpName, dwOpenMode, dwPipeMode, nMaxInstances, nOutBufferSize, nInBufferSize, nDefaultTimeOut, lpSecurityAttributes):
|
||||
# return CreateNamedPipeW.ctypes_function(lpName, dwOpenMode, dwPipeMode, nMaxInstances, nOutBufferSize, nInBufferSize, nDefaultTimeOut, lpSecurityAttributes)
|
||||
CreateNamedPipeWPrototype = WINFUNCTYPE(HANDLE, LPWSTR, DWORD, DWORD, DWORD, DWORD, DWORD, DWORD, LPSECURITY_ATTRIBUTES)
|
||||
CreateNamedPipeWParams = ((1, 'lpName'), (1, 'dwOpenMode'), (1, 'dwPipeMode'), (1, 'nMaxInstances'), (1, 'nOutBufferSize'), (1, 'nInBufferSize'), (1, 'nDefaultTimeOut'), (1, 'lpSecurityAttributes'))
|
||||
|
||||
#def ConnectNamedPipe(hNamedPipe, lpOverlapped):
|
||||
# return ConnectNamedPipe.ctypes_function(hNamedPipe, lpOverlapped)
|
||||
ConnectNamedPipePrototype = WINFUNCTYPE(BOOL, HANDLE, LPOVERLAPPED)
|
||||
ConnectNamedPipeParams = ((1, 'hNamedPipe'), (1, 'lpOverlapped'))
|
||||
|
||||
#def SetNamedPipeHandleState(hNamedPipe, lpMode, lpMaxCollectionCount, lpCollectDataTimeout):
|
||||
# return SetNamedPipeHandleState.ctypes_function(hNamedPipe, lpMode, lpMaxCollectionCount, lpCollectDataTimeout)
|
||||
SetNamedPipeHandleStatePrototype = WINFUNCTYPE(BOOL, HANDLE, LPDWORD, LPDWORD, LPDWORD)
|
||||
SetNamedPipeHandleStateParams = ((1, 'hNamedPipe'), (1, 'lpMode'), (1, 'lpMaxCollectionCount'), (1, 'lpCollectDataTimeout'))
|
||||
|
||||
|
||||
+272
-217
@@ -268,6 +268,7 @@ PALPC_HANDLE = POINTER(ALPC_HANDLE)
|
||||
HCURSOR = HANDLE
|
||||
HBRUSH = HANDLE
|
||||
HCRYPTPROV_OR_NCRYPT_KEY_HANDLE = PULONG
|
||||
RPCOLEDATAREP = ULONG
|
||||
WNDPROC = PVOID
|
||||
LPPROC_THREAD_ATTRIBUTE_LIST = PVOID
|
||||
PPS_POST_PROCESS_INIT_ROUTINE = PVOID
|
||||
@@ -282,21 +283,6 @@ HCERTSTORE = PVOID
|
||||
HCRYPTMSG = PVOID
|
||||
PALPC_PORT_ATTRIBUTES = PVOID
|
||||
PPORT_MESSAGE = PVOID
|
||||
class _SHITEMID(Structure):
|
||||
_fields_ = [
|
||||
("cb", USHORT),
|
||||
("abID", BYTE * 1),
|
||||
]
|
||||
SHITEMID = _SHITEMID
|
||||
|
||||
class _ITEMIDLIST(Structure):
|
||||
_fields_ = [
|
||||
("mkid", SHITEMID),
|
||||
]
|
||||
ITEMIDLIST = _ITEMIDLIST
|
||||
PCIDLIST_ABSOLUTE = POINTER(_ITEMIDLIST)
|
||||
PIDLIST_ABSOLUTE = POINTER(_ITEMIDLIST)
|
||||
|
||||
FakeFileInformationZero = EnumValue("_FILE_INFORMATION_CLASS", "FakeFileInformationZero", 0x0)
|
||||
FileDirectoryInformation = EnumValue("_FILE_INFORMATION_CLASS", "FileDirectoryInformation", 0x1)
|
||||
FileFullDirectoryInformation = EnumValue("_FILE_INFORMATION_CLASS", "FileFullDirectoryInformation", 0x2)
|
||||
@@ -506,95 +492,154 @@ class _FILE_ALL_INFORMATION(Structure):
|
||||
PFILE_ALL_INFORMATION = POINTER(_FILE_ALL_INFORMATION)
|
||||
FILE_ALL_INFORMATION = _FILE_ALL_INFORMATION
|
||||
|
||||
BG_JOB_STATE_QUEUED = EnumValue("_BG_JOB_STATE", "BG_JOB_STATE_QUEUED", 0x0)
|
||||
BG_JOB_STATE_CONNECTING = EnumValue("_BG_JOB_STATE", "BG_JOB_STATE_CONNECTING", 0x1)
|
||||
BG_JOB_STATE_TRANSFERRING = EnumValue("_BG_JOB_STATE", "BG_JOB_STATE_TRANSFERRING", 0x2)
|
||||
BG_JOB_STATE_SUSPENDED = EnumValue("_BG_JOB_STATE", "BG_JOB_STATE_SUSPENDED", 0x3)
|
||||
BG_JOB_STATE_ERROR = EnumValue("_BG_JOB_STATE", "BG_JOB_STATE_ERROR", 0x4)
|
||||
BG_JOB_STATE_TRANSIENT_ERROR = EnumValue("_BG_JOB_STATE", "BG_JOB_STATE_TRANSIENT_ERROR", 0x5)
|
||||
BG_JOB_STATE_TRANSFERRED = EnumValue("_BG_JOB_STATE", "BG_JOB_STATE_TRANSFERRED", 0x6)
|
||||
BG_JOB_STATE_ACKNOWLEDGED = EnumValue("_BG_JOB_STATE", "BG_JOB_STATE_ACKNOWLEDGED", 0x7)
|
||||
BG_JOB_STATE_CANCELLED = EnumValue("_BG_JOB_STATE", "BG_JOB_STATE_CANCELLED", 0x8)
|
||||
class _BG_JOB_STATE(EnumType):
|
||||
values = [BG_JOB_STATE_QUEUED, BG_JOB_STATE_CONNECTING, BG_JOB_STATE_TRANSFERRING, BG_JOB_STATE_SUSPENDED, BG_JOB_STATE_ERROR, BG_JOB_STATE_TRANSIENT_ERROR, BG_JOB_STATE_TRANSFERRED, BG_JOB_STATE_ACKNOWLEDGED, BG_JOB_STATE_CANCELLED]
|
||||
mapper = {x:x for x in values}
|
||||
BG_JOB_STATE = _BG_JOB_STATE
|
||||
|
||||
|
||||
BG_JOB_PROXY_USAGE_PRECONFIG = EnumValue("_BG_JOB_PROXY_USAGE", "BG_JOB_PROXY_USAGE_PRECONFIG", 0x0)
|
||||
BG_JOB_PROXY_USAGE_NO_PROXY = EnumValue("_BG_JOB_PROXY_USAGE", "BG_JOB_PROXY_USAGE_NO_PROXY", 0x1)
|
||||
BG_JOB_PROXY_USAGE_OVERRIDE = EnumValue("_BG_JOB_PROXY_USAGE", "BG_JOB_PROXY_USAGE_OVERRIDE", 0x2)
|
||||
BG_JOB_PROXY_USAGE_AUTODETECT = EnumValue("_BG_JOB_PROXY_USAGE", "BG_JOB_PROXY_USAGE_AUTODETECT", 0x3)
|
||||
class _BG_JOB_PROXY_USAGE(EnumType):
|
||||
values = [BG_JOB_PROXY_USAGE_PRECONFIG, BG_JOB_PROXY_USAGE_NO_PROXY, BG_JOB_PROXY_USAGE_OVERRIDE, BG_JOB_PROXY_USAGE_AUTODETECT]
|
||||
mapper = {x:x for x in values}
|
||||
BG_JOB_PROXY_USAGE = _BG_JOB_PROXY_USAGE
|
||||
|
||||
|
||||
BG_JOB_PRIORITY_FOREGROUND = EnumValue("_BG_JOB_PRIORITY", "BG_JOB_PRIORITY_FOREGROUND", 0x0)
|
||||
BG_JOB_PRIORITY_HIGH = EnumValue("_BG_JOB_PRIORITY", "BG_JOB_PRIORITY_HIGH", 0x1)
|
||||
BG_JOB_PRIORITY_NORMAL = EnumValue("_BG_JOB_PRIORITY", "BG_JOB_PRIORITY_NORMAL", 0x2)
|
||||
BG_JOB_PRIORITY_LOW = EnumValue("_BG_JOB_PRIORITY", "BG_JOB_PRIORITY_LOW", 0x3)
|
||||
class _BG_JOB_PRIORITY(EnumType):
|
||||
values = [BG_JOB_PRIORITY_FOREGROUND, BG_JOB_PRIORITY_HIGH, BG_JOB_PRIORITY_NORMAL, BG_JOB_PRIORITY_LOW]
|
||||
mapper = {x:x for x in values}
|
||||
BG_JOB_PRIORITY = _BG_JOB_PRIORITY
|
||||
|
||||
|
||||
BG_ERROR_CONTEXT_NONE = EnumValue("_BG_ERROR_CONTEXT", "BG_ERROR_CONTEXT_NONE", 0x0)
|
||||
BG_ERROR_CONTEXT_UNKNOWN = EnumValue("_BG_ERROR_CONTEXT", "BG_ERROR_CONTEXT_UNKNOWN", 0x1)
|
||||
BG_ERROR_CONTEXT_GENERAL_QUEUE_MANAGER = EnumValue("_BG_ERROR_CONTEXT", "BG_ERROR_CONTEXT_GENERAL_QUEUE_MANAGER", 0x2)
|
||||
BG_ERROR_CONTEXT_QUEUE_MANAGER_NOTIFICATION = EnumValue("_BG_ERROR_CONTEXT", "BG_ERROR_CONTEXT_QUEUE_MANAGER_NOTIFICATION", 0x3)
|
||||
BG_ERROR_CONTEXT_LOCAL_FILE = EnumValue("_BG_ERROR_CONTEXT", "BG_ERROR_CONTEXT_LOCAL_FILE", 0x4)
|
||||
BG_ERROR_CONTEXT_REMOTE_FILE = EnumValue("_BG_ERROR_CONTEXT", "BG_ERROR_CONTEXT_REMOTE_FILE", 0x5)
|
||||
BG_ERROR_CONTEXT_GENERAL_TRANSPORT = EnumValue("_BG_ERROR_CONTEXT", "BG_ERROR_CONTEXT_GENERAL_TRANSPORT", 0x6)
|
||||
BG_ERROR_CONTEXT_REMOTE_APPLICATION = EnumValue("_BG_ERROR_CONTEXT", "BG_ERROR_CONTEXT_REMOTE_APPLICATION", 0x7)
|
||||
class _BG_ERROR_CONTEXT(EnumType):
|
||||
values = [BG_ERROR_CONTEXT_NONE, BG_ERROR_CONTEXT_UNKNOWN, BG_ERROR_CONTEXT_GENERAL_QUEUE_MANAGER, BG_ERROR_CONTEXT_QUEUE_MANAGER_NOTIFICATION, BG_ERROR_CONTEXT_LOCAL_FILE, BG_ERROR_CONTEXT_REMOTE_FILE, BG_ERROR_CONTEXT_GENERAL_TRANSPORT, BG_ERROR_CONTEXT_REMOTE_APPLICATION]
|
||||
mapper = {x:x for x in values}
|
||||
BG_ERROR_CONTEXT = _BG_ERROR_CONTEXT
|
||||
|
||||
|
||||
BG_JOB_TYPE_DOWNLOAD = EnumValue("_BG_JOB_TYPE", "BG_JOB_TYPE_DOWNLOAD", 0x0)
|
||||
BG_JOB_TYPE_UPLOAD = EnumValue("_BG_JOB_TYPE", "BG_JOB_TYPE_UPLOAD", 0x1)
|
||||
BG_JOB_TYPE_UPLOAD_REPLY = EnumValue("_BG_JOB_TYPE", "BG_JOB_TYPE_UPLOAD_REPLY", 0x2)
|
||||
class _BG_JOB_TYPE(EnumType):
|
||||
values = [BG_JOB_TYPE_DOWNLOAD, BG_JOB_TYPE_UPLOAD, BG_JOB_TYPE_UPLOAD_REPLY]
|
||||
mapper = {x:x for x in values}
|
||||
BG_JOB_TYPE = _BG_JOB_TYPE
|
||||
|
||||
|
||||
class _BG_FILE_PROGRESS(Structure):
|
||||
class _SHITEMID(Structure):
|
||||
_fields_ = [
|
||||
("BytesTotal", UINT64),
|
||||
("BytesTransferred", UINT64),
|
||||
("Completed", BOOL),
|
||||
("cb", USHORT),
|
||||
("abID", BYTE * 1),
|
||||
]
|
||||
BG_FILE_PROGRESS = _BG_FILE_PROGRESS
|
||||
SHITEMID = _SHITEMID
|
||||
|
||||
class _BG_JOB_PROGRESS(Structure):
|
||||
class _ITEMIDLIST(Structure):
|
||||
_fields_ = [
|
||||
("BytesTotal", UINT64),
|
||||
("BytesTransferred", UINT64),
|
||||
("FilesTotal", ULONG),
|
||||
("FilesTransferred", ULONG),
|
||||
("mkid", SHITEMID),
|
||||
]
|
||||
BG_JOB_PROGRESS = _BG_JOB_PROGRESS
|
||||
ITEMIDLIST = _ITEMIDLIST
|
||||
PCIDLIST_ABSOLUTE = POINTER(_ITEMIDLIST)
|
||||
PIDLIST_ABSOLUTE = POINTER(_ITEMIDLIST)
|
||||
|
||||
class _BG_FILE_INFO(Structure):
|
||||
class tagRGBTRIPLE(Structure):
|
||||
_fields_ = [
|
||||
("RemoteName", LPWSTR),
|
||||
("LocalName", LPWSTR),
|
||||
("rgbtBlue", BYTE),
|
||||
("rgbtGreen", BYTE),
|
||||
("rgbtRed", BYTE),
|
||||
]
|
||||
BG_FILE_INFO = _BG_FILE_INFO
|
||||
NPRGBTRIPLE = POINTER(tagRGBTRIPLE)
|
||||
LPRGBTRIPLE = POINTER(tagRGBTRIPLE)
|
||||
RGBTRIPLE = tagRGBTRIPLE
|
||||
PRGBTRIPLE = POINTER(tagRGBTRIPLE)
|
||||
|
||||
class _BG_JOB_TIMES(Structure):
|
||||
class tagBITMAPFILEHEADER(Structure):
|
||||
_pack_ = 2
|
||||
_fields_ = [
|
||||
("CreationTime", FILETIME),
|
||||
("ModificationTime", FILETIME),
|
||||
("TransferCompletionTime", FILETIME),
|
||||
("bfType", WORD),
|
||||
("bfSize", DWORD),
|
||||
("bfReserved1", WORD),
|
||||
("bfReserved2", WORD),
|
||||
("bfOffBits", DWORD),
|
||||
]
|
||||
BG_JOB_TIMES = _BG_JOB_TIMES
|
||||
BITMAPFILEHEADER = tagBITMAPFILEHEADER
|
||||
PBITMAPFILEHEADER = POINTER(tagBITMAPFILEHEADER)
|
||||
LPBITMAPFILEHEADER = POINTER(tagBITMAPFILEHEADER)
|
||||
|
||||
class tagBITMAPCOREHEADER(Structure):
|
||||
_fields_ = [
|
||||
("bcSize", DWORD),
|
||||
("bcWidth", WORD),
|
||||
("bcHeight", WORD),
|
||||
("bcPlanes", WORD),
|
||||
("bcBitCount", WORD),
|
||||
]
|
||||
LPBITMAPCOREHEADER = POINTER(tagBITMAPCOREHEADER)
|
||||
PBITMAPCOREHEADER = POINTER(tagBITMAPCOREHEADER)
|
||||
BITMAPCOREHEADER = tagBITMAPCOREHEADER
|
||||
|
||||
class tagBITMAP(Structure):
|
||||
_fields_ = [
|
||||
("bmType", LONG),
|
||||
("bmWidth", LONG),
|
||||
("bmHeight", LONG),
|
||||
("bmWidthBytes", LONG),
|
||||
("bmPlanes", WORD),
|
||||
("bmBitsPixel", WORD),
|
||||
("bmBits", LPVOID),
|
||||
]
|
||||
NPBITMAP = POINTER(tagBITMAP)
|
||||
LPBITMAP = POINTER(tagBITMAP)
|
||||
PBITMAP = POINTER(tagBITMAP)
|
||||
BITMAP = tagBITMAP
|
||||
|
||||
class tagBITMAPINFOHEADER(Structure):
|
||||
_fields_ = [
|
||||
("biSize", DWORD),
|
||||
("biWidth", LONG),
|
||||
("biHeight", LONG),
|
||||
("biPlanes", WORD),
|
||||
("biBitCount", WORD),
|
||||
("biCompression", DWORD),
|
||||
("biSizeImage", DWORD),
|
||||
("biXPelsPerMeter", LONG),
|
||||
("biYPelsPerMeter", LONG),
|
||||
("biClrUsed", DWORD),
|
||||
("biClrImportant", DWORD),
|
||||
]
|
||||
BITMAPINFOHEADER = tagBITMAPINFOHEADER
|
||||
PBITMAPINFOHEADER = POINTER(tagBITMAPINFOHEADER)
|
||||
LPBITMAPINFOHEADER = POINTER(tagBITMAPINFOHEADER)
|
||||
|
||||
class tagRGBQUAD(Structure):
|
||||
_fields_ = [
|
||||
("rgbBlue", BYTE),
|
||||
("rgbGreen", BYTE),
|
||||
("rgbRed", BYTE),
|
||||
("rgbReserved", BYTE),
|
||||
]
|
||||
RGBQUAD = tagRGBQUAD
|
||||
|
||||
class tagBITMAPINFO(Structure):
|
||||
_fields_ = [
|
||||
("bmiHeader", BITMAPINFOHEADER),
|
||||
("bmiColors", RGBQUAD * 1),
|
||||
]
|
||||
LPBITMAPINFO = POINTER(tagBITMAPINFO)
|
||||
PBITMAPINFO = POINTER(tagBITMAPINFO)
|
||||
BITMAPINFO = tagBITMAPINFO
|
||||
|
||||
class tagBITMAPCOREINFO(Structure):
|
||||
_fields_ = [
|
||||
("bmciHeader", BITMAPCOREHEADER),
|
||||
("bmciColors", RGBTRIPLE * 1),
|
||||
]
|
||||
LPBITMAPCOREINFO = POINTER(tagBITMAPCOREINFO)
|
||||
BITMAPCOREINFO = tagBITMAPCOREINFO
|
||||
PBITMAPCOREINFO = POINTER(tagBITMAPCOREINFO)
|
||||
|
||||
class tagWNDCLASSEXA(Structure):
|
||||
_fields_ = [
|
||||
("cbSize", UINT),
|
||||
("style", UINT),
|
||||
("lpfnWndProc", WNDPROC),
|
||||
("cbClsExtra", INT),
|
||||
("cbWndExtra", INT),
|
||||
("hInstance", HINSTANCE),
|
||||
("hIcon", HICON),
|
||||
("hCursor", HCURSOR),
|
||||
("hbrBackground", HBRUSH),
|
||||
("lpszMenuName", LPCSTR),
|
||||
("lpszClassName", LPCSTR),
|
||||
("hIconSm", HICON),
|
||||
]
|
||||
PWNDCLASSEXA = POINTER(tagWNDCLASSEXA)
|
||||
LPWNDCLASSEXA = POINTER(tagWNDCLASSEXA)
|
||||
WNDCLASSEXA = tagWNDCLASSEXA
|
||||
|
||||
class tagWNDCLASSEXW(Structure):
|
||||
_fields_ = [
|
||||
("cbSize", UINT),
|
||||
("style", UINT),
|
||||
("lpfnWndProc", WNDPROC),
|
||||
("cbClsExtra", INT),
|
||||
("cbWndExtra", INT),
|
||||
("hInstance", HINSTANCE),
|
||||
("hIcon", HICON),
|
||||
("hCursor", HCURSOR),
|
||||
("hbrBackground", HBRUSH),
|
||||
("lpszMenuName", LPWSTR),
|
||||
("lpszClassName", LPWSTR),
|
||||
("hIconSm", HICON),
|
||||
]
|
||||
WNDCLASSEXW = tagWNDCLASSEXW
|
||||
LPWNDCLASSEXW = POINTER(tagWNDCLASSEXW)
|
||||
PWNDCLASSEXW = POINTER(tagWNDCLASSEXW)
|
||||
|
||||
class _GUID(Structure):
|
||||
_fields_ = [
|
||||
@@ -672,6 +717,60 @@ IID = _GUID
|
||||
CLSID = _GUID
|
||||
GUID = _GUID
|
||||
REFIID = POINTER(_GUID)
|
||||
CALLFRAME_COPY_NESTED = EnumValue("_CALLFRAME_COPY", "CALLFRAME_COPY_NESTED", 0x1)
|
||||
CALLFRAME_COPY_INDEPENDENT = EnumValue("_CALLFRAME_COPY", "CALLFRAME_COPY_INDEPENDENT", 0x2)
|
||||
class _CALLFRAME_COPY(EnumType):
|
||||
values = [CALLFRAME_COPY_NESTED, CALLFRAME_COPY_INDEPENDENT]
|
||||
mapper = {x:x for x in values}
|
||||
CALLFRAME_COPY = _CALLFRAME_COPY
|
||||
|
||||
|
||||
MSHLFLAGS_NORMAL = EnumValue("tagMSHLFLAGS", "MSHLFLAGS_NORMAL", 0x0)
|
||||
MSHLFLAGS_TABLESTRONG = EnumValue("tagMSHLFLAGS", "MSHLFLAGS_TABLESTRONG", 0x1)
|
||||
MSHLFLAGS_TABLEWEAK = EnumValue("tagMSHLFLAGS", "MSHLFLAGS_TABLEWEAK", 0x2)
|
||||
MSHLFLAGS_NOPING = EnumValue("tagMSHLFLAGS", "MSHLFLAGS_NOPING", 0x4)
|
||||
class tagMSHLFLAGS(EnumType):
|
||||
values = [MSHLFLAGS_NORMAL, MSHLFLAGS_TABLESTRONG, MSHLFLAGS_TABLEWEAK, MSHLFLAGS_NOPING]
|
||||
mapper = {x:x for x in values}
|
||||
MSHLFLAGS = tagMSHLFLAGS
|
||||
|
||||
|
||||
class _CALLFRAMEPARAMINFO(Structure):
|
||||
_fields_ = [
|
||||
("fIn", BOOLEAN),
|
||||
("fOut", BOOLEAN),
|
||||
("stackOffset", ULONG),
|
||||
("cbParam", ULONG),
|
||||
]
|
||||
CALLFRAMEPARAMINFO = _CALLFRAMEPARAMINFO
|
||||
|
||||
class _CALLFRAMEINFO(Structure):
|
||||
_fields_ = [
|
||||
("iMethod", ULONG),
|
||||
("fHasInValues", BOOL),
|
||||
("fHasInOutValues", BOOL),
|
||||
("fHasOutValues", BOOL),
|
||||
("fDerivesFromIDispatch", BOOL),
|
||||
("cInInterfacesMax", LONG),
|
||||
("cInOutInterfacesMax", LONG),
|
||||
("cOutInterfacesMax", LONG),
|
||||
("cTopLevelInInterfaces", LONG),
|
||||
("iid", IID),
|
||||
("cMethod", ULONG),
|
||||
("cParams", ULONG),
|
||||
]
|
||||
CALLFRAMEINFO = _CALLFRAMEINFO
|
||||
|
||||
class _CALLFRAME_MARSHALCONTEXT(Structure):
|
||||
_fields_ = [
|
||||
("fIn", BOOLEAN),
|
||||
("dwDestContext", DWORD),
|
||||
("pvDestContext", LPVOID),
|
||||
("mshlmgr", POINTER(PVOID)),
|
||||
("guidTransferSyntax", GUID),
|
||||
]
|
||||
CALLFRAME_MARSHALCONTEXT = _CALLFRAME_MARSHALCONTEXT
|
||||
|
||||
SystemBasicInformation = EnumValue("_SYSTEM_INFORMATION_CLASS", "SystemBasicInformation", 0x0)
|
||||
SystemProcessorInformation = EnumValue("_SYSTEM_INFORMATION_CLASS", "SystemProcessorInformation", 0x1)
|
||||
SystemPerformanceInformation = EnumValue("_SYSTEM_INFORMATION_CLASS", "SystemPerformanceInformation", 0x2)
|
||||
@@ -5088,137 +5187,93 @@ class _RPC_IF_ID(INITIAL_RPC_IF_ID):
|
||||
def __repr__(self):
|
||||
return '<RPC_IF_ID "{0}" ({1}, {2})>'.format(self.Uuid.to_string(), self.VersMajor, self.VersMinor)
|
||||
RPC_IF_ID = _RPC_IF_ID
|
||||
class tagRGBTRIPLE(Structure):
|
||||
_fields_ = [
|
||||
("rgbtBlue", BYTE),
|
||||
("rgbtGreen", BYTE),
|
||||
("rgbtRed", BYTE),
|
||||
]
|
||||
NPRGBTRIPLE = POINTER(tagRGBTRIPLE)
|
||||
LPRGBTRIPLE = POINTER(tagRGBTRIPLE)
|
||||
RGBTRIPLE = tagRGBTRIPLE
|
||||
PRGBTRIPLE = POINTER(tagRGBTRIPLE)
|
||||
BG_JOB_STATE_QUEUED = EnumValue("_BG_JOB_STATE", "BG_JOB_STATE_QUEUED", 0x0)
|
||||
BG_JOB_STATE_CONNECTING = EnumValue("_BG_JOB_STATE", "BG_JOB_STATE_CONNECTING", 0x1)
|
||||
BG_JOB_STATE_TRANSFERRING = EnumValue("_BG_JOB_STATE", "BG_JOB_STATE_TRANSFERRING", 0x2)
|
||||
BG_JOB_STATE_SUSPENDED = EnumValue("_BG_JOB_STATE", "BG_JOB_STATE_SUSPENDED", 0x3)
|
||||
BG_JOB_STATE_ERROR = EnumValue("_BG_JOB_STATE", "BG_JOB_STATE_ERROR", 0x4)
|
||||
BG_JOB_STATE_TRANSIENT_ERROR = EnumValue("_BG_JOB_STATE", "BG_JOB_STATE_TRANSIENT_ERROR", 0x5)
|
||||
BG_JOB_STATE_TRANSFERRED = EnumValue("_BG_JOB_STATE", "BG_JOB_STATE_TRANSFERRED", 0x6)
|
||||
BG_JOB_STATE_ACKNOWLEDGED = EnumValue("_BG_JOB_STATE", "BG_JOB_STATE_ACKNOWLEDGED", 0x7)
|
||||
BG_JOB_STATE_CANCELLED = EnumValue("_BG_JOB_STATE", "BG_JOB_STATE_CANCELLED", 0x8)
|
||||
class _BG_JOB_STATE(EnumType):
|
||||
values = [BG_JOB_STATE_QUEUED, BG_JOB_STATE_CONNECTING, BG_JOB_STATE_TRANSFERRING, BG_JOB_STATE_SUSPENDED, BG_JOB_STATE_ERROR, BG_JOB_STATE_TRANSIENT_ERROR, BG_JOB_STATE_TRANSFERRED, BG_JOB_STATE_ACKNOWLEDGED, BG_JOB_STATE_CANCELLED]
|
||||
mapper = {x:x for x in values}
|
||||
BG_JOB_STATE = _BG_JOB_STATE
|
||||
|
||||
class tagBITMAPFILEHEADER(Structure):
|
||||
_pack_ = 2
|
||||
_fields_ = [
|
||||
("bfType", WORD),
|
||||
("bfSize", DWORD),
|
||||
("bfReserved1", WORD),
|
||||
("bfReserved2", WORD),
|
||||
("bfOffBits", DWORD),
|
||||
]
|
||||
BITMAPFILEHEADER = tagBITMAPFILEHEADER
|
||||
PBITMAPFILEHEADER = POINTER(tagBITMAPFILEHEADER)
|
||||
LPBITMAPFILEHEADER = POINTER(tagBITMAPFILEHEADER)
|
||||
|
||||
class tagBITMAPCOREHEADER(Structure):
|
||||
_fields_ = [
|
||||
("bcSize", DWORD),
|
||||
("bcWidth", WORD),
|
||||
("bcHeight", WORD),
|
||||
("bcPlanes", WORD),
|
||||
("bcBitCount", WORD),
|
||||
]
|
||||
LPBITMAPCOREHEADER = POINTER(tagBITMAPCOREHEADER)
|
||||
PBITMAPCOREHEADER = POINTER(tagBITMAPCOREHEADER)
|
||||
BITMAPCOREHEADER = tagBITMAPCOREHEADER
|
||||
BG_JOB_PROXY_USAGE_PRECONFIG = EnumValue("_BG_JOB_PROXY_USAGE", "BG_JOB_PROXY_USAGE_PRECONFIG", 0x0)
|
||||
BG_JOB_PROXY_USAGE_NO_PROXY = EnumValue("_BG_JOB_PROXY_USAGE", "BG_JOB_PROXY_USAGE_NO_PROXY", 0x1)
|
||||
BG_JOB_PROXY_USAGE_OVERRIDE = EnumValue("_BG_JOB_PROXY_USAGE", "BG_JOB_PROXY_USAGE_OVERRIDE", 0x2)
|
||||
BG_JOB_PROXY_USAGE_AUTODETECT = EnumValue("_BG_JOB_PROXY_USAGE", "BG_JOB_PROXY_USAGE_AUTODETECT", 0x3)
|
||||
class _BG_JOB_PROXY_USAGE(EnumType):
|
||||
values = [BG_JOB_PROXY_USAGE_PRECONFIG, BG_JOB_PROXY_USAGE_NO_PROXY, BG_JOB_PROXY_USAGE_OVERRIDE, BG_JOB_PROXY_USAGE_AUTODETECT]
|
||||
mapper = {x:x for x in values}
|
||||
BG_JOB_PROXY_USAGE = _BG_JOB_PROXY_USAGE
|
||||
|
||||
class tagBITMAP(Structure):
|
||||
_fields_ = [
|
||||
("bmType", LONG),
|
||||
("bmWidth", LONG),
|
||||
("bmHeight", LONG),
|
||||
("bmWidthBytes", LONG),
|
||||
("bmPlanes", WORD),
|
||||
("bmBitsPixel", WORD),
|
||||
("bmBits", LPVOID),
|
||||
]
|
||||
NPBITMAP = POINTER(tagBITMAP)
|
||||
LPBITMAP = POINTER(tagBITMAP)
|
||||
PBITMAP = POINTER(tagBITMAP)
|
||||
BITMAP = tagBITMAP
|
||||
|
||||
class tagBITMAPINFOHEADER(Structure):
|
||||
_fields_ = [
|
||||
("biSize", DWORD),
|
||||
("biWidth", LONG),
|
||||
("biHeight", LONG),
|
||||
("biPlanes", WORD),
|
||||
("biBitCount", WORD),
|
||||
("biCompression", DWORD),
|
||||
("biSizeImage", DWORD),
|
||||
("biXPelsPerMeter", LONG),
|
||||
("biYPelsPerMeter", LONG),
|
||||
("biClrUsed", DWORD),
|
||||
("biClrImportant", DWORD),
|
||||
]
|
||||
BITMAPINFOHEADER = tagBITMAPINFOHEADER
|
||||
PBITMAPINFOHEADER = POINTER(tagBITMAPINFOHEADER)
|
||||
LPBITMAPINFOHEADER = POINTER(tagBITMAPINFOHEADER)
|
||||
BG_JOB_PRIORITY_FOREGROUND = EnumValue("_BG_JOB_PRIORITY", "BG_JOB_PRIORITY_FOREGROUND", 0x0)
|
||||
BG_JOB_PRIORITY_HIGH = EnumValue("_BG_JOB_PRIORITY", "BG_JOB_PRIORITY_HIGH", 0x1)
|
||||
BG_JOB_PRIORITY_NORMAL = EnumValue("_BG_JOB_PRIORITY", "BG_JOB_PRIORITY_NORMAL", 0x2)
|
||||
BG_JOB_PRIORITY_LOW = EnumValue("_BG_JOB_PRIORITY", "BG_JOB_PRIORITY_LOW", 0x3)
|
||||
class _BG_JOB_PRIORITY(EnumType):
|
||||
values = [BG_JOB_PRIORITY_FOREGROUND, BG_JOB_PRIORITY_HIGH, BG_JOB_PRIORITY_NORMAL, BG_JOB_PRIORITY_LOW]
|
||||
mapper = {x:x for x in values}
|
||||
BG_JOB_PRIORITY = _BG_JOB_PRIORITY
|
||||
|
||||
class tagRGBQUAD(Structure):
|
||||
_fields_ = [
|
||||
("rgbBlue", BYTE),
|
||||
("rgbGreen", BYTE),
|
||||
("rgbRed", BYTE),
|
||||
("rgbReserved", BYTE),
|
||||
]
|
||||
RGBQUAD = tagRGBQUAD
|
||||
|
||||
class tagBITMAPINFO(Structure):
|
||||
_fields_ = [
|
||||
("bmiHeader", BITMAPINFOHEADER),
|
||||
("bmiColors", RGBQUAD * 1),
|
||||
]
|
||||
LPBITMAPINFO = POINTER(tagBITMAPINFO)
|
||||
PBITMAPINFO = POINTER(tagBITMAPINFO)
|
||||
BITMAPINFO = tagBITMAPINFO
|
||||
BG_ERROR_CONTEXT_NONE = EnumValue("_BG_ERROR_CONTEXT", "BG_ERROR_CONTEXT_NONE", 0x0)
|
||||
BG_ERROR_CONTEXT_UNKNOWN = EnumValue("_BG_ERROR_CONTEXT", "BG_ERROR_CONTEXT_UNKNOWN", 0x1)
|
||||
BG_ERROR_CONTEXT_GENERAL_QUEUE_MANAGER = EnumValue("_BG_ERROR_CONTEXT", "BG_ERROR_CONTEXT_GENERAL_QUEUE_MANAGER", 0x2)
|
||||
BG_ERROR_CONTEXT_QUEUE_MANAGER_NOTIFICATION = EnumValue("_BG_ERROR_CONTEXT", "BG_ERROR_CONTEXT_QUEUE_MANAGER_NOTIFICATION", 0x3)
|
||||
BG_ERROR_CONTEXT_LOCAL_FILE = EnumValue("_BG_ERROR_CONTEXT", "BG_ERROR_CONTEXT_LOCAL_FILE", 0x4)
|
||||
BG_ERROR_CONTEXT_REMOTE_FILE = EnumValue("_BG_ERROR_CONTEXT", "BG_ERROR_CONTEXT_REMOTE_FILE", 0x5)
|
||||
BG_ERROR_CONTEXT_GENERAL_TRANSPORT = EnumValue("_BG_ERROR_CONTEXT", "BG_ERROR_CONTEXT_GENERAL_TRANSPORT", 0x6)
|
||||
BG_ERROR_CONTEXT_REMOTE_APPLICATION = EnumValue("_BG_ERROR_CONTEXT", "BG_ERROR_CONTEXT_REMOTE_APPLICATION", 0x7)
|
||||
class _BG_ERROR_CONTEXT(EnumType):
|
||||
values = [BG_ERROR_CONTEXT_NONE, BG_ERROR_CONTEXT_UNKNOWN, BG_ERROR_CONTEXT_GENERAL_QUEUE_MANAGER, BG_ERROR_CONTEXT_QUEUE_MANAGER_NOTIFICATION, BG_ERROR_CONTEXT_LOCAL_FILE, BG_ERROR_CONTEXT_REMOTE_FILE, BG_ERROR_CONTEXT_GENERAL_TRANSPORT, BG_ERROR_CONTEXT_REMOTE_APPLICATION]
|
||||
mapper = {x:x for x in values}
|
||||
BG_ERROR_CONTEXT = _BG_ERROR_CONTEXT
|
||||
|
||||
class tagBITMAPCOREINFO(Structure):
|
||||
_fields_ = [
|
||||
("bmciHeader", BITMAPCOREHEADER),
|
||||
("bmciColors", RGBTRIPLE * 1),
|
||||
]
|
||||
LPBITMAPCOREINFO = POINTER(tagBITMAPCOREINFO)
|
||||
BITMAPCOREINFO = tagBITMAPCOREINFO
|
||||
PBITMAPCOREINFO = POINTER(tagBITMAPCOREINFO)
|
||||
|
||||
class tagWNDCLASSEXA(Structure):
|
||||
_fields_ = [
|
||||
("cbSize", UINT),
|
||||
("style", UINT),
|
||||
("lpfnWndProc", WNDPROC),
|
||||
("cbClsExtra", INT),
|
||||
("cbWndExtra", INT),
|
||||
("hInstance", HINSTANCE),
|
||||
("hIcon", HICON),
|
||||
("hCursor", HCURSOR),
|
||||
("hbrBackground", HBRUSH),
|
||||
("lpszMenuName", LPCSTR),
|
||||
("lpszClassName", LPCSTR),
|
||||
("hIconSm", HICON),
|
||||
]
|
||||
PWNDCLASSEXA = POINTER(tagWNDCLASSEXA)
|
||||
LPWNDCLASSEXA = POINTER(tagWNDCLASSEXA)
|
||||
WNDCLASSEXA = tagWNDCLASSEXA
|
||||
BG_JOB_TYPE_DOWNLOAD = EnumValue("_BG_JOB_TYPE", "BG_JOB_TYPE_DOWNLOAD", 0x0)
|
||||
BG_JOB_TYPE_UPLOAD = EnumValue("_BG_JOB_TYPE", "BG_JOB_TYPE_UPLOAD", 0x1)
|
||||
BG_JOB_TYPE_UPLOAD_REPLY = EnumValue("_BG_JOB_TYPE", "BG_JOB_TYPE_UPLOAD_REPLY", 0x2)
|
||||
class _BG_JOB_TYPE(EnumType):
|
||||
values = [BG_JOB_TYPE_DOWNLOAD, BG_JOB_TYPE_UPLOAD, BG_JOB_TYPE_UPLOAD_REPLY]
|
||||
mapper = {x:x for x in values}
|
||||
BG_JOB_TYPE = _BG_JOB_TYPE
|
||||
|
||||
class tagWNDCLASSEXW(Structure):
|
||||
_fields_ = [
|
||||
("cbSize", UINT),
|
||||
("style", UINT),
|
||||
("lpfnWndProc", WNDPROC),
|
||||
("cbClsExtra", INT),
|
||||
("cbWndExtra", INT),
|
||||
("hInstance", HINSTANCE),
|
||||
("hIcon", HICON),
|
||||
("hCursor", HCURSOR),
|
||||
("hbrBackground", HBRUSH),
|
||||
("lpszMenuName", LPWSTR),
|
||||
("lpszClassName", LPWSTR),
|
||||
("hIconSm", HICON),
|
||||
]
|
||||
WNDCLASSEXW = tagWNDCLASSEXW
|
||||
LPWNDCLASSEXW = POINTER(tagWNDCLASSEXW)
|
||||
PWNDCLASSEXW = POINTER(tagWNDCLASSEXW)
|
||||
|
||||
class _BG_FILE_PROGRESS(Structure):
|
||||
_fields_ = [
|
||||
("BytesTotal", UINT64),
|
||||
("BytesTransferred", UINT64),
|
||||
("Completed", BOOL),
|
||||
]
|
||||
BG_FILE_PROGRESS = _BG_FILE_PROGRESS
|
||||
|
||||
class _BG_JOB_PROGRESS(Structure):
|
||||
_fields_ = [
|
||||
("BytesTotal", UINT64),
|
||||
("BytesTransferred", UINT64),
|
||||
("FilesTotal", ULONG),
|
||||
("FilesTransferred", ULONG),
|
||||
]
|
||||
BG_JOB_PROGRESS = _BG_JOB_PROGRESS
|
||||
|
||||
class _BG_FILE_INFO(Structure):
|
||||
_fields_ = [
|
||||
("RemoteName", LPWSTR),
|
||||
("LocalName", LPWSTR),
|
||||
]
|
||||
BG_FILE_INFO = _BG_FILE_INFO
|
||||
|
||||
class _BG_JOB_TIMES(Structure):
|
||||
_fields_ = [
|
||||
("CreationTime", FILETIME),
|
||||
("ModificationTime", FILETIME),
|
||||
("TransferCompletionTime", FILETIME),
|
||||
]
|
||||
BG_JOB_TIMES = _BG_JOB_TIMES
|
||||
|
||||
|
||||
@@ -1699,6 +1699,11 @@ def CoInitializeSecurity(pSecDesc, cAuthSvc, asAuthSvc, pReserved1, dwAuthnLevel
|
||||
def CoCreateInstance(rclsid, pUnkOuter=None, dwClsContext=CLSCTX_INPROC_SERVER, riid=NeededParameter, ppv=NeededParameter):
|
||||
return CoCreateInstance.ctypes_function(rclsid, pUnkOuter, dwClsContext, riid, ppv)
|
||||
|
||||
|
||||
@Ole32Proxy('CoGetInterceptor')
|
||||
def CoGetInterceptor(iidIntercepted, punkOuter, iid, ppv):
|
||||
return CoGetInterceptor.ctypes_function(iidIntercepted, punkOuter, iid, ppv)
|
||||
|
||||
# ## Shell32 ## #
|
||||
|
||||
@Shell32Proxy('ShellExecuteA')
|
||||
|
||||
Reference in New Issue
Block a user