Author: greatlrd Date: Thu Jun 28 16:27:14 2007 New Revision: 27306
URL: http://svn.reactos.org/svn/reactos?rev=27306&view=rev Log: cleaning up ddk header file, I am aming for ddk2003sp1 3790.1830 compatible
Added: branches/ddk2003/include/ddk2003/fttypes.h (with props) branches/ddk2003/include/ddk2003/nspapip.h (with props) branches/ddk2003/include/ddk2003/rpc.h (with props) branches/ddk2003/include/ddk2003/servprov.idl (with props) branches/ddk2003/include/ddk2003/upssvc.h (with props) Removed: branches/ddk2003/include/ddk/ksdebug.h branches/ddk2003/include/ddk/upssvc.h branches/ddk2003/include/ddk/usb200.h Modified: branches/ddk2003/include/ddk2003/readme.txt
Removed: branches/ddk2003/include/ddk/ksdebug.h URL: http://svn.reactos.org/svn/reactos/branches/ddk2003/include/ddk/ksdebug.h?re... ============================================================================== --- branches/ddk2003/include/ddk/ksdebug.h (original) +++ branches/ddk2003/include/ddk/ksdebug.h (removed) @@ -1,116 +1,0 @@ - -#if !defined(_KSDEBUG_) -#define _KSDEBUG_ - -#if !defined(REMIND) -#define QUOTE(x) #x -#define QQUOTE(y) QUOTE(y) -#define REMIND(str) __FILE__ "(" QQUOTE(__LINE__) ") : " str -#endif - -#if defined(__cplusplus) -extern "C" { -#endif -#if defined(_NTDDK_) - -#define DEBUGLVL_ERROR 0 -#define DEBUGLVL_TERSE 1 -#define DEBUGLVL_VERBOSE 2 -#define DEBUGLVL_BLAB 3 - - - -#if (DBG) - -#if defined(IRPMJFUNCDESC) -static const PCHAR IrpMjFuncDesc[] = -{ - "IRP_MJ_CREATE", - "IRP_MJ_CREATE_NAMED_PIPE", - "IRP_MJ_CLOSE", - "IRP_MJ_READ", - "IRP_MJ_WRITE", - "IRP_MJ_QUERY_INFORMATION", - "IRP_MJ_SET_INFORMATION", - "IRP_MJ_QUERY_EA", - "IRP_MJ_SET_EA", - "IRP_MJ_FLUSH_BUFFERS", - "IRP_MJ_QUERY_VOLUME_INFORMATION", - "IRP_MJ_SET_VOLUME_INFORMATION", - "IRP_MJ_DIRECTORY_CONTROL", - "IRP_MJ_FILE_SYSTEM_CONTROL", - "IRP_MJ_DEVICE_CONTROL", - "IRP_MJ_INTERNAL_DEVICE_CONTROL", - "IRP_MJ_SHUTDOWN", - "IRP_MJ_LOCK_CONTROL", - "IRP_MJ_CLEANUP", - "IRP_MJ_CREATE_MAILSLOT", - "IRP_MJ_QUERY_SECURITY", - "IRP_MJ_SET_SECURITY", - "IRP_MJ_SET_POWER", - "IRP_MJ_QUERY_POWER" -}; -#endif -#endif - -#if (DBG) - #if !defined( DEBUG_LEVEL ) - #if defined( DEBUG_VARIABLE ) - #if defined( KSDEBUG_INIT ) - ULONG DEBUG_VARIABLE = DEBUGLVL_TERSE; - #else - extern ULONG DEBUG_VARIABLE; - #endif - #else - #define DEBUG_VARIABLE DEBUGLVL_TERSE - #endif - #else - #if defined( DEBUG_VARIABLE ) - #if defined( KSDEBUG_INIT ) - ULONG DEBUG_VARIABLE = DEBUG_LEVEL; - #else - extern ULONG DEBUG_VARIABLE; - #endif - #else - #define DEBUG_VARIABLE DEBUG_LEVEL - #endif - #endif - - #define _DbgPrintFEx(component, lvl, strings) \ - { \ - if ((lvl) <= DEBUG_VARIABLE)\ - {\ - DbgPrintEx(component, lvl, STR_MODULENAME);\ - DbgPrintEx(component, lvl, strings);\ - DbgPrintEx(component, lvl, "\n");\ - if ((lvl) == DEBUGLVL_ERROR)\ - {\ - DbgBreakPoint();\ - } \ - } \ - } - - #define _DbgPrintF(lvl, strings)\ - { \ - if (((lvl)==DEBUG_VARIABLE) || (lvl < DEBUG_VARIABLE))\ - {\ - DbgPrint(STR_MODULENAME);\ - DbgPrint##strings;\ - DbgPrint("\n");\ - if ((lvl) == DEBUGLVL_ERROR)\ - {\ - DbgBreakPoint();\ - } \ - } \ - } -#else - #define _DbgPrintF(lvl, strings) - #define _DbgPrintFEx(component, lvl, strings) -#endif -#endif - - -#if defined(__cplusplus) -} -#endif -#endif
Removed: branches/ddk2003/include/ddk/upssvc.h URL: http://svn.reactos.org/svn/reactos/branches/ddk2003/include/ddk/upssvc.h?rev... ============================================================================== --- branches/ddk2003/include/ddk/upssvc.h (original) +++ branches/ddk2003/include/ddk/upssvc.h (removed) @@ -1,92 +1,0 @@ -/* - * upssvc.h - * - * UPS service interface - * - * This file is part of the w32api package. - * - * Contributors: - * Created by Casper S. Hornstrup chorns@users.sourceforge.net - * - * THIS SOFTWARE IS NOT COPYRIGHTED - * - * This source code is offered for use in the public domain. You may - * use, modify or distribute it freely. - * - * This code is distributed in the hope that it will be useful but - * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY - * DISCLAIMED. This includes but is not limited to warranties of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. - * - */ - -#ifndef __UPSSVC_H -#define __UPSSVC_H - -#if __GNUC__ >=3 -#pragma GCC system_header -#endif - -#ifdef __cplusplus -extern "C" { -#endif - -#if defined(_APCUPS_) - #define UPSAPI DECLSPEC_EXPORT -#else - #define UPSAPI DECLSPEC_IMPORT -#endif - - -#define UPS_ONLINE 1 -#define UPS_ONBATTERY 2 -#define UPS_LOWBATTERY 4 -#define UPS_NOCOMM 8 -#define UPS_CRITICAL 16 - -UPSAPI -VOID -DDKAPI -UPSCancelWait(VOID); - -UPSAPI -DWORD -DDKAPI -UPSGetState(VOID); - -#define UPS_INITUNKNOWNERROR 0 -#define UPS_INITOK 1 -#define UPS_INITNOSUCHDRIVER 2 -#define UPS_INITBADINTERFACE 3 -#define UPS_INITREGISTRYERROR 4 -#define UPS_INITCOMMOPENERROR 5 -#define UPS_INITCOMMSETUPERROR 6 - -UPSAPI -DWORD -DDKAPI -UPSInit(VOID); - -UPSAPI -VOID -DDKAPI -UPSStop(VOID); - -UPSAPI -VOID -DDKAPI -UPSTurnOff( - IN DWORD aTurnOffDelay); - -UPSAPI -VOID -DDKAPI -UPSWaitForStateChange( - IN DWORD aCurrentState, - IN DWORD anInterval); - -#ifdef __cplusplus -} -#endif - -#endif /* __UPSSVC_H */
Removed: branches/ddk2003/include/ddk/usb200.h URL: http://svn.reactos.org/svn/reactos/branches/ddk2003/include/ddk/usb200.h?rev... ============================================================================== --- branches/ddk2003/include/ddk/usb200.h (original) +++ branches/ddk2003/include/ddk/usb200.h (removed) @@ -1,112 +1,0 @@ -#ifndef __USB200_H__ -#define __USB200_H__ - -#include "usb100.h" - -#include <PSHPACK1.H> - - -typedef enum _USB_DEVICE_TYPE -{ - Usb11Device = 0, - Usb20Device -} USB_DEVICE_TYPE; - -typedef enum _USB_DEVICE_SPEED -{ - UsbLowSpeed = 0, - UsbFullSpeed, - UsbHighSpeed -} USB_DEVICE_SPEED; - -typedef union _BM_REQUEST_TYPE -{ - struct _BM - { - UCHAR Recipient:2; - UCHAR Reserved:3; - UCHAR Type:2; - UCHAR Dir:1; - }; - UCHAR B; -} BM_REQUEST_TYPE, *PBM_REQUEST_TYPE; - -typedef struct _USB_DEFAULT_PIPE_SETUP_PACKET -{ - BM_REQUEST_TYPE bmRequestType; - UCHAR bRequest; - union _wValue - { - struct - { - UCHAR LowByte; - UCHAR HiByte; - }; - USHORT W; - } wValue; - union _wIndex - { - struct - { - UCHAR LowByte; - UCHAR HiByte; - }; - USHORT W; - } wIndex; - USHORT wLength; -} USB_DEFAULT_PIPE_SETUP_PACKET, *PUSB_DEFAULT_PIPE_SETUP_PACKET; - - -C_ASSERT(sizeof(USB_DEFAULT_PIPE_SETUP_PACKET) == 8); - -typedef struct _USB_DEVICE_QUALIFIER_DESCRIPTOR -{ - UCHAR bLength; - UCHAR bDescriptorType; - USHORT bcdUSB; - UCHAR bDeviceClass; - UCHAR bDeviceSubClass; - UCHAR bDeviceProtocol; - UCHAR bMaxPacketSize0; - UCHAR bNumConfigurations; - UCHAR bReserved; -} USB_DEVICE_QUALIFIER_DESCRIPTOR, *PUSB_DEVICE_QUALIFIER_DESCRIPTOR; - - -typedef union _USB_HIGH_SPEED_MAXPACKET -{ - struct _MP - { - USHORT MaxPacket:11; - USHORT HSmux:2; - USHORT Reserved:3; - }; - USHORT us; -} USB_HIGH_SPEED_MAXPACKET, *PUSB_HIGH_SPEED_MAXPACKET; - -typedef struct _USB_INTERFACE_ASSOCIATION_DESCRIPTOR -{ - UCHAR bLength; - UCHAR bDescriptorType; - UCHAR bFirstInterface; - UCHAR bInterfaceCount; - UCHAR bFunctionClass; - UCHAR bFunctionSubClass; - UCHAR bFunctionProtocol; - UCHAR iFunction; -} USB_INTERFACE_ASSOCIATION_DESCRIPTOR, *PUSB_INTERFACE_ASSOCIATION_DESCRIPTOR; - -#define USB_PORT_STATUS_CONNECT 0x0001 -#define USB_PORT_STATUS_ENABLE 0x0002 -#define USB_PORT_STATUS_SUSPEND 0x0004 -#define USB_PORT_STATUS_OVER_CURRENT 0x0008 -#define USB_PORT_STATUS_RESET 0x0010 -#define USB_PORT_STATUS_POWER 0x0100 -#define USB_PORT_STATUS_LOW_SPEED 0x0200 -#define USB_PORT_STATUS_HIGH_SPEED 0x0400 -#define USB_DEVICE_QUALIFIER_DESCRIPTOR_TYPE 0x06 -#define USB_INTERFACE_ASSOCIATION_DESCRIPTOR_TYPE 0x0B - -#include <POPPACK.H> - -#endif __USB200_H__
Added: branches/ddk2003/include/ddk2003/fttypes.h URL: http://svn.reactos.org/svn/reactos/branches/ddk2003/include/ddk2003/fttypes.... ============================================================================== --- branches/ddk2003/include/ddk2003/fttypes.h (added) +++ branches/ddk2003/include/ddk2003/fttypes.h Thu Jun 28 16:27:14 2007 @@ -1,0 +1,75 @@ + + +#if !defined( _FT_TYPES_DEFINITION_ ) + +#define _FT_TYPES_DEFINITION_ 1 + +#if _MSC_VER > 1000 +#pragma once +#endif + + +typedef enum _FT_MEMBER_STATE +{ + FtMemberHealthy, + FtMemberRegenerating, + FtMemberOrphaned +} FT_MEMBER_STATE, *PFT_MEMBER_STATE; + +typedef enum _FT_LOGICAL_DISK_TYPE +{ + FtPartition, + FtVolumeSet, + FtStripeSet, + FtMirrorSet, + FtStripeSetWithParity, + FtRedistribution +} FT_LOGICAL_DISK_TYPE, *PFT_LOGICAL_DISK_TYPE; + +typedef LONGLONG FT_LOGICAL_DISK_ID, *PFT_LOGICAL_DISK_ID; + +typedef struct _FT_REDISTRIBUTION_CONFIGURATION_INFORMATION +{ + ULONG StripeSize; + USHORT FirstMemberWidth; + USHORT SecondMemberWidth; +} FT_REDISTRIBUTION_CONFIGURATION_INFORMATION, *PFT_REDISTRIBUTION_CONFIGURATION_INFORMATION; + +typedef struct _FT_MIRROR_AND_SWP_STATE_INFORMATION +{ + BOOLEAN IsDirty; + BOOLEAN IsInitializing; + USHORT UnhealthyMemberNumber; + FT_MEMBER_STATE UnhealthyMemberState; +} FT_MIRROR_AND_SWP_STATE_INFORMATION, *PFT_MIRROR_AND_SWP_STATE_INFORMATION; + +typedef struct _FT_STRIPE_SET_CONFIGURATION_INFORMATION +{ + ULONG StripeSize; +} FT_STRIPE_SET_CONFIGURATION_INFORMATION, *PFT_STRIPE_SET_CONFIGURATION_INFORMATION; + +typedef struct _FT_MIRROR_SET_CONFIGURATION_INFORMATION +{ + LONGLONG MemberSize; +} FT_MIRROR_SET_CONFIGURATION_INFORMATION, *PFT_MIRROR_SET_CONFIGURATION_INFORMATION; + +typedef struct _FT_PARTITION_CONFIGURATION_INFORMATION +{ + ULONG Signature; + ULONG DiskNumber; + LONGLONG ByteOffset; +} FT_PARTITION_CONFIGURATION_INFORMATION, *PFT_PARTITION_CONFIGURATION_INFORMATION; + +typedef struct _FT_STRIPE_SET_WITH_PARITY_CONFIGURATION_INFORMATION +{ + LONGLONG MemberSize; + ULONG StripeSize; +} FT_STRIPE_SET_WITH_PARITY_CONFIGURATION_INFORMATION, *PFT_STRIPE_SET_WITH_PARITY_CONFIGURATION_INFORMATION; + +typedef struct _FT_REDISTRIBUTION_STATE_INFORMATION +{ + LONGLONG BytesRedistributed; +} FT_REDISTRIBUTION_STATE_INFORMATION, *PFT_REDISTRIBUTION_STATE_INFORMATION; + +#endif +
Propchange: branches/ddk2003/include/ddk2003/fttypes.h ------------------------------------------------------------------------------ svn:eol-style = native
Added: branches/ddk2003/include/ddk2003/nspapip.h URL: http://svn.reactos.org/svn/reactos/branches/ddk2003/include/ddk2003/nspapip.... ============================================================================== --- branches/ddk2003/include/ddk2003/nspapip.h (added) +++ branches/ddk2003/include/ddk2003/nspapip.h Thu Jun 28 16:27:14 2007 @@ -1,0 +1,72 @@ + +#ifndef _NSPAPIP_INCLUDED +#define _NSPAPIP_INCLUDED + +#if _MSC_VER > 1000 +#pragma once +#endif + +#define NS_STANDARD_FAST_PRIORITY (500) +#define NS_MAX_FAST_PRIORITY (999) +#define NS_STANDARD_PRIORITY (2000) +#define NSPAPI_GET_ADDRESS_BY_NAME (0x00000000) +#define NSPAPI_GET_SERVICE (0x00000001) +#define NSPAPI_SET_SERVICE (0x00000002) + +typedef struct _NS_ROUTINE +{ + DWORD dwFunctionCount; + LPFN_NSPAPI *alpfnFunctions; + DWORD dwNameSpace; + DWORD dwPriority; +} NS_ROUTINE, *PNS_ROUTINE, * FAR LPNS_ROUTINE; + +typedef INT (APIENTRY *LPGET_ADDR_BY_NAME_PROC) + (IN LPGUID lpServiceType, IN LPWSTR lpServiceName, IN LPDWORD lpdwProtocols, IN DWORD dwResolution, IN OUT LPVOID lpCsaddrBuffer, IN OUT LPDWORD lpdwBufferLength, IN OUT LPWSTR lpAliasBuffer, IN OUT LPDWORD lpdwAliasBufferLength, IN HANDLE hCancellationEvent); + +typedef DWORD (APIENTRY *LPLOAD_NAME_SPACE_PROC) + (IN OUT LPDWORD lpdwVersion, IN OUT LPNS_ROUTINE nsrBuffer, IN OUT LPDWORD lpdwBufferLength); + +typedef INT (APIENTRY *LPGET_SERVICE_PROC) + (IN LPGUID lpServiceType, IN LPWSTR lpServiceName, IN DWORD dwProperties, IN BOOL fUnicodeBlob, OUT LPSERVICE_INFO lpServiceInfo, IN OUT LPDWORD lpdwBufferLen); + +typedef DWORD (APIENTRY *LPSET_SERVICE_PROC) + (IN DWORD dwOperation, IN DWORD dwFlags, IN BOOL fUnicodeBlob, IN LPSERVICE_INFO lpServiceInfo); + + +DWORD APIENTRY +NPGetService ( + IN LPGUID lpServiceType, + IN LPWSTR lpServiceName, + IN DWORD dwProperties, + IN BOOL fUnicodeBlob, + OUT LPSERVICE_INFO lpServiceInfo, + IN OUT LPDWORD lpdwBufferLen); + +DWORD APIENTRY +NPSetService ( + IN DWORD dwOperation, + IN DWORD dwFlags, + IN BOOL fUnicodeBlob, + IN LPSERVICE_INFO lpServiceInfo); + +INT APIENTRY +NPGetAddressByName ( + IN LPGUID lpServiceType, + IN LPWSTR lpServiceName, + IN LPDWORD lpdwProtocols, + IN DWORD dwResolution, + IN OUT LPVOID lpCsaddrBuffer, + IN OUT LPDWORD lpdwBufferLength, + IN OUT LPWSTR lpAliasBuffer, + IN OUT LPDWORD lpdwAliasBufferLength, + IN HANDLE hCancellationEvent); + +INT APIENTRY +NPLoadNameSpaces ( + IN OUT LPDWORD lpdwVersion, + IN OUT LPNS_ROUTINE nsrBuffer, + IN OUT LPDWORD lpdwBufferLength); + +#endif +
Propchange: branches/ddk2003/include/ddk2003/nspapip.h ------------------------------------------------------------------------------ svn:eol-style = native
Modified: branches/ddk2003/include/ddk2003/readme.txt URL: http://svn.reactos.org/svn/reactos/branches/ddk2003/include/ddk2003/readme.t... ============================================================================== --- branches/ddk2003/include/ddk2003/readme.txt (original) +++ branches/ddk2003/include/ddk2003/readme.txt Thu Jun 28 16:27:14 2007 @@ -7,3 +7,7 @@
Look at warning.h see if anything can be done better
+Fix rpc.h it is compatible with pseh + + +add ros hack to upssvc.h so it works again
Added: branches/ddk2003/include/ddk2003/rpc.h URL: http://svn.reactos.org/svn/reactos/branches/ddk2003/include/ddk2003/rpc.h?re... ============================================================================== --- branches/ddk2003/include/ddk2003/rpc.h (added) +++ branches/ddk2003/include/ddk2003/rpc.h Thu Jun 28 16:27:14 2007 @@ -1,0 +1,150 @@ + + +#if !defined( RPC_NO_WINDOWS_H ) && !defined( MAC ) && !defined( _MAC ) +#include <windows.h> +#endif + +#ifndef __RPC_H__ +#define __RPC_H__ + +#if _MSC_VER > 1000 +#pragma once +#endif + +#ifdef __cplusplus +extern "C" { +#endif + + +#if defined( MAC ) || defined( _MAC ) + + #define __RPC_MAC__ + #include <pshpack2.h> + +#else + + #include <basetsd.h> + + #if defined(_M_IA64) || defined(_M_AMD64) + #define __RPC_WIN64__ + #else + #define __RPC_WIN32__ + #endif +#endif + +#if defined(__RPC_WIN64__) + #include <pshpack8.h> +#endif + +#ifndef __MIDL_USER_DEFINED + #define midl_user_allocate MIDL_user_allocate + #define midl_user_free MIDL_user_free + #define __MIDL_USER_DEFINED +#endif + +typedef void * I_RPC_HANDLE; +typedef long RPC_STATUS; + +#if defined(__RPC_WIN32__) || defined(__RPC_WIN64__) + #define RPC_UNICODE_SUPPORTED +#endif + +#if !defined(__RPC_MAC__) && ( (_MSC_VER >= 800) || defined(_STDCALL_SUPPORTED) ) + #define __RPC_API __stdcall + #define __RPC_USER __stdcall + #define __RPC_STUB __stdcall + #define RPC_ENTRY __stdcall +#else + #define __RPC_API + #define __RPC_USER + #define __RPC_STUB + #define RPC_ENTRY +#endif + +#define __RPC_FAR + + +#if !defined(DECLSPEC_IMPORT) +#if (defined(_M_MRX000) || defined(_M_IX86) || defined(_M_IA64) || defined(_M_AMD64)) && !defined(MIDL_PASS) + #define DECLSPEC_IMPORT __declspec(dllimport) +#else + #define DECLSPEC_IMPORT +#endif +#endif + +#if !defined(_RPCRT4_) + #define RPCRTAPI DECLSPEC_IMPORT +#else + #define RPCRTAPI +#endif + +#if !defined(_RPCNS4_) + #define RPCNSAPI DECLSPEC_IMPORT +#else + #define RPCNSAPI +#endif + +#ifdef __RPC_MAC__ + + #include <setjmp.h> + + #define RPCXCWORD (sizeof(jmp_buf)/sizeof(int)) + + #if _MSC_VER >= 1200 + #pragma warning(push) + #endif + + #pragma warning( disable: 4005 ) + #include <rpcdce.h> + #include <rpcnsi.h> + #include <rpcerr.h> + #include <rpcmac.h> + #if _MSC_VER >= 1200 + #pragma warning(pop) + #else + #pragma warning( default : 4005 ) + #endif + + typedef void (RPC_ENTRY *MACYIELDCALLBACK)(/*OSErr*/ short *) ; + RPC_STATUS RPC_ENTRY + RpcMacSetYieldInfo(MACYIELDCALLBACK pfnCallback) ; + + #if !defined(UNALIGNED) + #define UNALIGNED + #endif + + #include <poppack.h> +#else + #include <rpcdce.h> + #include <rpcnsi.h> + #include <rpcnterr.h> + #include <excpt.h> + #include <winerror.h> + + #define RpcTryExcept __try { + #define RpcExcept(expr) } __except (expr) { + #define RpcEndExcept } + #define RpcTryFinally __try { + #define RpcFinally } __finally { + #define RpcEndFinally } + + #define RpcExceptionCode() GetExceptionCode() + #define RpcAbnormalTermination() AbnormalTermination() +#endif + + +#if !defined( RPC_NO_WINDOWS_H ) && !defined(__RPC_MAC__) + #include <rpcasync.h> +#endif + +#if defined(__RPC_WIN64__) + #include <poppack.h> +#endif + +#ifdef __cplusplus +} +#endif + +#endif + +
Propchange: branches/ddk2003/include/ddk2003/rpc.h ------------------------------------------------------------------------------ svn:eol-style = native
Added: branches/ddk2003/include/ddk2003/servprov.idl URL: http://svn.reactos.org/svn/reactos/branches/ddk2003/include/ddk2003/servprov... ============================================================================== --- branches/ddk2003/include/ddk2003/servprov.idl (added) +++ branches/ddk2003/include/ddk2003/servprov.idl Thu Jun 28 16:27:14 2007 @@ -1,0 +1,67 @@ + +cpp_quote("#pragma comment(lib,"uuid.lib")") +cpp_quote("") + +import "objidl.idl"; + +interface IServiceProvider; +[ + object, + uuid(6d5140c1-7436-11ce-8034-00aa006009fa), + pointer_default(unique) +] + + +interface IServiceProvider : IUnknown +{ + typedef [unique] IServiceProvider *LPSERVICEPROVIDER; + +cpp_quote("#if (_MSC_VER >= 1100) && defined(__cplusplus) && !defined(CINTERFACE)") +cpp_quote(" EXTERN_C const IID IID_IServiceProvider;") +cpp_quote(" extern "C++"") +cpp_quote(" {") +cpp_quote(" MIDL_INTERFACE("6d5140c1-7436-11ce-8034-00aa006009fa")") +cpp_quote(" IServiceProvider : public IUnknown") +cpp_quote(" {") +cpp_quote(" public:") +cpp_quote(" virtual /* [local] */ HRESULT STDMETHODCALLTYPE QueryService( ") +cpp_quote(" /* [in] */ REFGUID guidService,") +cpp_quote(" /* [in] */ REFIID riid,") +cpp_quote(" /* [out] */ void __RPC_FAR *__RPC_FAR *ppvObject) = 0;") +cpp_quote(" ") +cpp_quote(" template <class Q>") +cpp_quote(" HRESULT STDMETHODCALLTYPE QueryService(REFGUID guidService, Q** pp)") +cpp_quote(" {") +cpp_quote(" return QueryService(guidService, __uuidof(Q), (void **)pp);") +cpp_quote(" }") +cpp_quote(" };") +cpp_quote(" }") +cpp_quote("") +cpp_quote(" /* [call_as] */ HRESULT STDMETHODCALLTYPE IServiceProvider_RemoteQueryService_Proxy( ") +cpp_quote(" IServiceProvider __RPC_FAR * This,") +cpp_quote(" /* [in] */ REFGUID guidService,") +cpp_quote(" /* [in] */ REFIID riid,") +cpp_quote(" /* [iid_is][out] */ IUnknown __RPC_FAR *__RPC_FAR *ppvObject);") +cpp_quote("") +cpp_quote(" void __RPC_STUB IServiceProvider_RemoteQueryService_Stub(") +cpp_quote(" IRpcStubBuffer *This,") +cpp_quote(" IRpcChannelBuffer *_pRpcChannelBuffer,") +cpp_quote(" PRPC_MESSAGE _pRpcMessage,") +cpp_quote(" DWORD *_pdwStubPhase);") +cpp_quote("") +cpp_quote("#else") + [local] + HRESULT QueryService( + [in] REFGUID guidService, + [in] REFIID riid, + [out] void ** ppvObject); + + [call_as(QueryService)] + HRESULT RemoteQueryService( + [in] REFGUID guidService, + [in] REFIID riid, + [out, iid_is(riid)] IUnknown ** ppvObject); +} +cpp_quote("#endif") + +
Propchange: branches/ddk2003/include/ddk2003/servprov.idl ------------------------------------------------------------------------------ svn:eol-style = native
Added: branches/ddk2003/include/ddk2003/upssvc.h URL: http://svn.reactos.org/svn/reactos/branches/ddk2003/include/ddk2003/upssvc.h... ============================================================================== --- branches/ddk2003/include/ddk2003/upssvc.h (added) +++ branches/ddk2003/include/ddk2003/upssvc.h Thu Jun 28 16:27:14 2007 @@ -1,0 +1,33 @@ + +#ifndef _INC_UPS_DRIVER_H_ +#define _INC_UPS_DRIVER_H_ + +#define UPS_ONLINE 1 +#define UPS_ONBATTERY 2 +#define UPS_LOWBATTERY 4 +#define UPS_NOCOMM 8 +#define UPS_CRITICAL 16 +#define UPS_INITUNKNOWNERROR 0 +#define UPS_INITOK 1 +#define UPS_INITNOSUCHDRIVER 2 +#define UPS_INITBADINTERFACE 3 +#define UPS_INITREGISTRYERROR 4 +#define UPS_INITCOMMOPENERROR 5 +#define UPS_INITCOMMSETUPERROR 6 + +void +UPSCancelWait(void); + +DWORD +UPSGetState(void); + +DWORD +UPSInit(void); + +void +UPSTurnOff(DWORD aTurnOffDelay); + +void +UPSWaitForStateChange(DWORD aCurrentState, DWORD anInterval); + +#endif
Propchange: branches/ddk2003/include/ddk2003/upssvc.h ------------------------------------------------------------------------------ svn:eol-style = native