Hi All,
This regarding removing/hiding the “Safely Remove Device” Icon for USB
Device!
Whenever any USB device specialy mass storage is connected “Safely Remove
Device” appears in the right bottom in windows screen.
As we are our working on USB video device we dont want that icon to be
displayed for our device. We are using WinUSB as a driver!
Is it possible to do in anyway in WunUSB?
I tried with BulkUSB sample, It is possible by modifying the
DeviceCapability Structure SurpriseRemoveOK flag to 1.
Any pointer/help appreciated!!
Thanks in advance.
Regards
Sunil
In the routine IRP_MJ_PNP, handle the IoCtl code = IRP_MN_QUERY_CAPABILITIES
PDEVICE_CAPABILITIES caps =
(PDEVICE_CAPABILITIES)Stack->Parameters.DeviceCapabilities.Capabilities;
caps->SurpriseRemovableOK = TRUE;
caps->Removable = TRUE;
caps->EjectSupported = TRUE;
caps->WarmEjectSupported = TRUE;
2011/1/10 Sunil Kumar
> Hi All,
>
> This regarding removing/hiding the “Safely Remove Device” Icon for USB
> Device!
>
> Whenever any USB device specialy mass storage is connected “Safely Remove
> Device” appears in the right bottom in windows screen.
>
> As we are our working on USB video device we dont want that icon to be
> displayed for our device. We are using WinUSB as a driver!
>
> Is it possible to do in anyway in WunUSB?
>
> I tried with BulkUSB sample, It is possible by modifying the
> DeviceCapability Structure SurpriseRemoveOK flag to 1.
>
> Any pointer/help appreciated!!
>
> Thanks in advance.
>
> Regards
> Sunil
> — NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and
> other seminars visit: http://www.osr.com/seminars To unsubscribe, visit
> the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer
Modifyin Device Capability Structure (caps->SurpriseRemovableOK = TRUE;) is
possible in case of Writing WDM driver but we are using WinUSB as a driver!!
Below listed registers can be changed if WinUSB provides support (Apis for
same) or we having some other means by editing these using INF file
/*
caps->SurpriseRemovableOK = TRUE;
caps->Removable = TRUE;
caps->EjectSupported = TRUE;
caps->WarmEjectSupported = TRUE
*/
Please provide your valuable comments as I am still looking for the same.
Thanks and Regards
Sunil
On Mon, Jan 10, 2011 at 11:05 AM, ender wrote:
> In the routine IRP_MJ_PNP, handle the IoCtl code =
> IRP_MN_QUERY_CAPABILITIES
> PDEVICE_CAPABILITIES caps =
> (PDEVICE_CAPABILITIES)Stack->Parameters.DeviceCapabilities.Capabilities;
> caps->SurpriseRemovableOK = TRUE;
> caps->Removable = TRUE;
> caps->EjectSupported = TRUE;
> caps->WarmEjectSupported = TRUE;
>
> 2011/1/10 Sunil Kumar
>
>> Hi All,
>>
>> This regarding removing/hiding the “Safely Remove Device” Icon for USB
>> Device!
>>
>> Whenever any USB device specialy mass storage is connected “Safely Remove
>> Device” appears in the right bottom in windows screen.
>>
>> As we are our working on USB video device we dont want that icon to be
>> displayed for our device. We are using WinUSB as a driver!
>>
>> Is it possible to do in anyway in WunUSB?
>>
>> I tried with BulkUSB sample, It is possible by modifying the
>> DeviceCapability Structure SurpriseRemoveOK flag to 1.
>>
>> Any pointer/help appreciated!!
>>
>> Thanks in advance.
>>
>> Regards
>> Sunil
>> — NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and
>> other seminars visit: http://www.osr.com/seminars To unsubscribe, visit
>> the List Server section of OSR Online at
>> http://www.osronline.com/page.cfm?name=ListServer
>
>
> — NTDEV is sponsored by OSR For our schedule of WDF, WDM, debugging and
> other seminars visit: http://www.osr.com/seminars To unsubscribe, visit
> the List Server section of OSR Online at
> http://www.osronline.com/page.cfm?name=ListServer