26#define LPC_CONNECT_FLAG1 0x00000001
27#define LPC_CONNECT_FLAG2 0x00000010
28#define LPC_CONNECT_FLAG3 0x00000100
29#define LPC_CONNECT_FLAG4 0x00001000
30#define LPC_CONNECT_FLAG5 0x00010000
70 char * port_name_save = port_name;
127 for (dwx=0; dwx<
MAXARG; ++dwx)
134 "Could not close the port handle %08X.\n",
141 "Connection to port \"%s\" failed (Status = %08X).\n",
154 printf(
"WNT LPC Port Connector\n");
158 printf(
"LoadLibrary(NTDLL)\n");
162 printf(
"Could not load NTDLL\n");
165 printf(
"GetProcAddress(NTDLL.NtConnectPort)\n");
170 if (ConnectPort ==
NULL)
173 printf(
"Could not find NTDLL.NtConnectPort\n");
176 printf(
"GetProcAddress(NTDLL.NtQueryObject)\n");
181 if (QueryObject ==
NULL)
184 printf(
"Could not find NTDLL.NtQueryObject\n");
187 printf(
"GetProcAddress(NTDLL.NtYieldExecution)\n");
192 if (YieldExecution ==
NULL)
195 printf(
"Could not find NTDLL.NtYieldExecution\n");
IN PUNICODE_STRING IN POBJECT_ATTRIBUTES IN DWORD IN DWORD IN DWORD IN DWORD Unknown6
IN CINT ObjectInformationClass
IN CINT OUT PVOID IN ULONG OUT PULONG ResultLength
IN PUNICODE_STRING IN POBJECT_ATTRIBUTES IN DWORD IN DWORD IN DWORD Unknown5
IN CINT OUT PVOID ObjectInformation
IN PUNICODE_STRING IN POBJECT_ATTRIBUTES IN DWORD Unknown3
IN CINT OUT PVOID IN ULONG Length
IN PUNICODE_STRING IN POBJECT_ATTRIBUTES IN DWORD IN DWORD Unknown4
#define LPC_CONNECT_FLAG5
IN PUNICODE_STRING IN POBJECT_ATTRIBUTES IN DWORD IN DWORD IN DWORD IN DWORD IN ULONG Flags
VOID TryConnectPort(char *port_name)
IN PUNICODE_STRING PortName
IN PUNICODE_STRING IN POBJECT_ATTRIBUTES ObjectAttributes
#define GetProcAddress(x, y)
VOID DumpInfo(LPCWSTR Name, NTSTATUS Status, LPCWSTR Comment, HANDLE Port)
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
#define OBJ_CASE_INSENSITIVE
struct _OBJECT_ATTRIBUTES OBJECT_ATTRIBUTES