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

.NET (Core and Framework)

 
GeneralRe: Raise VB6 event from C# Com (dll) Pin
led mike7-Feb-08 5:04
led mike7-Feb-08 5:04 
GeneralRe: Raise VB6 event from C# Com (dll) Pin
MayyMagdy7-Feb-08 11:52
MayyMagdy7-Feb-08 11:52 
General.NET Reference Code Downloader For Debugging With Visual Studio 2005 Pin
Izzet Kerem Kusmezer6-Feb-08 8:57
Izzet Kerem Kusmezer6-Feb-08 8:57 
GeneralRe: .NET Reference Code Downloader For Debugging With Visual Studio 2005 Pin
Pete O'Hanlon7-Feb-08 22:17
mvePete O'Hanlon7-Feb-08 22:17 
GeneralRe: .NET Reference Code Downloader For Debugging With Visual Studio 2005 Pin
Vasudevan Deepak Kumar11-Feb-08 23:36
Vasudevan Deepak Kumar11-Feb-08 23:36 
GeneralThread's processory affinity Pin
vijboy6-Feb-08 7:18
vijboy6-Feb-08 7:18 
GeneralNetwork connection staus Pin
vijboy6-Feb-08 6:57
vijboy6-Feb-08 6:57 
GeneralRe: Network connection staus Pin
Joachim Kerschbaumer6-Feb-08 22:36
Joachim Kerschbaumer6-Feb-08 22:36 
well. i guess there is no "managed" way to perform this task.
but if you´re willing to use some native winapi functions you
probably want to check out the following function defined in setupapi.h

SetupDiChangeState
SetupDiChangeState is the default handler for the DIF_PROPERTYCHANGE installation request. This function changes the state of an installed device.

WINSETUPAPI BOOL WINAPI<br />
  SetupDiChangeState(<br />
    IN HDEVINFO DeviceInfoSet, //handle to a device information set<br />
    IN OUT PSP_DEVINFO_DATA DeviceInfoData /*pointer to a SP_DEVINFO_DATA struct that specifies a                    device in the DeviceInfoSet*/<br />
    );



returns true if successful, false otherwise. if false, use GetLastError() to get more information.

a c# wrapper would look something like this:

[DllImport("setupapi.dll")]
public static extern WINSETUPAPI SetupDiChangeState(IntPtr DeviceInfoSet,
PSP_DEVINFO_DATA DeviceInfoData); //define PSP_DEVINFO_DATA as defined in setupapi.h
GeneralRe: Network connection staus Pin
vijboy7-Feb-08 7:57
vijboy7-Feb-08 7:57 
GeneralEditorBrowsable / Browsable Pin
AndrewVos6-Feb-08 6:42
AndrewVos6-Feb-08 6:42 
GeneralDataGridView (WinForms) Pagination Section Pin
Tristan Rhodes5-Feb-08 23:23
Tristan Rhodes5-Feb-08 23:23 
GeneralRe: DataGridView (WinForms) Pagination Section Pin
led mike6-Feb-08 5:21
led mike6-Feb-08 5:21 
GeneralRe: DataGridView (WinForms) Pagination Section Pin
Tristan Rhodes6-Feb-08 23:47
Tristan Rhodes6-Feb-08 23:47 
GeneralRe: DataGridView (WinForms) Pagination Section Pin
led mike7-Feb-08 4:57
led mike7-Feb-08 4:57 
GeneralRe: DataGridView (WinForms) Pagination Section Pin
Tristan Rhodes11-Feb-08 23:14
Tristan Rhodes11-Feb-08 23:14 
Questionhow to write a program in JAVA to mesure ping delay...? Pin
sacr835-Feb-08 22:13
sacr835-Feb-08 22:13 
AnswerRe: how to write a program in JAVA to mesure ping delay...? Pin
Colin Angus Mackay6-Feb-08 2:21
Colin Angus Mackay6-Feb-08 2:21 
Questioninterface and abstract class Pin
Member 47080775-Feb-08 18:43
Member 47080775-Feb-08 18:43 
GeneralRe: interface and abstract class Pin
Giorgi Dalakishvili5-Feb-08 20:38
mentorGiorgi Dalakishvili5-Feb-08 20:38 
GeneralRe: interface and abstract class Pin
bwilhite8-Feb-08 3:41
bwilhite8-Feb-08 3:41 
GeneralRe: interface and abstract class Pin
Mark Churchill8-Feb-08 17:06
Mark Churchill8-Feb-08 17:06 
GeneralRe: interface and abstract class Pin
bwilhite9-Feb-08 3:32
bwilhite9-Feb-08 3:32 
Questionerror handling in sql server 2000 Pin
Member 47080775-Feb-08 18:42
Member 47080775-Feb-08 18:42 
GeneralRe: error handling in sql server 2000 Pin
pmarfleet5-Feb-08 21:44
pmarfleet5-Feb-08 21:44 
GeneralRemoting config file Pin
bwilhite5-Feb-08 4:39
bwilhite5-Feb-08 4:39 

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.