451{
455
457 (
PVOID*)&ConsoleAliasRequest->Source,
458 ConsoleAliasRequest->SourceLength,
461 (
PVOID*)&ConsoleAliasRequest->Target,
462 ConsoleAliasRequest->TargetLength,
465 (
PVOID*)&ConsoleAliasRequest->ExeName,
466 ConsoleAliasRequest->ExeLength,
468 {
470 }
471
472 lpTarget = (ConsoleAliasRequest->TargetLength != 0 ? ConsoleAliasRequest->Target :
NULL);
473
475 ConsoleAliasRequest->ExeName,
476 ConsoleAliasRequest->ExeLength,
477 ConsoleAliasRequest->Unicode2);
479 {
481 ConsoleAliasRequest->ExeName,
482 ConsoleAliasRequest->ExeLength,
483 ConsoleAliasRequest->Unicode2);
486
488 }
489
490 if (lpTarget ==
NULL)
491 {
493 ConsoleAliasRequest->Source,
494 ConsoleAliasRequest->SourceLength,
495 ConsoleAliasRequest->Unicode);
498
500 }
501 else
502 {
504 ConsoleAliasRequest->Source,
505 ConsoleAliasRequest->SourceLength,
506 ConsoleAliasRequest->Target,
507 ConsoleAliasRequest->TargetLength,
508 ConsoleAliasRequest->Unicode);
511
513 }
514
516}
BOOLEAN NTAPI CsrValidateMessageBuffer(IN PCSR_API_MESSAGE ApiMessage, IN PVOID *Buffer, IN ULONG ElementCount, IN ULONG ElementSize)
base of all file and directory entries
#define STATUS_INVALID_PARAMETER
#define STATUS_UNSUCCESSFUL
static VOID IntDeleteAliasEntry(PALIAS_HEADER Header, PALIAS_ENTRY Entry)
static PALIAS_ENTRY IntGetAliasEntry(PCONSRV_CONSOLE Console, PALIAS_HEADER Header, PVOID Source, USHORT SourceLength, BOOLEAN Unicode)
static PALIAS_ENTRY IntCreateAliasEntry(PCONSRV_CONSOLE Console, PVOID Source, USHORT SourceLength, PVOID Target, USHORT TargetLength, BOOLEAN Unicode)
static VOID IntInsertAliasHeader(PALIAS_HEADER *RootHeader, PALIAS_HEADER NewHeader)
static VOID IntInsertAliasEntry(PALIAS_HEADER Header, PALIAS_ENTRY NewEntry)
static PALIAS_HEADER IntFindAliasHeader(PCONSRV_CONSOLE Console, PVOID ExeName, USHORT ExeLength, BOOLEAN UnicodeExe)
static PALIAS_HEADER IntCreateAliasHeader(PCONSRV_CONSOLE Console, PVOID ExeName, USHORT ExeLength, BOOLEAN UnicodeExe)