mirror of
https://github.com/reactos/reactos.git
synced 2024-11-07 07:00:19 +00:00
527f2f9057
* Create a branch for some evul shell experiments. svn path=/branches/shell-experiments/; revision=61927
45 lines
968 B
C
45 lines
968 B
C
/*
|
|
* COPYRIGHT: See COPYING in the top level directory
|
|
* PROJECT: ReactOS WinSock 2 DLL
|
|
* FILE: include/handle.h
|
|
* PURPOSE: Provider handle definitions
|
|
*/
|
|
|
|
#ifndef __HANDLE_H
|
|
#define __HANDLE_H
|
|
|
|
typedef struct _PROVIDER_HANDLE
|
|
{
|
|
HANDLE Handle;
|
|
PCATALOG_ENTRY Provider;
|
|
} PROVIDER_HANDLE, *PPROVIDER_HANDLE;
|
|
|
|
#define HANDLE_BLOCK_ENTRIES ((1024-sizeof(LIST_ENTRY))/sizeof(PROVIDER_HANDLE))
|
|
|
|
typedef struct _PROVIDER_HANDLE_BLOCK
|
|
{
|
|
LIST_ENTRY Entry;
|
|
PROVIDER_HANDLE Handles[HANDLE_BLOCK_ENTRIES];
|
|
} PROVIDER_HANDLE_BLOCK, *PPROVIDER_HANDLE_BLOCK;
|
|
|
|
extern PPROVIDER_HANDLE_BLOCK ProviderHandleTable;
|
|
|
|
|
|
HANDLE
|
|
CreateProviderHandle(HANDLE Handle,
|
|
PCATALOG_ENTRY Provider);
|
|
|
|
BOOL
|
|
ReferenceProviderByHandle(HANDLE Handle,
|
|
PCATALOG_ENTRY* Provider);
|
|
|
|
BOOL
|
|
CloseProviderHandle(HANDLE Handle);
|
|
|
|
BOOL
|
|
InitProviderHandleTable(VOID);
|
|
|
|
VOID
|
|
FreeProviderHandleTable(VOID);
|
|
|
|
#endif /* __HANDLE_H */
|