-/* $Id: dllmain.c,v 1.6 2002/09/08 10:22:36 chorns Exp $
+/* $Id: dllmain.c,v 1.7 2003/02/02 19:26:07 hyperion Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
#define NDEBUG
#include <debug.h>
+extern BOOL RegInitialize(VOID);
+extern BOOL RegCleanup(VOID);
INT STDCALL
DllMain(PVOID hinstDll,
-/* $Id: shutdown.c,v 1.8 2003/02/02 17:20:51 ekohl Exp $
+/* $Id: shutdown.c,v 1.9 2003/02/02 19:27:16 hyperion Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
STDCALL
AbortSystemShutdownW(LPCWSTR lpMachineName)
{
- NTSTATUS Status;
-
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
return FALSE;
}
-/* $Id: reg.c,v 1.21 2002/12/08 16:14:28 robd Exp $
+/* $Id: reg.c,v 1.22 2003/02/02 19:27:16 hyperion Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
/* FUNCTIONS *****************************************************************/
-inline RegiTerminateWideString(LPWSTR String, DWORD Length)
+inline void RegiTerminateWideString(LPWSTR String, DWORD Length)
{
LPWSTR AfterString = String + Length;
*AfterString = 0;
-/* $Id: scm.c,v 1.15 2002/12/27 14:40:03 robd Exp $
+/* $Id: scm.c,v 1.16 2003/02/02 19:27:16 hyperion Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
#define NTOS_MODE_USER
#include <ntos.h>
#include <windows.h>
+#include <wchar.h>
#include <tchar.h>
#define DBG
-/* $Id: sctrl.c,v 1.8 2002/11/14 18:21:04 chorns Exp $
+/* $Id: sctrl.c,v 1.9 2003/02/02 19:27:17 hyperion Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
#define NTOS_MODE_USER
#include <ntos.h>
#include <windows.h>
+#include <string.h>
+#include <wchar.h>
#define NDEBUG
#include <debug.h>
static ULONG ActiveServiceCount;
static PACTIVE_SERVICE ActiveServices;
-static PHANDLE ActiveServicesThreadHandles;
+/* static PHANDLE ActiveServicesThreadHandles; */ /* uncomment when in use */
/* FUNCTIONS *****************************************************************/
StartServiceCtrlDispatcherW(LPSERVICE_TABLE_ENTRYW lpServiceStartTable)
{
ULONG i;
- HANDLE h;
- DWORD Tid;
- DWORD r;
HANDLE hPipe;
DWORD dwError;
}
dwError = ScConnectControlPipe(&hPipe);
- if (dwError = ERROR_SUCCESS)
+ if (dwError == ERROR_SUCCESS)
{
/* FIXME: free the service table */
return(FALSE);
CONST RECT *a0
)
{
- return W32kCreateRectRgnIndirect(a0);
+ return W32kCreateRectRgnIndirect((RECT *)a0);
}
#endif
#undef WIN32_LEAN_AND_MEAN
+#include <string.h>
#include <windows.h>
#include <ddk/ntddk.h>
#include <win32k/kapi.h>
ANSI_STRING StringA;
UNICODE_STRING StringU;
HFONT ret;
- LOGFONT tlf;
RtlInitAnsiString(&StringA, (LPSTR)Face);
RtlAnsiStringToUnicodeString(&StringU, &StringA, TRUE);
* REVISIONS:
* CSH 01/09-2000 Created
*/
+#include <string.h>
#include <msafd.h>
#include <helpers.h>
* REVISIONS:
* CSH 01/09-2000 Created
*/
+#include <string.h>
#include <msafd.h>
INT
-/* $Id: win32.c,v 1.4 2002/08/31 17:11:24 hyperion Exp $
+/* $Id: win32.c,v 1.5 2003/02/02 19:26:08 hyperion Exp $
*/
/*
* COPYRIGHT: See COPYING in the top level directory
}
/* exported interface */
+/*
+ @brief Enumerate the process identifiers of the currently active processes
+
+ @param lpidProcess Array that receives the list of process identifiers
+ @param cb Size of the @p lpidProcess array, in bytes
+ @param lpcbNeeded Number of bytes returned in the @p lpidProcess array
+
+ @return [standard]
+ */
BOOL STDCALL EnumProcesses
(
DWORD *lpidProcess,
{
PLIST_ENTRY CurrentEntry;
PCATALOG_ENTRY Provider;
- UINT i;
WS_DbgPrint(MAX_TRACE, ("CatalogEntryId (%d).\n", CatalogEntryId));
PCATALOG_ENTRY Provider;
INT Count;
INT Errno;
- ULONG i;
WS_DbgPrint(MAX_TRACE, ("readfds (0x%X) writefds (0x%X) exceptfds (0x%X).\n",
readfds, writefds, exceptfds));
PCATALOG_ENTRY Provider;
INT Status;
INT Errno;
- LONG i;
if (!WSAINITIALIZED) {
WSASetLastError(WSANOTINITIALISED);
*/
#include <ws2_32.h>
#include <catalog.h>
+#include <handle.h>
INT
EXPORT
*/
#include <ws2_32.h>
#include <catalog.h>
+#include <handle.h>
BOOL
WSPAPI
}
Socket = (SOCKET)CreateProviderHandle(
- ProposedHandle,
+ (HANDLE)ProposedHandle,
Provider);
*lpErrno = NO_ERROR;