|
|
|
@@ -1,139 +1,199 @@
|
|
|
|
|
from interfaces import *
|
|
|
|
|
from winstructs import *
|
|
|
|
|
from interfaces import *
|
|
|
|
|
#def ObjectFromLresult(lResult, riid, wParam, ppvObject):
|
|
|
|
|
# return ObjectFromLresult.ctypes_function(lResult, riid, wParam, ppvObject)
|
|
|
|
|
ObjectFromLresultPrototype = WINFUNCTYPE(HRESULT, LRESULT, REFIID, WPARAM, POINTER(PVOID))
|
|
|
|
|
ObjectFromLresultParams = ((1, 'lResult'), (1, 'riid'), (1, 'wParam'), (1, 'ppvObject'))
|
|
|
|
|
|
|
|
|
|
#def CoInitializeEx(pvReserved, dwCoInit):
|
|
|
|
|
# return CoInitializeEx.ctypes_function(pvReserved, dwCoInit)
|
|
|
|
|
CoInitializeExPrototype = WINFUNCTYPE(HRESULT, LPVOID, DWORD)
|
|
|
|
|
CoInitializeExParams = ((1, 'pvReserved'), (1, 'dwCoInit'))
|
|
|
|
|
#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 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 NtQueryLicenseValue(Name, Type, Buffer, Length, DataLength):
|
|
|
|
|
# return NtQueryLicenseValue.ctypes_function(Name, Type, Buffer, Length, DataLength)
|
|
|
|
|
NtQueryLicenseValuePrototype = WINFUNCTYPE(NTSTATUS, PUNICODE_STRING, POINTER(ULONG), PVOID, ULONG, POINTER(ULONG))
|
|
|
|
|
NtQueryLicenseValueParams = ((1, 'Name'), (1, 'Type'), (1, 'Buffer'), (1, 'Length'), (1, 'DataLength'))
|
|
|
|
|
|
|
|
|
|
#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 OpenEventLogA(lpUNCServerName, lpSourceName):
|
|
|
|
|
# return OpenEventLogA.ctypes_function(lpUNCServerName, lpSourceName)
|
|
|
|
|
OpenEventLogAPrototype = WINFUNCTYPE(HANDLE, LPCSTR, LPCSTR)
|
|
|
|
|
OpenEventLogAParams = ((1, 'lpUNCServerName'), (1, 'lpSourceName'))
|
|
|
|
|
|
|
|
|
|
#def CoCreateInstanceEx(rclsid, punkOuter, dwClsCtx, pServerInfo, dwCount, pResults):
|
|
|
|
|
# return CoCreateInstanceEx.ctypes_function(rclsid, punkOuter, dwClsCtx, pServerInfo, dwCount, pResults)
|
|
|
|
|
CoCreateInstanceExPrototype = WINFUNCTYPE(HRESULT, REFCLSID, POINTER(IUnknown), DWORD, POINTER(COSERVERINFO), DWORD, POINTER(MULTI_QI))
|
|
|
|
|
CoCreateInstanceExParams = ((1, 'rclsid'), (1, 'punkOuter'), (1, 'dwClsCtx'), (1, 'pServerInfo'), (1, 'dwCount'), (1, 'pResults'))
|
|
|
|
|
#def OpenEventLogW(lpUNCServerName, lpSourceName):
|
|
|
|
|
# return OpenEventLogW.ctypes_function(lpUNCServerName, lpSourceName)
|
|
|
|
|
OpenEventLogWPrototype = WINFUNCTYPE(HANDLE, LPWSTR, LPWSTR)
|
|
|
|
|
OpenEventLogWParams = ((1, 'lpUNCServerName'), (1, 'lpSourceName'))
|
|
|
|
|
|
|
|
|
|
#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 OpenBackupEventLogA(lpUNCServerName, lpSourceName):
|
|
|
|
|
# return OpenBackupEventLogA.ctypes_function(lpUNCServerName, lpSourceName)
|
|
|
|
|
OpenBackupEventLogAPrototype = WINFUNCTYPE(HANDLE, LPCSTR, LPCSTR)
|
|
|
|
|
OpenBackupEventLogAParams = ((1, 'lpUNCServerName'), (1, 'lpSourceName'))
|
|
|
|
|
|
|
|
|
|
#def CLSIDFromProgID(lpszProgID, lpclsid):
|
|
|
|
|
# return CLSIDFromProgID.ctypes_function(lpszProgID, lpclsid)
|
|
|
|
|
CLSIDFromProgIDPrototype = WINFUNCTYPE(HRESULT, LPCOLESTR, LPCLSID)
|
|
|
|
|
CLSIDFromProgIDParams = ((1, 'lpszProgID'), (1, 'lpclsid'))
|
|
|
|
|
#def OpenBackupEventLogW(lpUNCServerName, lpSourceName):
|
|
|
|
|
# return OpenBackupEventLogW.ctypes_function(lpUNCServerName, lpSourceName)
|
|
|
|
|
OpenBackupEventLogWPrototype = WINFUNCTYPE(HANDLE, LPWSTR, LPWSTR)
|
|
|
|
|
OpenBackupEventLogWParams = ((1, 'lpUNCServerName'), (1, 'lpSourceName'))
|
|
|
|
|
|
|
|
|
|
#def IsValidSecurityDescriptor(pSecurityDescriptor):
|
|
|
|
|
# return IsValidSecurityDescriptor.ctypes_function(pSecurityDescriptor)
|
|
|
|
|
IsValidSecurityDescriptorPrototype = WINFUNCTYPE(BOOL, PSECURITY_DESCRIPTOR)
|
|
|
|
|
IsValidSecurityDescriptorParams = ((1, 'pSecurityDescriptor'),)
|
|
|
|
|
#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 ConvertStringSecurityDescriptorToSecurityDescriptorA(StringSecurityDescriptor, StringSDRevision, SecurityDescriptor, SecurityDescriptorSize):
|
|
|
|
|
# return ConvertStringSecurityDescriptorToSecurityDescriptorA.ctypes_function(StringSecurityDescriptor, StringSDRevision, SecurityDescriptor, SecurityDescriptorSize)
|
|
|
|
|
ConvertStringSecurityDescriptorToSecurityDescriptorAPrototype = WINFUNCTYPE(BOOL, LPCSTR, DWORD, POINTER(PSECURITY_DESCRIPTOR), PULONG)
|
|
|
|
|
ConvertStringSecurityDescriptorToSecurityDescriptorAParams = ((1, 'StringSecurityDescriptor'), (1, 'StringSDRevision'), (1, 'SecurityDescriptor'), (1, 'SecurityDescriptorSize'))
|
|
|
|
|
#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 ConvertStringSecurityDescriptorToSecurityDescriptorW(StringSecurityDescriptor, StringSDRevision, SecurityDescriptor, SecurityDescriptorSize):
|
|
|
|
|
# return ConvertStringSecurityDescriptorToSecurityDescriptorW.ctypes_function(StringSecurityDescriptor, StringSDRevision, SecurityDescriptor, SecurityDescriptorSize)
|
|
|
|
|
ConvertStringSecurityDescriptorToSecurityDescriptorWPrototype = WINFUNCTYPE(BOOL, LPWSTR, DWORD, POINTER(PSECURITY_DESCRIPTOR), PULONG)
|
|
|
|
|
ConvertStringSecurityDescriptorToSecurityDescriptorWParams = ((1, 'StringSecurityDescriptor'), (1, 'StringSDRevision'), (1, 'SecurityDescriptor'), (1, 'SecurityDescriptorSize'))
|
|
|
|
|
#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 ConvertSecurityDescriptorToStringSecurityDescriptorA(SecurityDescriptor, RequestedStringSDRevision, SecurityInformation, StringSecurityDescriptor, StringSecurityDescriptorLen):
|
|
|
|
|
# return ConvertSecurityDescriptorToStringSecurityDescriptorA.ctypes_function(SecurityDescriptor, RequestedStringSDRevision, SecurityInformation, StringSecurityDescriptor, StringSecurityDescriptorLen)
|
|
|
|
|
ConvertSecurityDescriptorToStringSecurityDescriptorAPrototype = WINFUNCTYPE(BOOL, PSECURITY_DESCRIPTOR, DWORD, DWORD, POINTER(LPCSTR), PULONG)
|
|
|
|
|
ConvertSecurityDescriptorToStringSecurityDescriptorAParams = ((1, 'SecurityDescriptor'), (1, 'RequestedStringSDRevision'), (1, 'SecurityInformation'), (1, 'StringSecurityDescriptor'), (1, 'StringSecurityDescriptorLen'))
|
|
|
|
|
#def GetNumberOfEventLogRecords(hEventLog, NumberOfRecords):
|
|
|
|
|
# return GetNumberOfEventLogRecords.ctypes_function(hEventLog, NumberOfRecords)
|
|
|
|
|
GetNumberOfEventLogRecordsPrototype = WINFUNCTYPE(BOOL, HANDLE, PDWORD)
|
|
|
|
|
GetNumberOfEventLogRecordsParams = ((1, 'hEventLog'), (1, 'NumberOfRecords'))
|
|
|
|
|
|
|
|
|
|
#def ConvertSecurityDescriptorToStringSecurityDescriptorW(SecurityDescriptor, RequestedStringSDRevision, SecurityInformation, StringSecurityDescriptor, StringSecurityDescriptorLen):
|
|
|
|
|
# return ConvertSecurityDescriptorToStringSecurityDescriptorW.ctypes_function(SecurityDescriptor, RequestedStringSDRevision, SecurityInformation, StringSecurityDescriptor, StringSecurityDescriptorLen)
|
|
|
|
|
ConvertSecurityDescriptorToStringSecurityDescriptorWPrototype = WINFUNCTYPE(BOOL, PSECURITY_DESCRIPTOR, DWORD, DWORD, POINTER(LPWSTR), PULONG)
|
|
|
|
|
ConvertSecurityDescriptorToStringSecurityDescriptorWParams = ((1, 'SecurityDescriptor'), (1, 'RequestedStringSDRevision'), (1, 'SecurityInformation'), (1, 'StringSecurityDescriptor'), (1, 'StringSecurityDescriptorLen'))
|
|
|
|
|
#def CloseEventLog(hEventLog):
|
|
|
|
|
# return CloseEventLog.ctypes_function(hEventLog)
|
|
|
|
|
CloseEventLogPrototype = WINFUNCTYPE(BOOL, HANDLE)
|
|
|
|
|
CloseEventLogParams = ((1, 'hEventLog'),)
|
|
|
|
|
|
|
|
|
|
#def GetSecurityDescriptorControl(pSecurityDescriptor, pControl, lpdwRevision):
|
|
|
|
|
# return GetSecurityDescriptorControl.ctypes_function(pSecurityDescriptor, pControl, lpdwRevision)
|
|
|
|
|
GetSecurityDescriptorControlPrototype = WINFUNCTYPE(BOOL, PSECURITY_DESCRIPTOR, PSECURITY_DESCRIPTOR_CONTROL, LPDWORD)
|
|
|
|
|
GetSecurityDescriptorControlParams = ((1, 'pSecurityDescriptor'), (1, 'pControl'), (1, 'lpdwRevision'))
|
|
|
|
|
#def EvtOpenLog(Session, Path, Flags):
|
|
|
|
|
# return EvtOpenLog.ctypes_function(Session, Path, Flags)
|
|
|
|
|
EvtOpenLogPrototype = WINFUNCTYPE(EVT_HANDLE, EVT_HANDLE, LPCWSTR, DWORD)
|
|
|
|
|
EvtOpenLogParams = ((1, 'Session'), (1, 'Path'), (1, 'Flags'))
|
|
|
|
|
|
|
|
|
|
#def GetSecurityDescriptorDacl(pSecurityDescriptor, lpbDaclPresent, pDacl, lpbDaclDefaulted):
|
|
|
|
|
# return GetSecurityDescriptorDacl.ctypes_function(pSecurityDescriptor, lpbDaclPresent, pDacl, lpbDaclDefaulted)
|
|
|
|
|
GetSecurityDescriptorDaclPrototype = WINFUNCTYPE(BOOL, PSECURITY_DESCRIPTOR, LPBOOL, POINTER(PACL), LPBOOL)
|
|
|
|
|
GetSecurityDescriptorDaclParams = ((1, 'pSecurityDescriptor'), (1, 'lpbDaclPresent'), (1, 'pDacl'), (1, 'lpbDaclDefaulted'))
|
|
|
|
|
#def EvtQuery(Session, Path, Query, Flags):
|
|
|
|
|
# return EvtQuery.ctypes_function(Session, Path, Query, Flags)
|
|
|
|
|
EvtQueryPrototype = WINFUNCTYPE(EVT_HANDLE, EVT_HANDLE, LPCWSTR, LPCWSTR, DWORD)
|
|
|
|
|
EvtQueryParams = ((1, 'Session'), (1, 'Path'), (1, 'Query'), (1, 'Flags'))
|
|
|
|
|
|
|
|
|
|
#def GetSecurityDescriptorGroup(pSecurityDescriptor, pGroup, lpbGroupDefaulted):
|
|
|
|
|
# return GetSecurityDescriptorGroup.ctypes_function(pSecurityDescriptor, pGroup, lpbGroupDefaulted)
|
|
|
|
|
GetSecurityDescriptorGroupPrototype = WINFUNCTYPE(BOOL, PSECURITY_DESCRIPTOR, POINTER(PSID), LPBOOL)
|
|
|
|
|
GetSecurityDescriptorGroupParams = ((1, 'pSecurityDescriptor'), (1, 'pGroup'), (1, 'lpbGroupDefaulted'))
|
|
|
|
|
#def EvtNext(ResultSet, EventArraySize, EventArray, Timeout, Flags, Returned):
|
|
|
|
|
# return EvtNext.ctypes_function(ResultSet, EventArraySize, EventArray, Timeout, Flags, Returned)
|
|
|
|
|
EvtNextPrototype = WINFUNCTYPE(BOOL, EVT_HANDLE, DWORD, POINTER(EVT_HANDLE), DWORD, DWORD, PDWORD)
|
|
|
|
|
EvtNextParams = ((1, 'ResultSet'), (1, 'EventArraySize'), (1, 'EventArray'), (1, 'Timeout'), (1, 'Flags'), (1, 'Returned'))
|
|
|
|
|
|
|
|
|
|
#def GetSecurityDescriptorLength(pSecurityDescriptor):
|
|
|
|
|
# return GetSecurityDescriptorLength.ctypes_function(pSecurityDescriptor)
|
|
|
|
|
GetSecurityDescriptorLengthPrototype = WINFUNCTYPE(DWORD, PSECURITY_DESCRIPTOR)
|
|
|
|
|
GetSecurityDescriptorLengthParams = ((1, 'pSecurityDescriptor'),)
|
|
|
|
|
#def EvtCreateRenderContext(ValuePathsCount, ValuePaths, Flags):
|
|
|
|
|
# return EvtCreateRenderContext.ctypes_function(ValuePathsCount, ValuePaths, Flags)
|
|
|
|
|
EvtCreateRenderContextPrototype = WINFUNCTYPE(EVT_HANDLE, DWORD, POINTER(LPCWSTR), DWORD)
|
|
|
|
|
EvtCreateRenderContextParams = ((1, 'ValuePathsCount'), (1, 'ValuePaths'), (1, 'Flags'))
|
|
|
|
|
|
|
|
|
|
#def GetSecurityDescriptorOwner(pSecurityDescriptor, pOwner, lpbOwnerDefaulted):
|
|
|
|
|
# return GetSecurityDescriptorOwner.ctypes_function(pSecurityDescriptor, pOwner, lpbOwnerDefaulted)
|
|
|
|
|
GetSecurityDescriptorOwnerPrototype = WINFUNCTYPE(BOOL, PSECURITY_DESCRIPTOR, POINTER(PSID), LPBOOL)
|
|
|
|
|
GetSecurityDescriptorOwnerParams = ((1, 'pSecurityDescriptor'), (1, 'pOwner'), (1, 'lpbOwnerDefaulted'))
|
|
|
|
|
#def EvtRender(Context, Fragment, Flags, BufferSize, Buffer, BufferUsed, PropertyCount):
|
|
|
|
|
# return EvtRender.ctypes_function(Context, Fragment, Flags, BufferSize, Buffer, BufferUsed, PropertyCount)
|
|
|
|
|
EvtRenderPrototype = WINFUNCTYPE(BOOL, EVT_HANDLE, EVT_HANDLE, DWORD, DWORD, PVOID, PDWORD, PDWORD)
|
|
|
|
|
EvtRenderParams = ((1, 'Context'), (1, 'Fragment'), (1, 'Flags'), (1, 'BufferSize'), (1, 'Buffer'), (1, 'BufferUsed'), (1, 'PropertyCount'))
|
|
|
|
|
|
|
|
|
|
#def GetSecurityDescriptorRMControl(SecurityDescriptor, RMControl):
|
|
|
|
|
# return GetSecurityDescriptorRMControl.ctypes_function(SecurityDescriptor, RMControl)
|
|
|
|
|
GetSecurityDescriptorRMControlPrototype = WINFUNCTYPE(DWORD, PSECURITY_DESCRIPTOR, PUCHAR)
|
|
|
|
|
GetSecurityDescriptorRMControlParams = ((1, 'SecurityDescriptor'), (1, 'RMControl'))
|
|
|
|
|
#def EvtClose(Object):
|
|
|
|
|
# return EvtClose.ctypes_function(Object)
|
|
|
|
|
EvtClosePrototype = WINFUNCTYPE(BOOL, EVT_HANDLE)
|
|
|
|
|
EvtCloseParams = ((1, 'Object'),)
|
|
|
|
|
|
|
|
|
|
#def GetSecurityDescriptorSacl(pSecurityDescriptor, lpbSaclPresent, pSacl, lpbSaclDefaulted):
|
|
|
|
|
# return GetSecurityDescriptorSacl.ctypes_function(pSecurityDescriptor, lpbSaclPresent, pSacl, lpbSaclDefaulted)
|
|
|
|
|
GetSecurityDescriptorSaclPrototype = WINFUNCTYPE(BOOL, PSECURITY_DESCRIPTOR, LPBOOL, POINTER(PACL), LPBOOL)
|
|
|
|
|
GetSecurityDescriptorSaclParams = ((1, 'pSecurityDescriptor'), (1, 'lpbSaclPresent'), (1, 'pSacl'), (1, 'lpbSaclDefaulted'))
|
|
|
|
|
#def EvtOpenChannelEnum(Session, Flags):
|
|
|
|
|
# return EvtOpenChannelEnum.ctypes_function(Session, Flags)
|
|
|
|
|
EvtOpenChannelEnumPrototype = WINFUNCTYPE(EVT_HANDLE, EVT_HANDLE, DWORD)
|
|
|
|
|
EvtOpenChannelEnumParams = ((1, 'Session'), (1, 'Flags'))
|
|
|
|
|
|
|
|
|
|
#def GetLengthSid(pSid):
|
|
|
|
|
# return GetLengthSid.ctypes_function(pSid)
|
|
|
|
|
GetLengthSidPrototype = WINFUNCTYPE(DWORD, PSID)
|
|
|
|
|
GetLengthSidParams = ((1, 'pSid'),)
|
|
|
|
|
#def EvtNextChannelPath(ChannelEnum, ChannelPathBufferSize, ChannelPathBuffer, ChannelPathBufferUsed):
|
|
|
|
|
# return EvtNextChannelPath.ctypes_function(ChannelEnum, ChannelPathBufferSize, ChannelPathBuffer, ChannelPathBufferUsed)
|
|
|
|
|
EvtNextChannelPathPrototype = WINFUNCTYPE(BOOL, EVT_HANDLE, DWORD, LPWSTR, PDWORD)
|
|
|
|
|
EvtNextChannelPathParams = ((1, 'ChannelEnum'), (1, 'ChannelPathBufferSize'), (1, 'ChannelPathBuffer'), (1, 'ChannelPathBufferUsed'))
|
|
|
|
|
|
|
|
|
|
#def GetSidIdentifierAuthority(pSid):
|
|
|
|
|
# return GetSidIdentifierAuthority.ctypes_function(pSid)
|
|
|
|
|
GetSidIdentifierAuthorityPrototype = WINFUNCTYPE(PSID_IDENTIFIER_AUTHORITY, PSID)
|
|
|
|
|
GetSidIdentifierAuthorityParams = ((1, 'pSid'),)
|
|
|
|
|
#def EvtOpenPublisherEnum(Session, Flags):
|
|
|
|
|
# return EvtOpenPublisherEnum.ctypes_function(Session, Flags)
|
|
|
|
|
EvtOpenPublisherEnumPrototype = WINFUNCTYPE(EVT_HANDLE, EVT_HANDLE, DWORD)
|
|
|
|
|
EvtOpenPublisherEnumParams = ((1, 'Session'), (1, 'Flags'))
|
|
|
|
|
|
|
|
|
|
#def GetSidLengthRequired(nSubAuthorityCount):
|
|
|
|
|
# return GetSidLengthRequired.ctypes_function(nSubAuthorityCount)
|
|
|
|
|
GetSidLengthRequiredPrototype = WINFUNCTYPE(DWORD, UCHAR)
|
|
|
|
|
GetSidLengthRequiredParams = ((1, 'nSubAuthorityCount'),)
|
|
|
|
|
#def EvtNextPublisherId(PublisherEnum, PublisherIdBufferSize, PublisherIdBuffer, PublisherIdBufferUsed):
|
|
|
|
|
# return EvtNextPublisherId.ctypes_function(PublisherEnum, PublisherIdBufferSize, PublisherIdBuffer, PublisherIdBufferUsed)
|
|
|
|
|
EvtNextPublisherIdPrototype = WINFUNCTYPE(BOOL, EVT_HANDLE, DWORD, LPWSTR, PDWORD)
|
|
|
|
|
EvtNextPublisherIdParams = ((1, 'PublisherEnum'), (1, 'PublisherIdBufferSize'), (1, 'PublisherIdBuffer'), (1, 'PublisherIdBufferUsed'))
|
|
|
|
|
|
|
|
|
|
#def GetSidSubAuthority(pSid, nSubAuthority):
|
|
|
|
|
# return GetSidSubAuthority.ctypes_function(pSid, nSubAuthority)
|
|
|
|
|
GetSidSubAuthorityPrototype = WINFUNCTYPE(PDWORD, PSID, DWORD)
|
|
|
|
|
GetSidSubAuthorityParams = ((1, 'pSid'), (1, 'nSubAuthority'))
|
|
|
|
|
#def EvtGetLogInfo(Log, PropertyId, PropertyValueBufferSize, PropertyValueBuffer, PropertyValueBufferUsed):
|
|
|
|
|
# return EvtGetLogInfo.ctypes_function(Log, PropertyId, PropertyValueBufferSize, PropertyValueBuffer, PropertyValueBufferUsed)
|
|
|
|
|
EvtGetLogInfoPrototype = WINFUNCTYPE(BOOL, EVT_HANDLE, EVT_LOG_PROPERTY_ID, DWORD, PEVT_VARIANT, PDWORD)
|
|
|
|
|
EvtGetLogInfoParams = ((1, 'Log'), (1, 'PropertyId'), (1, 'PropertyValueBufferSize'), (1, 'PropertyValueBuffer'), (1, 'PropertyValueBufferUsed'))
|
|
|
|
|
|
|
|
|
|
#def GetSidSubAuthorityCount(pSid):
|
|
|
|
|
# return GetSidSubAuthorityCount.ctypes_function(pSid)
|
|
|
|
|
GetSidSubAuthorityCountPrototype = WINFUNCTYPE(PUCHAR, PSID)
|
|
|
|
|
GetSidSubAuthorityCountParams = ((1, 'pSid'),)
|
|
|
|
|
#def EvtOpenChannelConfig(Session, ChannelPath, Flags):
|
|
|
|
|
# return EvtOpenChannelConfig.ctypes_function(Session, ChannelPath, Flags)
|
|
|
|
|
EvtOpenChannelConfigPrototype = WINFUNCTYPE(EVT_HANDLE, EVT_HANDLE, LPCWSTR, DWORD)
|
|
|
|
|
EvtOpenChannelConfigParams = ((1, 'Session'), (1, 'ChannelPath'), (1, 'Flags'))
|
|
|
|
|
|
|
|
|
|
#def FreeSid(pSid):
|
|
|
|
|
# return FreeSid.ctypes_function(pSid)
|
|
|
|
|
FreeSidPrototype = WINFUNCTYPE(PVOID, PSID)
|
|
|
|
|
FreeSidParams = ((1, 'pSid'),)
|
|
|
|
|
#def EvtGetChannelConfigProperty(ChannelConfig, PropertyId, Flags, PropertyValueBufferSize, PropertyValueBuffer, PropertyValueBufferUsed):
|
|
|
|
|
# return EvtGetChannelConfigProperty.ctypes_function(ChannelConfig, PropertyId, Flags, PropertyValueBufferSize, PropertyValueBuffer, PropertyValueBufferUsed)
|
|
|
|
|
EvtGetChannelConfigPropertyPrototype = WINFUNCTYPE(BOOL, EVT_HANDLE, EVT_CHANNEL_CONFIG_PROPERTY_ID, DWORD, DWORD, PEVT_VARIANT, PDWORD)
|
|
|
|
|
EvtGetChannelConfigPropertyParams = ((1, 'ChannelConfig'), (1, 'PropertyId'), (1, 'Flags'), (1, 'PropertyValueBufferSize'), (1, 'PropertyValueBuffer'), (1, 'PropertyValueBufferUsed'))
|
|
|
|
|
|
|
|
|
|
#def GetAce(pAcl, dwAceIndex, pAce):
|
|
|
|
|
# return GetAce.ctypes_function(pAcl, dwAceIndex, pAce)
|
|
|
|
|
GetAcePrototype = WINFUNCTYPE(BOOL, PACL, DWORD, POINTER(LPVOID))
|
|
|
|
|
GetAceParams = ((1, 'pAcl'), (1, 'dwAceIndex'), (1, 'pAce'))
|
|
|
|
|
#def EvtOpenPublisherMetadata(Session, PublisherIdentity, LogFilePath, Locale, Flags):
|
|
|
|
|
# return EvtOpenPublisherMetadata.ctypes_function(Session, PublisherIdentity, LogFilePath, Locale, Flags)
|
|
|
|
|
EvtOpenPublisherMetadataPrototype = WINFUNCTYPE(EVT_HANDLE, EVT_HANDLE, LPCWSTR, LPCWSTR, LCID, DWORD)
|
|
|
|
|
EvtOpenPublisherMetadataParams = ((1, 'Session'), (1, 'PublisherIdentity'), (1, 'LogFilePath'), (1, 'Locale'), (1, 'Flags'))
|
|
|
|
|
|
|
|
|
|
#def GetAclInformation(pAcl, pAclInformation, nAclInformationLength, dwAclInformationClass):
|
|
|
|
|
# return GetAclInformation.ctypes_function(pAcl, pAclInformation, nAclInformationLength, dwAclInformationClass)
|
|
|
|
|
GetAclInformationPrototype = WINFUNCTYPE(BOOL, PACL, LPVOID, DWORD, ACL_INFORMATION_CLASS)
|
|
|
|
|
GetAclInformationParams = ((1, 'pAcl'), (1, 'pAclInformation'), (1, 'nAclInformationLength'), (1, 'dwAclInformationClass'))
|
|
|
|
|
#def EvtOpenEventMetadataEnum(PublisherMetadata, Flags):
|
|
|
|
|
# return EvtOpenEventMetadataEnum.ctypes_function(PublisherMetadata, Flags)
|
|
|
|
|
EvtOpenEventMetadataEnumPrototype = WINFUNCTYPE(EVT_HANDLE, EVT_HANDLE, DWORD)
|
|
|
|
|
EvtOpenEventMetadataEnumParams = ((1, 'PublisherMetadata'), (1, 'Flags'))
|
|
|
|
|
|
|
|
|
|
#def EvtNextEventMetadata(EventMetadataEnum, Flags):
|
|
|
|
|
# return EvtNextEventMetadata.ctypes_function(EventMetadataEnum, Flags)
|
|
|
|
|
EvtNextEventMetadataPrototype = WINFUNCTYPE(EVT_HANDLE, EVT_HANDLE, DWORD)
|
|
|
|
|
EvtNextEventMetadataParams = ((1, 'EventMetadataEnum'), (1, 'Flags'))
|
|
|
|
|
|
|
|
|
|
#def EvtGetEventMetadataProperty(EventMetadata, PropertyId, Flags, EventMetadataPropertyBufferSize, EventMetadataPropertyBuffer, EventMetadataPropertyBufferUsed):
|
|
|
|
|
# return EvtGetEventMetadataProperty.ctypes_function(EventMetadata, PropertyId, Flags, EventMetadataPropertyBufferSize, EventMetadataPropertyBuffer, EventMetadataPropertyBufferUsed)
|
|
|
|
|
EvtGetEventMetadataPropertyPrototype = WINFUNCTYPE(BOOL, EVT_HANDLE, EVT_EVENT_METADATA_PROPERTY_ID, DWORD, DWORD, PEVT_VARIANT, PDWORD)
|
|
|
|
|
EvtGetEventMetadataPropertyParams = ((1, 'EventMetadata'), (1, 'PropertyId'), (1, 'Flags'), (1, 'EventMetadataPropertyBufferSize'), (1, 'EventMetadataPropertyBuffer'), (1, 'EventMetadataPropertyBufferUsed'))
|
|
|
|
|
|
|
|
|
|
#def EvtGetPublisherMetadataProperty(PublisherMetadata, PropertyId, Flags, PublisherMetadataPropertyBufferSize, PublisherMetadataPropertyBuffer, PublisherMetadataPropertyBufferUsed):
|
|
|
|
|
# return EvtGetPublisherMetadataProperty.ctypes_function(PublisherMetadata, PropertyId, Flags, PublisherMetadataPropertyBufferSize, PublisherMetadataPropertyBuffer, PublisherMetadataPropertyBufferUsed)
|
|
|
|
|
EvtGetPublisherMetadataPropertyPrototype = WINFUNCTYPE(BOOL, EVT_HANDLE, EVT_PUBLISHER_METADATA_PROPERTY_ID, DWORD, DWORD, PEVT_VARIANT, PDWORD)
|
|
|
|
|
EvtGetPublisherMetadataPropertyParams = ((1, 'PublisherMetadata'), (1, 'PropertyId'), (1, 'Flags'), (1, 'PublisherMetadataPropertyBufferSize'), (1, 'PublisherMetadataPropertyBuffer'), (1, 'PublisherMetadataPropertyBufferUsed'))
|
|
|
|
|
|
|
|
|
|
#def EvtGetObjectArraySize(ObjectArray, ObjectArraySize):
|
|
|
|
|
# return EvtGetObjectArraySize.ctypes_function(ObjectArray, ObjectArraySize)
|
|
|
|
|
EvtGetObjectArraySizePrototype = WINFUNCTYPE(BOOL, EVT_OBJECT_ARRAY_PROPERTY_HANDLE, PDWORD)
|
|
|
|
|
EvtGetObjectArraySizeParams = ((1, 'ObjectArray'), (1, 'ObjectArraySize'))
|
|
|
|
|
|
|
|
|
|
#def EvtGetObjectArrayProperty(ObjectArray, PropertyId, ArrayIndex, Flags, PropertyValueBufferSize, PropertyValueBuffer, PropertyValueBufferUsed):
|
|
|
|
|
# return EvtGetObjectArrayProperty.ctypes_function(ObjectArray, PropertyId, ArrayIndex, Flags, PropertyValueBufferSize, PropertyValueBuffer, PropertyValueBufferUsed)
|
|
|
|
|
EvtGetObjectArrayPropertyPrototype = WINFUNCTYPE(BOOL, EVT_OBJECT_ARRAY_PROPERTY_HANDLE, DWORD, DWORD, DWORD, DWORD, PEVT_VARIANT, PDWORD)
|
|
|
|
|
EvtGetObjectArrayPropertyParams = ((1, 'ObjectArray'), (1, 'PropertyId'), (1, 'ArrayIndex'), (1, 'Flags'), (1, 'PropertyValueBufferSize'), (1, 'PropertyValueBuffer'), (1, 'PropertyValueBufferUsed'))
|
|
|
|
|
|
|
|
|
|
#def EvtFormatMessage(PublisherMetadata, Event, MessageId, ValueCount, Values, Flags, BufferSize, Buffer, BufferUsed):
|
|
|
|
|
# return EvtFormatMessage.ctypes_function(PublisherMetadata, Event, MessageId, ValueCount, Values, Flags, BufferSize, Buffer, BufferUsed)
|
|
|
|
|
EvtFormatMessagePrototype = WINFUNCTYPE(BOOL, EVT_HANDLE, EVT_HANDLE, DWORD, DWORD, PEVT_VARIANT, DWORD, DWORD, LPWSTR, PDWORD)
|
|
|
|
|
EvtFormatMessageParams = ((1, 'PublisherMetadata'), (1, 'Event'), (1, 'MessageId'), (1, 'ValueCount'), (1, 'Values'), (1, 'Flags'), (1, 'BufferSize'), (1, 'Buffer'), (1, 'BufferUsed'))
|
|
|
|
|
|
|
|
|
|
#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)
|
|
|
|
|
CreateFileTransactedAParams = ((1, 'lpFileName'), (1, 'dwDesiredAccess'), (1, 'dwShareMode'), (1, 'lpSecurityAttributes'), (1, 'dwCreationDisposition'), (1, 'dwFlagsAndAttributes'), (1, 'hTemplateFile'), (1, 'hTransaction'), (1, 'pusMiniVersion'), (1, 'pExtendedParameter'))
|
|
|
|
|
|
|
|
|
|
#def CreateFileTransactedW(lpFileName, dwDesiredAccess, dwShareMode, lpSecurityAttributes, dwCreationDisposition, dwFlagsAndAttributes, hTemplateFile, hTransaction, pusMiniVersion, pExtendedParameter):
|
|
|
|
|
# return CreateFileTransactedW.ctypes_function(lpFileName, dwDesiredAccess, dwShareMode, lpSecurityAttributes, dwCreationDisposition, dwFlagsAndAttributes, hTemplateFile, hTransaction, pusMiniVersion, pExtendedParameter)
|
|
|
|
|
CreateFileTransactedWPrototype = WINFUNCTYPE(HANDLE, LPWSTR, DWORD, DWORD, LPSECURITY_ATTRIBUTES, DWORD, DWORD, HANDLE, HANDLE, PUSHORT, PVOID)
|
|
|
|
|
CreateFileTransactedWParams = ((1, 'lpFileName'), (1, 'dwDesiredAccess'), (1, 'dwShareMode'), (1, 'lpSecurityAttributes'), (1, 'dwCreationDisposition'), (1, 'dwFlagsAndAttributes'), (1, 'hTemplateFile'), (1, 'hTransaction'), (1, 'pusMiniVersion'), (1, 'pExtendedParameter'))
|
|
|
|
|
|
|
|
|
|
#def CommitTransaction(TransactionHandle):
|
|
|
|
|
# return CommitTransaction.ctypes_function(TransactionHandle)
|
|
|
|
|
CommitTransactionPrototype = WINFUNCTYPE(BOOL, HANDLE)
|
|
|
|
|
CommitTransactionParams = ((1, 'TransactionHandle'),)
|
|
|
|
|
|
|
|
|
|
#def CreateTransaction(lpTransactionAttributes, UOW, CreateOptions, IsolationLevel, IsolationFlags, Timeout, Description):
|
|
|
|
|
# return CreateTransaction.ctypes_function(lpTransactionAttributes, UOW, CreateOptions, IsolationLevel, IsolationFlags, Timeout, Description)
|
|
|
|
|
CreateTransactionPrototype = WINFUNCTYPE(HANDLE, LPSECURITY_ATTRIBUTES, LPGUID, DWORD, DWORD, DWORD, DWORD, LPWSTR)
|
|
|
|
|
CreateTransactionParams = ((1, 'lpTransactionAttributes'), (1, 'UOW'), (1, 'CreateOptions'), (1, 'IsolationLevel'), (1, 'IsolationFlags'), (1, 'Timeout'), (1, 'Description'))
|
|
|
|
|
|
|
|
|
|
#def RollbackTransaction(TransactionHandle):
|
|
|
|
|
# return RollbackTransaction.ctypes_function(TransactionHandle)
|
|
|
|
|
RollbackTransactionPrototype = WINFUNCTYPE(BOOL, HANDLE)
|
|
|
|
|
RollbackTransactionParams = ((1, 'TransactionHandle'),)
|
|
|
|
|
|
|
|
|
|
#def OpenTransaction(dwDesiredAccess, TransactionId):
|
|
|
|
|
# return OpenTransaction.ctypes_function(dwDesiredAccess, TransactionId)
|
|
|
|
|
OpenTransactionPrototype = WINFUNCTYPE(HANDLE, DWORD, LPGUID)
|
|
|
|
|
OpenTransactionParams = ((1, 'dwDesiredAccess'), (1, 'TransactionId'))
|
|
|
|
|
|
|
|
|
|
#def NtAlpcCreatePort(PortHandle, ObjectAttributes, PortAttributes):
|
|
|
|
|
# return NtAlpcCreatePort.ctypes_function(PortHandle, ObjectAttributes, PortAttributes)
|
|
|
|
@@ -230,50 +290,35 @@ NtAlpcDeleteSecurityContextParams = ((1, 'PortHandle'), (1, 'Flags'), (1, 'Conte
|
|
|
|
|
NtAlpcRevokeSecurityContextPrototype = WINFUNCTYPE(NTSTATUS, HANDLE, ULONG, ALPC_HANDLE)
|
|
|
|
|
NtAlpcRevokeSecurityContextParams = ((1, 'PortHandle'), (1, 'Flags'), (1, 'ContextHandle'))
|
|
|
|
|
|
|
|
|
|
#def CreatePipe(hReadPipe, hWritePipe, lpPipeAttributes, nSize):
|
|
|
|
|
# return CreatePipe.ctypes_function(hReadPipe, hWritePipe, lpPipeAttributes, nSize)
|
|
|
|
|
CreatePipePrototype = WINFUNCTYPE(BOOL, PHANDLE, PHANDLE, LPSECURITY_ATTRIBUTES, DWORD)
|
|
|
|
|
CreatePipeParams = ((1, 'hReadPipe'), (1, 'hWritePipe'), (1, 'lpPipeAttributes'), (1, 'nSize'))
|
|
|
|
|
#def CoInitializeEx(pvReserved, dwCoInit):
|
|
|
|
|
# return CoInitializeEx.ctypes_function(pvReserved, dwCoInit)
|
|
|
|
|
CoInitializeExPrototype = WINFUNCTYPE(HRESULT, LPVOID, DWORD)
|
|
|
|
|
CoInitializeExParams = ((1, 'pvReserved'), (1, 'dwCoInit'))
|
|
|
|
|
|
|
|
|
|
#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 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 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 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 ConnectNamedPipe(hNamedPipe, lpOverlapped):
|
|
|
|
|
# return ConnectNamedPipe.ctypes_function(hNamedPipe, lpOverlapped)
|
|
|
|
|
ConnectNamedPipePrototype = WINFUNCTYPE(BOOL, HANDLE, LPOVERLAPPED)
|
|
|
|
|
ConnectNamedPipeParams = ((1, 'hNamedPipe'), (1, 'lpOverlapped'))
|
|
|
|
|
#def CoCreateInstanceEx(rclsid, punkOuter, dwClsCtx, pServerInfo, dwCount, pResults):
|
|
|
|
|
# return CoCreateInstanceEx.ctypes_function(rclsid, punkOuter, dwClsCtx, pServerInfo, dwCount, pResults)
|
|
|
|
|
CoCreateInstanceExPrototype = WINFUNCTYPE(HRESULT, REFCLSID, POINTER(IUnknown), DWORD, POINTER(COSERVERINFO), DWORD, POINTER(MULTI_QI))
|
|
|
|
|
CoCreateInstanceExParams = ((1, 'rclsid'), (1, 'punkOuter'), (1, 'dwClsCtx'), (1, 'pServerInfo'), (1, 'dwCount'), (1, 'pResults'))
|
|
|
|
|
|
|
|
|
|
#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 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 PeekNamedPipe(hNamedPipe, lpBuffer, nBufferSize, lpBytesRead, lpTotalBytesAvail, lpBytesLeftThisMessage):
|
|
|
|
|
# return PeekNamedPipe.ctypes_function(hNamedPipe, lpBuffer, nBufferSize, lpBytesRead, lpTotalBytesAvail, lpBytesLeftThisMessage)
|
|
|
|
|
PeekNamedPipePrototype = WINFUNCTYPE(BOOL, HANDLE, LPVOID, DWORD, LPDWORD, LPDWORD, LPDWORD)
|
|
|
|
|
PeekNamedPipeParams = ((1, 'hNamedPipe'), (1, 'lpBuffer'), (1, 'nBufferSize'), (1, 'lpBytesRead'), (1, 'lpTotalBytesAvail'), (1, 'lpBytesLeftThisMessage'))
|
|
|
|
|
|
|
|
|
|
#def StrStrIW(pszFirst, pszSrch):
|
|
|
|
|
# return StrStrIW.ctypes_function(pszFirst, pszSrch)
|
|
|
|
|
StrStrIWPrototype = WINFUNCTYPE(PWSTR, PWSTR, PWSTR)
|
|
|
|
|
StrStrIWParams = ((1, 'pszFirst'), (1, 'pszSrch'))
|
|
|
|
|
|
|
|
|
|
#def StrStrIA(pszFirst, pszSrch):
|
|
|
|
|
# return StrStrIA.ctypes_function(pszFirst, pszSrch)
|
|
|
|
|
StrStrIAPrototype = WINFUNCTYPE(PCSTR, PCSTR, PCSTR)
|
|
|
|
|
StrStrIAParams = ((1, 'pszFirst'), (1, 'pszSrch'))
|
|
|
|
|
|
|
|
|
|
#def IsOS(dwOS):
|
|
|
|
|
# return IsOS.ctypes_function(dwOS)
|
|
|
|
|
IsOSPrototype = WINFUNCTYPE(BOOL, DWORD)
|
|
|
|
|
IsOSParams = ((1, 'dwOS'),)
|
|
|
|
|
#def CLSIDFromProgID(lpszProgID, lpclsid):
|
|
|
|
|
# return CLSIDFromProgID.ctypes_function(lpszProgID, lpclsid)
|
|
|
|
|
CLSIDFromProgIDPrototype = WINFUNCTYPE(HRESULT, LPCOLESTR, LPCLSID)
|
|
|
|
|
CLSIDFromProgIDParams = ((1, 'lpszProgID'), (1, 'lpclsid'))
|
|
|
|
|
|
|
|
|
|
#def CryptCATAdminCalcHashFromFileHandle(hFile, pcbHash, pbHash, dwFlags):
|
|
|
|
|
# return CryptCATAdminCalcHashFromFileHandle.ctypes_function(hFile, pcbHash, pbHash, dwFlags)
|
|
|
|
@@ -565,320 +610,35 @@ CryptVerifyMessageHashParams = ((1, 'pHashPara'), (1, 'pbHashedBlob'), (1, 'cbHa
|
|
|
|
|
PfnCryptGetSignerCertificatePrototype = WINFUNCTYPE(PCCERT_CONTEXT, PVOID, DWORD, PCERT_INFO, HCERTSTORE)
|
|
|
|
|
PfnCryptGetSignerCertificateParams = ((1, 'pvGetArg'), (1, 'dwCertEncodingType'), (1, 'pSignerId'), (1, 'hMsgCertStore'))
|
|
|
|
|
|
|
|
|
|
#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)
|
|
|
|
|
CreateFileTransactedAParams = ((1, 'lpFileName'), (1, 'dwDesiredAccess'), (1, 'dwShareMode'), (1, 'lpSecurityAttributes'), (1, 'dwCreationDisposition'), (1, 'dwFlagsAndAttributes'), (1, 'hTemplateFile'), (1, 'hTransaction'), (1, 'pusMiniVersion'), (1, 'pExtendedParameter'))
|
|
|
|
|
#def CreatePipe(hReadPipe, hWritePipe, lpPipeAttributes, nSize):
|
|
|
|
|
# return CreatePipe.ctypes_function(hReadPipe, hWritePipe, lpPipeAttributes, nSize)
|
|
|
|
|
CreatePipePrototype = WINFUNCTYPE(BOOL, PHANDLE, PHANDLE, LPSECURITY_ATTRIBUTES, DWORD)
|
|
|
|
|
CreatePipeParams = ((1, 'hReadPipe'), (1, 'hWritePipe'), (1, 'lpPipeAttributes'), (1, 'nSize'))
|
|
|
|
|
|
|
|
|
|
#def CreateFileTransactedW(lpFileName, dwDesiredAccess, dwShareMode, lpSecurityAttributes, dwCreationDisposition, dwFlagsAndAttributes, hTemplateFile, hTransaction, pusMiniVersion, pExtendedParameter):
|
|
|
|
|
# return CreateFileTransactedW.ctypes_function(lpFileName, dwDesiredAccess, dwShareMode, lpSecurityAttributes, dwCreationDisposition, dwFlagsAndAttributes, hTemplateFile, hTransaction, pusMiniVersion, pExtendedParameter)
|
|
|
|
|
CreateFileTransactedWPrototype = WINFUNCTYPE(HANDLE, LPWSTR, DWORD, DWORD, LPSECURITY_ATTRIBUTES, DWORD, DWORD, HANDLE, HANDLE, PUSHORT, PVOID)
|
|
|
|
|
CreateFileTransactedWParams = ((1, 'lpFileName'), (1, 'dwDesiredAccess'), (1, 'dwShareMode'), (1, 'lpSecurityAttributes'), (1, 'dwCreationDisposition'), (1, 'dwFlagsAndAttributes'), (1, 'hTemplateFile'), (1, 'hTransaction'), (1, 'pusMiniVersion'), (1, 'pExtendedParameter'))
|
|
|
|
|
#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 CommitTransaction(TransactionHandle):
|
|
|
|
|
# return CommitTransaction.ctypes_function(TransactionHandle)
|
|
|
|
|
CommitTransactionPrototype = WINFUNCTYPE(BOOL, HANDLE)
|
|
|
|
|
CommitTransactionParams = ((1, 'TransactionHandle'),)
|
|
|
|
|
#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 CreateTransaction(lpTransactionAttributes, UOW, CreateOptions, IsolationLevel, IsolationFlags, Timeout, Description):
|
|
|
|
|
# return CreateTransaction.ctypes_function(lpTransactionAttributes, UOW, CreateOptions, IsolationLevel, IsolationFlags, Timeout, Description)
|
|
|
|
|
CreateTransactionPrototype = WINFUNCTYPE(HANDLE, LPSECURITY_ATTRIBUTES, LPGUID, DWORD, DWORD, DWORD, DWORD, LPWSTR)
|
|
|
|
|
CreateTransactionParams = ((1, 'lpTransactionAttributes'), (1, 'UOW'), (1, 'CreateOptions'), (1, 'IsolationLevel'), (1, 'IsolationFlags'), (1, 'Timeout'), (1, 'Description'))
|
|
|
|
|
#def ConnectNamedPipe(hNamedPipe, lpOverlapped):
|
|
|
|
|
# return ConnectNamedPipe.ctypes_function(hNamedPipe, lpOverlapped)
|
|
|
|
|
ConnectNamedPipePrototype = WINFUNCTYPE(BOOL, HANDLE, LPOVERLAPPED)
|
|
|
|
|
ConnectNamedPipeParams = ((1, 'hNamedPipe'), (1, 'lpOverlapped'))
|
|
|
|
|
|
|
|
|
|
#def RollbackTransaction(TransactionHandle):
|
|
|
|
|
# return RollbackTransaction.ctypes_function(TransactionHandle)
|
|
|
|
|
RollbackTransactionPrototype = WINFUNCTYPE(BOOL, HANDLE)
|
|
|
|
|
RollbackTransactionParams = ((1, 'TransactionHandle'),)
|
|
|
|
|
#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 OpenTransaction(dwDesiredAccess, TransactionId):
|
|
|
|
|
# return OpenTransaction.ctypes_function(dwDesiredAccess, TransactionId)
|
|
|
|
|
OpenTransactionPrototype = WINFUNCTYPE(HANDLE, DWORD, LPGUID)
|
|
|
|
|
OpenTransactionParams = ((1, 'dwDesiredAccess'), (1, 'TransactionId'))
|
|
|
|
|
|
|
|
|
|
#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 OpenBackupEventLogA(lpUNCServerName, lpSourceName):
|
|
|
|
|
# return OpenBackupEventLogA.ctypes_function(lpUNCServerName, lpSourceName)
|
|
|
|
|
OpenBackupEventLogAPrototype = WINFUNCTYPE(HANDLE, LPCSTR, LPCSTR)
|
|
|
|
|
OpenBackupEventLogAParams = ((1, 'lpUNCServerName'), (1, 'lpSourceName'))
|
|
|
|
|
|
|
|
|
|
#def OpenBackupEventLogW(lpUNCServerName, lpSourceName):
|
|
|
|
|
# return OpenBackupEventLogW.ctypes_function(lpUNCServerName, lpSourceName)
|
|
|
|
|
OpenBackupEventLogWPrototype = WINFUNCTYPE(HANDLE, LPWSTR, LPWSTR)
|
|
|
|
|
OpenBackupEventLogWParams = ((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 EvtOpenLog(Session, Path, Flags):
|
|
|
|
|
# return EvtOpenLog.ctypes_function(Session, Path, Flags)
|
|
|
|
|
EvtOpenLogPrototype = WINFUNCTYPE(EVT_HANDLE, EVT_HANDLE, LPCWSTR, DWORD)
|
|
|
|
|
EvtOpenLogParams = ((1, 'Session'), (1, 'Path'), (1, 'Flags'))
|
|
|
|
|
|
|
|
|
|
#def EvtQuery(Session, Path, Query, Flags):
|
|
|
|
|
# return EvtQuery.ctypes_function(Session, Path, Query, Flags)
|
|
|
|
|
EvtQueryPrototype = WINFUNCTYPE(EVT_HANDLE, EVT_HANDLE, LPCWSTR, LPCWSTR, DWORD)
|
|
|
|
|
EvtQueryParams = ((1, 'Session'), (1, 'Path'), (1, 'Query'), (1, 'Flags'))
|
|
|
|
|
|
|
|
|
|
#def EvtNext(ResultSet, EventArraySize, EventArray, Timeout, Flags, Returned):
|
|
|
|
|
# return EvtNext.ctypes_function(ResultSet, EventArraySize, EventArray, Timeout, Flags, Returned)
|
|
|
|
|
EvtNextPrototype = WINFUNCTYPE(BOOL, EVT_HANDLE, DWORD, POINTER(EVT_HANDLE), DWORD, DWORD, PDWORD)
|
|
|
|
|
EvtNextParams = ((1, 'ResultSet'), (1, 'EventArraySize'), (1, 'EventArray'), (1, 'Timeout'), (1, 'Flags'), (1, 'Returned'))
|
|
|
|
|
|
|
|
|
|
#def EvtCreateRenderContext(ValuePathsCount, ValuePaths, Flags):
|
|
|
|
|
# return EvtCreateRenderContext.ctypes_function(ValuePathsCount, ValuePaths, Flags)
|
|
|
|
|
EvtCreateRenderContextPrototype = WINFUNCTYPE(EVT_HANDLE, DWORD, POINTER(LPCWSTR), DWORD)
|
|
|
|
|
EvtCreateRenderContextParams = ((1, 'ValuePathsCount'), (1, 'ValuePaths'), (1, 'Flags'))
|
|
|
|
|
|
|
|
|
|
#def EvtRender(Context, Fragment, Flags, BufferSize, Buffer, BufferUsed, PropertyCount):
|
|
|
|
|
# return EvtRender.ctypes_function(Context, Fragment, Flags, BufferSize, Buffer, BufferUsed, PropertyCount)
|
|
|
|
|
EvtRenderPrototype = WINFUNCTYPE(BOOL, EVT_HANDLE, EVT_HANDLE, DWORD, DWORD, PVOID, PDWORD, PDWORD)
|
|
|
|
|
EvtRenderParams = ((1, 'Context'), (1, 'Fragment'), (1, 'Flags'), (1, 'BufferSize'), (1, 'Buffer'), (1, 'BufferUsed'), (1, 'PropertyCount'))
|
|
|
|
|
|
|
|
|
|
#def EvtClose(Object):
|
|
|
|
|
# return EvtClose.ctypes_function(Object)
|
|
|
|
|
EvtClosePrototype = WINFUNCTYPE(BOOL, EVT_HANDLE)
|
|
|
|
|
EvtCloseParams = ((1, 'Object'),)
|
|
|
|
|
|
|
|
|
|
#def EvtOpenChannelEnum(Session, Flags):
|
|
|
|
|
# return EvtOpenChannelEnum.ctypes_function(Session, Flags)
|
|
|
|
|
EvtOpenChannelEnumPrototype = WINFUNCTYPE(EVT_HANDLE, EVT_HANDLE, DWORD)
|
|
|
|
|
EvtOpenChannelEnumParams = ((1, 'Session'), (1, 'Flags'))
|
|
|
|
|
|
|
|
|
|
#def EvtNextChannelPath(ChannelEnum, ChannelPathBufferSize, ChannelPathBuffer, ChannelPathBufferUsed):
|
|
|
|
|
# return EvtNextChannelPath.ctypes_function(ChannelEnum, ChannelPathBufferSize, ChannelPathBuffer, ChannelPathBufferUsed)
|
|
|
|
|
EvtNextChannelPathPrototype = WINFUNCTYPE(BOOL, EVT_HANDLE, DWORD, LPWSTR, PDWORD)
|
|
|
|
|
EvtNextChannelPathParams = ((1, 'ChannelEnum'), (1, 'ChannelPathBufferSize'), (1, 'ChannelPathBuffer'), (1, 'ChannelPathBufferUsed'))
|
|
|
|
|
|
|
|
|
|
#def EvtOpenPublisherEnum(Session, Flags):
|
|
|
|
|
# return EvtOpenPublisherEnum.ctypes_function(Session, Flags)
|
|
|
|
|
EvtOpenPublisherEnumPrototype = WINFUNCTYPE(EVT_HANDLE, EVT_HANDLE, DWORD)
|
|
|
|
|
EvtOpenPublisherEnumParams = ((1, 'Session'), (1, 'Flags'))
|
|
|
|
|
|
|
|
|
|
#def EvtNextPublisherId(PublisherEnum, PublisherIdBufferSize, PublisherIdBuffer, PublisherIdBufferUsed):
|
|
|
|
|
# return EvtNextPublisherId.ctypes_function(PublisherEnum, PublisherIdBufferSize, PublisherIdBuffer, PublisherIdBufferUsed)
|
|
|
|
|
EvtNextPublisherIdPrototype = WINFUNCTYPE(BOOL, EVT_HANDLE, DWORD, LPWSTR, PDWORD)
|
|
|
|
|
EvtNextPublisherIdParams = ((1, 'PublisherEnum'), (1, 'PublisherIdBufferSize'), (1, 'PublisherIdBuffer'), (1, 'PublisherIdBufferUsed'))
|
|
|
|
|
|
|
|
|
|
#def EvtGetLogInfo(Log, PropertyId, PropertyValueBufferSize, PropertyValueBuffer, PropertyValueBufferUsed):
|
|
|
|
|
# return EvtGetLogInfo.ctypes_function(Log, PropertyId, PropertyValueBufferSize, PropertyValueBuffer, PropertyValueBufferUsed)
|
|
|
|
|
EvtGetLogInfoPrototype = WINFUNCTYPE(BOOL, EVT_HANDLE, EVT_LOG_PROPERTY_ID, DWORD, PEVT_VARIANT, PDWORD)
|
|
|
|
|
EvtGetLogInfoParams = ((1, 'Log'), (1, 'PropertyId'), (1, 'PropertyValueBufferSize'), (1, 'PropertyValueBuffer'), (1, 'PropertyValueBufferUsed'))
|
|
|
|
|
|
|
|
|
|
#def EvtOpenChannelConfig(Session, ChannelPath, Flags):
|
|
|
|
|
# return EvtOpenChannelConfig.ctypes_function(Session, ChannelPath, Flags)
|
|
|
|
|
EvtOpenChannelConfigPrototype = WINFUNCTYPE(EVT_HANDLE, EVT_HANDLE, LPCWSTR, DWORD)
|
|
|
|
|
EvtOpenChannelConfigParams = ((1, 'Session'), (1, 'ChannelPath'), (1, 'Flags'))
|
|
|
|
|
|
|
|
|
|
#def EvtGetChannelConfigProperty(ChannelConfig, PropertyId, Flags, PropertyValueBufferSize, PropertyValueBuffer, PropertyValueBufferUsed):
|
|
|
|
|
# return EvtGetChannelConfigProperty.ctypes_function(ChannelConfig, PropertyId, Flags, PropertyValueBufferSize, PropertyValueBuffer, PropertyValueBufferUsed)
|
|
|
|
|
EvtGetChannelConfigPropertyPrototype = WINFUNCTYPE(BOOL, EVT_HANDLE, EVT_CHANNEL_CONFIG_PROPERTY_ID, DWORD, DWORD, PEVT_VARIANT, PDWORD)
|
|
|
|
|
EvtGetChannelConfigPropertyParams = ((1, 'ChannelConfig'), (1, 'PropertyId'), (1, 'Flags'), (1, 'PropertyValueBufferSize'), (1, 'PropertyValueBuffer'), (1, 'PropertyValueBufferUsed'))
|
|
|
|
|
|
|
|
|
|
#def EvtOpenPublisherMetadata(Session, PublisherIdentity, LogFilePath, Locale, Flags):
|
|
|
|
|
# return EvtOpenPublisherMetadata.ctypes_function(Session, PublisherIdentity, LogFilePath, Locale, Flags)
|
|
|
|
|
EvtOpenPublisherMetadataPrototype = WINFUNCTYPE(EVT_HANDLE, EVT_HANDLE, LPCWSTR, LPCWSTR, LCID, DWORD)
|
|
|
|
|
EvtOpenPublisherMetadataParams = ((1, 'Session'), (1, 'PublisherIdentity'), (1, 'LogFilePath'), (1, 'Locale'), (1, 'Flags'))
|
|
|
|
|
|
|
|
|
|
#def EvtOpenEventMetadataEnum(PublisherMetadata, Flags):
|
|
|
|
|
# return EvtOpenEventMetadataEnum.ctypes_function(PublisherMetadata, Flags)
|
|
|
|
|
EvtOpenEventMetadataEnumPrototype = WINFUNCTYPE(EVT_HANDLE, EVT_HANDLE, DWORD)
|
|
|
|
|
EvtOpenEventMetadataEnumParams = ((1, 'PublisherMetadata'), (1, 'Flags'))
|
|
|
|
|
|
|
|
|
|
#def EvtNextEventMetadata(EventMetadataEnum, Flags):
|
|
|
|
|
# return EvtNextEventMetadata.ctypes_function(EventMetadataEnum, Flags)
|
|
|
|
|
EvtNextEventMetadataPrototype = WINFUNCTYPE(EVT_HANDLE, EVT_HANDLE, DWORD)
|
|
|
|
|
EvtNextEventMetadataParams = ((1, 'EventMetadataEnum'), (1, 'Flags'))
|
|
|
|
|
|
|
|
|
|
#def EvtGetEventMetadataProperty(EventMetadata, PropertyId, Flags, EventMetadataPropertyBufferSize, EventMetadataPropertyBuffer, EventMetadataPropertyBufferUsed):
|
|
|
|
|
# return EvtGetEventMetadataProperty.ctypes_function(EventMetadata, PropertyId, Flags, EventMetadataPropertyBufferSize, EventMetadataPropertyBuffer, EventMetadataPropertyBufferUsed)
|
|
|
|
|
EvtGetEventMetadataPropertyPrototype = WINFUNCTYPE(BOOL, EVT_HANDLE, EVT_EVENT_METADATA_PROPERTY_ID, DWORD, DWORD, PEVT_VARIANT, PDWORD)
|
|
|
|
|
EvtGetEventMetadataPropertyParams = ((1, 'EventMetadata'), (1, 'PropertyId'), (1, 'Flags'), (1, 'EventMetadataPropertyBufferSize'), (1, 'EventMetadataPropertyBuffer'), (1, 'EventMetadataPropertyBufferUsed'))
|
|
|
|
|
|
|
|
|
|
#def EvtGetPublisherMetadataProperty(PublisherMetadata, PropertyId, Flags, PublisherMetadataPropertyBufferSize, PublisherMetadataPropertyBuffer, PublisherMetadataPropertyBufferUsed):
|
|
|
|
|
# return EvtGetPublisherMetadataProperty.ctypes_function(PublisherMetadata, PropertyId, Flags, PublisherMetadataPropertyBufferSize, PublisherMetadataPropertyBuffer, PublisherMetadataPropertyBufferUsed)
|
|
|
|
|
EvtGetPublisherMetadataPropertyPrototype = WINFUNCTYPE(BOOL, EVT_HANDLE, EVT_PUBLISHER_METADATA_PROPERTY_ID, DWORD, DWORD, PEVT_VARIANT, PDWORD)
|
|
|
|
|
EvtGetPublisherMetadataPropertyParams = ((1, 'PublisherMetadata'), (1, 'PropertyId'), (1, 'Flags'), (1, 'PublisherMetadataPropertyBufferSize'), (1, 'PublisherMetadataPropertyBuffer'), (1, 'PublisherMetadataPropertyBufferUsed'))
|
|
|
|
|
|
|
|
|
|
#def EvtGetObjectArraySize(ObjectArray, ObjectArraySize):
|
|
|
|
|
# return EvtGetObjectArraySize.ctypes_function(ObjectArray, ObjectArraySize)
|
|
|
|
|
EvtGetObjectArraySizePrototype = WINFUNCTYPE(BOOL, EVT_OBJECT_ARRAY_PROPERTY_HANDLE, PDWORD)
|
|
|
|
|
EvtGetObjectArraySizeParams = ((1, 'ObjectArray'), (1, 'ObjectArraySize'))
|
|
|
|
|
|
|
|
|
|
#def EvtGetObjectArrayProperty(ObjectArray, PropertyId, ArrayIndex, Flags, PropertyValueBufferSize, PropertyValueBuffer, PropertyValueBufferUsed):
|
|
|
|
|
# return EvtGetObjectArrayProperty.ctypes_function(ObjectArray, PropertyId, ArrayIndex, Flags, PropertyValueBufferSize, PropertyValueBuffer, PropertyValueBufferUsed)
|
|
|
|
|
EvtGetObjectArrayPropertyPrototype = WINFUNCTYPE(BOOL, EVT_OBJECT_ARRAY_PROPERTY_HANDLE, DWORD, DWORD, DWORD, DWORD, PEVT_VARIANT, PDWORD)
|
|
|
|
|
EvtGetObjectArrayPropertyParams = ((1, 'ObjectArray'), (1, 'PropertyId'), (1, 'ArrayIndex'), (1, 'Flags'), (1, 'PropertyValueBufferSize'), (1, 'PropertyValueBuffer'), (1, 'PropertyValueBufferUsed'))
|
|
|
|
|
|
|
|
|
|
#def EvtFormatMessage(PublisherMetadata, Event, MessageId, ValueCount, Values, Flags, BufferSize, Buffer, BufferUsed):
|
|
|
|
|
# return EvtFormatMessage.ctypes_function(PublisherMetadata, Event, MessageId, ValueCount, Values, Flags, BufferSize, Buffer, BufferUsed)
|
|
|
|
|
EvtFormatMessagePrototype = WINFUNCTYPE(BOOL, EVT_HANDLE, EVT_HANDLE, DWORD, DWORD, PEVT_VARIANT, DWORD, DWORD, LPWSTR, PDWORD)
|
|
|
|
|
EvtFormatMessageParams = ((1, 'PublisherMetadata'), (1, 'Event'), (1, 'MessageId'), (1, 'ValueCount'), (1, 'Values'), (1, 'Flags'), (1, 'BufferSize'), (1, 'Buffer'), (1, 'BufferUsed'))
|
|
|
|
|
|
|
|
|
|
#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 NtQueryLicenseValue(Name, Type, Buffer, Length, DataLength):
|
|
|
|
|
# return NtQueryLicenseValue.ctypes_function(Name, Type, Buffer, Length, DataLength)
|
|
|
|
|
NtQueryLicenseValuePrototype = WINFUNCTYPE(NTSTATUS, PUNICODE_STRING, POINTER(ULONG), PVOID, ULONG, POINTER(ULONG))
|
|
|
|
|
NtQueryLicenseValueParams = ((1, 'Name'), (1, 'Type'), (1, 'Buffer'), (1, 'Length'), (1, 'DataLength'))
|
|
|
|
|
#def PeekNamedPipe(hNamedPipe, lpBuffer, nBufferSize, lpBytesRead, lpTotalBytesAvail, lpBytesLeftThisMessage):
|
|
|
|
|
# return PeekNamedPipe.ctypes_function(hNamedPipe, lpBuffer, nBufferSize, lpBytesRead, lpTotalBytesAvail, lpBytesLeftThisMessage)
|
|
|
|
|
PeekNamedPipePrototype = WINFUNCTYPE(BOOL, HANDLE, LPVOID, DWORD, LPDWORD, LPDWORD, LPDWORD)
|
|
|
|
|
PeekNamedPipeParams = ((1, 'hNamedPipe'), (1, 'lpBuffer'), (1, 'nBufferSize'), (1, 'lpBytesRead'), (1, 'lpTotalBytesAvail'), (1, 'lpBytesLeftThisMessage'))
|
|
|
|
|
|
|
|
|
|
#def ExitProcess(uExitCode):
|
|
|
|
|
# return ExitProcess.ctypes_function(uExitCode)
|
|
|
|
@@ -2175,6 +1935,146 @@ GetModuleHandleWParams = ((1, 'lpModuleName'),)
|
|
|
|
|
RtlEqualUnicodeStringPrototype = WINFUNCTYPE(BOOLEAN, PUNICODE_STRING, PUNICODE_STRING, BOOLEAN)
|
|
|
|
|
RtlEqualUnicodeStringParams = ((1, 'String1'), (1, 'String2'), (1, 'CaseInSensitive'))
|
|
|
|
|
|
|
|
|
|
#def StrStrIW(pszFirst, pszSrch):
|
|
|
|
|
# return StrStrIW.ctypes_function(pszFirst, pszSrch)
|
|
|
|
|
StrStrIWPrototype = WINFUNCTYPE(PWSTR, PWSTR, PWSTR)
|
|
|
|
|
StrStrIWParams = ((1, 'pszFirst'), (1, 'pszSrch'))
|
|
|
|
|
|
|
|
|
|
#def StrStrIA(pszFirst, pszSrch):
|
|
|
|
|
# return StrStrIA.ctypes_function(pszFirst, pszSrch)
|
|
|
|
|
StrStrIAPrototype = WINFUNCTYPE(PCSTR, PCSTR, PCSTR)
|
|
|
|
|
StrStrIAParams = ((1, 'pszFirst'), (1, 'pszSrch'))
|
|
|
|
|
|
|
|
|
|
#def IsOS(dwOS):
|
|
|
|
|
# return IsOS.ctypes_function(dwOS)
|
|
|
|
|
IsOSPrototype = WINFUNCTYPE(BOOL, DWORD)
|
|
|
|
|
IsOSParams = ((1, 'dwOS'),)
|
|
|
|
|
|
|
|
|
|
#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 NtOpenKey(KeyHandle, DesiredAccess, ObjectAttributes):
|
|
|
|
|
# return NtOpenKey.ctypes_function(KeyHandle, DesiredAccess, ObjectAttributes)
|
|
|
|
|
NtOpenKeyPrototype = WINFUNCTYPE(NTSTATUS, PHANDLE, ACCESS_MASK, POBJECT_ATTRIBUTES)
|
|
|
|
@@ -2200,3 +2100,108 @@ NtQueryValueKeyParams = ((1, 'KeyHandle'), (1, 'ValueName'), (1, 'KeyValueInform
|
|
|
|
|
NtEnumerateValueKeyPrototype = WINFUNCTYPE(NTSTATUS, HANDLE, ULONG, KEY_VALUE_INFORMATION_CLASS, PVOID, ULONG, PULONG)
|
|
|
|
|
NtEnumerateValueKeyParams = ((1, 'KeyHandle'), (1, 'Index'), (1, 'KeyValueInformationClass'), (1, 'KeyValueInformation'), (1, 'Length'), (1, 'ResultLength'))
|
|
|
|
|
|
|
|
|
|
#def IsValidSecurityDescriptor(pSecurityDescriptor):
|
|
|
|
|
# return IsValidSecurityDescriptor.ctypes_function(pSecurityDescriptor)
|
|
|
|
|
IsValidSecurityDescriptorPrototype = WINFUNCTYPE(BOOL, PSECURITY_DESCRIPTOR)
|
|
|
|
|
IsValidSecurityDescriptorParams = ((1, 'pSecurityDescriptor'),)
|
|
|
|
|
|
|
|
|
|
#def ConvertStringSecurityDescriptorToSecurityDescriptorA(StringSecurityDescriptor, StringSDRevision, SecurityDescriptor, SecurityDescriptorSize):
|
|
|
|
|
# return ConvertStringSecurityDescriptorToSecurityDescriptorA.ctypes_function(StringSecurityDescriptor, StringSDRevision, SecurityDescriptor, SecurityDescriptorSize)
|
|
|
|
|
ConvertStringSecurityDescriptorToSecurityDescriptorAPrototype = WINFUNCTYPE(BOOL, LPCSTR, DWORD, POINTER(PSECURITY_DESCRIPTOR), PULONG)
|
|
|
|
|
ConvertStringSecurityDescriptorToSecurityDescriptorAParams = ((1, 'StringSecurityDescriptor'), (1, 'StringSDRevision'), (1, 'SecurityDescriptor'), (1, 'SecurityDescriptorSize'))
|
|
|
|
|
|
|
|
|
|
#def ConvertStringSecurityDescriptorToSecurityDescriptorW(StringSecurityDescriptor, StringSDRevision, SecurityDescriptor, SecurityDescriptorSize):
|
|
|
|
|
# return ConvertStringSecurityDescriptorToSecurityDescriptorW.ctypes_function(StringSecurityDescriptor, StringSDRevision, SecurityDescriptor, SecurityDescriptorSize)
|
|
|
|
|
ConvertStringSecurityDescriptorToSecurityDescriptorWPrototype = WINFUNCTYPE(BOOL, LPWSTR, DWORD, POINTER(PSECURITY_DESCRIPTOR), PULONG)
|
|
|
|
|
ConvertStringSecurityDescriptorToSecurityDescriptorWParams = ((1, 'StringSecurityDescriptor'), (1, 'StringSDRevision'), (1, 'SecurityDescriptor'), (1, 'SecurityDescriptorSize'))
|
|
|
|
|
|
|
|
|
|
#def ConvertSecurityDescriptorToStringSecurityDescriptorA(SecurityDescriptor, RequestedStringSDRevision, SecurityInformation, StringSecurityDescriptor, StringSecurityDescriptorLen):
|
|
|
|
|
# return ConvertSecurityDescriptorToStringSecurityDescriptorA.ctypes_function(SecurityDescriptor, RequestedStringSDRevision, SecurityInformation, StringSecurityDescriptor, StringSecurityDescriptorLen)
|
|
|
|
|
ConvertSecurityDescriptorToStringSecurityDescriptorAPrototype = WINFUNCTYPE(BOOL, PSECURITY_DESCRIPTOR, DWORD, DWORD, POINTER(LPCSTR), PULONG)
|
|
|
|
|
ConvertSecurityDescriptorToStringSecurityDescriptorAParams = ((1, 'SecurityDescriptor'), (1, 'RequestedStringSDRevision'), (1, 'SecurityInformation'), (1, 'StringSecurityDescriptor'), (1, 'StringSecurityDescriptorLen'))
|
|
|
|
|
|
|
|
|
|
#def ConvertSecurityDescriptorToStringSecurityDescriptorW(SecurityDescriptor, RequestedStringSDRevision, SecurityInformation, StringSecurityDescriptor, StringSecurityDescriptorLen):
|
|
|
|
|
# return ConvertSecurityDescriptorToStringSecurityDescriptorW.ctypes_function(SecurityDescriptor, RequestedStringSDRevision, SecurityInformation, StringSecurityDescriptor, StringSecurityDescriptorLen)
|
|
|
|
|
ConvertSecurityDescriptorToStringSecurityDescriptorWPrototype = WINFUNCTYPE(BOOL, PSECURITY_DESCRIPTOR, DWORD, DWORD, POINTER(LPWSTR), PULONG)
|
|
|
|
|
ConvertSecurityDescriptorToStringSecurityDescriptorWParams = ((1, 'SecurityDescriptor'), (1, 'RequestedStringSDRevision'), (1, 'SecurityInformation'), (1, 'StringSecurityDescriptor'), (1, 'StringSecurityDescriptorLen'))
|
|
|
|
|
|
|
|
|
|
#def GetSecurityDescriptorControl(pSecurityDescriptor, pControl, lpdwRevision):
|
|
|
|
|
# return GetSecurityDescriptorControl.ctypes_function(pSecurityDescriptor, pControl, lpdwRevision)
|
|
|
|
|
GetSecurityDescriptorControlPrototype = WINFUNCTYPE(BOOL, PSECURITY_DESCRIPTOR, PSECURITY_DESCRIPTOR_CONTROL, LPDWORD)
|
|
|
|
|
GetSecurityDescriptorControlParams = ((1, 'pSecurityDescriptor'), (1, 'pControl'), (1, 'lpdwRevision'))
|
|
|
|
|
|
|
|
|
|
#def GetSecurityDescriptorDacl(pSecurityDescriptor, lpbDaclPresent, pDacl, lpbDaclDefaulted):
|
|
|
|
|
# return GetSecurityDescriptorDacl.ctypes_function(pSecurityDescriptor, lpbDaclPresent, pDacl, lpbDaclDefaulted)
|
|
|
|
|
GetSecurityDescriptorDaclPrototype = WINFUNCTYPE(BOOL, PSECURITY_DESCRIPTOR, LPBOOL, POINTER(PACL), LPBOOL)
|
|
|
|
|
GetSecurityDescriptorDaclParams = ((1, 'pSecurityDescriptor'), (1, 'lpbDaclPresent'), (1, 'pDacl'), (1, 'lpbDaclDefaulted'))
|
|
|
|
|
|
|
|
|
|
#def GetSecurityDescriptorGroup(pSecurityDescriptor, pGroup, lpbGroupDefaulted):
|
|
|
|
|
# return GetSecurityDescriptorGroup.ctypes_function(pSecurityDescriptor, pGroup, lpbGroupDefaulted)
|
|
|
|
|
GetSecurityDescriptorGroupPrototype = WINFUNCTYPE(BOOL, PSECURITY_DESCRIPTOR, POINTER(PSID), LPBOOL)
|
|
|
|
|
GetSecurityDescriptorGroupParams = ((1, 'pSecurityDescriptor'), (1, 'pGroup'), (1, 'lpbGroupDefaulted'))
|
|
|
|
|
|
|
|
|
|
#def GetSecurityDescriptorLength(pSecurityDescriptor):
|
|
|
|
|
# return GetSecurityDescriptorLength.ctypes_function(pSecurityDescriptor)
|
|
|
|
|
GetSecurityDescriptorLengthPrototype = WINFUNCTYPE(DWORD, PSECURITY_DESCRIPTOR)
|
|
|
|
|
GetSecurityDescriptorLengthParams = ((1, 'pSecurityDescriptor'),)
|
|
|
|
|
|
|
|
|
|
#def GetSecurityDescriptorOwner(pSecurityDescriptor, pOwner, lpbOwnerDefaulted):
|
|
|
|
|
# return GetSecurityDescriptorOwner.ctypes_function(pSecurityDescriptor, pOwner, lpbOwnerDefaulted)
|
|
|
|
|
GetSecurityDescriptorOwnerPrototype = WINFUNCTYPE(BOOL, PSECURITY_DESCRIPTOR, POINTER(PSID), LPBOOL)
|
|
|
|
|
GetSecurityDescriptorOwnerParams = ((1, 'pSecurityDescriptor'), (1, 'pOwner'), (1, 'lpbOwnerDefaulted'))
|
|
|
|
|
|
|
|
|
|
#def GetSecurityDescriptorRMControl(SecurityDescriptor, RMControl):
|
|
|
|
|
# return GetSecurityDescriptorRMControl.ctypes_function(SecurityDescriptor, RMControl)
|
|
|
|
|
GetSecurityDescriptorRMControlPrototype = WINFUNCTYPE(DWORD, PSECURITY_DESCRIPTOR, PUCHAR)
|
|
|
|
|
GetSecurityDescriptorRMControlParams = ((1, 'SecurityDescriptor'), (1, 'RMControl'))
|
|
|
|
|
|
|
|
|
|
#def GetSecurityDescriptorSacl(pSecurityDescriptor, lpbSaclPresent, pSacl, lpbSaclDefaulted):
|
|
|
|
|
# return GetSecurityDescriptorSacl.ctypes_function(pSecurityDescriptor, lpbSaclPresent, pSacl, lpbSaclDefaulted)
|
|
|
|
|
GetSecurityDescriptorSaclPrototype = WINFUNCTYPE(BOOL, PSECURITY_DESCRIPTOR, LPBOOL, POINTER(PACL), LPBOOL)
|
|
|
|
|
GetSecurityDescriptorSaclParams = ((1, 'pSecurityDescriptor'), (1, 'lpbSaclPresent'), (1, 'pSacl'), (1, 'lpbSaclDefaulted'))
|
|
|
|
|
|
|
|
|
|
#def GetLengthSid(pSid):
|
|
|
|
|
# return GetLengthSid.ctypes_function(pSid)
|
|
|
|
|
GetLengthSidPrototype = WINFUNCTYPE(DWORD, PSID)
|
|
|
|
|
GetLengthSidParams = ((1, 'pSid'),)
|
|
|
|
|
|
|
|
|
|
#def EqualSid(pSid1, pSid2):
|
|
|
|
|
# return EqualSid.ctypes_function(pSid1, pSid2)
|
|
|
|
|
EqualSidPrototype = WINFUNCTYPE(BOOL, PSID, PSID)
|
|
|
|
|
EqualSidParams = ((1, 'pSid1'), (1, 'pSid2'))
|
|
|
|
|
|
|
|
|
|
#def GetSidIdentifierAuthority(pSid):
|
|
|
|
|
# return GetSidIdentifierAuthority.ctypes_function(pSid)
|
|
|
|
|
GetSidIdentifierAuthorityPrototype = WINFUNCTYPE(PSID_IDENTIFIER_AUTHORITY, PSID)
|
|
|
|
|
GetSidIdentifierAuthorityParams = ((1, 'pSid'),)
|
|
|
|
|
|
|
|
|
|
#def GetSidLengthRequired(nSubAuthorityCount):
|
|
|
|
|
# return GetSidLengthRequired.ctypes_function(nSubAuthorityCount)
|
|
|
|
|
GetSidLengthRequiredPrototype = WINFUNCTYPE(DWORD, UCHAR)
|
|
|
|
|
GetSidLengthRequiredParams = ((1, 'nSubAuthorityCount'),)
|
|
|
|
|
|
|
|
|
|
#def GetSidSubAuthority(pSid, nSubAuthority):
|
|
|
|
|
# return GetSidSubAuthority.ctypes_function(pSid, nSubAuthority)
|
|
|
|
|
GetSidSubAuthorityPrototype = WINFUNCTYPE(PDWORD, PSID, DWORD)
|
|
|
|
|
GetSidSubAuthorityParams = ((1, 'pSid'), (1, 'nSubAuthority'))
|
|
|
|
|
|
|
|
|
|
#def GetSidSubAuthorityCount(pSid):
|
|
|
|
|
# return GetSidSubAuthorityCount.ctypes_function(pSid)
|
|
|
|
|
GetSidSubAuthorityCountPrototype = WINFUNCTYPE(LPBYTE, PSID)
|
|
|
|
|
GetSidSubAuthorityCountParams = ((1, 'pSid'),)
|
|
|
|
|
|
|
|
|
|
#def FreeSid(pSid):
|
|
|
|
|
# return FreeSid.ctypes_function(pSid)
|
|
|
|
|
FreeSidPrototype = WINFUNCTYPE(PVOID, PSID)
|
|
|
|
|
FreeSidParams = ((1, 'pSid'),)
|
|
|
|
|
|
|
|
|
|
#def GetAce(pAcl, dwAceIndex, pAce):
|
|
|
|
|
# return GetAce.ctypes_function(pAcl, dwAceIndex, pAce)
|
|
|
|
|
GetAcePrototype = WINFUNCTYPE(BOOL, PACL, DWORD, POINTER(LPVOID))
|
|
|
|
|
GetAceParams = ((1, 'pAcl'), (1, 'dwAceIndex'), (1, 'pAce'))
|
|
|
|
|
|
|
|
|
|
#def GetAclInformation(pAcl, pAclInformation, nAclInformationLength, dwAclInformationClass):
|
|
|
|
|
# return GetAclInformation.ctypes_function(pAcl, pAclInformation, nAclInformationLength, dwAclInformationClass)
|
|
|
|
|
GetAclInformationPrototype = WINFUNCTYPE(BOOL, PACL, LPVOID, DWORD, ACL_INFORMATION_CLASS)
|
|
|
|
|
GetAclInformationParams = ((1, 'pAcl'), (1, 'pAclInformation'), (1, 'nAclInformationLength'), (1, 'dwAclInformationClass'))
|
|
|
|
|
|
|
|
|
|