Click here to Skip to main content
15,897,187 members
Home / Discussions / C#
   

C#

 
GeneralRe: money data type Pin
Luis Alonso Ramos2-Nov-04 16:32
Luis Alonso Ramos2-Nov-04 16:32 
GeneralColor region Pin
sreejith ss nair2-Nov-04 2:51
sreejith ss nair2-Nov-04 2:51 
GeneralRe: Color region Pin
yoaz2-Nov-04 3:51
yoaz2-Nov-04 3:51 
GeneralC# interface Pin
skrishnasarma2-Nov-04 2:23
skrishnasarma2-Nov-04 2:23 
GeneralRe: C# interface Pin
yoaz2-Nov-04 3:48
yoaz2-Nov-04 3:48 
GeneralRe: C# interface Pin
skrishnasarma2-Nov-04 3:53
skrishnasarma2-Nov-04 3:53 
GeneralRe: C# interface Pin
Michael P Butler2-Nov-04 4:50
Michael P Butler2-Nov-04 4:50 
Questionwhy SetupDiEnumDeviceInterfaces() always returns false? Pin
momer2-Nov-04 2:16
momer2-Nov-04 2:16 
//my c# code:
public class Win32
{......
public static Guid GUID_DEVINTERFACE_USB_DEVICE
= new Guid("A5DCBF10-6530-11D2-901F-00C04FB951ED");
public class SP_DEVICE_INTERFACE_DATA
{
public int cbSize;
public Guid InterfaceClassGuid;
public int Flags;
public ulong Reserved;
}
......
}
public class usbdevice
{
IntPtr hDevInfo;
Win32.SP_DEVICE_INTERFACE_DATA DeviceInterfaceData = new Win32.SP_DEVICE_INTERFACE_DATA();
......
hDevInfo = Win32.SetupDiGetClassDevs(ref Win32.GUID_DEVINTERFACE_USB_DEVICE,
null, // Enumerator
null,
Win32.DIGCF_PRESENT | Win32.DIGCF_DEVICEINTERFACE); //flags
......
DeviceInterfaceData.cbSize = (int)Marshal.SizeOf(new Win32.SP_DEVICE_INTERFACE_DATA().GetType());
bResult = SetupDiEnumDeviceInterfaces(hDevInfo,
null,
ref Win32.GUID_DEVINTERFACE_USB_DEVICE,
memberIndex,
DeviceInterfaceData);
......
}
//after invoked the Win32.SetupDiGetClassDevs(),the hDevInfo is not -1. But the bResult always returns false,what's the problem?
Thanks!

GeneralGeneral questions about C# capabilities Pin
Anonymous2-Nov-04 1:51
Anonymous2-Nov-04 1:51 
Generaluser controls drag drop Pin
g00fyman2-Nov-04 1:40
g00fyman2-Nov-04 1:40 
GeneralRe: why the SetupDiGetClassDevs() can not retrieve any device info? Pin
Stefan Troschuetz2-Nov-04 0:28
Stefan Troschuetz2-Nov-04 0:28 
GeneralRe: why the SetupDiGetClassDevs() can not retrieve any device info? Pin
momer2-Nov-04 1:05
momer2-Nov-04 1:05 
Questionhow to use the same variable in c#, in HTML Pin
Jug-Head2-Nov-04 0:07
Jug-Head2-Nov-04 0:07 
AnswerRe: how to use the same variable in c#, in HTML Pin
Dave Kreskowiak2-Nov-04 1:04
mveDave Kreskowiak2-Nov-04 1:04 
GeneralRe: how to use the same variable in c#, in HTML Pin
Jug-Head2-Nov-04 9:40
Jug-Head2-Nov-04 9:40 
AnswerRe: how to use the same variable in c#, in HTML Pin
R. Thomas2-Nov-04 2:34
R. Thomas2-Nov-04 2:34 
QuestionHow to create a new process though the process is already created? Pin
ting6682-Nov-04 0:01
ting6682-Nov-04 0:01 
AnswerRe: How to create a new process though the process is already created? Pin
yoaz2-Nov-04 4:05
yoaz2-Nov-04 4:05 
GeneralRetrieving the Macine Name Pin
Mark Dowell1-Nov-04 23:54
Mark Dowell1-Nov-04 23:54 
GeneralRe: Retrieving the Macine Name Pin
Mark Dowell2-Nov-04 0:07
Mark Dowell2-Nov-04 0:07 
Generalprint queue Pin
jartometienen1-Nov-04 23:19
jartometienen1-Nov-04 23:19 
GeneralRe: Error:Unable to loas DLL (Setupapi.lib) Pin
momer1-Nov-04 23:05
momer1-Nov-04 23:05 
GeneralAdding XP Visual Styles to UserControl Pin
Jay Shankar1-Nov-04 22:41
Jay Shankar1-Nov-04 22:41 
GeneralRe: Adding XP Visual Styles to UserControl Pin
Judah Gabriel Himango2-Nov-04 4:35
sponsorJudah Gabriel Himango2-Nov-04 4:35 
GeneralRe: Adding XP Visual Styles to UserControl Pin
Jay Shankar3-Nov-04 19:01
Jay Shankar3-Nov-04 19:01 

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.