PC Review


Reply
Thread Tools Rate Thread

#define help..

 
 
=?Utf-8?B?QyMgYmVnaW5uZXI=?=
Guest
Posts: n/a
 
      22nd Mar 2005
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,

 
Reply With Quote
 
 
 
 
Jianwei Sun
Guest
Posts: n/a
 
      22nd Mar 2005
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.
 
Reply With Quote
 
Brendan Grant
Guest
Posts: n/a
 
      22nd Mar 2005
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 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,
>
>.
>

 
Reply With Quote
 
cody
Guest
Posts: n/a
 
      22nd Mar 2005
have a look at www.pinvoke.net

"C# beginner" <(E-Mail Removed)> schrieb im Newsbeitrag
news:570DCBEF-9D4E-43C3-9D76-(E-Mail Removed)...
> 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)



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Define name David Microsoft Excel Programming 4 9th Mar 2006 09:19 PM
define name =?Utf-8?B?c3Vuc2hpbmU=?= Microsoft Excel Misc 1 29th Mar 2005 01:37 AM
Define Value Fernando Peixito Microsoft Access Macros 1 3rd Feb 2004 11:50 AM
#define A.M Microsoft C# .NET 3 13th Jan 2004 08:31 PM
How to define this.... Alex Sanchez. Microsoft C# .NET 1 21st Nov 2003 04:53 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:58 PM.