ReactOS  0.4.15-dev-3745-g356babc
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 
83 HANDLE
84 NTAPI
86 
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:190
PLARGE_INTEGER NTAPI CsrCaptureTimeout(IN ULONG Milliseconds, OUT PLARGE_INTEGER Timeout)
Definition: capture.c:338
#define IN
Definition: typedefs.h:39
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
VOID NTAPI CsrFreeCaptureBuffer(IN PCSR_CAPTURE_BUFFER CaptureBuffer)
Definition: capture.c:210
uint16_t * PWSTR
Definition: typedefs.h:56
NTSTATUS NTAPI CsrCaptureMessageMultiUnicodeStringsInPlace(OUT PCSR_CAPTURE_BUFFER *CaptureBuffer, IN ULONG StringsCount, IN PUNICODE_STRING *MessageStrings)
Definition: capture.c:292
NTSTATUS NTAPI CsrIdentifyAlertableThread(VOID)
Definition: api.c:38
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:221
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)
Definition: api.c:68
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFSTRING String
Definition: wdfdevice.h:2430
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
_In_ ULONG _In_opt_ WDFREQUEST _In_opt_ PVOID _In_ size_t _In_ PVOID _In_ size_t _Out_ size_t * DataLength
Definition: cdrom.h:1437
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
_In_ WDFDMATRANSACTION _In_ size_t MaximumLength
ULONG NTAPI CsrAllocateMessagePointer(IN OUT PCSR_CAPTURE_BUFFER CaptureBuffer, IN ULONG MessageLength, OUT PVOID *CapturedData)
Definition: capture.c:154
char * PBOOLEAN
Definition: retypes.h:11
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
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
_In_ WDFMEMORY _Out_opt_ size_t * BufferSize
Definition: wdfmemory.h:251
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68