ReactOS  0.4.15-dev-5462-g4d0d22a
csr.h
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS Client/Server Runtime SubSystem
3  * LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
4  * PURPOSE: Public definitions for CSR Clients
5  * COPYRIGHT: Copyright 2005 Alex Ionescu <alex@relsoft.net>
6  * Copyright 2012-2022 Hermès Bélusca-Maïto <hermes.belusca-maito@reactos.org>
7  */
8 
9 #ifndef _CSR_H
10 #define _CSR_H
11 
12 #include "csrmsg.h"
13 
15 NTAPI
17  _In_ PCWSTR ObjectDirectory,
18  _In_ ULONG ServerId,
19  _In_ PVOID ConnectionInfo,
20  _Inout_ PULONG ConnectionInfoSize,
21  _Out_ PBOOLEAN ServerToServerCall);
22 
24 NTAPI
26  _Inout_ PCSR_API_MESSAGE ApiMessage,
27  _Inout_opt_ PCSR_CAPTURE_BUFFER CaptureBuffer,
28  _In_ CSR_API_NUMBER ApiNumber,
30 
32 NTAPI
34  _In_ ULONG ArgumentCount,
36 
37 ULONG
38 NTAPI
40  _Inout_ PCSR_CAPTURE_BUFFER CaptureBuffer,
41  _In_ ULONG MessageLength,
42  _Out_ PVOID* CapturedData);
43 
44 VOID
45 NTAPI
47  _Inout_ PCSR_CAPTURE_BUFFER CaptureBuffer,
48  _In_opt_ PVOID MessageBuffer,
49  _In_ ULONG MessageLength,
50  _Out_ PVOID* CapturedData);
51 
52 VOID
53 NTAPI
55  _In_ _Frees_ptr_ PCSR_CAPTURE_BUFFER CaptureBuffer);
56 
57 VOID
58 NTAPI
60  _Inout_ PCSR_CAPTURE_BUFFER CaptureBuffer,
62  _In_ ULONG StringLength,
64  _Out_ PSTRING CapturedString);
65 
66 VOID
67 NTAPI
69  _Inout_ PCSR_CAPTURE_BUFFER CaptureBuffer,
71 
73 NTAPI
75  _Inout_ PCSR_CAPTURE_BUFFER* CaptureBuffer,
76  _In_ ULONG StringsCount,
77  _In_ PUNICODE_STRING* MessageStrings);
78 
80 NTAPI
82  _In_ ULONG Milliseconds,
84 
85 VOID
86 NTAPI
91 
92 VOID
93 NTAPI
98 
99 HANDLE
100 NTAPI
102 
103 NTSTATUS
104 NTAPI
106 
107 NTSTATUS
108 NTAPI
110 
111 NTSTATUS
112 NTAPI
115  _Inout_ PULONG PriorityClass);
116 
117 #endif // _CSR_H
118 
119 /* EOF */
ULONG CSR_API_NUMBER
Definition: csrmsg.h:35
const uint16_t * PCWSTR
Definition: typedefs.h:57
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
ULONG NTAPI CsrAllocateMessagePointer(_Inout_ PCSR_CAPTURE_BUFFER CaptureBuffer, _In_ ULONG MessageLength, _Out_ PVOID *CapturedData)
Definition: capture.c:152
NTSTATUS NTAPI CsrSetPriorityClass(_In_ HANDLE Process, _Inout_ PULONG PriorityClass)
Definition: api.c:67
#define _In_opt_
Definition: ms_sal.h:309
#define _Inout_
Definition: ms_sal.h:378
#define _Frees_ptr_
Definition: specstrings.h:402
#define _Out_
Definition: ms_sal.h:345
NTSTATUS NTAPI CsrIdentifyAlertableThread(VOID)
Definition: api.c:37
LONG NTSTATUS
Definition: precomp.h:26
PLARGE_INTEGER NTAPI CsrCaptureTimeout(_In_ ULONG Milliseconds, _Out_ PLARGE_INTEGER Timeout)
Definition: capture.c:341
VOID NTAPI CsrCaptureMessageString(_Inout_ PCSR_CAPTURE_BUFFER CaptureBuffer, _In_opt_ PCSTR String, _In_ ULONG StringLength, _In_ ULONG MaximumLength, _Out_ PSTRING CapturedString)
Definition: capture.c:222
VOID NTAPI CsrCaptureMessageUnicodeStringInPlace(_Inout_ PCSR_CAPTURE_BUFFER CaptureBuffer, _Inout_ PUNICODE_STRING String)
Definition: capture.c:271
_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
VOID NTAPI CsrProbeForRead(_In_ PVOID Address, _In_ ULONG Length, _In_ ULONG Alignment)
Definition: capture.c:23
VOID NTAPI CsrProbeForWrite(_In_ PVOID Address, _In_ ULONG Length, _In_ ULONG Alignment)
Definition: capture.c:56
VOID NTAPI CsrCaptureMessageBuffer(_Inout_ PCSR_CAPTURE_BUFFER CaptureBuffer, _In_opt_ PVOID MessageBuffer, _In_ ULONG MessageLength, _Out_ PVOID *CapturedData)
Definition: capture.c:189
static WCHAR Address[46]
Definition: ping.c:68
#define _In_
Definition: ms_sal.h:308
_In_ ULONG _In_opt_ WDFREQUEST _In_opt_ PVOID _In_ size_t _In_ PVOID _In_ size_t _Out_ size_t * DataLength
Definition: cdrom.h:1437
_In_ WDFDMATRANSACTION _In_ size_t MaximumLength
NTSTATUS NTAPI CsrClientConnectToServer(_In_ PCWSTR ObjectDirectory, _In_ ULONG ServerId, _In_ PVOID ConnectionInfo, _Inout_ PULONG ConnectionInfoSize, _Out_ PBOOLEAN ServerToServerCall)
Definition: connect.c:196
NTSTATUS NTAPI CsrClientCallServer(_Inout_ PCSR_API_MESSAGE ApiMessage, _Inout_opt_ PCSR_CAPTURE_BUFFER CaptureBuffer, _In_ CSR_API_NUMBER ApiNumber, _In_ ULONG DataLength)
Definition: connect.c:366
char * PBOOLEAN
Definition: retypes.h:11
#define _Inout_opt_
Definition: ms_sal.h:379
static ULONG Timeout
Definition: ping.c:61
HANDLE NTAPI CsrGetProcessId(VOID)
Definition: connect.c:507
PCSR_CAPTURE_BUFFER NTAPI CsrAllocateCaptureBuffer(_In_ ULONG ArgumentCount, _In_ ULONG BufferSize)
Definition: capture.c:87
unsigned int * PULONG
Definition: retypes.h:1
_Must_inspect_result_ _In_ PLARGE_INTEGER _In_ PLARGE_INTEGER _In_ ULONG _In_ PFILE_OBJECT _In_ PVOID Process
Definition: fsrtlfuncs.h:219
unsigned int ULONG
Definition: retypes.h:1
VOID NTAPI CsrFreeCaptureBuffer(_In_ _Frees_ptr_ PCSR_CAPTURE_BUFFER CaptureBuffer)
Definition: capture.c:210
const char * PCSTR
Definition: typedefs.h:52
NTSTATUS NTAPI CsrCaptureMessageMultiUnicodeStringsInPlace(_Inout_ PCSR_CAPTURE_BUFFER *CaptureBuffer, _In_ ULONG StringsCount, _In_ PUNICODE_STRING *MessageStrings)
Definition: capture.c:294
NTSTATUS NTAPI CsrNewThread(VOID)
Definition: api.c:26
_In_ WDFMEMORY _Out_opt_ size_t * BufferSize
Definition: wdfmemory.h:251