Click here to Skip to main content
15,881,839 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
C++
typedef struct _OBJECT_DIRECTORY_ENTRY
{
_OBJECT_DIRECTORY_ENTRY* ChainLink;
} OBJECT_DIRECTORY_ENTRY, *POBJECT_DIRECTORY_ENTRY;
this is the c++ struct its working fine in c++ btw am going with kernel here.and am trying to make this struct works with my C kernel driver struct its the same but i can't convert it to C struct and i get
<error type> *_OBJECT_DIRECTORY_ENTRY::ChainLink
but in c++ when i hover over it i see that its and in c++ its showing
C++
_OBJECT_DIRECTORY_ENTRY *_OBJECT_DIRECTORY_ENTRY::ChainLink
so what i am doing worng here ? thanks for future replies

What I have tried:

i don't know what to try because its using the exact same struct name as a type !
Posted
Updated 30-Jan-19 12:28pm
v2

1 solution

It should be
C
typedef struct _OBJECT_DIRECTORY_ENTRY
{
	struct _OBJECT_DIRECTORY_ENTRY* ChainLink;
} OBJECT_DIRECTORY_ENTRY;
 
Share this answer
 
Comments
Member 14130865 30-Jan-19 15:48pm    
@CPallini thank you sir you made my day
CPallini 30-Jan-19 17:01pm    
You are very welcome.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900