BSTR - no page

Hi all

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

Using VC2008 unmanaged

Thanks
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
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
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
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.