xref: /reactos/dll/win32/ws2help/notify.c (revision c2c66aff)
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 
16 PSECURITY_DESCRIPTOR pSDPipe = NULL;
17 
18 /* FUNCTIONS *****************************************************************/
19 
20 DWORD
21 WINAPI
22 WahCloseNotificationHandleHelper(IN HANDLE HelperHandle)
23 {
24     DWORD ErrorCode;
25 
26     /* Enter the prolog, make sure we're initialized */
27     ErrorCode = WS2HELP_PROLOG();
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
39 WahCreateNotificationHandle(IN HANDLE HelperHandle,
40                             OUT PHANDLE NotificationHelperHandle)
41 {
42     UNREFERENCED_PARAMETER(HelperHandle);
43     UNREFERENCED_PARAMETER(NotificationHelperHandle);
44     return 0;
45 }
46 
47 DWORD
48 WINAPI
49 WahOpenNotificationHandleHelper(OUT PHANDLE HelperHandle)
50 {
51     DWORD ErrorCode;
52 
53     /* Enter the prolog, make sure we're initialized */
54     ErrorCode = WS2HELP_PROLOG();
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,
77                        IN LPWSAOVERLAPPED lpOverlapped,
78                        IN LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine)
79 {
80     UNREFERENCED_PARAMETER(NotificationHelperHandle);
81     UNREFERENCED_PARAMETER(lpNotificationHandle);
82     UNREFERENCED_PARAMETER(lpOverlapped);
83     UNREFERENCED_PARAMETER(lpCompletionRoutine);
84     return 0;
85 }
86 
87 /* EOF */
88