[CONUTILS] Use const string pointers for strings that are not modified by the functions.

This commit is contained in:
Hermès Bélusca-Maïto 2020-08-23 19:10:11 +02:00
parent dff2d58693
commit 4aaf54e0a4
No known key found for this signature in database
GPG key ID: 3B2539C65E7B93D0
7 changed files with 60 additions and 46 deletions

View file

@ -55,9 +55,15 @@ typedef enum _CON_STREAM_MODE
// Shadow type, implementation-specific
typedef struct _CON_STREAM CON_STREAM, *PCON_STREAM;
// typedef INT (__stdcall *CON_READ_FUNC)(IN PCON_STREAM, IN PTCHAR, IN DWORD);
// Stream, szStr, len
typedef INT (__stdcall *CON_WRITE_FUNC)(IN PCON_STREAM, IN PTCHAR, IN DWORD);
// typedef INT (__stdcall *CON_READ_FUNC)(
// IN PCON_STREAM Stream,
// OUT PTCHAR szStr,
// IN OUT PDWORD len);
typedef INT (__stdcall *CON_WRITE_FUNC)(
IN PCON_STREAM Stream,
IN PCTCH szStr,
IN DWORD len);
/*
* Standard console streams, initialized by