mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 20:25:39 +00:00
IoSetThreadHardErrorMode().
svn path=/trunk/; revision=1153
This commit is contained in:
parent
598c0f3b1f
commit
d7b4fba550
5 changed files with 62 additions and 16 deletions
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: objdir.c,v 1.2 2000/05/01 13:53:43 ea Exp $
|
/* $Id: objdir.c,v 1.3 2000/05/13 14:56:46 ea Exp $
|
||||||
*
|
*
|
||||||
* DESCRIPTION: Object Manager Simple Explorer
|
* DESCRIPTION: Object Manager Simple Explorer
|
||||||
* PROGRAMMER: David Welch
|
* PROGRAMMER: David Welch
|
||||||
|
@ -32,6 +32,27 @@ struct
|
||||||
} DirectoryEntry;
|
} DirectoryEntry;
|
||||||
|
|
||||||
|
|
||||||
|
static
|
||||||
|
const char *
|
||||||
|
STDCALL
|
||||||
|
StatusToName (NTSTATUS Status)
|
||||||
|
{
|
||||||
|
static char RawValue [16];
|
||||||
|
|
||||||
|
switch (Status)
|
||||||
|
{
|
||||||
|
case STATUS_OBJECT_NAME_INVALID:
|
||||||
|
return "STATUS_OBJECT_NAME_INVALID";
|
||||||
|
case STATUS_OBJECT_NAME_NOT_FOUND:
|
||||||
|
return "STATUS_OBJECT_NAME_NOT_FOUND";
|
||||||
|
case STATUS_PATH_SYNTAX_BAD:
|
||||||
|
return "STATUS_PATH_SYNTAX_BAD";
|
||||||
|
}
|
||||||
|
wsprintf (RawValue, "0x%08x", Status);
|
||||||
|
return (const char *) RawValue;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
int main(int argc, char* argv[])
|
int main(int argc, char* argv[])
|
||||||
{
|
{
|
||||||
UNICODE_STRING DirectoryNameW;
|
UNICODE_STRING DirectoryNameW;
|
||||||
|
@ -86,8 +107,8 @@ int main(int argc, char* argv[])
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
printf (
|
printf (
|
||||||
"Failed to open directory object (Status: %x)\n",
|
"Failed to open directory object (Status: %s)\n",
|
||||||
Status
|
StatusToName (Status)
|
||||||
);
|
);
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
}
|
}
|
||||||
|
@ -106,8 +127,8 @@ int main(int argc, char* argv[])
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
printf (
|
printf (
|
||||||
"Failed to query directory object (Status: %x)\n",
|
"Failed to query directory object (Status: %s)\n",
|
||||||
Status
|
StatusToName (Status)
|
||||||
);
|
);
|
||||||
NtClose (DirectoryHandle);
|
NtClose (DirectoryHandle);
|
||||||
return EXIT_FAILURE;
|
return EXIT_FAILURE;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# $Id: makefile,v 1.5 2000/04/10 20:17:32 jfilby Exp $
|
# $Id: makefile,v 1.6 2000/05/13 14:56:47 ea Exp $
|
||||||
#
|
#
|
||||||
# Makefile for ReactOS vgaddi.dll
|
# Makefile for ReactOS vgaddi.dll
|
||||||
#
|
#
|
||||||
|
@ -43,7 +43,7 @@ $(TARGET).dll: $(DLLMAIN) $(OBJECTS) $(TARGET).def
|
||||||
-mdll \
|
-mdll \
|
||||||
-o junk.tmp \
|
-o junk.tmp \
|
||||||
-Wl,--entry,_DrvEnableDriver \
|
-Wl,--entry,_DrvEnableDriver \
|
||||||
-Wl,--base-file,base.tmp
|
-Wl,--base-file,base.tmp
|
||||||
- $(RM) junk.tmp
|
- $(RM) junk.tmp
|
||||||
$(DLLTOOL) \
|
$(DLLTOOL) \
|
||||||
--dllname $(TARGET).dll \
|
--dllname $(TARGET).dll \
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
#ifndef _INCLUDE_DDK_IOFUNCS_H
|
#ifndef _INCLUDE_DDK_IOFUNCS_H
|
||||||
#define _INCLUDE_DDK_IOFUNCS_H
|
#define _INCLUDE_DDK_IOFUNCS_H
|
||||||
/* $Id: iofuncs.h,v 1.10 2000/04/05 15:47:40 ekohl Exp $ */
|
/* $Id: iofuncs.h,v 1.11 2000/05/13 14:56:46 ea Exp $ */
|
||||||
|
|
||||||
/* --- EXPORTED BY NTOSKRNL --- */
|
/* --- EXPORTED BY NTOSKRNL --- */
|
||||||
|
|
||||||
|
@ -799,10 +799,10 @@ IoSetShareAccess (
|
||||||
PFILE_OBJECT FileObject,
|
PFILE_OBJECT FileObject,
|
||||||
PSHARE_ACCESS ShareAccess
|
PSHARE_ACCESS ShareAccess
|
||||||
);
|
);
|
||||||
VOID
|
BOOLEAN
|
||||||
STDCALL
|
STDCALL
|
||||||
IoSetThreadHardErrorMode (
|
IoSetThreadHardErrorMode (
|
||||||
IN PVOID Unknown0
|
IN BOOLEAN HardErrorEnabled
|
||||||
);
|
);
|
||||||
VOID
|
VOID
|
||||||
STDCALL
|
STDCALL
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: process.c,v 1.4 2000/05/13 10:39:23 ekohl Exp $
|
/* $Id: process.c,v 1.5 2000/05/13 14:56:46 ea Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -70,13 +70,38 @@ IoGetRequestorProcess (
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
VOID
|
/**********************************************************************
|
||||||
|
* NAME EXPORTED
|
||||||
|
* IoSetThreadHardErrorMode@4
|
||||||
|
*
|
||||||
|
* ARGUMENTS
|
||||||
|
* HardErrorEnabled
|
||||||
|
* TRUE : enable hard errors processing;
|
||||||
|
* FALSE: do NOT process hard errors.
|
||||||
|
*
|
||||||
|
* RETURN VALUE
|
||||||
|
* Previous value for the current thread's hard errors
|
||||||
|
* processing policy.
|
||||||
|
*/
|
||||||
|
BOOLEAN
|
||||||
STDCALL
|
STDCALL
|
||||||
|
EXPORTED
|
||||||
IoSetThreadHardErrorMode (
|
IoSetThreadHardErrorMode (
|
||||||
IN PVOID Unknown0
|
IN BOOLEAN HardErrorEnabled
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
UNIMPLEMENTED;
|
BOOLEAN PreviousHEM = NtCurrentTeb ()->HardErrorDisabled;
|
||||||
|
|
||||||
|
NtCurrentTeb ()->HardErrorDisabled = (
|
||||||
|
(TRUE == HardErrorEnabled)
|
||||||
|
? FALSE
|
||||||
|
: TRUE
|
||||||
|
);
|
||||||
|
return (
|
||||||
|
(TRUE == PreviousHEM)
|
||||||
|
? FALSE
|
||||||
|
: TRUE
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $Id: main.c,v 1.43 2000/04/08 19:10:21 ekohl Exp $
|
/* $Id: main.c,v 1.44 2000/05/13 14:56:46 ea Exp $
|
||||||
*
|
*
|
||||||
* COPYRIGHT: See COPYING in the top level directory
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -25,7 +25,7 @@
|
||||||
#include <internal/mmhal.h>
|
#include <internal/mmhal.h>
|
||||||
#include <internal/i386/segment.h>
|
#include <internal/i386/segment.h>
|
||||||
|
|
||||||
#define NDEBUG
|
//#define NDEBUG
|
||||||
#include <internal/debug.h>
|
#include <internal/debug.h>
|
||||||
|
|
||||||
/* DATA *********************************************************************/
|
/* DATA *********************************************************************/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue