get your Oracle DBA to give you the correct tnsnames.ora settings for the server DB instance - say he gives it to you and its 'dbprod1' - paste the settings into your tnsnames.ora, then replace 'orc1' in Data Source=orcl with, for example, dbprod1, so you get Data Source=dbprod1 as the end part of ie
I am way new to cryptography. I have figured out how to decrypt an mpeg file. I now need to authenticate the images. I have a certificate embedded in the decrypted image file along with an "R" and "S". What are the steps to pull the "P" (prime) out of the embedded certificate and verify the signature? I'm on a windows xp sp3 platform using Visual Studio 2008 sp1.
Thanks for the reply. I was able to get as far as I can by using MSDN Cryptography pages. So far I havent been able to find specific instructions/examples for authenticating the images of a decrypted file.
As suggested above DeviceIOControl is needed.
In addition to that if you want to get the partition size and partition start position
you have to call IOCTL_DISK_GET_DRIVE_LAYOUT_EX([^]) as device control code then you will get the partition data.
It has structure DRIVE_LAYOUT_INFORMATION_EX([^]), which will give the required data.
GetDiskFreeSpace gives geometry of partition (total cluster,sector per cluster, sector size and free cluster).
How to get disk(PHYSICALDRIVE0,1..) size. I think GetDiskFreeSpace will not work for it
You cannot do that.
You're trying to serialize an object (see "Serialization" topic at Wikipedia [^]) in a wrong way.
Since std::string is not a scalar type, the object instance (objdata) holds just a reference to it (and you're saving just such a reference, i.e. storing an address to disk, clearly it makes no sense).
So you cannot save the class as a whole using
instead you have to store each of its members in order to restore appropriately them, for instance:
string::size_type len = objdata.name.length();
file.write((char*) &len, sizeof(len)); // this is useful for reading back the string
file.write((char*)(objdata.name.c_str(), len); //note: not storing null terminator
Can you spot the code for reading back the class?
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke