29#undef GetEnvironmentStrings
34#undef FreeEnvironmentStrings
35#define FreeEnvironmentStrings FreeEnvironmentStringsA
73 if (Character < 0x20 && Character !=
'\r' && Character !=
'\n')
100 DPRINT(
"DosReadCharacter\n");
136 if (!
Node->InputStatusRoutine)
return FALSE;
145 LONG LocationHigh = 0;
148 return ((Location !=
FileSize) || (LocationHigh != FileSizeHigh));
190 if (*SourcePtr !=
'=' &&
_strnicmp(SourcePtr,
"WINDIR", 6) != 0)
195 strcpy(DestPtr, SourcePtr);
198 Delim =
strchr(DestPtr,
'=');
199 if (Delim) *Delim =
'\0';
201 if (Delim) *Delim =
'=';
203 DestPtr +=
strlen(SourcePtr);
210 SourcePtr +=
strlen(SourcePtr) + 1;
281 DosDisplayMessage(
"An error occurred when setting up the system environment block.\n");
ACPI_SIZE strlen(const char *String)
char * strcpy(char *DstString, const char *SrcString)
char * strchr(const char *String, int ch)
#define BiosDisplayMessage(Format,...)
#define DosDisplayMessage(Format,...)
#define _strnicmp(_String1, _String2, _MaxCount)
#define ERROR_INVALID_HANDLE
DWORD WINAPI GetFileSize(HANDLE hFile, LPDWORD lpFileSizeHigh)
BOOLEAN DosKRNLInitialize(VOID)
WORD DosReadFile(WORD FileHandle, DWORD Buffer, WORD Count, LPWORD BytesRead)
PDOS_FILE_DESCRIPTOR DosGetHandleFileDescriptor(WORD DosHandle)
WORD DosWriteFile(WORD FileHandle, DWORD Buffer, WORD Count, LPWORD BytesWritten)
#define SEG_OFF_TO_PTR(seg, off)
_Must_inspect_result_ _In_opt_ PFLT_INSTANCE _Out_ PHANDLE FileHandle
_Must_inspect_result_ _Out_ PLARGE_INTEGER FileSize
_Check_return_ _CRTIMP FILE *__cdecl _wfopen(_In_z_ const wchar_t *_Filename, _In_z_ const wchar_t *_Mode)
_Check_return_opt_ _CRTIMP int __cdecl fclose(_Inout_ FILE *_File)
PVOID PVOID PWCHAR PVOID Environment
_In_ HANDLE _Outptr_result_bytebuffer_ ViewSize PVOID * BaseAddress
_CRTIMP char *__cdecl _strupr(_Inout_z_ char *_String)
#define FreeEnvironmentStrings
CHAR DosReadCharacter(WORD FileHandle, BOOLEAN Echo)
VOID DosEchoCharacter(CHAR Character)
VOID DosPrintCharacter(WORD FileHandle, CHAR Character)
BOOLEAN DosCheckInput(VOID)
BOOLEAN DosBuildSysEnvBlock(VOID)
BOOLEAN DosBIOSInitialize(VOID)
PDOS_DEVICE_NODE DosGetDriverNode(DWORD Driver)
#define DOS_DATA_OFFSET(x)
struct _BIOS_DATA * PBIOS_DATA
#define DOS_OUTPUT_HANDLE
#define BIOS_DATA_SEGMENT
VOID WINAPI setSP(USHORT)
VOID WINAPI setDS(USHORT)
VOID WINAPI setSS(USHORT)
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_opt_ PWDF_MEMORY_DESCRIPTOR _In_opt_ PLONGLONG _In_opt_ PWDF_REQUEST_SEND_OPTIONS _Out_opt_ PULONG_PTR BytesWritten
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_opt_ PWDF_MEMORY_DESCRIPTOR _In_opt_ PLONGLONG _In_opt_ PWDF_REQUEST_SEND_OPTIONS _Out_opt_ PULONG_PTR BytesRead
_Must_inspect_result_ _In_ WDFIORESLIST _In_ PIO_RESOURCE_DESCRIPTOR Descriptor
LPSTR WINAPI GetEnvironmentStrings(void)
wchar_t * fgetws(wchar_t *buf, int bufsize, FILE *file)
_At_(*)(_In_ PWSK_CLIENT Client, _In_opt_ PUNICODE_STRING NodeName, _In_opt_ PUNICODE_STRING ServiceName, _In_opt_ ULONG NameSpace, _In_opt_ GUID *Provider, _In_opt_ PADDRINFOEXW Hints, _Outptr_ PADDRINFOEXW *Result, _In_opt_ PEPROCESS OwningProcess, _In_opt_ PETHREAD OwningThread, _Inout_ PIRP Irp Result)(Mem)) NTSTATUS(WSKAPI *PFN_WSK_GET_ADDRESS_INFO