ReactOS  0.4.15-dev-309-g7c8d563
csr.h
Go to the documentation of this file.
1 /*
2  * COPYRIGHT: See COPYING in the top level directory
3  * PROJECT: ReactOS Client/Server Runtime SubSystem
4  * FILE: include/reactos/subsys/csr/csr.h
5  * PURPOSE: Public definitions for CSR Clients
6  * PROGRAMMERS: Alex Ionescu (alex.ionescu@reactos.org)
7  * Hermes Belusca-Maito (hermes.belusca@sfr.fr)
8  */
9 
10 #ifndef _CSR_H
11 #define _CSR_H
12 
13 #include "csrmsg.h"
14 
16 NTAPI
17 CsrClientConnectToServer(IN PWSTR ObjectDirectory,
18  IN ULONG ServerId,
19  IN PVOID ConnectionInfo,
20  IN OUT PULONG ConnectionInfoSize,
21  OUT PBOOLEAN ServerToServerCall);
22 
24 NTAPI
26  IN OUT PCSR_CAPTURE_BUFFER CaptureBuffer OPTIONAL,
27  IN CSR_API_NUMBER ApiNumber,
29 
31 NTAPI
32 CsrAllocateCaptureBuffer(IN ULONG ArgumentCount,
34 
35 ULONG
36 NTAPI
38  IN ULONG MessageLength,
39  OUT PVOID* CapturedData);
40 
41 VOID
42 NTAPI
44  IN PVOID MessageBuffer OPTIONAL,
45  IN ULONG MessageLength,
46  OUT PVOID* CapturedData);
47 
48 VOID
49 NTAPI
51 
52 VOID
53 NTAPI
56  IN ULONG StringLength,
58  OUT PSTRING CapturedString);
59 
61 NTAPI
63  IN ULONG StringsCount,
64  IN PUNICODE_STRING* MessageStrings);
65 
67 NTAPI
68 CsrCaptureTimeout(IN ULONG Milliseconds,
70 
71 VOID
72 NTAPI
74  IN ULONG Length,
76 
77 VOID
78 NTAPI
80  IN ULONG Length,
82 
84 NTAPI
86 
87 HANDLE
88 NTAPI
90 
92 NTAPI
94 
96 NTAPI
98  IN OUT PULONG PriorityClass);
99 
100 #endif // _CSR_H
101 
102 /* EOF */
ULONG CSR_API_NUMBER
Definition: csrmsg.h:35
VOID NTAPI CsrCaptureMessageBuffer(IN OUT PCSR_CAPTURE_BUFFER CaptureBuffer, IN PVOID MessageBuffer OPTIONAL, IN ULONG MessageLength, OUT PVOID *CapturedData)
Definition: capture.c:169
PLARGE_INTEGER NTAPI CsrCaptureTimeout(IN ULONG Milliseconds, OUT PLARGE_INTEGER Timeout)
Definition: capture.c:317
#define IN
Definition: typedefs.h:39
VOID NTAPI CsrFreeCaptureBuffer(IN PCSR_CAPTURE_BUFFER CaptureBuffer)
Definition: capture.c:189
uint16_t * PWSTR
Definition: typedefs.h:55
NTSTATUS NTAPI CsrCaptureMessageMultiUnicodeStringsInPlace(OUT PCSR_CAPTURE_BUFFER *CaptureBuffer, IN ULONG StringsCount, IN PUNICODE_STRING *MessageStrings)
Definition: capture.c:271
NTSTATUS NTAPI CsrIdentifyAlertableThread(VOID)
Definition: api.c:68
LONG NTSTATUS
Definition: precomp.h:26
VOID NTAPI CsrCaptureMessageString(IN OUT PCSR_CAPTURE_BUFFER CaptureBuffer, IN PCSTR String OPTIONAL, IN ULONG StringLength, IN ULONG MaximumLength, OUT PSTRING CapturedString)
Definition: capture.c:200
static WCHAR String[]
Definition: stringtable.c:55
NTSTATUS NTAPI CsrClientCallServer(IN OUT PCSR_API_MESSAGE ApiMessage, IN OUT PCSR_CAPTURE_BUFFER CaptureBuffer OPTIONAL, IN CSR_API_NUMBER ApiNumber, IN ULONG DataLength)
Definition: connect.c:365
NTSTATUS NTAPI CsrSetPriorityClass(IN HANDLE Process, IN OUT PULONG PriorityClass)
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
static WCHAR Address[46]
Definition: ping.c:68
PCSR_CAPTURE_BUFFER NTAPI CsrAllocateCaptureBuffer(IN ULONG ArgumentCount, IN ULONG BufferSize)
Definition: capture.c:90
VOID NTAPI CsrProbeForRead(IN PVOID Address, IN ULONG Length, IN ULONG Alignment)
Definition: capture.c:28
#define BufferSize
Definition: classpnp.h:419
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
ULONG NTAPI CsrAllocateMessagePointer(IN OUT PCSR_CAPTURE_BUFFER CaptureBuffer, IN ULONG MessageLength, OUT PVOID *CapturedData)
Definition: capture.c:133
char * PBOOLEAN
Definition: retypes.h:11
UnicodeString MaximumLength
Definition: rtlfuncs.h:2982
static ULONG Timeout
Definition: ping.c:61
HANDLE NTAPI CsrGetProcessId(VOID)
Definition: connect.c:501
unsigned int * PULONG
Definition: retypes.h:1
VOID NTAPI CsrProbeForWrite(IN PVOID Address, IN ULONG Length, IN ULONG Alignment)
Definition: capture.c:60
_Must_inspect_result_ _In_ PLARGE_INTEGER _In_ PLARGE_INTEGER _In_ ULONG _In_ PFILE_OBJECT _In_ PVOID Process
Definition: fsrtlfuncs.h:219
#define OUT
Definition: typedefs.h:40
unsigned int ULONG
Definition: retypes.h:1
const char * PCSTR
Definition: typedefs.h:52
_Must_inspect_result_ _Out_writes_to_ DataLength PHIDP_DATA _Inout_ PULONG DataLength
Definition: hidpi.h:333
NTSTATUS NTAPI CsrClientConnectToServer(IN PWSTR ObjectDirectory, IN ULONG ServerId, IN PVOID ConnectionInfo, IN OUT PULONG ConnectionInfoSize, OUT PBOOLEAN ServerToServerCall)
Definition: connect.c:197
NTSTATUS NTAPI CsrNewThread(VOID)
Definition: api.c:27
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68