From: <dan...@us...> - 2007-08-09 06:51:01
|
Revision: 1048 http://cegcc.svn.sourceforge.net/cegcc/?rev=1048&view=rev Author: dannybackx Date: 2007-08-08 23:50:59 -0700 (Wed, 08 Aug 2007) Log Message: ----------- New file, defines functions and a struct as documented on MSDN. Modified Paths: -------------- trunk/cegcc/src/w32api/ChangeLog.ce Added Paths: ----------- trunk/cegcc/src/w32api/include/service.h Modified: trunk/cegcc/src/w32api/ChangeLog.ce =================================================================== --- trunk/cegcc/src/w32api/ChangeLog.ce 2007-08-06 22:28:44 UTC (rev 1047) +++ trunk/cegcc/src/w32api/ChangeLog.ce 2007-08-09 06:50:59 UTC (rev 1048) @@ -1,3 +1,13 @@ +2007-08-09 Danny Backx <dan...@us...> + + * include/service.h: New file. Declares functions and a structure as + documented on MSDN. Used only on CE > 4. + * include/service.h (ServiceEnumInfo): New struct. + * include/service.h (RegisterService, ActivateService, + DeregisterService, EnumServices, GetServiceHandle, ServiceAddPort, + ServiceClosePort, ServiceIoControl, ServiceUnbindPorts): New + functions. + 2007-08-06 Pedro Alves <ped...@po...> * include/aygshell.h (SHIDIM_FLAGS, SHIDIF_DONEBUTTON, Added: trunk/cegcc/src/w32api/include/service.h =================================================================== --- trunk/cegcc/src/w32api/include/service.h (rev 0) +++ trunk/cegcc/src/w32api/include/service.h 2007-08-09 06:50:59 UTC (rev 1048) @@ -0,0 +1,50 @@ +/* + service.h + + 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 __SERVICE_H__ +#define __SERVICE_H__ + +#ifdef __cplusplus +extern "C" { +#endif + +#if defined(_WIN32_WCE) && (_WIN32_WCE >= 0x0400) +typedef struct ServiceEnumInfo { + WCHAR szPrefix[6]; + WCHAR szDllName; + HANDLE hServiceHandle; + DWORD dwServiceState; +} ServiceEnumInfo; + +HANDLE RegisterService (LPCWSTR lpszType, DWORD dwIndex, LPCWSTR lpszLib, + DWORD dwInfo); +HANDLE ActivateService (LPCWSTR lpszDevKey, DWORD dwClientInfo); +BOOL DeregisterService (HANDLE hDevice); +BOOL EnumServices (PBYTE pBuffer, DWORD *pdwServiceEntries, DWORD *pdwBufferLen); +HANDLE GetServiceHandle (LPWSTR szPrefix, LPWSTR szDllName, DWORD *pdwDllBuf); +BOOL ServiceAddPort (HANDLE hService, SOCKADDR *pSockAddr, INT cbSockAddr, + INT iProtocol, WCHAR szRegWritePath); +BOOL ServiceClosePort (HANDLE hService, SOCKADDR *pSockAddr, int cbSockAddr, + int iProtocol, BOOL fRemoveFromRegistry); +BOOL ServiceIoControl (HANDLE hService, DWORD dwIoControlCode, LPVOID lpInBuf, + DWORD nInBufSize, LPVOID lpOutBuf, DWORD nOutBufSize, + LPDWORD lpBytesReturned, LPOVERLAPPED lpOverlapped); +BOOL ServiceUnbindPorts (HANDLE hService); +#endif /* _WIN32_WCE */ + +#ifdef __cplusplus +} +#endif + +#endif /* __SERVICE_H__ */ Property changes on: trunk/cegcc/src/w32api/include/service.h ___________________________________________________________________ Name: svn:eol-style + native This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |