4 * Copyright 1996, 1998 Alexandre Julliard
7 #ifndef __WINE_K32OBJ_H
8 #define __WINE_K32OBJ_H
20 K32OBJ_CRITICAL_SECTION
,
27 K32OBJ_MEM_MAPPED_FILE
,
32 K32OBJ_TOOLHELP_SNAPSHOT
,
44 /* Kernel object operations */
47 void (*destroy
)(K32OBJ
*); /* Destroy object on refcount==0 */
50 extern const K32OBJ_OPS
* const K32OBJ_Ops
[K32OBJ_NBOBJECTS
];
52 #define K32OBJ_OPS(obj) (K32OBJ_Ops[(obj)->type])
54 extern void K32OBJ_IncCount( K32OBJ
*ptr
);
55 extern void K32OBJ_DecCount( K32OBJ
*ptr
);
56 extern BOOL32
K32OBJ_IsValid( K32OBJ
*ptr
, K32OBJ_TYPE type
);
57 extern BOOL32
K32OBJ_AddName( K32OBJ
*obj
, LPCSTR name
);
58 extern K32OBJ
*K32OBJ_Create( K32OBJ_TYPE type
, DWORD size
, LPCSTR name
,
59 int server_handle
, DWORD access
,
60 SECURITY_ATTRIBUTES
*sa
, HANDLE32
*handle
);
61 extern K32OBJ
*K32OBJ_FindName( LPCSTR name
);
62 extern K32OBJ
*K32OBJ_FindNameType( LPCSTR name
, K32OBJ_TYPE type
);
64 #endif /* __WINE_K32OBJ_H */