- Correct definition of DbgPrompt

- Add definitions for the CSTRING structure

svn path=/trunk/; revision=24791
This commit is contained in:
Thomas Bluemel 2006-11-19 21:14:49 +00:00
parent 8a2cb65283
commit eb04d1528e
5 changed files with 27 additions and 15 deletions

View file

@ -2495,9 +2495,9 @@ DbgPrintEx(
ULONG ULONG
NTAPI NTAPI
DbgPrompt( DbgPrompt(
IN PCCH PromptString, IN PCCH Prompt,
OUT PCH OutputString, OUT PCH Response,
IN ULONG OutputSize IN ULONG MaximumResponseLength
); );
VOID VOID

View file

@ -141,6 +141,13 @@ typedef struct _STRING
PCHAR Buffer; PCHAR Buffer;
} STRING, *PSTRING; } STRING, *PSTRING;
typedef struct _CSTRING
{
USHORT Length;
USHORT MaximumLength;
CONST CHAR *Buffer;
} CSTRING, *PCSTRING;
#endif #endif
typedef struct _OBJECT_ATTRIBUTES typedef struct _OBJECT_ATTRIBUTES

View file

@ -53,6 +53,11 @@ typedef struct _STRING {
USHORT MaximumLength; USHORT MaximumLength;
PCHAR Buffer; PCHAR Buffer;
} STRING, *PSTRING; } STRING, *PSTRING;
typedef struct _CSTRING {
USHORT Length;
USHORT MaximumLength;
CONST CHAR *Buffer;
} CSTRING, *PCSTRING;
#endif #endif
typedef STRING ANSI_STRING; typedef STRING ANSI_STRING;
typedef PSTRING PANSI_STRING; typedef PSTRING PANSI_STRING;

View file

@ -40,8 +40,8 @@ DebugPrint(IN PANSI_STRING DebugString,
NTSTATUS NTSTATUS
NTAPI NTAPI
DebugPrompt(IN PANSI_STRING Output, DebugPrompt(IN PCSTRING Output,
IN PANSI_STRING Input) IN PSTRING Input)
{ {
/* Call the INT2D Service */ /* Call the INT2D Service */
return DebugService(BREAKPOINT_PROMPT, return DebugService(BREAKPOINT_PROMPT,
@ -270,20 +270,20 @@ DbgPrintReturnControlC(PCH Format,
*/ */
ULONG ULONG
NTAPI NTAPI
DbgPrompt(PCCH OutputString, DbgPrompt(IN PCCH Prompt,
PCH InputString, OUT PCH Response,
ULONG InputSize) IN ULONG MaximumResponseLength)
{ {
ANSI_STRING Output; CSTRING Output;
ANSI_STRING Input; STRING Input;
/* Setup the input string */ /* Setup the input string */
Input.MaximumLength = InputSize; Input.MaximumLength = MaximumResponseLength;
Input.Buffer = InputString; Input.Buffer = Response;
/* Setup the output string */ /* Setup the output string */
Output.Length = strlen (OutputString); Output.Length = strlen (Prompt);
Output.Buffer = (PCHAR)OutputString; Output.Buffer = Prompt;
/* Call the system service */ /* Call the system service */
return DebugPrompt(&Output, &Input); return DebugPrompt(&Output, &Input);

View file

@ -112,7 +112,7 @@ RtlpCaptureContext(OUT PCONTEXT ContextRecord);
NTSTATUS NTSTATUS
NTAPI NTAPI
DebugService(IN ULONG Service, DebugService(IN ULONG Service,
IN PVOID Buffer, IN PCVOID Buffer,
IN ULONG Length, IN ULONG Length,
IN PVOID Argument1, IN PVOID Argument1,
IN PVOID Argument2); IN PVOID Argument2);