- 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
NTAPI
DbgPrompt(
IN PCCH PromptString,
OUT PCH OutputString,
IN ULONG OutputSize
IN PCCH Prompt,
OUT PCH Response,
IN ULONG MaximumResponseLength
);
VOID

View file

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

View file

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

View file

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

View file

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