Control registry operations in Windows and .NET applications

CbRegInformation.RawDataLength property


Pascal    C++ (Lib)    C++ (VCL)    C++ (.NET)    C#    VB.NET   

CbRegInformation     See also    


Specifies the length of the data contained in RawData buffer.


    property RawDataLength : LongWord;

[C++ (Lib)]
    void SetRawDataLength(DWORD Value);
    DWORD GetRawDataLength(void);

[C++ (VCL)]
    __property unsigned RawDataLength;

[C++ (.NET)]
    property UInt32 RawDataLength

    UInt32 RawDataLength;

    Public Property RawDataLength As UInt32


Contains size of the buffer required to place all data. In the case it's greater then the raw data buffer length (RawDataBufferLength) then either ECBRegError(ERROR_INSUFFICIENT_BUFFER) or ECBRegError(ERROR_MORE_DATA) should be thrown. This error will tell the originator of the request that a larger buffer is required. In the case of ERROR_INSUFFICIENT_BUFFER no data is returned at all. In the case of ERROR_MORE_DATA only partial data is returned.

The Synchronize method sets this property automatically.

In the case of the PreQueryMultipleValueKey and PostQueryMultipleValueKey callbacks ERROR_INSUFFICIENT_BUFFER must not be thrown. Only ERROR_MORE_DATA is allowed. For additional information see the RequestRequiredLength parameter for these callbacks.

See also

Synchronize     RawData     RawDataBufferLength     Using CbRegInformation class    

Back to top