Click here to Skip to main content
16,005,141 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to confirm the tree item selected Pin
David Crow19-Aug-05 7:52
David Crow19-Aug-05 7:52 
AnswerRe: how to confirm the tree item selected Pin
Maximilien19-Aug-05 7:10
Maximilien19-Aug-05 7:10 
GeneralRe: how to confirm the tree item selected Pin
try8819-Aug-05 7:40
try8819-Aug-05 7:40 
GeneralRe: how to confirm the tree item selected Pin
David Crow19-Aug-05 7:52
David Crow19-Aug-05 7:52 
GeneralRe: how to confirm the tree item selected Pin
Maximilien19-Aug-05 7:52
Maximilien19-Aug-05 7:52 
GeneralRe: how to confirm the tree item selected Pin
try8819-Aug-05 8:43
try8819-Aug-05 8:43 
Generalquestion related to drivers Pin
gamitech19-Aug-05 3:46
gamitech19-Aug-05 3:46 
GeneralRe: question related to drivers Pin
fat_boy19-Aug-05 4:05
fat_boy19-Aug-05 4:05 
This is how its done.

Its a code chunk out of an ndis driver but its the same as what you wil want:

OBJECT_ATTRIBUTES ObjectAttributes;
IO_STATUS_BLOCK IoStatusBlock;
UNICODE_STRING ObjectName;

RtlInitUnicodeString(&ObjectName, L"\\DosDevices\\C:\\R_NDIS.txt");

InitializeObjectAttributes(&ObjectAttributes,
&ObjectName,
OBJ_CASE_INSENSITIVE,
NULL,
NULL);

Status = ZwCreateFile( &hfile,
GENERIC_WRITE,
&ObjectAttributes,
&IoStatusBlock,
NULL,
FILE_ATTRIBUTE_NORMAL,
0,
FILE_OVERWRITE_IF,
FILE_NON_DIRECTORY_FILE | FILE_SYNCHRONOUS_IO_ALERT,
NULL,
0);

if(IoStatusBlock.Status != STATUS_SUCCESS)
{
DBGPRINT(ERROR, ("Couldn't create file\n"));
}
else
{
/// write data...



Nunc est bibendum!
Generalupdating Edit box in a Dialog from Callback function. Pin
kk_vp19-Aug-05 2:17
kk_vp19-Aug-05 2:17 
GeneralRe: updating Edit box in a Dialog from Callback function. Pin
David Crow19-Aug-05 2:28
David Crow19-Aug-05 2:28 
GeneralRe: updating Edit box in a Dialog from Callback function. Pin
kk_vp19-Aug-05 4:04
kk_vp19-Aug-05 4:04 
GeneralRe: updating Edit box in a Dialog from Callback function. Pin
David Crow19-Aug-05 4:21
David Crow19-Aug-05 4:21 
GeneralRe: updating Edit box in a Dialog from Callback function. Pin
kk_vp19-Aug-05 4:29
kk_vp19-Aug-05 4:29 
GeneralRe: updating Edit box in a Dialog from Callback function. Pin
David Crow19-Aug-05 4:34
David Crow19-Aug-05 4:34 
GeneralRe: updating Edit box in a Dialog from Callback function. Pin
Jose Lamas Rios19-Aug-05 2:44
Jose Lamas Rios19-Aug-05 2:44 
GeneralRe: updating Edit box in a Dialog from Callback function. Pin
MailtoGops19-Aug-05 2:49
MailtoGops19-Aug-05 2:49 
GeneralRe: updating Edit box in a Dialog from Callback function. Pin
gamitech19-Aug-05 3:33
gamitech19-Aug-05 3:33 
GeneralRe: updating Edit box in a Dialog from Callback function. Pin
kk_vp19-Aug-05 4:05
kk_vp19-Aug-05 4:05 
GeneralRe: updating Edit box in a Dialog from Callback function. Pin
ThatsAlok21-Aug-05 18:53
ThatsAlok21-Aug-05 18:53 
GeneralRe: updating Edit box in a Dialog from Callback function. Pin
kk_vp24-Aug-05 0:31
kk_vp24-Aug-05 0:31 
GeneralRe: updating Edit box in a Dialog from Callback function. Pin
MailtoGops19-Aug-05 4:26
MailtoGops19-Aug-05 4:26 
GeneralRe: updating Edit box in a Dialog from Callback function. Pin
kk_vp19-Aug-05 4:32
kk_vp19-Aug-05 4:32 
GeneralRe: updating Edit box in a Dialog from Callback function. Pin
MailtoGops22-Aug-05 0:23
MailtoGops22-Aug-05 0:23 
GeneralMIMESniffer.DLL MIME to HTML Conversion Problem ( if MIME tag starts with <DIV>,<P> or <UL> Pin
chandan kumar19-Aug-05 2:08
chandan kumar19-Aug-05 2:08 
GeneralRe: MIMESniffer.DLL MIME to HTML Conversion Problem ( if MIME tag starts with <DIV>,<P> or <UL> Pin
Jose Lamas Rios19-Aug-05 2:55
Jose Lamas Rios19-Aug-05 2:55 

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.