Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Download Visual Studio Add-In

DATA_BLOB (Structures)
 
.
Summary

C# Signature:

[StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)]
private struct DATA_BLOB {
    public int cbData;
    public IntPtr pbData;
}

VB .NET Signature:

<StructLayout(LayoutKind.Sequential, CharSet:=CharSet.Unicode)> Structure DATA_BLOB

<StructLayout(LayoutKind.Sequential, CharSet=CharSet.Unicode)> Structure DATA_BLOB

    Public cbData As Integer
    Public pbData As IntPtr
End Structure

end structure

Notes:

None.

Tips & Tricks:

Remember that DATA_BLOB.pbData for the output parameters of the CryptProtectData and CryptUnprotectData functions will point to a block of unmanaged memory that needs to be cleaned up using a call to LocalFree from kernel32. You will of course have to use pinvoke to call LocalFree.

Sample Code:

How To Create a DPAPI Library: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/secmod/html/secmod21.asp

Alternative Managed API:

Do you know one? Please contribute it!

Documentation
DATA_BLOB on MSDN

Please edit this page!

Do you have...

  • helpful tips?
  • corrections to the existing content?
  • alternate definitions?
  • additional languages you want to include?

Select "Edit This Page" on the right hand toolbar and edit it! Or add new pages containing any supporting types needed.

 
Access PInvoke.net directly from VS:
Terms of Use
Edit This Page
Find References
Show Printable Version
Revisions