ReactOS  0.4.15-dev-499-g1f31905
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: include/ws2_32.h
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 
20 DWORD
21 WINAPI
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 
37 DWORD
38 WINAPI
40  OUT PHANDLE NotificationHelperHandle)
41 {
42  UNREFERENCED_PARAMETER(HelperHandle);
43  UNREFERENCED_PARAMETER(NotificationHelperHandle);
44  return 0;
45 }
46 
47 DWORD
48 WINAPI
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 
65 INT
66 WINAPI
67 WahNotifyAllProcesses(IN HANDLE NotificationHelperHandle)
68 {
69  UNREFERENCED_PARAMETER(NotificationHelperHandle);
70  return 0;
71 }
72 
73 INT
74 WINAPI
75 WahWaitForNotification(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_INVALID_PARAMETER
Definition: compat.h:91
#define IN
Definition: typedefs.h:39
_In_ NDIS_ERROR_CODE ErrorCode
Definition: ndis.h:4436
#define ERROR_SUCCESS
Definition: deptool.c:10
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:323
INT WINAPI WahNotifyAllProcesses(IN HANDLE NotificationHelperHandle)
Definition: notify.c:67
int32_t INT
Definition: typedefs.h:57
DWORD WINAPI WahOpenNotificationHandleHelper(OUT PHANDLE HelperHandle)
Definition: notify.c:49
#define WS2HELP_PROLOG()
Definition: precomp.h:47
#define HANH
Definition: notify.c:14
smooth NULL
Definition: ftsmooth.c:416
#define WINAPI
Definition: msvc.h:6
unsigned long DWORD
Definition: ntddk_ex.h:95
DWORD WINAPI WahCreateNotificationHandle(IN HANDLE HelperHandle, OUT PHANDLE NotificationHelperHandle)
Definition: notify.c:39
PVOID *typedef PHANDLE
Definition: ntsecpkg.h:454
_In_ HANDLE _In_ DWORD _In_ DWORD _Inout_opt_ LPOVERLAPPED lpOverlapped
Definition: mswsock.h:90
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
#define OUT
Definition: typedefs.h:40
void(CALLBACK * LPWSAOVERLAPPED_COMPLETION_ROUTINE)(IN DWORD dwError, IN DWORD cbTransferred, IN LPWSAOVERLAPPED lpOverlapped, IN DWORD dwFlags)
Definition: winsock2.h:722
DWORD WINAPI WahCloseNotificationHandleHelper(IN HANDLE HelperHandle)
Definition: notify.c:22