...

Online Help for Chasys Photo: SDK - Callback Suites - pi_BasicUtils

SDK - Callback Suites - pi_BasicUtils


SDK - Callback Suites - pi_BasicUtils
 

Callback Overview

This callback suite is currently a placeholder.

 

Callback Interface Description

This interface provides various utilities that are useful for plug-ins. The interface itself is encapsulated in an object of type pi_BASICUTILS. This object is defined in plugin.h.

#define PI_BASICUTILS_VERSION                         0x00010005 // 12 Oct 2025

 

struct pibu_HTTPreq

{

      const wchar_t*  url;

      char*           p_response;

      unsigned long*  sz_response;

      char*           p_post_data;

      unsigned long   sz_post_data;

      const wchar_t*  extra_headers;

      void*           reserved[6]; //do not touch

      wchar_t*        err;

      unsigned long*  sz_err;

      int (__cdecl*   progress_func)(int done,int total,void* priv);

      void*           progress_priv;

};

 

struct pi_BASICUTILS

{

      unsigned long   version;

      unsigned long   host_id;

//8

      int (__cdecl*   lang_TranslateCore)(wchar_t* out,int size,const wchar_t* in);

      int (__cdecl*   lang_SetWindowText)(HWND hwnd,const wchar_t* str);

      int (__cdecl*   lang_TranslateWindow)(HWND hwnd);

      void*           reserved_0; //do not touch

//24
      unsigned char   reserved_1[64-24]; //do not touch

//64
      i
nt (__cdecl*   http_SendRequest)(pibu_HTTPreq* http,bool allow_insecure);

      int (__cdecl*   http_Download)(pibu_HTTPreq* http,wchar_t* local,int sz_local);

      void*           reserved_2; //do not touch

      void*           reserved_3; //do not touch

//80
      unsigned char   reserved_x[1024-80]; //do not touch

};

 

version is the only officially specified member of this object. All other members are reserved. You may use the language translation functions provided here in your plug-in, however, there are currently not officially released and may therefore change in subsequent application versions.

The internal implementation of pi_BasicUtils is neither defined nor fixed, and is purely host dependent. Do not attempt to access the reserved portion of the object.

 

 

Copyright © John Paul Chacha, 2001-2025

The information herein is subject to change without any notice. The author makes no guarantees as to the completeness of this documentation.