Click here to Skip to main content
15,912,400 members
Home / Discussions / C#
   

C#

 
Questionhi,how do i count total number of child node in xml Pin
premkamalg25-Sep-06 21:20
premkamalg25-Sep-06 21:20 
AnswerRe: hi,how do i count total number of child node in xml Pin
Alper Camel25-Sep-06 21:30
Alper Camel25-Sep-06 21:30 
Generalhelp me Pin
premkamalg25-Sep-06 23:01
premkamalg25-Sep-06 23:01 
GeneralRe: help me Pin
Alper Camel25-Sep-06 23:06
Alper Camel25-Sep-06 23:06 
QuestionHow to disable hardware devices in computer Pin
Gnanapazham25-Sep-06 21:07
Gnanapazham25-Sep-06 21:07 
AnswerRe: How to disable hardware devices in computer Pin
Niiiissssshhhhhuuuuu25-Sep-06 21:46
Niiiissssshhhhhuuuuu25-Sep-06 21:46 
GeneralRe: How to disable hardware devices in computer Pin
delimavi25-Sep-06 22:39
delimavi25-Sep-06 22:39 
AnswerRe: How to disable hardware devices in computer Pin
Niiiissssshhhhhuuuuu25-Sep-06 23:39
Niiiissssshhhhhuuuuu25-Sep-06 23:39 
Hi,

May be this will help you.


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

void main()
{
HANDLE h;
h=CreateFile("\\\\.\\E:",GENERIC_READ|GENERIC_WRITE,FILE_SHARE_READ|FILE_SHARE_WRITE,NULL,OPEN_EXISTING,FILE_ATTRIBUTE_NORMAL,NULL);
DWORD r;
PREVENT_MEDIA_REMOVAL pmr;
pmr.PreventMediaRemoval=false;//here do true or false//
DeviceIoControl(h,IOCTL_STORAGE_MEDIA_REMOVAL,(void*)&pmr,sizeof(pmr),NULL,NULL,&r,NULL);
CloseHandle(h);
}


Use this code to implement yours

Cool | :cool: Cool | :cool:

<maarquee>nishu
AnswerRe: How to disable hardware devices in computer Pin
Niiiissssshhhhhuuuuu25-Sep-06 23:40
Niiiissssshhhhhuuuuu25-Sep-06 23:40 
QuestionRetrieve windows users list Pin
Alper Camel25-Sep-06 21:04
Alper Camel25-Sep-06 21:04 
AnswerRe: Retrieve windows users list Pin
Niiiissssshhhhhuuuuu25-Sep-06 21:35
Niiiissssshhhhhuuuuu25-Sep-06 21:35 
GeneralRe: Retrieve windows users list Pin
Alper Camel25-Sep-06 21:42
Alper Camel25-Sep-06 21:42 
QuestionException occured in deserialization of memory stream(Its Urgent) Pin
Khushi8325-Sep-06 21:02
Khushi8325-Sep-06 21:02 
Questionhelp me plz Pin
sunita ramesh25-Sep-06 20:51
sunita ramesh25-Sep-06 20:51 
AnswerRe: help me plz Pin
Niiiissssshhhhhuuuuu25-Sep-06 21:43
Niiiissssshhhhhuuuuu25-Sep-06 21:43 
Answersee the below link it will helpful to you Pin
premkamalg25-Sep-06 22:22
premkamalg25-Sep-06 22:22 
Questionclosing already opened forms Pin
saqib8225-Sep-06 19:51
saqib8225-Sep-06 19:51 
AnswerRe: closing already opened forms Pin
rah_sin25-Sep-06 20:52
professionalrah_sin25-Sep-06 20:52 
GeneralRe: closing already opened forms Pin
saqib8225-Sep-06 22:02
saqib8225-Sep-06 22:02 
AnswerRe: closing already opened forms Pin
Niiiissssshhhhhuuuuu25-Sep-06 21:29
Niiiissssshhhhhuuuuu25-Sep-06 21:29 
QuestionOffice automation Pin
IamADotNetGuy25-Sep-06 18:30
IamADotNetGuy25-Sep-06 18:30 
AnswerRe: Office automation Pin
WillemM25-Sep-06 21:26
WillemM25-Sep-06 21:26 
Questiondynamically changing assembly Pin
For_IT25-Sep-06 18:20
For_IT25-Sep-06 18:20 
AnswerRe: dynamically changing assembly Pin
Rob Philpott26-Sep-06 0:33
Rob Philpott26-Sep-06 0:33 
Questiongetting a count of a delimiter in a string Pin
Keshav V. Kamat25-Sep-06 17:27
Keshav V. Kamat25-Sep-06 17:27 

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.