ReactOS 0.4.15-dev-7924-g5949c20
notify.c File Reference
#include "precomp.h"
Include dependency graph for notify.c:

Go to the source code of this file.

Macros

#define HANH   (HANDLE)'2SOR'
 

Functions

DWORD WINAPI WahCloseNotificationHandleHelper (IN HANDLE HelperHandle)
 
DWORD WINAPI WahCreateNotificationHandle (IN HANDLE HelperHandle, OUT PHANDLE NotificationHelperHandle)
 
DWORD WINAPI WahOpenNotificationHandleHelper (OUT PHANDLE HelperHandle)
 
INT WINAPI WahNotifyAllProcesses (IN HANDLE NotificationHelperHandle)
 
INT WINAPI WahWaitForNotification (IN HANDLE NotificationHelperHandle, IN HANDLE lpNotificationHandle, IN LPWSAOVERLAPPED lpOverlapped, IN LPWSAOVERLAPPED_COMPLETION_ROUTINE lpCompletionRoutine)
 

Variables

PSECURITY_DESCRIPTOR pSDPipe = NULL
 

Macro Definition Documentation

◆ HANH

#define HANH   (HANDLE)'2SOR'

Definition at line 14 of file notify.c.

Function Documentation

◆ WahCloseNotificationHandleHelper()

DWORD WINAPI WahCloseNotificationHandleHelper ( IN HANDLE  HelperHandle)

Definition at line 22 of file notify.c.

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}
#define ERROR_SUCCESS
Definition: deptool.c:10
#define ERROR_INVALID_PARAMETER
Definition: compat.h:101
#define HANH
Definition: notify.c:14
#define WS2HELP_PROLOG()
Definition: precomp.h:47
unsigned long DWORD
Definition: ntddk_ex.h:95
_In_ NDIS_ERROR_CODE ErrorCode
Definition: ndis.h:4436

Referenced by WsProcDelete().

◆ WahCreateNotificationHandle()

DWORD WINAPI WahCreateNotificationHandle ( IN HANDLE  HelperHandle,
OUT PHANDLE  NotificationHelperHandle 
)

Definition at line 39 of file notify.c.

41{
42 UNREFERENCED_PARAMETER(HelperHandle);
43 UNREFERENCED_PARAMETER(NotificationHelperHandle);
44 return 0;
45}
#define UNREFERENCED_PARAMETER(P)
Definition: ntbasedef.h:317

◆ WahNotifyAllProcesses()

INT WINAPI WahNotifyAllProcesses ( IN HANDLE  NotificationHelperHandle)

Definition at line 67 of file notify.c.

68{
69 UNREFERENCED_PARAMETER(NotificationHelperHandle);
70 return 0;
71}

◆ WahOpenNotificationHandleHelper()

DWORD WINAPI WahOpenNotificationHandleHelper ( OUT PHANDLE  HelperHandle)

Definition at line 49 of file notify.c.

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}

◆ WahWaitForNotification()

INT WINAPI WahWaitForNotification ( IN HANDLE  NotificationHelperHandle,
IN HANDLE  lpNotificationHandle,
IN LPWSAOVERLAPPED  lpOverlapped,
IN LPWSAOVERLAPPED_COMPLETION_ROUTINE  lpCompletionRoutine 
)

Definition at line 75 of file notify.c.

79{
80 UNREFERENCED_PARAMETER(NotificationHelperHandle);
81 UNREFERENCED_PARAMETER(lpNotificationHandle);
83 UNREFERENCED_PARAMETER(lpCompletionRoutine);
84 return 0;
85}
_In_ HANDLE _In_ DWORD _In_ DWORD _Inout_opt_ LPOVERLAPPED lpOverlapped
Definition: mswsock.h:93

Variable Documentation

◆ pSDPipe

Definition at line 16 of file notify.c.

Referenced by DllMain().