Partager via


GetStringFromBlob

The GetStringFromBlob function returns a string located at a given position within a BLOB.

DWORDGetStringFromBlob(HBLOBhBlob,
const char*pOwnerName,
const char*pCategoryName,
const char*pTagName,
const char**ppString);

Parameters

  • hBlob
    [in] A handle to the BLOB.
  • pOwnerName
    [in] A BLOB Owner section where the string is located.
  • pCategoryName
    [in] A BLOB Category section where the string is located.
  • pTagName
    [in] The Tag of the requested string.
  • ppString
    [out] A pointer to a variable that points to the returned string.

Return Values

If the function is successful, the return value is NMERR_SUCCESS.

If the function is unsuccessful, the return value is a NMERR value that indicates the error.

If the specified Owner, Category, or Tag data does not exist, the function returns NMERR_BLOB_ENTRY_DOES_NOT_EXIST.

Requirements

Client Requires Windows XP, Windows 2000 Professional, or Windows NT Workstation 4.0.
Server Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.
Header

Declared in Netmon.h.

Library

Link to Npptools.lib.

DLL Requires Npptools.dll.

See Also

SetStringInBlob, GetBoolFromBlob, GetClassIDFromBlob, GetDwordFromBlob, GetMacAddressFromBlob, GetNetworkInfoFromBlob, GetNPPAddressFilterFromBlob, GetNPPPatternFilterFromBlob, GetNPPTriggerFromBlob, GetStringsFromBlob