logo
#[repr(C)]
pub struct SCN_DATA_LOADED { pub code: UINT, pub hwnd: HWINDOW, pub uri: LPCWSTR, pub data: LPCBYTE, pub dataSize: UINT, pub dataType: RESOURCE_TYPE, pub status: UINT, }
Expand description

This notification indicates that external data (for example, image) download process has been completed.

Fields

code: UINT

SC_DATA_LOADED here.

hwnd: HWINDOW

HWINDOW of the window this callback was attached to.

uri: LPCWSTR

[in] zero terminated string, fully qualified uri, for example, “http://server/folder/file.ext”.

data: LPCBYTE

[in] pointer to loaded data.

dataSize: UINT

[in] loaded data size (in bytes).

dataType: RESOURCE_TYPE

[in] resource type category

status: UINT

Download status code:

  • status = 0 and dataSize == 0 - unknown error.
  • status = 100..505 - http response status, note: 200 - OK!
  • status > 12000 - wininet error code, see ERROR_INTERNET_*** in wininet.h

Trait Implementations

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.