mirror of
https://github.com/reactos/reactos.git
synced 2025-05-17 16:27:00 +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 * File2;
|
||||
|
|
|
@ -18,16 +18,8 @@
|
|||
* 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 <windows.h>
|
||||
#include <commctrl.h>
|
||||
#include <shellapi.h>
|
||||
#include <stdlib.h>
|
||||
#include <tchar.h>
|
||||
#include <process.h>
|
||||
#include <stdio.h>
|
||||
#include <regedit.h>
|
||||
|
||||
#include "main.h"
|
||||
|
||||
void ShowAboutBox(HWND hWnd)
|
||||
{
|
||||
|
|
|
@ -18,14 +18,7 @@
|
|||
* 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 <windows.h>
|
||||
#include <commctrl.h>
|
||||
#include <tchar.h>
|
||||
#include <stdio.h>
|
||||
|
||||
#include "main.h"
|
||||
#include "regproc.h"
|
||||
#include <regedit.h>
|
||||
|
||||
ChildWnd* g_pChildWnd;
|
||||
HBITMAP SizingPattern = 0;
|
||||
|
|
|
@ -18,24 +18,7 @@
|
|||
* 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 <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"
|
||||
|
||||
#include <regedit.h>
|
||||
|
||||
typedef enum _EDIT_MODE
|
||||
{
|
||||
|
|
|
@ -17,20 +17,7 @@
|
|||
*/
|
||||
|
||||
|
||||
#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 <objsel.h>
|
||||
#include <objbase.h>
|
||||
#include <ole2.h>
|
||||
|
||||
#include "main.h"
|
||||
#include "regproc.h"
|
||||
#include <regedit.h>
|
||||
|
||||
static TCHAR s_szFindWhat[256];
|
||||
static const TCHAR s_szFindFlags[] = _T("FindFlags");
|
||||
|
|
|
@ -18,20 +18,7 @@
|
|||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#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 <objsel.h>
|
||||
#include <objbase.h>
|
||||
#include <ole2.h>
|
||||
|
||||
#include "main.h"
|
||||
#include "regproc.h"
|
||||
#include <regedit.h>
|
||||
|
||||
/********************************************************************************
|
||||
* Global and Local Variables:
|
||||
|
|
|
@ -18,16 +18,7 @@
|
|||
* 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 <windows.h>
|
||||
#include <commctrl.h>
|
||||
#include <stdlib.h>
|
||||
#include <stdio.h>
|
||||
#include <tchar.h>
|
||||
#include <zmouse.h>
|
||||
|
||||
#include "hexedit.h"
|
||||
|
||||
#include <regedit.h>
|
||||
typedef struct
|
||||
{
|
||||
HWND hWndSelf;
|
||||
|
|
|
@ -18,16 +18,8 @@
|
|||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#include <windows.h>
|
||||
#include <windowsx.h>
|
||||
#include <commctrl.h>
|
||||
#include <stdlib.h>
|
||||
#include <tchar.h>
|
||||
#include <process.h>
|
||||
#include <stdio.h>
|
||||
#include <regedit.h>
|
||||
|
||||
#include "main.h"
|
||||
#include "regproc.h"
|
||||
|
||||
#define CX_ICON 16
|
||||
#define CY_ICON 16
|
||||
|
|
|
@ -18,23 +18,7 @@
|
|||
* 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 <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"
|
||||
#include <regedit.h>
|
||||
|
||||
BOOL ProcessCmdLine(LPSTR lpCmdLine);
|
||||
|
||||
|
|
|
@ -18,10 +18,8 @@
|
|||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#include <ctype.h>
|
||||
#include <stdio.h>
|
||||
#include <windows.h>
|
||||
#include "regproc.h"
|
||||
#include <regedit.h>
|
||||
|
||||
|
||||
static const char *usage =
|
||||
"Usage:\n"
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
<file>security.c</file>
|
||||
<file>treeview.c</file>
|
||||
<file>regedit.rc</file>
|
||||
<pch>regedit.h</pch>
|
||||
</module>
|
||||
<directory name="clb">
|
||||
<xi:include href="clb/clb.xml" />
|
||||
|
|
|
@ -20,18 +20,7 @@
|
|||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#include <limits.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"
|
||||
#include <regedit.h>
|
||||
|
||||
#define REG_VAL_BUF_SIZE 4096
|
||||
|
||||
|
|
|
@ -18,21 +18,12 @@
|
|||
* 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
|
||||
#include <windows.h>
|
||||
#include <tchar.h>
|
||||
#include <stdlib.h>
|
||||
#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"
|
||||
#include <guiddef.h>
|
||||
|
||||
DEFINE_GUID(IID_CRegKeySecurity, 0x965fc360, 0x16ff, 0x11d0, 0x0091, 0xcb,0x00,0xaa,0x00,0xbb,0xb7,0x23);
|
||||
|
||||
/******************************************************************************
|
||||
Implementation of the CRegKeySecurity interface
|
||||
|
|
|
@ -7,8 +7,6 @@ InitializeAclUiDll(VOID);
|
|||
VOID
|
||||
UnloadAclUiDll(VOID);
|
||||
|
||||
DEFINE_GUID(IID_CRegKeySecurity, 0x965fc360, 0x16ff, 0x11d0, 0x0091, 0xcb,0x00,0xaa,0x00,0xbb,0xb7,0x23);
|
||||
|
||||
/******************************************************************************
|
||||
CRegKeySecurity
|
||||
******************************************************************************/
|
||||
|
|
|
@ -18,20 +18,7 @@
|
|||
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||
*/
|
||||
|
||||
#define WIN32_LEAN_AND_MEAN /* Exclude rarely-used stuff from Windows headers */
|
||||
|
||||
#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"
|
||||
#include <regedit.h>
|
||||
|
||||
/* Global variables and constants */
|
||||
/* 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.cChildren = dwChildren;
|
||||
tvi.lParam = (LPARAM)hKey;
|
||||
tvins.DUMMYUNIONNAME.item = tvi;
|
||||
tvins.item = tvi;
|
||||
tvins.hInsertAfter = (HTREEITEM)(hKey ? TVI_LAST : TVI_FIRST);
|
||||
tvins.hParent = hParent;
|
||||
return TreeView_InsertItem(hwndTV, &tvins);
|
||||
|
@ -389,7 +376,7 @@ static BOOL InitTreeViewItems(HWND hwndTV, LPTSTR pHostName)
|
|||
tvi.cChildren = 5;
|
||||
/* Save the heading level in the item's application-defined data area. */
|
||||
tvi.lParam = (LPARAM)NULL;
|
||||
tvins.DUMMYUNIONNAME.item = tvi;
|
||||
tvins.item = tvi;
|
||||
tvins.hInsertAfter = (HTREEITEM)TVI_FIRST;
|
||||
tvins.hParent = TVI_ROOT;
|
||||
/* Add the item to the tree view control. */
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
#include <windows.h>
|
||||
#include <conio.h>
|
||||
#include <stdio.h>
|
||||
#include <tchar.h>
|
||||
|
||||
|
|
|
@ -13,4 +13,5 @@
|
|||
<file>delete.c</file>
|
||||
<file>usage.c</file>
|
||||
<file>sc.rc</file>
|
||||
<pch>sc.h</pch>
|
||||
</module>
|
||||
|
|
|
@ -8,7 +8,6 @@
|
|||
* Ged Murphy 20/10/05 Created
|
||||
*
|
||||
*/
|
||||
#include <conio.h>
|
||||
#include "sc.h"
|
||||
|
||||
INT MainUsage(VOID)
|
||||
|
|
|
@ -20,4 +20,5 @@
|
|||
<file>servman.c</file>
|
||||
</compilationunit>
|
||||
<file>servman.rc</file>
|
||||
<pch>servman.h</pch>
|
||||
</module>
|
||||
|
|
|
@ -30,14 +30,11 @@
|
|||
#include <userenv.h>
|
||||
#include <tchar.h>
|
||||
|
||||
#define NTOS_MODE_USER
|
||||
#include <ndk/ntndk.h>
|
||||
|
||||
#define NDEBUG
|
||||
#include <debug.h>
|
||||
|
||||
|
||||
typedef DWORD STDCALL (*PINSTALL_REACTOS)(HINSTANCE hInstance);
|
||||
typedef DWORD (STDCALL *PINSTALL_REACTOS)(HINSTANCE hInstance);
|
||||
|
||||
|
||||
/* FUNCTIONS ****************************************************************/
|
||||
|
|
|
@ -31,8 +31,9 @@
|
|||
|
||||
#define WIN32_NO_STATUS
|
||||
#include <windows.h>
|
||||
#define NTOS_MODE_USER
|
||||
#include <ndk/ntndk.h>
|
||||
#include <lpctypes.h>
|
||||
#include <lpcfuncs.h>
|
||||
#include <rtlfuncs.h>
|
||||
|
||||
#include <sm/helper.h>
|
||||
|
||||
|
|
Loading…
Reference in a new issue