Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
d921c5d4
Commit
d921c5d4
authored
Oct 08, 2004
by
Francois Gouget
Committed by
Alexandre Julliard
Oct 08, 2004
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add some reason codes for ExitWindowsEx().
Also add EWX_FORCEIFHUNG.
parent
d4779e20
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
59 additions
and
0 deletions
+59
-0
Makefile.in
include/Makefile.in
+1
-0
reason.h
include/reason.h
+44
-0
winreg.h
include/winreg.h
+13
-0
winuser.h
include/winuser.h
+1
-0
No files found.
include/Makefile.in
View file @
d921c5d4
...
@@ -180,6 +180,7 @@ WINDOWS_INCLUDES = \
...
@@ -180,6 +180,7 @@ WINDOWS_INCLUDES = \
pshpack4.h
\
pshpack4.h
\
pshpack8.h
\
pshpack8.h
\
ras.h
\
ras.h
\
reason.h
\
regstr.h
\
regstr.h
\
richedit.h
\
richedit.h
\
richole.h
\
richole.h
\
...
...
include/reason.h
0 → 100644
View file @
d921c5d4
/*
* ExitWindowsEx() reason codes
*
* Copyright (C) the Wine project
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef __WINE_REASON_H
#define __WINE_REASON_H
#define SHTDN_REASON_FLAG_USER_DEFINED 0x40000000
#define SHTDN_REASON_FLAG_PLANNED 0x80000000
#define SHTDN_REASON_MAJOR_OTHER 0x00000000
#define SHTDN_REASON_MAJOR_NONE 0x00000000
#define SHTDN_REASON_MAJOR_HARDWARE 0x00010000
#define SHTDN_REASON_MAJOR_OPERATINGSYSTEM 0x00020000
#define SHTDN_REASON_MAJOR_SOFTWARE 0x00030000
#define SHTDN_REASON_MAJOR_APPLICATION 0x00040000
#define SHTDN_REASON_MAJOR_SYSTEM 0x00050000
#define SHTDN_REASON_MAJOR_POWER 0x00060000
#define SHTDN_REASON_MAJOR_LEGACY_API 0x00070000
#define SHTDN_REASON_MINOR_OTHER 0x00000000
#define SHTDN_REASON_MINOR_NONE 0x000000ff
#define SHTDN_REASON_UNKNOWN SHTDN_REASON_MINOR_NONE
#define SHTDN_REASON_LEGACY_API (SHTDN_REASON_MAJOR_LEGACY_API | SHTDN_REASON_FLAG_PLANNED)
#endif
include/winreg.h
View file @
d921c5d4
...
@@ -52,6 +52,19 @@ typedef struct value_entW {
...
@@ -52,6 +52,19 @@ typedef struct value_entW {
typedef
ACCESS_MASK
REGSAM
;
typedef
ACCESS_MASK
REGSAM
;
/*
* InitiateSystemShutdown() reasons
*/
#include <reason.h>
#define REASON_OTHER (SHTDN_REASON_MAJOR_OTHER | SHTDN_REASON_MINOR_OTHER)
#define REASON_UNKNOWN SHTDN_REASON_UNKNOWN
#define REASON_LEGACY_API SHTDN_REASON_LEGACY_API
#define REASON_PLANNED_FLAG SHTDN_REASON_FLAG_PLANNED
#define MAX_SHUTDOWN_TIMEOUT (10*365*24*60*60)
BOOL
WINAPI
AbortSystemShutdownA
(
LPSTR
);
BOOL
WINAPI
AbortSystemShutdownA
(
LPSTR
);
BOOL
WINAPI
AbortSystemShutdownW
(
LPWSTR
);
BOOL
WINAPI
AbortSystemShutdownW
(
LPWSTR
);
#define AbortSystemShutdown WINELIB_NAME_AW(AbortSystemShutdown)
#define AbortSystemShutdown WINELIB_NAME_AW(AbortSystemShutdown)
...
...
include/winuser.h
View file @
d921c5d4
...
@@ -2526,6 +2526,7 @@ typedef struct
...
@@ -2526,6 +2526,7 @@ typedef struct
#define EWX_REBOOT 2
#define EWX_REBOOT 2
#define EWX_FORCE 4
#define EWX_FORCE 4
#define EWX_POWEROFF 8
#define EWX_POWEROFF 8
#define EWX_FORCEIFHUNG 16
/* SetLastErrorEx types */
/* SetLastErrorEx types */
#define SLE_ERROR 0x00000001
#define SLE_ERROR 0x00000001
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment