|
Can explain why you want to hide your partition drive,please?
|
|
|
|
|
I want to take backup of my OS in a partition drive other than OS drive and Active partition drive.So I want to protect that drive from unauthorised acces like formatting,deleting etc. Because i want that drive only for backup purpose.
nirmal
|
|
|
|
|
aaaan wrote: I want to take backup of my OS in a partition drive other than OS drive and Active partition drive.So I want to protect that drive from unauthorised acces like formatting,deleting etc. Because i want that drive only for backup purpose.
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer
You need to create DWORD value "NoDrives" and set value data to
drive a: 1
drive c 4
drive d 8
...
|
|
|
|
|
Thanks for your reply.
But it is not working.
nirmal
|
|
|
|
|
I used and it work how do you use?
you want create a dword value that is NoDrives and for its value enter 1 and restart your computer then when you see MyComputer you can see drive a
|
|
|
|
|
WhiteSky wrote: you want create a dword value that is NoDrives and for its value enter 1 and restart your computer then when you see MyComputer you can see drive a
http://www.codeproject.com/system/SysUtil.asp[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
aaaan wrote: Thanks for your reply.
But it is not working.
http://www.codeproject.com/system/SysUtil.asp[^]
"Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow
cheers,
Alok Gupta
VC Forum Q&A :- I/ IV
Support CRY- Child Relief and You
|
|
|
|
|
Thanks ThatsAlok,
It is OK.
The drives are removed from explorer,but still we can do anything through
Computer Management->Disk management.I need to protect my drive from formatting and deleting.
nirmal
|
|
|
|
|
A good link thanks Alok
I think writer this article is ThatsAlok,Right?
|
|
|
|
|
Hi Friends!
I m working on Ms Access .mdb file Format.
Till now i know some information about .mdb file format like .mdb format stores data in different pages of fixed size.
In .mdb file format one of the main page is Databases Defination Page which stroe the information about the password and Encryption used in it.If any body know which type of encryption algorithm used in .mdb file format to store the password and other information and how much bytes used to store this information.
the other importent page is Table Page and Leaf Index Page.Is anybody tell me or give me some help what information these pages stroes.
If anybody have any idea which type of information stores in these pages and how this information stores .pls help me.
ThankYou.
|
|
|
|
|
Hi all,
I have one class CMyRichEditCtrl:public CRichEditCtrl
i have done some code by which i can get the word when mouse moves on it.
e.g.
asdf as*dff sdfs sdsd
asdasd asdasd asdasd asdasd
if mouse cursor is on the '*' word i am getting asdff. by using CharFromPos.
after getting this word i want to show it's ascii value.
so how can i show this thing.
Means i am doing all these things in mousemove handler.
so in that time if the mouse moves then what will happen?
is it possible?
Thanks and Regards
Harshal Shete
|
|
|
|
|
Im helping out someone with this problem and im stuck, it been sometime since i used c++.
He reads in a file (ios::binary) and
char version [30]; //
...
file.get(version, 30);
Now the in version[0] is a char value, i want the decimal value, for example, 0x18 is "cancle" (looks like a up arrow in text). I want the decimal value 24 from 0x18, or take the char "cancle" and get 24.
the reason i need the decimal value is because it represents the lenght of the data string after version[0]. 30 is the max the string can be so thats why i need the decimal value of version[0]. Its just to tell the user what version the file being read is. Can anyone help me on this?
Thanks.
modified 16-May-21 21:01pm.
|
|
|
|
|
int length = (int)version[0];
cout << "value should be 24 <" << length << ">" << endl;
|
|
|
|
|
Thanks. I swear i though i tried that but had an error and wrote if off.
edit: Well it wasnt an error but a '0'. When i run it through VS2005 i get a zero, but when i go to the .exe and double click it i get 24. Thats why i wrote it off i dont get the right values when running through VS2005. IT was driving me nuts out of the blue i double click the .exe and bam it works. dang VS2005
-- modified at 1:50 Monday 31st July, 2006
modified 16-May-21 21:01pm.
|
|
|
|
|
See Here[^] maybe it is some helpful to you
|
|
|
|
|
codeguru again ??!!
|
|
|
|
|
Hello Mr toxcct,
How are you?did you have a good weekends?
I can say only :
and i say again,
Viens,laissons l'Avenir;laissons nos chagrins fous.
Jouissons du present et si doux!(Khayyam)
|
|
|
|
|
I have an application that places a custom button on the window caption bar. However I am having a problem when running on Windows XP.
I am finding that simply handling the WM_NCPAINT message causes XP to render the caption bar with the old Windows 2000 style. If I comment out ON_WM_NCPAINT() in the message map the caption bar is then drawn with the current XP style, put it back and the Windows 2000 style is used.
To make matters worse GetSystemMetrics returns caption icon sizes that match the XP theme, even when it is rendering the Windows 2000 style. This means I have no way of calculating the icon size and position.
I feel like I am trapped, I can't have the XP style because handling WM_NCPAINT automatically disables it, and I can't have the Windows 2000 style because GetSystemMetrics won't tell me the correct sizes. How does Microsoft expect people to now put icons on the caption bar?
Has anybody put a custom icon on the caption bar of XP and retained the themed style, how did you do it?
P.S. Popup dialog windows are render with the XP style regardless of what I do with the main window.
|
|
|
|
|
'simply' handling WM_NCPAINT does not turn off visual styles as you claim. You are probably calling DrawFrameCtrl / some other API in your nc-paint handler - this is what is turning off the visual styles for the window. Replace all your drawing with a BitBlt and it'll work fine.
|
|
|
|
|
Yes you are right I have confirmed that it is the drawing part of OnNcPaint that is stopping the visual style. Since I do my drawing after the default window processing completes, Windows must work out that I will be calling DrawFrameControl in the future and then render using the old Windows 2000 style.
I think all I have to do now is replace DrawFrameControl with some theme based drawing when running on XP. I have just added to code to load the uxtheme.dll library and get pointers to theme functions I need to call. I think I just need to do the following with appropriate parameters to draw my icon...
if (uxthemeloaded)
{
pOpenThemeData(...);
pGetThemeBackgroundContentRect(...);
if (pIsThemeBackgroundPartiallyTransparent(...))
{
pDrawThemeParentBackground(...);
}
pDrawThemeBackground(...);
pCloseThemeData(...);
}
|
|
|
|
|
John Saunders wrote: This means I have no way of calculating the icon size and position.
U can get the title bar height by taking the difference in the top of the window rect and client rect( do forget to call the ClientToScreen of the client rect ).
nave
|
|
|
|
|
Few days back i posted here the same problem.I want to get some answers pls help me.
In the application one keyboard is made by using a dialog with bitmap.Then by pressing the keys in that keyboard the application will get data like numbers,alphabets,enter key...like that.This keyboard have all buttons like the system keyboard.
I have to enter values to dialog edit control through this keys.So i get sample coding..In that they coded in keyboard class like..PostMessage(WM_KEYDOWN,49,0);
and in the corresponding dialog class where the value should entered they coded as
void CFacePlate::OnKeyDown(UINT nChar, UINT nRepCnt, UINT nFlags)
{
case 49:
sSktNumValue += "1";
break;
CDialog::OnKeyDown(nChar, nRepCnt, nFlags);
}
So i debugged the program..When ever the Postmessage function in Keyboard class is executed then the contol is going to OnKeyDown function in Dialog class.How it si going there?
I dont know whats happening there.
I coded like this for my application..but the control is not going to OnkeyDown function..How can i make that?
Anu
|
|
|
|
|
Hi all
i have developed a windows service. rite now i have to manually setup
folders, copy the exe of service to it n then manually install and start the
service from command prompt. Now i want to automate all this process. I want
to make a setup(installer) for that purpose. So that i only need to give that
setup program to somebody n when somebody runs that...everything is
installed, copied on its own......Please suggest me how do i make the
installer code....(something like proffesional software setup
programes).......also in which language it wud be easy to do it........my
service is in C++
thanks
kunal s patel
|
|
|
|
|
|
Hi all
i have a client/server application(infact server is a service and client is
a MFC gui) now i have a situation where i need to transfer username and
password over the network to the server from the gui.........but sending it
in plain text is harmful....so my question is how do i start a secure
connection to the server n send the information to it n then close the secure
connection
thanks
kunal
|
|
|
|