Click here to Skip to main content
15,921,837 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: Export to MS Word form MS access database or Datagridview Pin
Eddy Vluggen29-Jan-09 1:57
professionalEddy Vluggen29-Jan-09 1:57 
GeneralRe: Export to MS Word form MS access database or Datagridview Pin
ivo7529-Jan-09 2:04
ivo7529-Jan-09 2:04 
GeneralRe: Export to MS Word form MS access database or Datagridview Pin
EliottA29-Jan-09 5:20
EliottA29-Jan-09 5:20 
JokeRe: Export to MS Word form MS access database or Datagridview Pin
ivo7529-Jan-09 7:59
ivo7529-Jan-09 7:59 
AnswerRe: Export to MS Word form MS access database or Datagridview Pin
ivo7529-Jan-09 8:03
ivo7529-Jan-09 8:03 
QuestionHarddisk Serial Number using VB.net Pin
VikashGohil28-Jan-09 21:51
VikashGohil28-Jan-09 21:51 
AnswerRe: Harddisk Serial Number using VB.net Pin
«_Superman_»28-Jan-09 22:23
professional«_Superman_»28-Jan-09 22:23 
GeneralRe: Harddisk Serial Number using VB.net Pin
VikashGohil29-Jan-09 1:09
VikashGohil29-Jan-09 1:09 
Thanks For your reply,

I have found a code in VB which when run in Administrator Login works perfectly and gives me the Serial No.

But when i run the same code under normal or Limited User, The code does not give the Serial No.

I have gone through the code to find the difference, this is where i found the difference,

SmartOpen = CreateFile("\\.\PhysicalDrive" & CStr(drvNumber), _
GENERIC_READ Or GENERIC_WRITE, _
FILE_SHARE_READ Or FILE_SHARE_WRITE, _
ByVal 0&, _
OPEN_EXISTING, _
0&, _
0&)

The CreateFile function returns a value >0 in Admin Mode but in User Mode it returns -1.

Can any one please tell me what exactly is happening in the above code and what does this CreateFile Function do.

Please , it's Urgent.

Thanks in Advance,
GeneralRe: Harddisk Serial Number using VB.net Pin
«_Superman_»29-Jan-09 1:43
professional«_Superman_»29-Jan-09 1:43 
GeneralRe: Harddisk Serial Number using VB.net Pin
Luc Pattyn29-Jan-09 5:38
sitebuilderLuc Pattyn29-Jan-09 5:38 
QuestionVB Compile problem Pin
Member 152314228-Jan-09 20:20
Member 152314228-Jan-09 20:20 
Questionchechk box Pin
kulandaivel_mca200728-Jan-09 19:25
kulandaivel_mca200728-Jan-09 19:25 
General[Message Deleted] Pin
Sam McKay28-Jan-09 14:15
Sam McKay28-Jan-09 14:15 
QuestionSuggestions on using XmlTextReader to parse xml into an object tree. Pin
wout de zeeuw28-Jan-09 7:39
wout de zeeuw28-Jan-09 7:39 
QuestionRe: Suggestions on using XmlTextReader to parse xml into an object tree. Pin
led mike28-Jan-09 9:06
led mike28-Jan-09 9:06 
AnswerRe: Suggestions on using XmlTextReader to parse xml into an object tree. Pin
wout de zeeuw28-Jan-09 13:53
wout de zeeuw28-Jan-09 13:53 
GeneralRe: Suggestions on using XmlTextReader to parse xml into an object tree. Pin
N a v a n e e t h28-Jan-09 14:56
N a v a n e e t h28-Jan-09 14:56 
GeneralRe: Suggestions on using XmlTextReader to parse xml into an object tree. Pin
wout de zeeuw28-Jan-09 23:39
wout de zeeuw28-Jan-09 23:39 
GeneralRe: Suggestions on using XmlTextReader to parse xml into an object tree. Pin
led mike29-Jan-09 4:58
led mike29-Jan-09 4:58 
GeneralRe: Suggestions on using XmlTextReader to parse xml into an object tree. Pin
wout de zeeuw29-Jan-09 5:10
wout de zeeuw29-Jan-09 5:10 
GeneralRe: Suggestions on using XmlTextReader to parse xml into an object tree. Pin
led mike29-Jan-09 5:20
led mike29-Jan-09 5:20 
GeneralRe: Suggestions on using XmlTextReader to parse xml into an object tree. Pin
wout de zeeuw29-Jan-09 5:25
wout de zeeuw29-Jan-09 5:25 
GeneralRe: Suggestions on using XmlTextReader to parse xml into an object tree. Pin
Mark Churchill29-Jan-09 12:29
Mark Churchill29-Jan-09 12:29 
QuestionRestricting FileBrowserDialog to set of Folders Pin
Tristan Rhodes28-Jan-09 5:59
Tristan Rhodes28-Jan-09 5:59 
QuestionDataTable inheritance and Serialization "Constructor to deserialize an object" "was not found" Pin
dwolver27-Jan-09 6:09
dwolver27-Jan-09 6:09 

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.