mirror of
https://github.com/reactos/reactos.git
synced 2025-05-18 00:31:27 +00:00
- Get autochk, calc, cmd, devmgr, expand, format, gettype, hostname, lsass, msconfig, msiexec, notepad, reactos, regedit, regsvr32, reporterror, rundll32, sc, services, servman, setup, sm, sndvol32 compiling on MSVC.
- PCHify some things. - Reduce NDK usage. svn path=/trunk/; revision=20703
This commit is contained in:
parent
4df19f8aaa
commit
d0b4d13b4f
21 changed files with 28 additions and 155 deletions
|
@ -475,7 +475,7 @@ VOID FindPrefixAndSuffix(LPTSTR strIN, LPTSTR szPrefix, LPTSTR szSuffix)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
int compare(const void *arg1,const void *arg2)
|
int __cdecl compare(const void *arg1,const void *arg2)
|
||||||
{
|
{
|
||||||
FileName * File1;
|
FileName * File1;
|
||||||
FileName * File2;
|
FileName * File2;
|
||||||
|
|
|
@ -18,16 +18,8 @@
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define WIN32_LEAN_AND_MEAN /* Exclude rarely-used stuff from Windows headers */
|
#include <regedit.h>
|
||||||
#include <windows.h>
|
|
||||||
#include <commctrl.h>
|
|
||||||
#include <shellapi.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <tchar.h>
|
|
||||||
#include <process.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
#include "main.h"
|
|
||||||
|
|
||||||
void ShowAboutBox(HWND hWnd)
|
void ShowAboutBox(HWND hWnd)
|
||||||
{
|
{
|
||||||
|
|
|
@ -18,14 +18,7 @@
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define WIN32_LEAN_AND_MEAN /* Exclude rarely-used stuff from Windows headers */
|
#include <regedit.h>
|
||||||
#include <windows.h>
|
|
||||||
#include <commctrl.h>
|
|
||||||
#include <tchar.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
#include "main.h"
|
|
||||||
#include "regproc.h"
|
|
||||||
|
|
||||||
ChildWnd* g_pChildWnd;
|
ChildWnd* g_pChildWnd;
|
||||||
HBITMAP SizingPattern = 0;
|
HBITMAP SizingPattern = 0;
|
||||||
|
|
|
@ -18,24 +18,7 @@
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define WIN32_LEAN_AND_MEAN /* Exclude rarely-used stuff from Windows headers */
|
#include <regedit.h>
|
||||||
|
|
||||||
#include <windows.h>
|
|
||||||
#include <tchar.h>
|
|
||||||
#include <commctrl.h>
|
|
||||||
#include <commdlg.h>
|
|
||||||
#include <cderr.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <shellapi.h>
|
|
||||||
#include <ctype.h>
|
|
||||||
#include <shlwapi.h>
|
|
||||||
|
|
||||||
#include "main.h"
|
|
||||||
#include "regproc.h"
|
|
||||||
#include "resource.h"
|
|
||||||
#include "hexedit.h"
|
|
||||||
|
|
||||||
|
|
||||||
typedef enum _EDIT_MODE
|
typedef enum _EDIT_MODE
|
||||||
{
|
{
|
||||||
|
|
|
@ -17,20 +17,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include <windows.h>
|
#include <regedit.h>
|
||||||
#include <tchar.h>
|
|
||||||
#include <commctrl.h>
|
|
||||||
#include <commdlg.h>
|
|
||||||
#include <cderr.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <shellapi.h>
|
|
||||||
#include <objsel.h>
|
|
||||||
#include <objbase.h>
|
|
||||||
#include <ole2.h>
|
|
||||||
|
|
||||||
#include "main.h"
|
|
||||||
#include "regproc.h"
|
|
||||||
|
|
||||||
static TCHAR s_szFindWhat[256];
|
static TCHAR s_szFindWhat[256];
|
||||||
static const TCHAR s_szFindFlags[] = _T("FindFlags");
|
static const TCHAR s_szFindFlags[] = _T("FindFlags");
|
||||||
|
|
|
@ -18,20 +18,7 @@
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <windows.h>
|
#include <regedit.h>
|
||||||
#include <tchar.h>
|
|
||||||
#include <commctrl.h>
|
|
||||||
#include <commdlg.h>
|
|
||||||
#include <cderr.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <shellapi.h>
|
|
||||||
#include <objsel.h>
|
|
||||||
#include <objbase.h>
|
|
||||||
#include <ole2.h>
|
|
||||||
|
|
||||||
#include "main.h"
|
|
||||||
#include "regproc.h"
|
|
||||||
|
|
||||||
/********************************************************************************
|
/********************************************************************************
|
||||||
* Global and Local Variables:
|
* Global and Local Variables:
|
||||||
|
|
|
@ -18,16 +18,7 @@
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define WIN32_LEAN_AND_MEAN /* Exclude rarely-used stuff from Windows headers */
|
#include <regedit.h>
|
||||||
#include <windows.h>
|
|
||||||
#include <commctrl.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <tchar.h>
|
|
||||||
#include <zmouse.h>
|
|
||||||
|
|
||||||
#include "hexedit.h"
|
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
HWND hWndSelf;
|
HWND hWndSelf;
|
||||||
|
|
|
@ -18,16 +18,8 @@
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <windows.h>
|
#include <regedit.h>
|
||||||
#include <windowsx.h>
|
|
||||||
#include <commctrl.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <tchar.h>
|
|
||||||
#include <process.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
|
|
||||||
#include "main.h"
|
|
||||||
#include "regproc.h"
|
|
||||||
|
|
||||||
#define CX_ICON 16
|
#define CX_ICON 16
|
||||||
#define CY_ICON 16
|
#define CY_ICON 16
|
||||||
|
|
|
@ -18,23 +18,7 @@
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define WIN32_LEAN_AND_MEAN /* Exclude rarely-used stuff from Windows headers */
|
#include <regedit.h>
|
||||||
#include <windows.h>
|
|
||||||
#include <commctrl.h>
|
|
||||||
#include <accctrl.h>
|
|
||||||
#include <unknwn.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <tchar.h>
|
|
||||||
#include <process.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <fcntl.h>
|
|
||||||
#include <aclui.h>
|
|
||||||
#include <cguid.h>
|
|
||||||
|
|
||||||
#include "main.h"
|
|
||||||
#include "hexedit.h"
|
|
||||||
#include "security.h"
|
|
||||||
#include "regproc.h"
|
|
||||||
|
|
||||||
BOOL ProcessCmdLine(LPSTR lpCmdLine);
|
BOOL ProcessCmdLine(LPSTR lpCmdLine);
|
||||||
|
|
||||||
|
|
|
@ -18,10 +18,8 @@
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <ctype.h>
|
#include <regedit.h>
|
||||||
#include <stdio.h>
|
|
||||||
#include <windows.h>
|
|
||||||
#include "regproc.h"
|
|
||||||
|
|
||||||
static const char *usage =
|
static const char *usage =
|
||||||
"Usage:\n"
|
"Usage:\n"
|
||||||
|
|
|
@ -29,6 +29,7 @@
|
||||||
<file>security.c</file>
|
<file>security.c</file>
|
||||||
<file>treeview.c</file>
|
<file>treeview.c</file>
|
||||||
<file>regedit.rc</file>
|
<file>regedit.rc</file>
|
||||||
|
<pch>regedit.h</pch>
|
||||||
</module>
|
</module>
|
||||||
<directory name="clb">
|
<directory name="clb">
|
||||||
<xi:include href="clb/clb.xml" />
|
<xi:include href="clb/clb.xml" />
|
||||||
|
|
|
@ -20,18 +20,7 @@
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <limits.h>
|
#include <regedit.h>
|
||||||
#include <stdio.h>
|
|
||||||
#include <ctype.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <windows.h>
|
|
||||||
#include <winnt.h>
|
|
||||||
#include <winreg.h>
|
|
||||||
#include <assert.h>
|
|
||||||
#include <tchar.h>
|
|
||||||
#include <malloc.h>
|
|
||||||
#include <shlwapi.h>
|
|
||||||
#include "regproc.h"
|
|
||||||
|
|
||||||
#define REG_VAL_BUF_SIZE 4096
|
#define REG_VAL_BUF_SIZE 4096
|
||||||
|
|
||||||
|
|
|
@ -18,21 +18,12 @@
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define WIN32_LEAN_AND_MEAN /* Exclude rarely-used stuff from Windows headers */
|
#include <regedit.h>
|
||||||
|
|
||||||
#define INITGUID
|
#define INITGUID
|
||||||
#include <windows.h>
|
#include <guiddef.h>
|
||||||
#include <tchar.h>
|
|
||||||
#include <stdlib.h>
|
DEFINE_GUID(IID_CRegKeySecurity, 0x965fc360, 0x16ff, 0x11d0, 0x0091, 0xcb,0x00,0xaa,0x00,0xbb,0xb7,0x23);
|
||||||
#include <stdio.h>
|
|
||||||
#include <accctrl.h>
|
|
||||||
#include <objbase.h>
|
|
||||||
#include <basetyps.h>
|
|
||||||
#include <unknwn.h>
|
|
||||||
#include <aclui.h>
|
|
||||||
#include <cguid.h>
|
|
||||||
#include "security.h"
|
|
||||||
#include "regproc.h"
|
|
||||||
#include "resource.h"
|
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
Implementation of the CRegKeySecurity interface
|
Implementation of the CRegKeySecurity interface
|
||||||
|
|
|
@ -7,8 +7,6 @@ InitializeAclUiDll(VOID);
|
||||||
VOID
|
VOID
|
||||||
UnloadAclUiDll(VOID);
|
UnloadAclUiDll(VOID);
|
||||||
|
|
||||||
DEFINE_GUID(IID_CRegKeySecurity, 0x965fc360, 0x16ff, 0x11d0, 0x0091, 0xcb,0x00,0xaa,0x00,0xbb,0xb7,0x23);
|
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
CRegKeySecurity
|
CRegKeySecurity
|
||||||
******************************************************************************/
|
******************************************************************************/
|
||||||
|
|
|
@ -18,20 +18,7 @@
|
||||||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define WIN32_LEAN_AND_MEAN /* Exclude rarely-used stuff from Windows headers */
|
#include <regedit.h>
|
||||||
|
|
||||||
#define NONAMELESSUNION
|
|
||||||
#define NONAMELESSSTRUCT
|
|
||||||
#include <windows.h>
|
|
||||||
#include <commctrl.h>
|
|
||||||
#include <stdlib.h>
|
|
||||||
#include <tchar.h>
|
|
||||||
#include <process.h>
|
|
||||||
#include <stdio.h>
|
|
||||||
#include <string.h>
|
|
||||||
#include <tchar.h>
|
|
||||||
|
|
||||||
#include "main.h"
|
|
||||||
|
|
||||||
/* Global variables and constants */
|
/* Global variables and constants */
|
||||||
/* Image_Open, Image_Closed, and Image_Root - integer variables for indexes of the images. */
|
/* Image_Open, Image_Closed, and Image_Root - integer variables for indexes of the images. */
|
||||||
|
@ -133,7 +120,7 @@ static HTREEITEM AddEntryToTree(HWND hwndTV, HTREEITEM hParent, LPTSTR label, HK
|
||||||
tvi.iSelectedImage = Image_Open;
|
tvi.iSelectedImage = Image_Open;
|
||||||
tvi.cChildren = dwChildren;
|
tvi.cChildren = dwChildren;
|
||||||
tvi.lParam = (LPARAM)hKey;
|
tvi.lParam = (LPARAM)hKey;
|
||||||
tvins.DUMMYUNIONNAME.item = tvi;
|
tvins.item = tvi;
|
||||||
tvins.hInsertAfter = (HTREEITEM)(hKey ? TVI_LAST : TVI_FIRST);
|
tvins.hInsertAfter = (HTREEITEM)(hKey ? TVI_LAST : TVI_FIRST);
|
||||||
tvins.hParent = hParent;
|
tvins.hParent = hParent;
|
||||||
return TreeView_InsertItem(hwndTV, &tvins);
|
return TreeView_InsertItem(hwndTV, &tvins);
|
||||||
|
@ -389,7 +376,7 @@ static BOOL InitTreeViewItems(HWND hwndTV, LPTSTR pHostName)
|
||||||
tvi.cChildren = 5;
|
tvi.cChildren = 5;
|
||||||
/* Save the heading level in the item's application-defined data area. */
|
/* Save the heading level in the item's application-defined data area. */
|
||||||
tvi.lParam = (LPARAM)NULL;
|
tvi.lParam = (LPARAM)NULL;
|
||||||
tvins.DUMMYUNIONNAME.item = tvi;
|
tvins.item = tvi;
|
||||||
tvins.hInsertAfter = (HTREEITEM)TVI_FIRST;
|
tvins.hInsertAfter = (HTREEITEM)TVI_FIRST;
|
||||||
tvins.hParent = TVI_ROOT;
|
tvins.hParent = TVI_ROOT;
|
||||||
/* Add the item to the tree view control. */
|
/* Add the item to the tree view control. */
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
#include <conio.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
#include <tchar.h>
|
#include <tchar.h>
|
||||||
|
|
||||||
|
|
|
@ -13,4 +13,5 @@
|
||||||
<file>delete.c</file>
|
<file>delete.c</file>
|
||||||
<file>usage.c</file>
|
<file>usage.c</file>
|
||||||
<file>sc.rc</file>
|
<file>sc.rc</file>
|
||||||
|
<pch>sc.h</pch>
|
||||||
</module>
|
</module>
|
||||||
|
|
|
@ -8,7 +8,6 @@
|
||||||
* Ged Murphy 20/10/05 Created
|
* Ged Murphy 20/10/05 Created
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
#include <conio.h>
|
|
||||||
#include "sc.h"
|
#include "sc.h"
|
||||||
|
|
||||||
INT MainUsage(VOID)
|
INT MainUsage(VOID)
|
||||||
|
|
|
@ -20,4 +20,5 @@
|
||||||
<file>servman.c</file>
|
<file>servman.c</file>
|
||||||
</compilationunit>
|
</compilationunit>
|
||||||
<file>servman.rc</file>
|
<file>servman.rc</file>
|
||||||
|
<pch>servman.h</pch>
|
||||||
</module>
|
</module>
|
||||||
|
|
|
@ -30,14 +30,11 @@
|
||||||
#include <userenv.h>
|
#include <userenv.h>
|
||||||
#include <tchar.h>
|
#include <tchar.h>
|
||||||
|
|
||||||
#define NTOS_MODE_USER
|
|
||||||
#include <ndk/ntndk.h>
|
|
||||||
|
|
||||||
#define NDEBUG
|
#define NDEBUG
|
||||||
#include <debug.h>
|
#include <debug.h>
|
||||||
|
|
||||||
|
|
||||||
typedef DWORD STDCALL (*PINSTALL_REACTOS)(HINSTANCE hInstance);
|
typedef DWORD (STDCALL *PINSTALL_REACTOS)(HINSTANCE hInstance);
|
||||||
|
|
||||||
|
|
||||||
/* FUNCTIONS ****************************************************************/
|
/* FUNCTIONS ****************************************************************/
|
||||||
|
|
|
@ -31,8 +31,9 @@
|
||||||
|
|
||||||
#define WIN32_NO_STATUS
|
#define WIN32_NO_STATUS
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#define NTOS_MODE_USER
|
#include <lpctypes.h>
|
||||||
#include <ndk/ntndk.h>
|
#include <lpcfuncs.h>
|
||||||
|
#include <rtlfuncs.h>
|
||||||
|
|
||||||
#include <sm/helper.h>
|
#include <sm/helper.h>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue