Table of Content
SDK Data Structures

ED_DATA structure description

  1. iSize item contains size of the ED_DATA structure (sizeof(ED_DATA)).
  2. Version[3] array of three integer values contains version of DTM SQL editor. 1,0,9 means 1.00.90
  3. DSN string contains name of the current "data source name".
  4. user string with user name who is currently logged in.
  5. owner contains name of the database schema currently selected.
  6. database contains name of the current database or empty string if not supported or not selected.
  7. TEXT_PAGES - pointer of the function with one parameter returns number of editor tabs available and current active page
  8. RESULT_PAGES - pointer of the function with one parameter returns number of results tabs available and current active page
  9. GET_TEXT pointer of the function with three parameters: page number, pointer for text buffer, size of the buffer. This function provides extraction text from selected editor page.
  10. SET_TEXT pointer of the function with two parameters: page number, pointer for null-terminated string with text. This function provides put text for selected editor page.
  11. GRID_SIZE pointer of the function with three parameters: results page number, pointers for X and Y dimensions. Function returns size of the grid for selected page.
  12. GET_CELL pointer of the function with five parameters: results page number, X and Y coordinates of the cell, pointer for text buffer, size of the buffer. This function returns value of the selected cell as a string.
  13. password string with password of the user who is currently logged in.
  14. hMain - HWND of the main DTM SQL editor window
  15. db - reserved internal pointer. Please don't use or modify this structure item.
  16. SchemaItem - reserved internal pointer. Please don't use or modify this structure item.
  17. interf - name of interface currently selected at "Connect" tab.
  18. prod - product code plug-in was called from. See DTM_PRODUCT enum for details.

PL_DATA structure description

  1. iSize item contains size of the PL_DATA structure (sizeof(PL_DATA)).
  2. type - type of the plug-in, see above.
  3. MenuItem - string (32 bytes or less) with name of the plug-in menu item.