#include <ddk/ntddk.h>
#include <rosrtl/string.h>
#include <windows.h>
#include <stdarg.h>
#include <string.h>
#include <stdio.h>
#include <stdlib.h>
#include "lpctest.h"
Go to the source code of this file.
◆ debug_printf()
Definition at line 19 of file lpcclt.c.
20{
23
28}
ACPI_SIZE strlen(const char *String)
BOOL WINAPI DECLSPEC_HOTPATCH WriteConsoleA(IN HANDLE hConsoleOutput, IN CONST VOID *lpBuffer, IN DWORD nNumberOfCharsToWrite, OUT LPDWORD lpNumberOfCharsWritten, LPVOID lpReserved)
int __cdecl vsprintf(char *_Dest, const char *_Format, va_list _Args)
◆ main()
Definition at line 31 of file lpcclt.c.
32{
38 ULONG ConnectInfoLength = 0;
40
42
44 ConnectInfoLength = 0;
48 & Sqos,
49 0,
50 0,
51 0,
53 &ConnectInfoLength);
55 {
58 }
59
61
67
68 printf(
"%s: Sending to port 0x%x message \"%s\"...\n",
70 PortHandle,
75 {
76 printf(
"%s: NtRequestPort(0x%x) failed with status = 0x%8X.\n",
78 PortHandle,
81 }
82
83 printf(
"%s: Sending datagram to port 0x%x succeeded.\n",
MyName, PortHandle);
84
86
89
91}
static UNICODE_STRING PortName
char * strcpy(char *DstString, const char *SrcString)
#define NT_SUCCESS(StatCode)
LPSTR WINAPI GetCommandLineA(VOID)
struct _LPC_MESSAGE LPC_MESSAGE
NTSTATUS NTAPI NtClose(IN HANDLE Handle)
NTSTATUS NTAPI NtConnectPort(OUT PHANDLE PortHandle, IN PUNICODE_STRING PortName, IN PSECURITY_QUALITY_OF_SERVICE SecurityQos, IN OUT PPORT_VIEW ClientView OPTIONAL, IN OUT PREMOTE_PORT_VIEW ServerView OPTIONAL, OUT PULONG MaxMessageLength OPTIONAL, IN OUT PVOID ConnectionInformation OPTIONAL, IN OUT PULONG ConnectionInformationLength OPTIONAL)
NTSTATUS NTAPI NtRequestPort(IN HANDLE PortHandle, IN PPORT_MESSAGE LpcRequest)
VOID WINAPI DECLSPEC_HOTPATCH Sleep(IN DWORD dwMilliseconds)
◆ InputHandle
◆ MyName
◆ OutputHandle