Click here to Skip to main content
       

Visual Basic

 
AnswerRe: MS Graph in Access 2007 VBA Application PinmvpEddy Vluggen20-Jan-13 2:38 
Questionvb6.0 PinmemberBarun sengupta18-Jan-13 21:39 
AnswerRe: vb6.0 PinmvpEddy Vluggen20-Jan-13 2:36 
QuestionDecoding USBSTOR Registry Entry in VB PinmemberSantLou4017-Jan-13 16:06 
AnswerRe: Decoding USBSTOR Registry Entry in VB PinmemberChandraRam17-Jan-13 20:03 
AnswerRe: Decoding USBSTOR Registry Entry in VB PinmemberAlan N18-Jan-13 1:21 
GeneralRe: Decoding USBSTOR Registry Entry in VB PinmemberSantLou4018-Jan-13 1:47 
GeneralRe: Decoding USBSTOR Registry Entry in VB PinmemberAlan N18-Jan-13 4:05 
The .NET RegistryKey exposes a small subset of the full Windows Registry API and to get the LastWriteTime requires the Windows RegQueryInfoKey function. Microsoft made this really difficult prior to .NET 4, as the RegistryKey class did not expose the operating system registry key handle.
 
With the restriction of .NET 4 it should be a simple matter of using P/Invoke to call RegQueryInfoKey with the twelve parameters set correctly! I haven't done this but most of them are optional, so can probably be set to null or IntPtr.Zero.
 
http://msdn.microsoft.com/en-us/library/windows/desktop/ms724902(v=vs.85).aspx[^]
 
Retrieving the LastWrite time from a Registry key[^]
 
http://www.pinvoke.net/default.aspx/advapi32/RegQueryInfoKey.html[^]
 
http://msdn.microsoft.com/en-us/library/microsoft.win32.registrykey.handle.aspx[^]
 
If you have to work on a lower (lesser?) version of .NET then I don't think this will be an easy task as there is no facility to exchange handles between the .NET RegistryKey class and the native Windows functions. I think the only option would be using RegOpenKeyEx to get the handle and then call RegQueryInfoKey.
JokeRe: Decoding USBSTOR Registry Entry in VB PinmemberJeffnogueira22-Jan-13 4:31 
QuestionVB.NET ReportViewer too many Page Breaks rendered PinmemberSantLou4017-Jan-13 3:39 
AnswerRe: VB.NET ReportViewer too many Page Breaks rendered PinmemberChandraRam17-Jan-13 20:04 
GeneralRe: VB.NET ReportViewer too many Page Breaks rendered PinmemberSantLou4018-Jan-13 1:39 
Questioncontrol 5 appliances using pc's parallel port[vb.net 2010] PinmemberLord Christian15-Jan-13 20:10 
AnswerRe: control 5 appliances using pc's parallel port[vb.net 2010] PinmemberBernhard Hiller15-Jan-13 20:42 
GeneralRe: control 5 appliances using pc's parallel port[vb.net 2010] PinmemberLord Christian17-Jan-13 7:15 
AnswerRe: control 5 appliances using pc's parallel port[vb.net 2010] PinmvpRichard MacCutchan15-Jan-13 22:59 
GeneralRe: control 5 appliances using pc's parallel port[vb.net 2010] PinmemberLord Christian17-Jan-13 6:56 
GeneralRe: control 5 appliances using pc's parallel port[vb.net 2010] PinmvpRichard MacCutchan17-Jan-13 7:10 
GeneralRe: control 5 appliances using pc's parallel port[vb.net 2010] PinmemberLord Christian17-Jan-13 7:33 
GeneralRe: control 5 appliances using pc's parallel port[vb.net 2010] PinmvpRichard MacCutchan17-Jan-13 22:51 
GeneralRe: control 5 appliances using pc's parallel port[vb.net 2010] PinmemberLord Christian18-Jan-13 4:58 
GeneralRe: control 5 appliances using pc's parallel port[vb.net 2010] PinmvpRichard MacCutchan18-Jan-13 5:10 
GeneralRe: control 5 appliances using pc's parallel port[vb.net 2010] PinmemberLord Christian20-Jan-13 18:55 
QuestionBuilding COM Components Using MATLAB - Part I PinmemberSergentX13-Jan-13 6:35 
AnswerRe: Building COM Components Using MATLAB - Part I PinmvpEddy Vluggen14-Jan-13 3:13 

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

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


Advertise | Privacy | Mobile
Web02 | 2.8.140916.1 | Last Updated 18 Sep 2014
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid