How can I eliminate the My Computer & Recycle Bin Icons from the desktop ?

I have tried

[HKEY_LOCAL_MACHINE\Explorer\Desktop]
"{000214A0-0000-0000-C000-000000000046}"=""
"{000214A1-0000-0000-C000-000000000046}"=""

;my computer
[HKEY_CLASSES_ROOT\CLSID\{000214A0-0000-0000-C000-000000000046}]
"FriendlyTypeName"=""
"DisplayName"=""
"DefaultIcon"=""
"InprocServer"=""

; Recycle Bin (BitBucket)
[HKEY_CLASSES_ROOT\CLSID\{000214A1-0000-0000-C000-000000000046}]
"FriendlyTypeName"=""
"DisplayName"=""
"DefaultIcon"=""
"AltIcon"=""
"InprocServer"=""

but this just turns them into yello folders with no text

Thanks
Ken Beauchesne

Re: My Computer & Recycle Bin by A

A
Thu Jul 29 15:50:53 CDT 2004

see my post from a few days ago ... I just did this.

use a small program at startup ...RegDeleteValue


"Ken Beauchesne" <kbeauchesne@monarchinstrument.com> wrote in message
news:euBTrzNdEHA.3928@TK2MSFTNGP09.phx.gbl...
> How can I eliminate the My Computer & Recycle Bin Icons from the desktop ?
>
> I have tried
>
> [HKEY_LOCAL_MACHINE\Explorer\Desktop]
> "{000214A0-0000-0000-C000-000000000046}"=""
> "{000214A1-0000-0000-C000-000000000046}"=""
>
> ;my computer
> [HKEY_CLASSES_ROOT\CLSID\{000214A0-0000-0000-C000-000000000046}]
> "FriendlyTypeName"=""
> "DisplayName"=""
> "DefaultIcon"=""
> "InprocServer"=""
>
> ; Recycle Bin (BitBucket)
> [HKEY_CLASSES_ROOT\CLSID\{000214A1-0000-0000-C000-000000000046}]
> "FriendlyTypeName"=""
> "DisplayName"=""
> "DefaultIcon"=""
> "AltIcon"=""
> "InprocServer"=""
>
> but this just turns them into yello folders with no text
>
> Thanks
> Ken Beauchesne
>
>



Re: My Computer & Recycle Bin by Ken

Ken
Fri Jul 30 08:25:34 CDT 2004

What kind of solution did you use ?
Im using ce4.2 .NET I tried a c++ .net form project and
it doesn't like the code mostly everything is undefined
from your example

thanks
ken

"A.User" <a_user@home.com> wrote in message
news:eoZPF3adEHA.3864@TK2MSFTNGP10.phx.gbl...
> see my post from a few days ago ... I just did this.
>
> use a small program at startup ...RegDeleteValue
>
>
> "Ken Beauchesne" <kbeauchesne@monarchinstrument.com> wrote in message
> news:euBTrzNdEHA.3928@TK2MSFTNGP09.phx.gbl...
> > How can I eliminate the My Computer & Recycle Bin Icons from the desktop
?
> >
> > I have tried
> >
> > [HKEY_LOCAL_MACHINE\Explorer\Desktop]
> > "{000214A0-0000-0000-C000-000000000046}"=""
> > "{000214A1-0000-0000-C000-000000000046}"=""
> >
> > ;my computer
> > [HKEY_CLASSES_ROOT\CLSID\{000214A0-0000-0000-C000-000000000046}]
> > "FriendlyTypeName"=""
> > "DisplayName"=""
> > "DefaultIcon"=""
> > "InprocServer"=""
> >
> > ; Recycle Bin (BitBucket)
> > [HKEY_CLASSES_ROOT\CLSID\{000214A1-0000-0000-C000-000000000046}]
> > "FriendlyTypeName"=""
> > "DisplayName"=""
> > "DefaultIcon"=""
> > "AltIcon"=""
> > "InprocServer"=""
> >
> > but this just turns them into yello folders with no text
> >
> > Thanks
> > Ken Beauchesne
> >
> >
>
>



Re: My Computer & Recycle Bin by Bruce

Bruce
Fri Jul 30 09:26:11 CDT 2004

What is C++.NET?

Specifically, what was undefined? You may need to look some functions up in
help to see which header files to include and which libraries to link with.

--
Bruce Eitman (eMVP)
Senior Engineer
beitman AT applieddata DOT net

Applied Data Systems
www.applieddata.net
An ISO 9001:2000 Registered Company
Microsoft WEP Gold-level Member




Re: My Computer & Recycle Bin by A

A
Fri Jul 30 12:48:27 CDT 2004

a snippit ...

#define REG_SUBKEY_MYCOMPUTER_ICON
(TEXT("{000214A0-0000-0000-C000-000000000046}"))

#define REG_SUBKEY_RECYCLEBIN_ICON
(TEXT("{000214A1-0000-0000-C000-000000000046}"))



int WINAPI WinMain(HINSTANCE hInst,

HINSTANCE hInstPrev,

LPWSTR lpCmdLine,

int nCmdShow

)

{

HKEY hKey = NULL;

// remove My Computer and Recycle Bin desktop icons

if (ERROR_SUCCESS != RegOpenKeyEx( HKEY_LOCAL_MACHINE,
L"\\Explorer\\Desktop", 0, 0, &hKey))

RETAILMSG(1, (TEXT("Launch: Could not open \\Explorer\\Desktop key!\r\n")));

else

{

if (ERROR_SUCCESS != RegDeleteValue(hKey, REG_SUBKEY_MYCOMPUTER_ICON))

RETAILMSG(1, (TEXT("Launch: Could not delete My Computer icon!\r\n")));

if (ERROR_SUCCESS != RegDeleteValue(hKey, REG_SUBKEY_RECYCLEBIN_ICON))

RETAILMSG(1, (TEXT("Launch: Could not delete Recycle Bin icon!\r\n")));

RegCloseKey( hKey);

}

// park cursor to extream right

SetCursorPos(320,0);

....





"Bruce Eitman (eMVP)" <beitmannospam@NOSPAM_applieddata.NOSPAM_net> wrote in
message news:OnN4qEkdEHA.2688@TK2MSFTNGP10.phx.gbl...
> What is C++.NET?
>
> Specifically, what was undefined? You may need to look some functions up
in
> help to see which header files to include and which libraries to link
with.
>
> --
> Bruce Eitman (eMVP)
> Senior Engineer
> beitman AT applieddata DOT net
>
> Applied Data Systems
> www.applieddata.net
> An ISO 9001:2000 Registered Company
> Microsoft WEP Gold-level Member
>
>
>



Re: My Computer & Recycle Bin by Ken

Ken
Fri Jul 30 14:11:54 CDT 2004

my question was a little more generic, i'm using visual studio 2003 when I
create
a project there are 5 choices for c++ .NET, ATL, MFC, Win32, General
and under those there are console or windows form etc..

this has to operate under the CF so my other code is all C# , just not sure
what
type of project to use to achieve this.

thanks
Ken
"A.User" <a_user@home.com> wrote in message
news:%237D8z1ldEHA.3392@tk2msftngp13.phx.gbl...
> a snippit ...
>
> #define REG_SUBKEY_MYCOMPUTER_ICON
> (TEXT("{000214A0-0000-0000-C000-000000000046}"))
>
> #define REG_SUBKEY_RECYCLEBIN_ICON
> (TEXT("{000214A1-0000-0000-C000-000000000046}"))
>
>
>
> int WINAPI WinMain(HINSTANCE hInst,
>
> HINSTANCE hInstPrev,
>
> LPWSTR lpCmdLine,
>
> int nCmdShow
>
> )
>
> {
>
> HKEY hKey = NULL;
>
> // remove My Computer and Recycle Bin desktop icons
>
> if (ERROR_SUCCESS != RegOpenKeyEx( HKEY_LOCAL_MACHINE,
> L"\\Explorer\\Desktop", 0, 0, &hKey))
>
> RETAILMSG(1, (TEXT("Launch: Could not open \\Explorer\\Desktop
key!\r\n")));
>
> else
>
> {
>
> if (ERROR_SUCCESS != RegDeleteValue(hKey, REG_SUBKEY_MYCOMPUTER_ICON))
>
> RETAILMSG(1, (TEXT("Launch: Could not delete My Computer icon!\r\n")));
>
> if (ERROR_SUCCESS != RegDeleteValue(hKey, REG_SUBKEY_RECYCLEBIN_ICON))
>
> RETAILMSG(1, (TEXT("Launch: Could not delete Recycle Bin icon!\r\n")));
>
> RegCloseKey( hKey);
>
> }
>
> // park cursor to extream right
>
> SetCursorPos(320,0);
>
> ....
>
>
>
>
>
> "Bruce Eitman (eMVP)" <beitmannospam@NOSPAM_applieddata.NOSPAM_net> wrote
in
> message news:OnN4qEkdEHA.2688@TK2MSFTNGP10.phx.gbl...
> > What is C++.NET?
> >
> > Specifically, what was undefined? You may need to look some functions
up
> in
> > help to see which header files to include and which libraries to link
> with.
> >
> > --
> > Bruce Eitman (eMVP)
> > Senior Engineer
> > beitman AT applieddata DOT net
> >
> > Applied Data Systems
> > www.applieddata.net
> > An ISO 9001:2000 Registered Company
> > Microsoft WEP Gold-level Member
> >
> >
> >
>
>



Re: My Computer & Recycle Bin by Paul

Paul
Mon Aug 02 14:38:32 CDT 2004

Not for CE there aren't. You cannot program in C++ from VS.NET for Windows
CE. It's not an option. You can use C# or VB.NET to write .NET (managed)
applications for Windows CE; not C++, though.

If you are using VS.NET 2003 Pro or better, which you must be, set the
language to C# or VB.NET. Choose Smart Device Application from the list of
possible project types, then select whichever general format for your
application fits (form-based, console, etc.)

Paul T.

"Ken Beauchesne" <kbeauchesne@monarchinstrument.com> wrote in message
news:u5OqXkmdEHA.3148@TK2MSFTNGP10.phx.gbl...
> my question was a little more generic, i'm using visual studio 2003 when I
> create
> a project there are 5 choices for c++ .NET, ATL, MFC, Win32, General
> and under those there are console or windows form etc..
>
> this has to operate under the CF so my other code is all C# , just not
sure
> what
> type of project to use to achieve this.
>
> thanks
> Ken
> "A.User" <a_user@home.com> wrote in message
> news:%237D8z1ldEHA.3392@tk2msftngp13.phx.gbl...
> > a snippit ...
> >
> > #define REG_SUBKEY_MYCOMPUTER_ICON
> > (TEXT("{000214A0-0000-0000-C000-000000000046}"))
> >
> > #define REG_SUBKEY_RECYCLEBIN_ICON
> > (TEXT("{000214A1-0000-0000-C000-000000000046}"))
> >
> >
> >
> > int WINAPI WinMain(HINSTANCE hInst,
> >
> > HINSTANCE hInstPrev,
> >
> > LPWSTR lpCmdLine,
> >
> > int nCmdShow
> >
> > )
> >
> > {
> >
> > HKEY hKey = NULL;
> >
> > // remove My Computer and Recycle Bin desktop icons
> >
> > if (ERROR_SUCCESS != RegOpenKeyEx( HKEY_LOCAL_MACHINE,
> > L"\\Explorer\\Desktop", 0, 0, &hKey))
> >
> > RETAILMSG(1, (TEXT("Launch: Could not open \\Explorer\\Desktop
> key!\r\n")));
> >
> > else
> >
> > {
> >
> > if (ERROR_SUCCESS != RegDeleteValue(hKey, REG_SUBKEY_MYCOMPUTER_ICON))
> >
> > RETAILMSG(1, (TEXT("Launch: Could not delete My Computer icon!\r\n")));
> >
> > if (ERROR_SUCCESS != RegDeleteValue(hKey, REG_SUBKEY_RECYCLEBIN_ICON))
> >
> > RETAILMSG(1, (TEXT("Launch: Could not delete Recycle Bin icon!\r\n")));
> >
> > RegCloseKey( hKey);
> >
> > }
> >
> > // park cursor to extream right
> >
> > SetCursorPos(320,0);
> >
> > ....
> >
> >
> >
> >
> >
> > "Bruce Eitman (eMVP)" <beitmannospam@NOSPAM_applieddata.NOSPAM_net>
wrote
> in
> > message news:OnN4qEkdEHA.2688@TK2MSFTNGP10.phx.gbl...
> > > What is C++.NET?
> > >
> > > Specifically, what was undefined? You may need to look some functions
> up
> > in
> > > help to see which header files to include and which libraries to link
> > with.
> > >
> > > --
> > > Bruce Eitman (eMVP)
> > > Senior Engineer
> > > beitman AT applieddata DOT net
> > >
> > > Applied Data Systems
> > > www.applieddata.net
> > > An ISO 9001:2000 Registered Company
> > > Microsoft WEP Gold-level Member
> > >
> > >
> > >
> >
> >
>
>