Click here to Skip to main content
15,923,557 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Reuse of a existing Dialog Pin
naveen27gupta18-Dec-07 1:12
naveen27gupta18-Dec-07 1:12 
GeneralRe: Reuse of a existing Dialog Pin
David Crow18-Dec-07 3:34
David Crow18-Dec-07 3:34 
GeneralHelp about read data from a USB Pin
kcynic17-Dec-07 14:51
kcynic17-Dec-07 14:51 
GeneralRe: Help about read data from a USB Pin
Naveen17-Dec-07 17:28
Naveen17-Dec-07 17:28 
GeneralRe: Help about read data from a USB Pin
kcynic17-Dec-07 18:02
kcynic17-Dec-07 18:02 
GeneralRe: Help about read data from a USB Pin
Naveen17-Dec-07 18:13
Naveen17-Dec-07 18:13 
GeneralRe: Help about read data from a USB Pin
kcynic17-Dec-07 18:19
kcynic17-Dec-07 18:19 
GeneralRe: Help about read data from a USB Pin
Naveen17-Dec-07 18:58
Naveen17-Dec-07 18:58 
ok. I can help u with the first task( calling the ZwOpenFile() and ZwQueryInformationFile()).

1 . copy all the necessary structure for those function from the ntddk.h file to ur local file
2. now create a pointer for that function. like

typedef NTSTATUS (*pZwOpenFile)(<br />
    OUT PHANDLE  FileHandle,<br />
    IN ACCESS_MASK  DesiredAccess,<br />
    IN POBJECT_ATTRIBUTES  ObjectAttributes,<br />
    OUT PIO_STATUS_BLOCK  IoStatusBlock,<br />
    IN ULONG  ShareAccess,<br />
    IN ULONG  OpenOptions<br />
    );


3. Now use LoadLibrary to load the ntdll.dll. HMODULE hModule = LoadLibrary( _T("ntdll.dll"));

4. Now call GetProcAddress() function to get of the ZwOpenFile function.
pZwOpenFile ZwOpenFile = (pZwOpenFile )GetProcAddress( hModule, "ZwOpenFile" );

now u can call ZwOpenFile like any other functions.

GeneralRe: Help about read data from a USB Pin
kcynic17-Dec-07 19:06
kcynic17-Dec-07 19:06 
GeneralRe: Help about read data from a USB Pin
Naveen17-Dec-07 19:23
Naveen17-Dec-07 19:23 
GeneralRe: Help about read data from a USB Pin
kcynic17-Dec-07 19:33
kcynic17-Dec-07 19:33 
GeneralRe: Help about read data from a USB Pin
Naveen17-Dec-07 19:47
Naveen17-Dec-07 19:47 
GeneralRe: Help about read data from a USB Pin
kcynic17-Dec-07 20:12
kcynic17-Dec-07 20:12 
GeneralRe: Help about read data from a USB [modified] Pin
JudyL_MD18-Dec-07 2:47
JudyL_MD18-Dec-07 2:47 
QuestionIs there a C++ funtion like GetSystemDrive? Pin
papafreebird17-Dec-07 7:28
papafreebird17-Dec-07 7:28 
AnswerRe: Is there a C++ funtion like GetSystemDrive? Pin
papafreebird17-Dec-07 7:54
papafreebird17-Dec-07 7:54 
GeneralRe: Is there a C++ funtion like GetSystemDrive? Pin
only coding17-Dec-07 14:19
only coding17-Dec-07 14:19 
AnswerRe: Is there a C++ funtion like GetSystemDrive? Pin
David Crow17-Dec-07 8:47
David Crow17-Dec-07 8:47 
GeneralVisual C++ 2008 programming for graphics Pin
Anthony Appleyard17-Dec-07 6:19
Anthony Appleyard17-Dec-07 6:19 
GeneralRe: Visual C++ 2008 programming for graphics Pin
toxcct17-Dec-07 6:29
toxcct17-Dec-07 6:29 
GeneralRe: Visual C++ 2008 programming for graphics Pin
Anthony Appleyard17-Dec-07 6:41
Anthony Appleyard17-Dec-07 6:41 
GeneralRe: Visual C++ 2008 programming for graphics Pin
toxcct17-Dec-07 6:44
toxcct17-Dec-07 6:44 
GeneralRe: Visual C++ 2008 programming for graphics Pin
Anthony Appleyard17-Dec-07 6:53
Anthony Appleyard17-Dec-07 6:53 
GeneralRe: Visual C++ 2008 programming for graphics Pin
toxcct17-Dec-07 6:55
toxcct17-Dec-07 6:55 
JokeRe: Visual C++ 2008 programming for graphics Pin
David Crow17-Dec-07 7:30
David Crow17-Dec-07 7:30 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.