<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>

<head>
<title>SetStartupInfo</title>
<meta http-equiv="Content-Type" Content="text/html; charset=Windows-1251">
<link rel="stylesheet" type="text/css" href="../../styles/styles.css">
<script language="javascript" src='../links.js' type="text/javascript"></script>
</head>

<body>

<h1>SetStartupInfo</h1>
<div class=navbar>
<a href="../index.html">ãëàâíàÿ</a> |
<a href="index.html">ýêñïîðòèðóåìûå ôóíêöèè</a>
</div>

<div class=shortdescr>
Ôóíêöèÿ <dfn>SetStartupInfo</dfn> âûçûâàåòñÿ îäèí ðàç, ïîñëå çàãðóçêè
DLL-ìîäóëÿ â ïàìÿòü. FAR ïåðåäàåò ïëàãèíó èíôîðìàöèþ, íåîáõîäèìóþ äëÿ
äàëüíåéøåé ðàáîòû.</div>

<pre class=syntax>
void WINAPI SetStartupInfo(
  const struct PluginStartupInfo *Info
);
</pre>
<h3>Ïàðàìåòðû</h3>
<div class=descr>

    <div class=dfn>Info</div>
    <div class=dfndescr>Óêàçàòåëü íà ñòðóêòóðó <a href="../structures/pluginstartupinfo.html">PluginStartupInfo</a>.
    </div>

</div>

<h3>Âîçâðàùàåìîå çíà÷åíèå</h3>
<div class=descr>
  Íåò.
</div>

<h3>Çàìå÷àíèÿ</h3>
<div class=descr>
<ol>
<li>Â FAR Manager 1.65 è íèæå ýòà ôóíêöèÿ âûçûâàåòñÿ ïåðâîé, ñðàçó ïîñëå çàãðóçêè DLL-ìîäóëÿ.
<li>Â FAR Manager 1.70 è âûøå ýòà ôóíêöèÿ âûçûâàåòñÿ ïîñëå âûçîâà ôóíêöèè <a href="getminfarversion.html">GetMinFarVersion</a>.
<li>Óêàçàòåëü <dfn>Info</dfn> äåéñòâèòåëåí òîëüêî â îáëàñòè âèäèìîñòè äàííîé ôóíêöèè (äî âûõîäà èç ôóíêöèè),
    òàê ÷òî ñòðóêòóðà äîëæíà êîïèðîâàòüñÿ âî âíóòðåííþþ ïåðåìåííóþ ïëàãèíà äëÿ äàëüíåéøåãî èñïîëüçîâàíèÿ:
<pre class=code>static struct PluginStartupInfo Info;
...
void WINAPI _export SetStartupInfo(const struct PluginStartupInfo *Info)
{
  ::Info=*Info;
  ...
}
</pre>
<li>Åñëè â ïëàãèíå èñïîëüçóþòñÿ "ñòàíäàðòíûå ôóíêöèè" èç ñòðóêòóðû <a href="../fsf/index.html">FarStandardFunctions</a>,
    òî ÷ëåí <a href="../structures/pluginstartupinfo.html">PluginStartupInfo.FSF</a>
    òàê æå äîëæåí áûòü ñîõðàíåí â ëîêàëüíîå ïðîñòðàíñòâî ïëàãèíà:
  <pre class=code>static struct PluginStartupInfo Info;
static struct FarStandardFunctions FSF;

void  _export SetStartupInfo(struct PluginStartupInfo *psInfo)
{
    Info=*psInfo;
    FSF=*psInfo-&gt;FSF;
    Info.FSF=&amp;FSF; // ñêîððåêòèðóåì àäðåñ â ëîêàëüíîé ñòðóêòóðå
    ...
} </pre>
</ol>
</div>


</body>
</html>
