ReactOS 0.4.15-dev-7788-g1ad9096
conport.c File Reference
#include <windows.h>
#include <stdio.h>
#include <stdlib.h>
#include <ddk/ntddk.h>
#include "dumpinfo.h"
Include dependency graph for conport.c:

Go to the source code of this file.

Macros

#define PROTO_LPC
 
#define LPC_CONNECT_FLAG1   0x00000001
 
#define LPC_CONNECT_FLAG2   0x00000010
 
#define LPC_CONNECT_FLAG3   0x00000100
 
#define LPC_CONNECT_FLAG4   0x00001000
 
#define LPC_CONNECT_FLAG5   0x00010000
 
#define BUF_SIZE   1024
 
#define MAXARG   1000000
 

Functions

 NTSTATUS (WINAPI *ConnectPort)(OUT PHANDLE PortHandle
 
VOID TryConnectPort (char *port_name)
 
 main (int argc, char *argv[])
 

Variables

IN PUNICODE_STRING PortName
 
IN PUNICODE_STRING IN POBJECT_ATTRIBUTES ObjectAttributes
 
IN PUNICODE_STRING IN POBJECT_ATTRIBUTES IN DWORD Unknown3
 
IN PUNICODE_STRING IN POBJECT_ATTRIBUTES IN DWORD IN DWORD Unknown4
 
IN PUNICODE_STRING IN POBJECT_ATTRIBUTES IN DWORD IN DWORD IN DWORD Unknown5
 
IN PUNICODE_STRING IN POBJECT_ATTRIBUTES IN DWORD IN DWORD IN DWORD IN DWORD Unknown6
 
IN PUNICODE_STRING IN POBJECT_ATTRIBUTES IN DWORD IN DWORD IN DWORD IN DWORD IN ULONG Flags
 
IN CINT ObjectInformationClass
 
IN CINT OUT PVOID ObjectInformation
 
IN CINT OUT PVOID IN ULONG Length
 
IN CINT OUT PVOID IN ULONG OUT PULONG ResultLength
 

Macro Definition Documentation

◆ BUF_SIZE

#define BUF_SIZE   1024

Definition at line 56 of file conport.c.

◆ LPC_CONNECT_FLAG1

#define LPC_CONNECT_FLAG1   0x00000001

Definition at line 26 of file conport.c.

◆ LPC_CONNECT_FLAG2

#define LPC_CONNECT_FLAG2   0x00000010

Definition at line 27 of file conport.c.

◆ LPC_CONNECT_FLAG3

#define LPC_CONNECT_FLAG3   0x00000100

Definition at line 28 of file conport.c.

◆ LPC_CONNECT_FLAG4

#define LPC_CONNECT_FLAG4   0x00001000

Definition at line 29 of file conport.c.

◆ LPC_CONNECT_FLAG5

#define LPC_CONNECT_FLAG5   0x00010000

Definition at line 30 of file conport.c.

◆ MAXARG

#define MAXARG   1000000

Definition at line 57 of file conport.c.

◆ PROTO_LPC

#define PROTO_LPC

Definition at line 22 of file conport.c.

Function Documentation

◆ main()

main ( int argc  ,
char argv[] 
)

Definition at line 148 of file conport.c.

149{
150 HINSTANCE ntdll;
151
152 if (argc != 2)
153 {
154 printf("WNT LPC Port Connector\n");
155 printf("Usage: %s [port_name]\n",argv[0]);
157 }
158 printf("LoadLibrary(NTDLL)\n");
159 ntdll = LoadLibrary("NTDLL");
160 if (ntdll == NULL)
161 {
162 printf("Could not load NTDLL\n");
163 return EXIT_FAILURE;
164 }
165 printf("GetProcAddress(NTDLL.NtConnectPort)\n");
166 ConnectPort = (VOID*) GetProcAddress(
167 ntdll,
168 "NtConnectPort"
169 );
170 if (ConnectPort == NULL)
171 {
172 FreeLibrary(ntdll);
173 printf("Could not find NTDLL.NtConnectPort\n");
174 return EXIT_FAILURE;
175 }
176 printf("GetProcAddress(NTDLL.NtQueryObject)\n");
177 QueryObject = (VOID*) GetProcAddress(
178 ntdll,
179 "NtQueryObject"
180 );
181 if (QueryObject == NULL)
182 {
183 FreeLibrary(ntdll);
184 printf("Could not find NTDLL.NtQueryObject\n");
185 return EXIT_FAILURE;
186 }
187 printf("GetProcAddress(NTDLL.NtYieldExecution)\n");
188 YieldExecution = (VOID*) GetProcAddress(
189 ntdll,
190 "NtYieldExecution"
191 );
192 if (YieldExecution == NULL)
193 {
194 FreeLibrary(ntdll);
195 printf("Could not find NTDLL.NtYieldExecution\n");
196 return EXIT_FAILURE;
197 }
198 printf("TryConnectPort(%s)\n",argv[1]);
200 printf("Done\n");
201 return EXIT_SUCCESS;
202}
static int argc
Definition: ServiceArgs.c:12
VOID TryConnectPort(char *port_name)
Definition: conport.c:61
#define NULL
Definition: types.h:112
#define GetProcAddress(x, y)
Definition: compat.h:753
#define FreeLibrary(x)
Definition: compat.h:748
#define printf
Definition: freeldr.h:93
#define EXIT_FAILURE
Definition: jerror.c:33
#define argv
Definition: mplay32.c:18
#define EXIT_SUCCESS
Definition: rdjpgcom.c:55
#define exit(n)
Definition: config.h:202
#define LoadLibrary
Definition: winbase.h:3797

◆ NTSTATUS()

NTSTATUS ( WINAPI ConnectPort)

◆ TryConnectPort()

VOID TryConnectPort ( char port_name)

Definition at line 61 of file conport.c.

62{
63 DWORD Status = 0;
64 HANDLE Port = 0;
65 int i;
68 WORD Name [BUF_SIZE] = {0};
69 int dwx = 0;
70 char * port_name_save = port_name;
71
72 /*
73 * Convert the port's name to Unicode.
74 */
75 for (
76 PortName.Length = 0;
77 ( *port_name
79 );
80 )
81 {
82 Name[PortName.Length++] = (WORD) *port_name++;
83 }
84 Name[PortName.Length] = 0;
85
86 PortName.Length = PortName.Length * sizeof (WORD);
89 /*
90 * Prepare the port object attributes.
91 */
93 sizeof (OBJECT_ATTRIBUTES);
94 ObjectAttributes.RootDirectory =
95 NULL;
96 ObjectAttributes.ObjectName =
97 NULL /*& PortName */;
98 ObjectAttributes.Attributes =
100 ObjectAttributes.SecurityDescriptor =
101 NULL;
102 ObjectAttributes.SecurityQualityOfService =
103 NULL;
104 /*
105 * Try to issue a connection request.
106 */
107 Port = 0;
108 Status = ConnectPort(
109 & Port, /* & PortHandle */
110 & PortName, /* & PortName */
111 & ObjectAttributes, /* & PortAttributes */
112 NULL, /* & SecurityQos */
113 NULL, /* & SectionInfo */
114 NULL, /* & MapInfo */
115 NULL, /* & MaxMessageSize */
116 LPC_CONNECT_FLAG5 /* & ConnectInfoLength */
117 );
118 if (Status == STATUS_SUCCESS)
119 {
120 DumpInfo(
121 Name,
122 Status,
123 "connected",
124 Port
125 );
126 /* Hot waiting */
127 for (dwx=0; dwx<MAXARG; ++dwx)
128 {
129 YieldExecution();
130 }
131 if (FALSE == CloseHandle(Port))
132 {
133 printf(
134 "Could not close the port handle %08X.\n",
135 Port
136 );
137 }
138 return;
139 }
140 printf(
141 "Connection to port \"%s\" failed (Status = %08X).\n",
142 port_name_save,
143 Status
144 );
145}
#define MAXARG
Definition: conport.c:57
#define BUF_SIZE
Definition: conport.c:56
#define LPC_CONNECT_FLAG5
Definition: conport.c:30
IN PUNICODE_STRING PortName
Definition: conport.c:35
IN PUNICODE_STRING IN POBJECT_ATTRIBUTES ObjectAttributes
Definition: conport.c:36
#define FALSE
Definition: types.h:117
#define CloseHandle
Definition: compat.h:739
VOID DumpInfo(LPCWSTR Name, NTSTATUS Status, LPCWSTR Comment, HANDLE Port)
Definition: dumpinfo.c:70
unsigned long DWORD
Definition: ntddk_ex.h:95
unsigned short WORD
Definition: ntddk_ex.h:93
Status
Definition: gdiplustypes.h:25
GLsizei GLenum const GLvoid GLsizei GLenum GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLint GLint GLint GLshort GLshort GLshort GLubyte GLubyte GLubyte GLuint GLuint GLuint GLushort GLushort GLushort GLbyte GLbyte GLbyte GLbyte GLdouble GLdouble GLdouble GLdouble GLfloat GLfloat GLfloat GLfloat GLint GLint GLint GLint GLshort GLshort GLshort GLshort GLubyte GLubyte GLubyte GLubyte GLuint GLuint GLuint GLuint GLushort GLushort GLushort GLushort GLboolean const GLdouble const GLfloat const GLint const GLshort const GLbyte const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLdouble const GLfloat const GLfloat const GLint const GLint const GLshort const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort const GLdouble const GLfloat const GLint const GLshort GLenum GLenum GLenum GLfloat GLenum GLint GLenum GLenum GLenum GLfloat GLenum GLenum GLint GLenum GLfloat GLenum GLint GLint GLushort GLenum GLenum GLfloat GLenum GLenum GLint GLfloat const GLubyte GLenum GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLint GLint GLsizei GLsizei GLint GLenum GLenum const GLvoid GLenum GLenum const GLfloat GLenum GLenum const GLint GLenum GLenum const GLdouble GLenum GLenum const GLfloat GLenum GLenum const GLint GLsizei GLuint GLfloat GLuint GLbitfield GLfloat GLint GLuint GLboolean GLenum GLfloat GLenum GLbitfield GLenum GLfloat GLfloat GLint GLint const GLfloat GLenum GLfloat GLfloat GLint GLint GLfloat GLfloat GLint GLint const GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat GLint GLfloat GLfloat const GLdouble const GLfloat const GLdouble const GLfloat GLint i
Definition: glfuncs.h:248
CPPORT Port[4]
Definition: headless.c:35
#define OBJ_CASE_INSENSITIVE
Definition: winternl.h:228
#define STATUS_SUCCESS
Definition: shellext.h:65
USHORT MaximumLength
Definition: env_spec_w32.h:370
uint16_t * PWSTR
Definition: typedefs.h:56
struct _OBJECT_ATTRIBUTES OBJECT_ATTRIBUTES

Referenced by main().

Variable Documentation

◆ Flags

◆ Length

Definition at line 49 of file conport.c.

◆ ObjectAttributes

Definition at line 36 of file conport.c.

Referenced by _IRQL_requires_max_(), _Success_(), AccpOpenNamedObject(), acpi_create_registry_table(), acpi_create_volatile_registry_tables(), AcpiOsExecute(), AcpiRegOpenKey(), AcsHlpSendCommand(), AddCodepageToRegistry(), AddFontsSettingsToRegistry(), AddHotkeySettings(), AddImpersonatePrivilege(), AddKbLayoutsToRegistry(), AddPartitionToDisk(), AddVolumeToList(), AfdCreateSocket(), AllocConsole(), ApplyAccountSettings(), ApplyAuditEvents(), ApplyLockoutSettings(), ApplyPasswordSettings(), BaseComputeProcessDllPath(), BaseFormatObjectAttributes(), BaseGetNamedObjectDirectory(), BaseInitializeStaticServerData(), BasepMapFile(), BasepMoveFileDelayed(), BasepNotifyTrackingService(), BasepOpenFileForMove(), Beep(), BehaviorChecks(), BroadcastOpen(), BuildSidListFromDomainAndName(), BuildWindowStationNameList(), CabinetExtractFile(), CabinetOpen(), CheckDirectorySecurity__(), CheckForGlobalDriveLetter(), CheckKeySecurity__(), ClassPnp(), clean_main(), CmGetSystemDriverList(), CmInitSystem1(), CmpAddToHiveFileList(), CmpCreateControlSet(), CmpCreateEvent(), CmpCreateHardwareProfile(), CmpCreateRegistryRoot(), CmpInitializeHardwareConfiguration(), CmpInitializeMachineDependentConfiguration(), CmpInitializeRegistryNode(), CmpLinkHiveToMaster(), CmpLinkKeyToHive(), CmpOpenHiveFiles(), CmpRemoveFromHiveFileList(), CmpSetSystemValues(), CmpSetVersionData(), CommandDumpSector(), CommandPartInfo(), CompBattGetDeviceObjectPointer(), ConDrvInitInputBuffer(), FxDeviceBase::ConfigureConstraints(), FxIoQueue::ConfigureConstraints(), ConvertNtPathToWin32Path(), CreateBaseAcls(), Mx::CreateCallback(), CreateClientPort(), CreateDirectoryExW(), CreateDirectoryW(), CreateFileMappingW(), CreateFileW(), CreateGreenFdo(), CreateHardLinkW(), CreateKeyTest(), CreateMailslotW(), CreateMemoryResourceNotification(), CreateNamedPipeW(), CreateNestedKey(), CreatePartitionList(), CreatePipe(), CreateProcessAsUserCommon(), CreateProcessInternalW(), CreateRegistryFile(), CreateRegKey(), CreateRemoteDatabaseWorker(), CreateRemoteThread(), CreateSymbolicLinkW(), CreateSymLinkKey(), CreateWindowStationW(), CSR_API(), CsrApiPortInitialize(), CsrCreateSessionObjectDirectory(), CsrParseServerCommandLine(), CsrSbApiPortInitialize(), DbgkCreateThread(), DbgkpPostFakeModuleMessages(), DbgkpSectionToFileHandle(), DbgUiConnectToDbg(), DeleteFileW(), DeleteKeyTest(), DeleteSymLinkKey(), DeleteValueTest(), DisconnectRegistry(), DismountVolume(), do_enumeratekey(), DoesPathExist(), DriverEntry(), DsRolepGetBasicInfo(), DumpDisk(), DumpPartition(), DuplicateTokenAsEffective(), DuplicateTokenEx(), EngLoadModuleEx(), EnumerateKeyTest(), EnumerateValueTest(), ExCreateCallback(), ExpCreateSystemRootLink(), ExpGetCurrentUserUILanguage(), ExpInitializeCallbacks(), ExpSetCurrentUserUILanguage(), ExpUuidLoadSequenceNumber(), ExpUuidSaveSequenceNumber(), Ext2OpenDevice(), FatGetCompatibilityModeValue(), FatIsFujitsuFMR(), FdoCreateRawParallelPdo(), FilterConnectCommunicationPort(), FindFirstChangeNotificationW(), FindFirstFileExW(), FindFirstStreamW(), FindNTOSInstallations(), FindProductName(), FltpOpenFilterServicesKey(), FsRecRegisterFs(), FsRtlGetTunnelParameterValue(), FsRtlInitializeWorkerThread(), FsRtlpIsDfsEnabled(), FsRtlpOpenDev(), GetAccountDomainSid(), GetComputerIdentifier(), GetComputerNameFromRegistry(), GetConnectionHandle(), GetCPFileNameFromRegistry(), GetDiskFreeSpaceExW(), GetDiskFreeSpaceW(), GetDisplayIdentifier(), GetDosDevicesProtection(), GetDriveTypeW(), GetFileAttributesExW(), GetFileAttributesW(), GetFileSecurityW(), GetFileSystem(), GetFileSystemInfo(), GetFileSystemName_UStr(), GetFilterAltitude(), GetObjectType(), GetPhysicalFileSize(), GetRegInt(), GetRegistryValueBuffer(), GetSourcePaths(), GetTimeouts(), GetToken(), GetTokenProcess(), GetVolumeInformationW(), GetVolumeNameForRoot(), HalpDmaAllocateChildAdapter(), HalpGetChipHacks(), HalpGetNMICrashFlag(), HalpOpenRegistryKey(), HalpQueryPciRegistryInfo(), i8042StoreSMBiosTables(), Icmp6CreateFile(), IcmpCreateFile(), ImpersonateLoggedOnUser(), InferFileSystem(), InfOpenFile(), InfWriteFile(), IniCacheLoad(), IniCacheSave(), InitializeFmIfsOnce(), InitializeProvider(), InitializeUserModePnpManager(), InitLogPort(), InstallBootCodeToDisk(), InstallBootCodeToFile(), InstallBuiltinAccounts(), InstallDevice(), InstallDriver(), InstallPrivileges(), InstallSetupInfFile(), IntCopyRegistryKey(), IntCreateDesktop(), IntCreateNewRegistryPath(), IntCreateWindowStation(), IntDesktopObjectParse(), IntGdiAddFontResourceEx(), IntGetCodePageEntry(), IntGetFullFileName(), IntLoadFontsInRegistry(), IntLoadFontSubstList(), IntLoadRegistryParameters(), IntLoadSystemFonts(), IntResolveDesktop(), IntSetupDeviceSettingsKey(), IntVideoPortInbvInitialize(), IoCreateController(), IoCreateDevice(), IoCreateDriver(), IoCreateFile(), IoCreateFileSpecifyDeviceObjectHint(), IoCreateStreamFileObjectEx(), IoCreateStreamFileObjectLite(), IoCreateSymbolicLink(), IoCreateUnprotectedSymbolicLink(), IoDeleteSymbolicLink(), IoFastQueryNetworkAttributes(), IoGetDeviceInterfaces(), IoOpenDeviceInterfaceRegistryKey(), IoOpenDeviceRegistryKey(), IopBootLog(), IopCreateDeviceKeyPath(), IopCreateEvent(), IopCreateFile(), IopCreateLogFile(), IopCreateRegistryKeyEx(), IopCreateRootDirectories(), IopDetectResourceConflict(), IopEnumerateDetectedDevices(), IopGetDeviceObjectPointer(), IopInstallCriticalDevice(), IopIsFirmwareMapperDisabled(), IopMarkBootPartition(), IopOpenInterfaceKey(), IopOpenLinkOrRenameTarget(), IopOpenRegistryKeyEx(), IopParseDevice(), IopQueryAttributesFile(), IopQueryBusDescription(), IopQueryDeviceDescription(), IopReassignSystemRoot(), IopSaveBootLogToFile(), IopSetDeviceInstanceData(), IopShouldProcessDevice(), IopStartRamdisk(), IopStoreSystemPartitionInformation(), IopUpdateControlKeyWithResources(), IopUpdateResourceMap(), IopUpdateRootKey(), IopWriteLogFile(), IoQueryDeviceDescription(), IoRegisterDeviceInterface(), IoReportDetectedDevice(), IoReportHalResourceUsage(), IoSetDeviceInterfaceState(), IsAcpiComputer(), IsThisARootDirectory(), IsValidNTOSInstallation(), KdbpCliInit(), KdpDebugLogInit(), KeI386VdmInitialize(), KernelModeTest(), KmtStartThread(), KsCacheMedium(), KsecOpenDevice(), KsiCreateObjectType(), KsMapModuleName(), KspCreateObjectType(), KspEnumerateBusRegistryKeys(), KspInstallInterface(), KspOpenBusRegistryKey(), KspReadMediaCategory(), LdrOpenImageFileOptionsKey(), LdrpCheckForKnownDll(), LdrpCheckForLoadedDll(), LdrpCreateDllSection(), LdrpInitializeProcess(), ListDirectory(), LogfBackupFile(), LogfCreate(), LookupAccountNameW(), LookupAccountSidW(), LookupPrivilegeDisplayNameW(), LookupPrivilegeNameW(), LookupPrivilegeValueW(), LpcpCreatePort(), LsaConnectUntrusted(), LsaOpenPolicy(), LsaOpenPolicySce(), LsapCheckLogonProcess(), LsapCreateDatabaseKeys(), LsapCreateDbObject(), LsapEnumLogonSessions(), LsapGetLogonSessionData(), LsapGetObjectAttribute(), LsapIsDatabaseInstalled(), LsapLogonUser(), LsapOpenDbObject(), LsapOpenServiceKey(), LsapRegCreateKey(), LsapRegDeleteSubKey(), LsapRegOpenKey(), LsapRmInitializeServer(), LsapSetObjectAttribute(), LsaRegisterLogonProcess(), LsarOpenPolicy(), LsarOpenPolicy2(), main(), Main(), MiCreateMemoryEvent(), MmCheckSystemImage(), MmCreateArm3Section(), MmCreateDataFileSection(), MmCreateImageSection(), MmCreateSection(), MmInitBsmThread(), MmLoadSystemImage(), MountMgrMountedDeviceArrival(), MountMgrQuerySymbolicLink(), MountMgrValidateBackPointer(), MountMgrVolumeMountPointChanged(), MoveFileWithProgressW(), MupGetProviderInformation(), MuppIsDfsEnabled(), Mx::MxOpenKey(), my_open(), MyDeleteFile(), ndisBindMiniportsToProtocol(), NdisOpenConfiguration(), NdisOpenFile(), NetLocalGroupGetMembers(), NetpGetJoinInformation(), NetpSetPrimaryDomain(), NetrWkstaGetInfo(), NetWkstaUserGetInfo(), NlsInit(), NotificationCallback(), NpCreatePipeEx(), NpOpenPipeEx(), NpWaitPipe(), NtCreateDebugObject(), NtCreateDirectoryObject(), NtCreateEvent(), NtCreateEventPair(), NtCreateFile(), NtCreateIoCompletion(), NtCreateJobObject(), NtCreateKey(), NtCreateMailslotFile(), NtCreateMutant(), NtCreateNamedPipeFile(), NtCreatePagingFile(), NtCreatePort(), NtCreateProcess(), NtCreateProcessEx(), NtCreateProfile(), NtCreateSection(), NtCreateSemaphore(), NtCreateSymbolicLinkObject(), NtCreateThread(), NtCreateTimer(), NtCreateToken(), NtCreateWaitablePort(), NtDeleteFile(), NtDuplicateToken(), NtOpenDirectoryObject(), NtOpenEvent(), NtOpenEventPair(), NtOpenFile(), NtOpenIoCompletion(), NtOpenJobObject(), NtOpenKey(), NtOpenMutant(), NtOpenProcess(), NtOpenSection(), NtOpenSemaphore(), NtOpenSymbolicLinkObject(), NtOpenThread(), NtOpenTimer(), NtQueryAttributesFile(), NtQueryFullAttributesFile(), NtSetDefaultLocale(), NtUserCreateDesktop(), NtUserCreateWindowStation(), NtUserOpenDesktop(), NtUserOpenWindowStation(), ObCreateObject(), ObInitSystem(), ObjectBasicInformationTests(), ObOpenObjectByName(), ObpCaptureObjectCreateInformation(), ObpCreateDosDevicesDirectory(), ObtCreateObjectTypes(), OnlineMountedVolumes(), OpenAndMapFile(), OpenBootStore_UStr(), OpenDesktopW(), OpenDevice(), OpenDirectoryByHandleOrPath(), OpenFile(), OpenFileMappingW(), OpenIniBootLoaderStore(), OpenInputDevice(), OpenKey(), OpenKeyboard(), OpenProcess(), OpenRegistryHandlesFromSymbolicLink(), OpenRemoteDatabase(), OpenThread(), OpenWindowStationW(), PageFileBehaviorChecks(), PciGetBiosConfig(), PciIdeXCreateIdeDirectory(), PciOpenKey(), PciSaveBiosConfig(), PcNewRegistryKey(), Phase1InitializationDiscard(), PnpRootCreateDevice(), PopAddRemoveSysCapsCallback(), PopFlushVolumes(), PopFlushVolumeWorker(), PopReadShutdownPolicy(), ProbeAndCaptureObjectAttributes(), ProcessDisplayRegistry(), ProcessIdToHandle(), ProcessIdToSessionId(), ProcessLocaleRegistry(), ProcessorSetFriendlyName(), PsCreateSystemProcess(), PsCreateSystemThread(), PsLocateSystemDll(), PspCreateProcess(), PspCreateThread(), PspInitPhase0(), QueryDosDeviceW(), QueryTokenImpersonationTests(), QueryVolumeName(), ReadBlock(), ReadBootCodeFromFile(), ReadIpConfiguration(), ReconcileThisDatabaseWithMasterWorker(), RegCleanupRegistry(), RegCopyTreeW(), RegCreateKeyExW(), RegDeleteKeyExW(), RegDeleteKeyValueW(), RegInitializeRegistry(), RegisterUncProvider(), registry_callback(), RegistryInitAdapterKey(), RegOpenKey(), RegOpenKeyExW(), RegOpenUserClassesRoot(), RegpCopyTree(), RegRestoreKeyW(), RegSaveKeyW(), RegSetKeyValueA(), RegSetKeyValueW(), RegUnLoadKeyW(), RemoveDirectoryW(), ReplaceFileW(), ResolveArcNameNtSymLink(), RtlAcquirePrivilege(), RtlCreateBootStatusDataFile(), RtlCreateSystemVolumeInformationFolder(), RtlCreateUserProcess(), RtlCreateUserThread(), RtlDoesFileExists_UstrEx(), RtlGetNtProductType(), RtlInitializeRXact(), RtlLockBootStatusData(), RtlOpenCurrentUser(), RtlpGetRegistryHandle(), RtlpMapFile(), RtlpNtCreateKey(), RtlpNtOpenKey(), RtlpSysVolTakeOwnership(), RtlQueryProcessDebugInformation(), RtlQueryRegistryValues(), RtlSetCurrentDirectory_U(), RXactpOpenTargetKey(), RxGetRegistryParameters(), RxReadRegistryParameters(), SamConnect(), SampGetAccountDomainInfo(), SampRegCreateKey(), SampRegDeleteKey(), SampRegOpenKey(), SaveBootSector(), ScmCheckDriver(), ScmConvertToBootPathName(), ScmGetDriverStatus(), ScmSetServicePassword(), ScrInbvInitialize(), SdbpOpenMemMappedFile(), SearchForLegacyDrivers(), SeCopyClientToken(), SeGetLogonIdDeviceMap(), SepCaptureSecurityQualityOfService(), SepCleanupLUIDDeviceMapDirectory(), SepCreateSystemAnonymousLogonToken(), SepCreateSystemAnonymousLogonTokenNoEveryone(), SepCreateSystemProcessToken(), SepCreateToken(), SepDuplicateToken(), SepInitializationPhase1(), SepOpenThreadToken(), SepRegQueryHelper(), SeRmInitPhase1(), SeSubProcessToken(), SetAccountsDomainSid(), SetActiveComputerNameToRegistry(), SetAdministratorPassword(), SetComputerNameToRegistry(), SetDefaultPagefile(), SetFileAttributesW(), SetFileSecurityW(), SetGeoID(), SetMountedDeviceValue(), SetPrimaryDomain(), SetRegistryValue(), SetRosSpecificInfo(), SetupCopyFile(), SetupCreateSingleDirectory(), SetupDeleteFile(), SetupMoveFile(), SetValueTest1(), SetValueTest2(), SetVolumeLabelW(), SmpConfigureObjectDirectories(), SmpCreateDynamicEnvironmentVariables(), SmpCreateVolumeDescriptors(), SmpDeletePagingFile(), SmpExecPgm(), SmpGetPagingFileSize(), SmpGetVolumeFreeSpace(), SmpHandleConnectionRequest(), SmpInit(), SmpInitializeDosDevices(), SmpInitializeKnownDllsInternal(), SmpLoadDataFromRegistry(), SmpProcessFileRenames(), SmpQueryRegistrySosOption(), SmpTranslateSystemPartitionInformation(), SockGetAsyncSelectHelperAfdHandle(), SpeakerInitialize(), SpiCreatePortConfig(), SpiInitOpenKeys(), START_TEST(), StartAuthenticationPort(), SystemProcessTest(), SystemProcessWorker(), TCPSendIoctl(), test1(), test2(), test3(), test5(), test6(), test7(), test8(), test9(), Test_KeyFullInformation(), Test_KeyNameInformation(), TestAllInformation(), TestCreateOpen_(), TestEventConcurrent(), TestIoCreateFile(), TestKM(), TestObRootSecurity(), TestPhysicalMemorySection(), TestProviderInfo(), TestRelativeNames(), TestSharedCacheMap(), TestSymlinks(), TestTcpConnect(), TH32CreateSnapshotSectionInitialize(), TryConnectPort(), TryCreatePort(), UDFDismountDevice(), UnhandledExceptionFilter(), USBAudioRegCreateMediaCategoriesKey(), UserCreateWinstaDirectory(), UserModeTest(), UserpFormatMessages(), VdmpInitialize(), VfatFormat(), VfatSetRenameInformation(), VfatxFormat(), ViCreateDriveLetter(), ViMountImage(), W32kOpenFile(), WahCreateSocketHandle(), WahOpenHandleHelper(), WaitNamedPipeW(), WdmAudOpenSysAudioDevice(), WmipCreateGuidObject(), WmipOpenGuidObjectByName(), WorkerThread(), WritePartitions(), xHalIoAssignDriveLetters(), and xOpenFile().

◆ ObjectInformation

IN CINT OUT PVOID ObjectInformation

Definition at line 48 of file conport.c.

Referenced by NtQueryObject(), and NtSetInformationObject().

◆ ObjectInformationClass

IN CINT ObjectInformationClass

Definition at line 47 of file conport.c.

Referenced by NtQueryObject(), and NtSetInformationObject().

◆ PortName

IN PUNICODE_STRING PortName

Definition at line 35 of file conport.c.

Referenced by TryConnectPort().

◆ ResultLength

Definition at line 50 of file conport.c.

◆ Unknown3

◆ Unknown4

Definition at line 38 of file conport.c.

◆ Unknown5

◆ Unknown6