mirror of
https://github.com/hakril/PythonForWindows
synced 2026-06-08 14:31:45 +00:00
Update rpc doc + sample + new rpc function + new winfunc definition file + fix setup.py
This commit is contained in:
@@ -14,7 +14,7 @@ GetProcAddress64 = windows.native_exec.nativeutils.GetProcAddress64
|
||||
|
||||
dll = "KERNEL32.DLL\x00".encode("utf-16-le")
|
||||
api = "LoadLibraryA\x00"
|
||||
dll_to_load = "SUCE"
|
||||
dll_to_load = "MyDLLToLoad"
|
||||
|
||||
|
||||
RemoteManualLoadLibray = x64.MultipleInstr()
|
||||
|
||||
+2
-2
@@ -22,7 +22,7 @@ class NdrUACStartupInfo(ndr.NdrStructure):
|
||||
ndr.NdrLong,
|
||||
NDRPoint]
|
||||
|
||||
class UACParameters(ndr.NdrParameters):
|
||||
class RAiLaunchAdminProcessParameters(ndr.NdrParameters):
|
||||
MEMBERS = [ndr.NdrUniquePTR(ndr.NdrWString),
|
||||
ndr.NdrUniquePTR(ndr.NdrWString),
|
||||
ndr.NdrLong,
|
||||
@@ -51,7 +51,7 @@ client = windows.rpc.find_alpc_endpoint_and_connect(UAC_UIID)
|
||||
iid = client.bind(UAC_UIID)
|
||||
|
||||
# Marshalling parameters.
|
||||
parameters = UACParameters.pack([
|
||||
parameters = RAiLaunchAdminProcessParameters.pack([
|
||||
params.target + "\x00", # Application Path
|
||||
params.cmdline + "\x00", # Commandline
|
||||
params.uacflags, # UAC-Request Flag
|
||||
|
||||
Reference in New Issue
Block a user