18#define LPC_CONNECT_FLAG1 0x00000001
19#define LPC_CONNECT_FLAG2 0x00000010
20#define LPC_CONNECT_FLAG3 0x00000100
21#define LPC_CONNECT_FLAG4 0x00001000
22#define LPC_CONNECT_FLAG5 0x00010000
60 char * port_name_save = port_name;
114 for (dwx=0; dwx<
MAXARG; ++dwx)
121 "Could not close the port handle %08X.\n",
128 "Creating port \"%s\" failed (Status = %08X).\n",
141 printf(
"WNT LPC Port Creator\n");
145 printf(
"LoadLibrary(NTDLL)\n");
149 printf(
"Could not load NTDLL\n");
152 printf(
"GetProcAddress(NTDLL.NtCreatePort)\n");
157 if (CreatePort ==
NULL)
160 printf(
"Could not find NTDLL.NtCreatePort\n");
163 printf(
"GetProcAddress(NTDLL.NtQueryObject)\n");
168 if (QueryObject ==
NULL)
171 printf(
"Could not find NTDLL.NtQueryObject\n");
174 printf(
"GetProcAddress(NTDLL.NtYieldExecution)\n");
179 if (YieldExecution ==
NULL)
182 printf(
"Could not find NTDLL.NtYieldExecution\n");
static UNICODE_STRING PortName
IN PUNICODE_STRING IN POBJECT_ATTRIBUTES ObjectAttributes
IN CINT ObjectInformationClass
IN CINT OUT PVOID IN ULONG OUT PULONG ResultLength
IN POBJECT_ATTRIBUTES PortAttributes OPTIONAL
IN CINT OUT PVOID ObjectInformation
IN CINT OUT PVOID IN ULONG Length
#define LPC_CONNECT_FLAG5
IN POBJECT_ATTRIBUTES PortAttributes IN ACCESS_MASK DesiredAccess
VOID TryCreatePort(char *port_name)
IN POBJECT_ATTRIBUTES PortAttributes IN ACCESS_MASK IN DWORD IN ULONG Flags
IN POBJECT_ATTRIBUTES PortAttributes IN ACCESS_MASK IN DWORD Unknown3
#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
struct _OBJECT_ATTRIBUTES OBJECT_ATTRIBUTES