|
i opend the harddisk like this
sHardDisk.Format("\\\\.\\PhysicalDrive1");
HANDLE hDevice = CreateFile(sHardDisk,GENERIC_READ,......,0,OPEN_EXISTING,0,0);
then i read the Partition table using ReadFile
Everything is fine i can read all the partitions and extended partitions directly from harddisk but my questions is
How can i find out the logical drive name corresponding to the Partitions and extended
partitions that i read directly from hard disk?
Thank you in advance.
To err is human, to blame it on somebody else shows management potential.
|
|
|
|
|
Hi,
Are you talking about something like this [^] ?
-----------
Mila
|
|
|
|
|
You got me curious now whats the difference between
"\\Device\\HarddiskVolume1" and "\\\\.\\PhysicalDrive1" i suspect one is a logical drive and the other is a device.
what i am doing is opening the harddisk reading directly from the sectors and loading the partition table and then reading the MFT.
I dislike feeling at home when i am abroad.
To all the virgins in the world thanks for Nothing.
|
|
|
|
|
hi all
i'm developping an application wich use a lot of xml documents...i want to parse a file xml, but i didn't find any function or Api to do it..
can you help me please...
thanks
|
|
|
|
|
You can use TinyXML[^] for this purpose. It's a nice cross-platform XML parser.
|
|
|
|
|
it's ok..thanks a lot
(merci beaucoup:->)
|
|
|
|
|
Depending on the features you want in a parser, there is Xerces/Xalan (which you can get off of www.apache.org), MSXML (which comes with Windows -- very similar API to Xerces), and TinyXML.
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
thanks Zac, i resolved my problem with Xerces, i'm now trying to find an application for converting from xml to C++ classes..if you know any tool for this, it will be a great day for me..
thanks again
|
|
|
|
|
use Serialization for this...
|
|
|
|
|
There are some tools that will generate these for you, but none of them are worth recommending. Personally, what I've always done when dealing with XML is to first write an .XSD file (schema), and then to write my class heirarchy by hand (which really shouldn't take you too long) and then to write a parsing routine to fill in the data as I march through it. When I've tried a few of the code generators, I've found myself fixing and changing much of the code anyway, so they really aren't all that useful.
If you decide to become a software engineer, you are signing up to have a 1/2" piece of silicon tell you exactly how stupid you really are for 8 hours a day, 5 days a week
Zac
|
|
|
|
|
|
Hello,
I get the handle of a window on a other process with the function FindWindowEx. How i can get the ThreadId of this handle on Windows XP.
I have tried to use "NtQueryInformationThread" but I will get Access Denied. Then i have tried to change the access restriction of the handle with API "SetSecurityInfo(handle, ...)" but I get the error "The handle is invalid". But the handle is valid. I' getting crazy now , nothing will work.
If you have a solution to get the handle I'm very happy.
I need the TreadID to setup "SetWindowsHookEx()" and capture (hook) then Messages to this window.
May you know a simpler solution to capture messages of a window.
Thank you very very much.
regards
michi
|
|
|
|
|
Have you tried GetWindowThreadProcessId() ?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|
|
Thank you,
this is a easy and nice solution
Regards
Manfred
|
|
|
|
|
hi,
I have an mfc app which creates menus dynamically as needed, I use InserMenu for this purpose, but I dont know where/how to write message handlers for these dynamic menus.
Any Ideas??
Thanks,
Mohammad
And ever has it been that love knows not its own depth until the hour of separation
|
|
|
|
|
If you're using TrackPopupMenu to open the dynamic menu, just provide the pointer to your dialog in it's 4th parameter, then write message handlers in your dialog as you would for a regular menu
(the MSDN page for TrackPopupMenu gives an example)
|
|
|
|
|
maybe this[^] can help...
|
|
|
|
|
You need to manual declare message handles on your code
|
|
|
|
|
Hi,
Thanks for your reply.
I have solved the issue by providing an ID in a specific range for every dynamically created menu (ID_BASE + n), then I override the OnCommand message handler to determine what menu was clicked.
Thanks again friend, and for all of those who try to help
Mohammad
And ever has it been that love knows not its own depth until the hour of separation
|
|
|
|
|
Glad you found it
|
|
|
|
|
Hi
I want to add tooltips to listctrl and also different different text to each column and each items.So how can i do this ? Can any one help me please?
Thanks
nirmal
|
|
|
|
|
|
Do you need to tooltip for each items
|
|
|
|
|
I need to add username, password etc to an MS Exchange server, so that i can send mail using the account from my VC++ program
Pls share your valuable idea/suggestion/codes
Anil
|
|
|
|
|
anilFirst wrote: I need to add username, password etc to an MS Exchange server...
Do you have access to said server?
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
|
|
|
|