32 ULONG CapturedStrings;
48 ConsoleAliasRequest->
Unicode2 = bUnicode;
67 if (CaptureBuffer ==
NULL)
69 DPRINT1(
"CsrAllocateCaptureBuffer failed!\n");
100 sizeof(*ConsoleAliasRequest));
127 DPRINT(
"AddConsoleAliasW entered with lpSource '%S' lpTarget '%S' lpExeName '%S'\n",
152 DPRINT(
"AddConsoleAliasA entered with lpSource '%s' lpTarget '%s' lpExeName '%s'\n",
166 USHORT SourceBufferLength,
168 USHORT TargetBufferLength,
194 ConsoleAliasRequest->
ExeLength = NumChars * (bUnicode ?
sizeof(
WCHAR) :
sizeof(
CHAR));
196 ConsoleAliasRequest->
Unicode2 = bUnicode;
206 DPRINT1(
"CsrAllocateCaptureBuffer failed!\n");
230 sizeof(*ConsoleAliasRequest));
244 ConsoleAliasRequest->
Target,
262 DWORD TargetBufferLength,
265 DPRINT(
"GetConsoleAliasW entered with lpSource '%S' lpExeName '%S'\n",
284 LPSTR lpTargetBuffer,
285 DWORD TargetBufferLength,
288 DPRINT(
"GetConsoleAliasA entered with lpSource '%s' lpExeName '%s'\n",
302 DWORD AliasBufferLength,
321 GetAllAliasesRequest->
ExeLength = NumChars * (bUnicode ?
sizeof(
WCHAR) :
sizeof(
CHAR));
322 GetAllAliasesRequest->
Unicode =
323 GetAllAliasesRequest->
Unicode2 = bUnicode;
332 DPRINT1(
"CsrAllocateCaptureBuffer failed!\n");
350 sizeof(*GetAllAliasesRequest));
377 DWORD AliasBufferLength,
380 DPRINT(
"GetConsoleAliasesW entered with lpExeName '%S'\n",
397 DWORD AliasBufferLength,
400 DPRINT(
"GetConsoleAliasesA entered with lpExeName '%s'\n",
426 GetAllAliasesLengthRequest->
ExeLength = NumChars * (bUnicode ?
sizeof(
WCHAR) :
sizeof(
CHAR));
427 GetAllAliasesLengthRequest->
Unicode =
428 GetAllAliasesLengthRequest->
Unicode2 = bUnicode;
433 DPRINT1(
"CsrAllocateCaptureBuffer failed!\n");
446 sizeof(*GetAllAliasesLengthRequest));
456 return GetAllAliasesLengthRequest->
Length;
486 DWORD ExeNameBufferLength,
494 GetAliasesExesRequest->
Length = ExeNameBufferLength;
495 GetAliasesExesRequest->
Unicode = bUnicode;
500 DPRINT1(
"CsrAllocateCaptureBuffer failed!\n");
512 sizeof(*GetAliasesExesRequest));
522 GetAliasesExesRequest->
Length);
526 return GetAliasesExesRequest->
Length;
536 DWORD ExeNameBufferLength)
538 DPRINT(
"GetConsoleAliasExesW called\n");
550 DWORD ExeNameBufferLength)
552 DPRINT(
"GetConsoleAliasExesA called\n");
564 GetAliasesExesLengthRequest->
Unicode = bUnicode;
569 sizeof(*GetAliasesExesLengthRequest));
576 return GetAliasesExesLengthRequest->
Length;
588 DPRINT(
"GetConsoleAliasExesLengthW called\n");
601 DPRINT(
"GetConsoleAliasExesLengthA called\n");
ACPI_SIZE strlen(const char *String)
@ ConsolepGetAliasesLength
@ ConsolepGetAliasExesLength
#define CONSRV_SERVERDLL_INDEX
#define CSR_CREATE_API_NUMBER(ServerId, ApiId)
#define ERROR_NOT_ENOUGH_MEMORY
#define NT_SUCCESS(StatCode)
#define ERROR_INVALID_PARAMETER
DWORD WINAPI DECLSPEC_HOTPATCH GetConsoleAliasExesA(LPSTR lpExeNameBuffer, DWORD ExeNameBufferLength)
static DWORD IntGetConsoleAliasExes(PVOID lpExeNameBuffer, DWORD ExeNameBufferLength, BOOLEAN bUnicode)
DWORD WINAPI DECLSPEC_HOTPATCH GetConsoleAliasesA(LPSTR AliasBuffer, DWORD AliasBufferLength, LPSTR ExeName)
BOOL WINAPI DECLSPEC_HOTPATCH AddConsoleAliasW(LPCWSTR lpSource, LPCWSTR lpTarget, LPCWSTR lpExeName)
static BOOL IntAddConsoleAlias(LPCVOID Source, USHORT SourceBufferLength, LPCVOID Target, USHORT TargetBufferLength, LPCVOID lpExeName, BOOLEAN bUnicode)
DWORD WINAPI DECLSPEC_HOTPATCH GetConsoleAliasExesLengthA(VOID)
BOOL WINAPI DECLSPEC_HOTPATCH AddConsoleAliasA(LPCSTR lpSource, LPCSTR lpTarget, LPCSTR lpExeName)
DWORD WINAPI DECLSPEC_HOTPATCH GetConsoleAliasW(LPWSTR lpSource, LPWSTR lpTargetBuffer, DWORD TargetBufferLength, LPWSTR lpExeName)
DWORD WINAPI DECLSPEC_HOTPATCH GetConsoleAliasA(LPSTR lpSource, LPSTR lpTargetBuffer, DWORD TargetBufferLength, LPSTR lpExeName)
static DWORD IntGetConsoleAliasesLength(LPVOID lpExeName, BOOLEAN bUnicode)
DWORD WINAPI DECLSPEC_HOTPATCH GetConsoleAliasesW(LPWSTR AliasBuffer, DWORD AliasBufferLength, LPWSTR ExeName)
static DWORD IntGetConsoleAliasExesLength(BOOLEAN bUnicode)
static DWORD IntGetConsoleAliases(LPVOID AliasBuffer, DWORD AliasBufferLength, LPVOID lpExeName, BOOLEAN bUnicode)
DWORD WINAPI DECLSPEC_HOTPATCH GetConsoleAliasExesLengthW(VOID)
DWORD WINAPI DECLSPEC_HOTPATCH GetConsoleAliasesLengthW(LPWSTR lpExeName)
DWORD WINAPI DECLSPEC_HOTPATCH GetConsoleAliasesLengthA(LPSTR lpExeName)
DWORD WINAPI DECLSPEC_HOTPATCH GetConsoleAliasExesW(LPWSTR lpExeNameBuffer, DWORD ExeNameBufferLength)
static DWORD IntGetConsoleAlias(LPVOID Source, USHORT SourceBufferLength, LPVOID Target, USHORT TargetBufferLength, LPVOID lpExeName, BOOLEAN bUnicode)
_CRTIMP size_t __cdecl wcslen(_In_z_ const wchar_t *_Str)
static DWORD LPSTR lpExeName
_In_ UINT _In_ UINT _In_ PNDIS_PACKET Source
DWORD BaseSetLastNTError(IN NTSTATUS Status)
PCSR_CAPTURE_BUFFER NTAPI CsrAllocateCaptureBuffer(_In_ ULONG ArgumentCount, _In_ ULONG BufferSize)
ULONG NTAPI CsrAllocateMessagePointer(_Inout_ PCSR_CAPTURE_BUFFER CaptureBuffer, _In_ ULONG MessageLength, _Out_ PVOID *CapturedData)
VOID NTAPI CsrFreeCaptureBuffer(_In_ _Frees_ptr_ PCSR_CAPTURE_BUFFER CaptureBuffer)
VOID NTAPI CsrCaptureMessageBuffer(_Inout_ PCSR_CAPTURE_BUFFER CaptureBuffer, _In_opt_ PVOID MessageBuffer, _In_ ULONG MessageLength, _Out_ PVOID *CapturedData)
NTSTATUS NTAPI CsrClientCallServer(_Inout_ PCSR_API_MESSAGE ApiMessage, _Inout_opt_ PCSR_CAPTURE_BUFFER CaptureBuffer, _In_ CSR_API_NUMBER ApiNumber, _In_ ULONG DataLength)
#define DECLSPEC_HOTPATCH
#define STATUS_BUFFER_TOO_SMALL
CONSOLE_GETALIASESEXES GetAliasesExesRequest
CONSOLE_GETALLALIASESLENGTH GetAllAliasesLengthRequest
CONSOLE_ADDGETALIAS ConsoleAliasRequest
CONSOLE_GETALIASESEXESLENGTH GetAliasesExesLengthRequest
union _CONSOLE_API_MESSAGE::@3544 Data
CONSOLE_GETALLALIASES GetAllAliasesRequest
ULONG AliasesBufferLength
#define RtlCopyMemory(Destination, Source, Length)