-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
23 changed files
with
1,526 additions
and
620 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#include <windows.h> | ||
#include "resource.h" | ||
|
||
#ifndef _ClassicShutdown_ | ||
#define _ClassicShutdown_ | ||
|
||
extern HWND g_hDesktopWnd, g_hDlg; | ||
extern HBITMAP g_hbDesktop; | ||
extern HINSTANCE g_hAppInstance, g_hShell32; | ||
extern BOOL g_bLogoff; | ||
extern LPDWORD g_dwRes; | ||
|
||
typedef enum tagSHUTDOWNSTYLE | ||
{ | ||
SS_CLASSIC, | ||
SS_XPCLASSIC, | ||
SS_XPFRIENDLY | ||
} SHUTDOWNSTYLE; | ||
|
||
extern SHUTDOWNSTYLE g_ssStyle; | ||
|
||
void PositionDlg(HWND hDlg); | ||
void HandleShutdown(HWND hWnd, DWORD dwCode); | ||
|
||
#define IsXP(ss) (ss == SS_XPCLASSIC | ss == SS_XPFRIENDLY) | ||
|
||
#define SHTDN_NONE 0 | ||
#define SHTDN_LOGOFF 1 | ||
#define SHTDN_SHUTDOWN 2 | ||
#define SHTDN_RESTART 3 | ||
#define SHTDN_STANDBY 4 | ||
#define SHTDN_LOCK 5 | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.