Build eventlog, umpnpmgr, rpcss with NDK

svn path=/trunk/; revision=16252
This commit is contained in:
Alex Ionescu 2005-06-24 01:31:23 +00:00
parent 64016b704d
commit 7f2ec8aa5d
7 changed files with 42 additions and 22 deletions

View file

@ -734,7 +734,34 @@ typedef VOID NTAPI
typedef struct _OBJECT_NAME_INFORMATION
{
UNICODE_STRING Name;
} OBJECT_NAME_INFORMATION, *POBJECT_NAME_INFORMATION;
} OBJECT_NAME_INFORMATION, *POBJECT_NAME_INFORMATION;
typedef struct _IO_ERROR_LOG_PACKET
{
UCHAR MajorFunctionCode;
UCHAR RetryCount;
USHORT DumpDataSize;
USHORT NumberOfStrings;
USHORT StringOffset;
USHORT EventCategory;
NTSTATUS ErrorCode;
ULONG UniqueErrorValue;
NTSTATUS FinalStatus;
ULONG SequenceNumber;
ULONG IoControlCode;
LARGE_INTEGER DeviceOffset;
ULONG DumpData[1];
}IO_ERROR_LOG_PACKET, *PIO_ERROR_LOG_PACKET;
typedef struct _IO_ERROR_LOG_MESSAGE
{
USHORT Type;
USHORT Size;
USHORT DriverNameLength;
LARGE_INTEGER TimeStamp;
ULONG DriverNameOffset;
IO_ERROR_LOG_PACKET EntryData;
} IO_ERROR_LOG_MESSAGE, *PIO_ERROR_LOG_MESSAGE;
typedef struct _CLIENT_ID
{

View file

@ -106,7 +106,7 @@ typedef struct _PLUGPLAY_EVENT_BLOCK {
PULONG Result;
ULONG Flags;
ULONG TotalSize;
PDEVICE_OBJECT DeviceObject;
PVOID DeviceObject;
union {
struct {
GUID ClassGuid;

View file

@ -144,6 +144,8 @@ typedef struct _OBJECT_DIRECTORY {
ULONG SessionId;
} OBJECT_DIRECTORY, *POBJECT_DIRECTORY;
#endif /* __USE_W32API */
typedef struct _DEVICE_MAP {
POBJECT_DIRECTORY DosDevicesDirectory;
POBJECT_DIRECTORY GlobalDosDevicesDirectory;
@ -152,8 +154,6 @@ typedef struct _DEVICE_MAP {
UCHAR DriveType[32];
} DEVICE_MAP, *PDEVICE_MAP;
#endif /* __USE_W32API */
extern POBJECT_TYPE ObDirectoryType;
extern PDEVICE_MAP ObSystemDeviceMap;

View file

@ -26,10 +26,9 @@
/* INCLUDES *****************************************************************/
#define NTOS_MODE_USER
#include <ntos.h>
#include <windows.h>
#include <stdio.h>
#define NTOS_MODE_USER
#include <ndk/ntndk.h>
#include "eventlog.h"

View file

@ -26,10 +26,9 @@
/* INCLUDES *****************************************************************/
#define NTOS_MODE_USER
#include <ntos.h>
#include <windows.h>
#include <string.h>
#define NTOS_MODE_USER
#include <ndk/ntndk.h>
#include "eventlog.h"

View file

@ -29,10 +29,9 @@
#define UNICODE
#define NTOS_MODE_USER
#include <ntos.h>
#include <windows.h>
#include <stdio.h>
#define NTOS_MODE_USER
#include <ndk/ntndk.h>
#include "rpcss.h"
//#include "services.h"

View file

@ -27,24 +27,20 @@
/* INCLUDES *****************************************************************/
#define NTOS_MODE_USER
#include <ntos.h>
#include <ntos/ntpnp.h>
#include <ddk/wdmguid.h>
#include <windows.h>
#include <tchar.h>
#include <stdio.h>
#define NTOS_MODE_USER
#include <ndk/ntndk.h>
#include <ddk/wdmguid.h>
#include <rpc.h>
#include <rpcdce.h>
#include <ntos/ntpnp.h>
#include "pnp_c.h"
#define NDEBUG
#include <debug.h>
/* GLOBALS ******************************************************************/
static VOID CALLBACK
@ -52,7 +48,7 @@ ServiceMain(DWORD argc, LPTSTR *argv);
static SERVICE_TABLE_ENTRY ServiceTable[2] =
{
{_T("PlugPlay"), ServiceMain},
{TEXT("PlugPlay"), ServiceMain},
{NULL, NULL}
};