Click here to Skip to main content
15,890,973 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: "Dynamic Linking of .lib file in my project" Pin
chandni_chandrakant_maheta22-Jan-07 18:30
chandni_chandrakant_maheta22-Jan-07 18:30 
GeneralRe: "Dynamic Linking of .lib file in my project" Pin
chandni_chandrakant_maheta22-Jan-07 18:55
chandni_chandrakant_maheta22-Jan-07 18:55 
GeneralRe: "Dynamic Linking of .lib file in my project" Pin
James R. Twine23-Jan-07 14:30
James R. Twine23-Jan-07 14:30 
QuestionAccessing physical drives [modified] Pin
Big CDF22-Jan-07 3:57
Big CDF22-Jan-07 3:57 
QuestionRe: Accessing physical drives Pin
David Crow22-Jan-07 4:27
David Crow22-Jan-07 4:27 
AnswerRe: Accessing physical drives Pin
Big CDF22-Jan-07 4:55
Big CDF22-Jan-07 4:55 
AnswerRe: Accessing physical drives Pin
James R. Twine22-Jan-07 4:32
James R. Twine22-Jan-07 4:32 
GeneralRe: Accessing physical drives Pin
Big CDF22-Jan-07 4:52
Big CDF22-Jan-07 4:52 
I think the problem is with the readfile function. I am trying to read the first byte of the disc.

<pre>
include <windows.h>
#include <winioctl.h>
#include <stdio.h>

int main(void)
{
HANDLE hDevice; // handle to the drive to be examined
char buf[8];

hDevice = CreateFile("\\\\.\\i:", // drive to open
GENERIC_READ | GENERIC_WRITE, // access to the drive
GENERIC_READ | GENERIC_WRITE, // share mode
NULL, // default security attributes
FILE_FLAG_OVERLAPPED, // disposition
0, // file attributes
NULL); // do not copy file attributes

if(ReadFileEx(hDevice,buf,1,NULL,NULL))
{
printf("%s",buf);
}
CloseHandle(hDevice);

return (0);
}
</pre>

Craig
QuestionRe: Accessing physical drives Pin
David Crow22-Jan-07 5:01
David Crow22-Jan-07 5:01 
AnswerRe: Accessing physical drives Pin
Big CDF22-Jan-07 5:20
Big CDF22-Jan-07 5:20 
GeneralRe: Accessing physical drives Pin
David Crow22-Jan-07 9:48
David Crow22-Jan-07 9:48 
GeneralRe: Accessing physical drives Pin
Big CDF22-Jan-07 12:50
Big CDF22-Jan-07 12:50 
GeneralRe: Accessing physical drives Pin
James R. Twine22-Jan-07 5:07
James R. Twine22-Jan-07 5:07 
AnswerRe: Accessing physical drives Pin
prasad_som22-Jan-07 5:19
prasad_som22-Jan-07 5:19 
AnswerRe: Accessing physical drives Pin
kakan22-Jan-07 20:11
professionalkakan22-Jan-07 20:11 
Questioncan any one help? [modified] Pin
Simple programmer22-Jan-07 3:16
Simple programmer22-Jan-07 3:16 
AnswerRe: can any one help? Pin
James R. Twine22-Jan-07 3:17
James R. Twine22-Jan-07 3:17 
AnswerRe: can any one help? Pin
KarstenK22-Jan-07 4:15
mveKarstenK22-Jan-07 4:15 
AnswerRe: can any one help? Pin
David Crow22-Jan-07 4:32
David Crow22-Jan-07 4:32 
AnswerRe: can any one help? Pin
Hamid_RT22-Jan-07 18:06
Hamid_RT22-Jan-07 18:06 
Questionhw to find out a possible combination Pin
Simple programmer22-Jan-07 3:07
Simple programmer22-Jan-07 3:07 
AnswerRe: hw to find out a possible combination Pin
Maximilien22-Jan-07 3:37
Maximilien22-Jan-07 3:37 
AnswerRe: hw to find out a possible combination Pin
Stephen Hewitt22-Jan-07 11:29
Stephen Hewitt22-Jan-07 11:29 
Questionneed help... Pin
baby_fong8222-Jan-07 2:22
baby_fong8222-Jan-07 2:22 
AnswerRe: need help... Pin
Waldermort22-Jan-07 2:38
Waldermort22-Jan-07 2:38 

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.