ReactOS 0.4.15-dev-8109-gd7be748
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
17 _In_ PCWSTR ObjectDirectory,
18 _In_ ULONG ServerId,
19 _In_ PVOID ConnectionInfo,
20 _Inout_ PULONG ConnectionInfoSize,
21 _Out_ PBOOLEAN ServerToServerCall);
22
26 _Inout_ PCSR_API_MESSAGE ApiMessage,
27 _Inout_opt_ PCSR_CAPTURE_BUFFER CaptureBuffer,
28 _In_ CSR_API_NUMBER ApiNumber,
30
34 _In_ ULONG ArgumentCount,
36
40 _Inout_ PCSR_CAPTURE_BUFFER CaptureBuffer,
41 _In_ ULONG MessageLength,
42 _Out_ PVOID* CapturedData);
43
44VOID
47 _Inout_ PCSR_CAPTURE_BUFFER CaptureBuffer,
48 _In_opt_ PVOID MessageBuffer,
49 _In_ ULONG MessageLength,
50 _Out_ PVOID* CapturedData);
51
52VOID
56
57VOID
60 _Inout_ PCSR_CAPTURE_BUFFER CaptureBuffer,
62 _In_ ULONG StringLength,
64 _Out_ PSTRING CapturedString);
65
66VOID
69 _Inout_ PCSR_CAPTURE_BUFFER CaptureBuffer,
71
75 _Inout_ PCSR_CAPTURE_BUFFER* CaptureBuffer,
76 _In_ ULONG StringsCount,
77 _In_ PUNICODE_STRING* MessageStrings);
78
82 _In_ ULONG Milliseconds,
84
85VOID
91
92VOID
98
100NTAPI
102
104NTAPI
106
108NTAPI
110
112NTAPI
115 _Inout_ PULONG PriorityClass);
116
117#endif // _CSR_H
118
119/* EOF */
LONG NTSTATUS
Definition: precomp.h:26
_In_ ULONG _In_opt_ WDFREQUEST _In_opt_ PVOID _In_ size_t _In_ PVOID _In_ size_t _Out_ size_t * DataLength
Definition: cdrom.h:1444
ULONG CSR_API_NUMBER
Definition: csrmsg.h:35
_Must_inspect_result_ _In_ PLARGE_INTEGER _In_ PLARGE_INTEGER _In_ ULONG _In_ PFILE_OBJECT _In_ PVOID Process
Definition: fsrtlfuncs.h:223
#define _Inout_
Definition: ms_sal.h:378
#define _Inout_opt_
Definition: ms_sal.h:379
#define _Out_
Definition: ms_sal.h:345
#define _In_
Definition: ms_sal.h:308
#define _In_opt_
Definition: ms_sal.h:309
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:102
static WCHAR Address[46]
Definition: ping.c:68
static ULONG Timeout
Definition: ping.c:61
NTSTATUS NTAPI CsrSetPriorityClass(_In_ HANDLE Process, _Inout_ PULONG PriorityClass)
Definition: api.c:67
PCSR_CAPTURE_BUFFER NTAPI CsrAllocateCaptureBuffer(_In_ ULONG ArgumentCount, _In_ ULONG BufferSize)
Definition: capture.c:87
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
VOID NTAPI CsrProbeForWrite(_In_ PVOID Address, _In_ ULONG Length, _In_ ULONG Alignment)
Definition: capture.c:56
ULONG NTAPI CsrAllocateMessagePointer(_Inout_ PCSR_CAPTURE_BUFFER CaptureBuffer, _In_ ULONG MessageLength, _Out_ PVOID *CapturedData)
Definition: capture.c:152
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 CsrFreeCaptureBuffer(_In_ _Frees_ptr_ PCSR_CAPTURE_BUFFER CaptureBuffer)
Definition: capture.c:210
NTSTATUS NTAPI CsrIdentifyAlertableThread(VOID)
Definition: api.c:37
VOID NTAPI CsrProbeForRead(_In_ PVOID Address, _In_ ULONG Length, _In_ ULONG Alignment)
Definition: capture.c:23
VOID NTAPI CsrCaptureMessageUnicodeStringInPlace(_Inout_ PCSR_CAPTURE_BUFFER CaptureBuffer, _Inout_ PUNICODE_STRING String)
Definition: capture.c:271
PLARGE_INTEGER NTAPI CsrCaptureTimeout(_In_ ULONG Milliseconds, _Out_ PLARGE_INTEGER Timeout)
Definition: capture.c:341
HANDLE NTAPI CsrGetProcessId(VOID)
Definition: connect.c:507
NTSTATUS NTAPI CsrClientConnectToServer(_In_ PCWSTR ObjectDirectory, _In_ ULONG ServerId, _In_ PVOID ConnectionInfo, _Inout_ PULONG ConnectionInfoSize, _Out_ PBOOLEAN ServerToServerCall)
Definition: connect.c:196
VOID NTAPI CsrCaptureMessageBuffer(_Inout_ PCSR_CAPTURE_BUFFER CaptureBuffer, _In_opt_ PVOID MessageBuffer, _In_ ULONG MessageLength, _Out_ PVOID *CapturedData)
Definition: capture.c:189
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
#define _Frees_ptr_
Definition: specstrings.h:402
uint32_t * PULONG
Definition: typedefs.h:59
const uint16_t * PCWSTR
Definition: typedefs.h:57
unsigned char * PBOOLEAN
Definition: typedefs.h:53
#define NTAPI
Definition: typedefs.h:36
const char * PCSTR
Definition: typedefs.h:52
uint32_t ULONG
Definition: typedefs.h:59
_Must_inspect_result_ _In_ WDFDEVICE _In_ WDFSTRING String
Definition: wdfdevice.h:2433
_In_ WDFDMATRANSACTION _In_ size_t MaximumLength
_In_ WDFMEMORY _Out_opt_ size_t * BufferSize
Definition: wdfmemory.h:254