469,299 Members | 2,069 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,299 developers. It's quick & easy.

#define help..

Can someone please help with converting this c++ to c#. I couldn't find the
macro of CTL_CODE in c#.

#define CF9_PACKET CTL_CODE(FILE_DEVICE_CF9, CF9_IOCTL_INDEX +21,
METHOD_BUFFERED, FILE_ANY_ACCESS)

Thanks in advance,

Nov 17 '05 #1
3 3794
C# beginner wrote:
Can someone please help with converting this c++ to c#. I couldn't find the
macro of CTL_CODE in c#.

#define CF9_PACKET CTL_CODE(FILE_DEVICE_CF9, CF9_IOCTL_INDEX +21,
METHOD_BUFFERED, FILE_ANY_ACCESS)

Thanks in advance,

No, there is no macro in C# , at least now.
Nov 17 '05 #2
The other poster is correct, Macros as they existed in
c/c++ do not exist in c#, that does not mean you cannot
call the code you want to... take a look at
http://blogs.msdn.com/jeffrey_wall/a...04/09/13/22913
7.aspx for one example of how to still use CTL_CODE
-----Original Message-----
Can someone please help with converting this c++ to c#. I couldn't find themacro of CTL_CODE in c#.

#define CF9_PACKET CTL_CODE(FILE_DEVICE_CF9, CF9_IOCTL_INDEX +21,METHOD_BUFFERED, FILE_ANY_ACCESS)

Thanks in advance,

.

Nov 17 '05 #3
have a look at www.pinvoke.net

"C# beginner" <Cb*******@discussions.microsoft.com> schrieb im Newsbeitrag
news:57**********************************@microsof t.com...
Can someone please help with converting this c++ to c#. I couldn't find
the
macro of CTL_CODE in c#.

#define CF9_PACKET CTL_CODE(FILE_DEVICE_CF9, CF9_IOCTL_INDEX +21,
METHOD_BUFFERED, FILE_ANY_ACCESS)

Nov 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

18 posts views Thread by Bryan Parkoff | last post: by
15 posts views Thread by Jorge Naxus | last post: by
9 posts views Thread by pozz | last post: by
9 posts views Thread by Harshit | last post: by
3 posts views Thread by michael.martin | last post: by
5 posts views Thread by Kevin | last post: by
1 post views Thread by C# beginner | last post: by
18 posts views Thread by **Developer** | last post: by
2 posts views Thread by marceliogp | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by harlem98 | last post: by
1 post views Thread by Geralt96 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.