You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
78 lines
1.9 KiB
78 lines
1.9 KiB
//+-------------------------------------------------------------------------
|
|
//
|
|
// Microsoft Windows
|
|
//
|
|
// Copyright (C) Microsoft Corporation, 1996 - 1999
|
|
//
|
|
// File: rshx32.h
|
|
//
|
|
// Remote administration shell extension.
|
|
//
|
|
//--------------------------------------------------------------------------
|
|
|
|
#ifndef _RSHX32_H_
|
|
#define _RSHX32_H_
|
|
|
|
#ifndef UNICODE
|
|
#error "No ANSI support yet"
|
|
#endif
|
|
|
|
extern "C"
|
|
{
|
|
#include <nt.h> // for SE_TAKE_OWNERSHIP_PRIVILEGE, etc
|
|
#include <ntrtl.h>
|
|
#include <nturtl.h>
|
|
#include <seopaque.h> // RtlObjectAceSid, etc.
|
|
#include <sertlp.h> // RtlpOwnerAddrSecurityDescriptor, etc.
|
|
}
|
|
|
|
#define INC_OLE2
|
|
#include <windows.h>
|
|
#include "resource.h" // resource IDs
|
|
|
|
#ifndef RC_INVOKED
|
|
|
|
#include <winspool.h>
|
|
#include <shellapi.h> // HDROP, ShellExecuteEx
|
|
#include <shlobj.h> // CF_IDLIST
|
|
#include <shlwapi.h> // StrChr
|
|
#include <commctrl.h> // property page stuff
|
|
#include <comctrlp.h> // DPA
|
|
#include <aclapi.h>
|
|
#include <aclui.h>
|
|
#include <common.h>
|
|
#include "cstrings.h"
|
|
#include "util.h"
|
|
extern "C"
|
|
{
|
|
#include "authz.h"
|
|
}
|
|
#include "ntfssi.h"
|
|
#include "printsi.h"
|
|
|
|
|
|
#include <shlobjp.h> // ILCombine
|
|
|
|
|
|
#define ALL_SECURITY_ACCESS (READ_CONTROL | WRITE_DAC | WRITE_OWNER | ACCESS_SYSTEM_SECURITY)
|
|
|
|
// Magic debug flags
|
|
#define TRACE_RSHX32 0x00000001
|
|
#define TRACE_SI 0x00000002
|
|
#define TRACE_NTFSSI 0x00000004
|
|
#define TRACE_PRINTSI 0x00000008
|
|
#define TRACE_UTIL 0x00000010
|
|
#define TRACE_NTFSCOMPARE 0x00000020
|
|
#define TRACE_ALWAYS 0xffffffff // use with caution
|
|
|
|
//
|
|
// Global variables
|
|
//
|
|
extern HINSTANCE g_hInstance;
|
|
extern LONG g_cRefThisDll;
|
|
extern CLIPFORMAT g_cfShellIDList;
|
|
extern CLIPFORMAT g_cfPrinterGroup;
|
|
extern CLIPFORMAT g_cfMountedVolume;
|
|
|
|
#endif // RC_INVOKED
|
|
#endif // _RSHX32_H_
|