BSTR - no page

Nov 9, 2010 at 1:59pm
Hi all

Does anyone know how I can stop a BSTR from written to the swap file?

Using VC2008 unmanaged

Thanks
Nov 9, 2010 at 4:14pm
EDIT: Nevermind I just googled BSTR and I have no idea what you are trying to do. Can you be more specific?
Last edited on Nov 9, 2010 at 4:20pm
Nov 9, 2010 at 4:43pm
Hi Computergeek01

Have an atl component which handles decrypted credit card data, Mr Boss Man wants me to make sure the info isn't swapped out to disc - PCI and all that.

Cheers
Nov 9, 2010 at 6:05pm
I think you need to use VirtualLock: http://msdn.microsoft.com/en-us/library/aa366895(VS.85).aspx (Although I'm not sure)
Last edited on Nov 9, 2010 at 6:11pm
Nov 9, 2010 at 6:27pm
Thanks Null, that looks the part.

Do I have to call VirtualAlloc before calling VirtualLock? If so would you know if/how I can get a BSTR from this?
Topic archived. No new replies allowed.