Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
2

how to get the details from FormatRecord Struct Reference

Participant ,
Jun 13, 2023 Jun 13, 2023

Hi all,
i have created plugin for photoshop using selection module.

DLLExport MACPASCAL void PluginMain (const int16 selector,

                                     SelectionRecordPtr selectionParamBlock,

                                     intptr_t *data,

                                     int16 *result) {

 try {

    if (selector == selectionSelectorAbout)

    {

        sSPBasic = ((AboutRecordPtr)selectionParamBlock)->sSPBasic;

        DoAbout((AboutRecordPtr)selectionParamBlock);

    }

    else

   

        sSPBasic = selectionParamBlock->sSPBasic;

 

        Ptr globalPtr = NULL;        // Pointer for global structure

        GPtr globals = NULL;         // actual globals

        globalPtr = AllocateGlobals (result,

                                     selectionParamBlock,

                                     sizeof(Globals),

                                      data,

                                      InitGlobals);

 

        if (globalPtr == NULL)

        {

          *result = memFullErr;

          return;

        }

        globals = (GPtr)globalPtr;

        DoExecute(globals);

 

   

        readDocumentDetails(selectionParamBlock);

        executeFilter(selectionParamBlock);

        return;

 

    } // end try

 

    catch(...)

    {

        if (NULL != result)

        {

            *result = -1;

        }

    }

 

} // end PluginMain

the above code is for the entry point of selection module. in that i want to get the details of

"FormatRecord Struct Reference" . Sinace i have created PlugIn using Selection module , im not able to get the details of FormatRecord module . is there anyway to get the details of FormatRecord Struct Reference . if yes please anyone kindly help me to get this.

Thank you

TOPICS
SDK
107
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
no replies

Have something to add?

Join the conversation
Adobe