ReactOS 0.4.15-dev-7906-g1b85a5f
notify.c
Go to the documentation of this file.
1/*
2 * COPYRIGHT: See COPYING in the top level directory
3 * PROJECT: ReactOS WinSock 2 DLL
4 * FILE: dll/win32/ws2help/notify.c
5 * PURPOSE: WinSock 2 DLL header
6 */
7
8/* INCLUDES ******************************************************************/
9
10#include "precomp.h"
11
12/* DATA **********************************************************************/
13
14#define HANH (HANDLE)'2SOR'
15
17
18/* FUNCTIONS *****************************************************************/
19
23{
25
26 /* Enter the prolog, make sure we're initialized */
28 if (ErrorCode != ERROR_SUCCESS) return ErrorCode;
29
30 /* Validate handle */
31 if (HelperHandle != HANH) return ERROR_INVALID_PARAMETER;
32
33 /* return */
34 return ERROR_SUCCESS;
35}
36
40 OUT PHANDLE NotificationHelperHandle)
41{
42 UNREFERENCED_PARAMETER(HelperHandle);
43 UNREFERENCED_PARAMETER(NotificationHelperHandle);
44 return 0;
45}
46
50{
52
53 /* Enter the prolog, make sure we're initialized */
55 if (ErrorCode != ERROR_SUCCESS) return ErrorCode;
56
57 /* Validate handle */
58 if (!HelperHandle) return ERROR_INVALID_PARAMETER;
59
60 /* Return a bogus handle ("ROS2") */
61 *HelperHandle = HANH;
62 return ERROR_SUCCESS;
63}
64
65INT
67WahNotifyAllProcesses(IN HANDLE NotificationHelperHandle)
68{
69 UNREFERENCED_PARAMETER(NotificationHelperHandle);
70 return 0;
71}
72
73INT
75WahWaitForNotification(IN HANDLE NotificationHelperHandle,
76 IN HANDLE lpNotificationHandle,
78 IN LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine)
79{
80 UNREFERENCED_PARAMETER(NotificationHelperHandle);
81 UNREFERENCED_PARAMETER(lpNotificationHandle);
83 UNREFERENCED_PARAMETER(lpCompletionRoutine);
84 return 0;
85}
86
87/* EOF */
#define ERROR_SUCCESS
Definition: deptool.c:10
#define NULL
Definition: types.h:112
#define ERROR_INVALID_PARAMETER
Definition: compat.h:101
#define HANH
Definition: notify.c:14
INT WINAPI WahNotifyAllProcesses(IN HANDLE NotificationHelperHandle)
Definition: notify.c:67
DWORD WINAPI WahOpenNotificationHandleHelper(OUT PHANDLE HelperHandle)
Definition: notify.c:49
INT WINAPI WahWaitForNotification(IN HANDLE NotificationHelperHandle, IN HANDLE lpNotificationHandle, IN LPWSAOVERLAPPED lpOverlapped, IN LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine)
Definition: notify.c:75
PSECURITY_DESCRIPTOR pSDPipe
Definition: notify.c:16
DWORD WINAPI WahCreateNotificationHandle(IN HANDLE HelperHandle, OUT PHANDLE NotificationHelperHandle)
Definition: notify.c:39
DWORD WINAPI WahCloseNotificationHandleHelper(IN HANDLE HelperHandle)
Definition: notify.c:22
#define WS2HELP_PROLOG()
Definition: precomp.h:47
unsigned long DWORD
Definition: ntddk_ex.h:95
_In_ HANDLE _In_ DWORD _In_ DWORD _Inout_opt_ LPOVERLAPPED lpOverlapped
Definition: mswsock.h:93
_In_ NDIS_ERROR_CODE ErrorCode
Definition: ndis.h:4436
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:317
PVOID *typedef PHANDLE
Definition: ntsecpkg.h:455
int32_t INT
Definition: typedefs.h:58
#define IN
Definition: typedefs.h:39
#define OUT
Definition: typedefs.h:40
#define WINAPI
Definition: msvc.h:6
void(CALLBACK * LPWSAOVERLAPPED_COMPLETION_ROUTINE)(IN DWORD dwError, IN DWORD cbTransferred, IN LPWSAOVERLAPPED lpOverlapped, IN DWORD dwFlags)
Definition: winsock2.h:722