You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<li><code>data</code> : Pointer to the data set in <ahref="!plugin/csharp/#Initialize">Initialize</a>.</li>
105
105
</ul>
106
106
</p>
107
-
<p><b>Returns</b>: The string value for the measure. If you want the number value (returned from <ahref="!plugin/csharp/#Update">Update</a>) to be used as the measures value, return null instead. The return value must be marshalled.</p><br/>
108
-
109
-
<p>See: <ahref="https://github.com/rainmeter/rainmeter-plugin-sdk/blob/3eb9d7fc911381cd82231ccc3b65be29635d82cc/C%23/PluginEmpty/PluginEmpty.cs#L81C25-L81C31">PluginEmpty code</a> for details.</p>
107
+
<p><b>Returns</b>: The string value for the measure. If you want the number value (returned from <ahref="!plugin/csharp/#Update">Update</a>) to be used as the measures value, return null instead. The return value must be marshalled.</p>
108
+
<h3>Example:</h3>
109
+
``` cs
110
+
[DllExport]
111
+
public static IntPtr GetString(IntPtr data)
112
+
{
113
+
Measure measure = (Measure)data;
114
+
if (something)
115
+
{
116
+
// Return a string value to use for this measure (must be marshalled)
<li><code>argv</code> : Arguments passed to the function as an array of strings. <code>argv</code> is an array of strings (LPCWSTR) in C++ and must be marshalled to a C# style string.</li>
141
155
</ul>
142
156
</p>
143
-
<p><b>Returns</b>: A string to replace the section variable with. If a null is returned, the variable will not be replaced and remain unchanged. The return value must be marshalled.</p><br/>
157
+
<p><b>Returns</b>: A string to replace the section variable with. If a null is returned, the variable will not be replaced and remain unchanged. The return value must be marshalled.</p>
158
+
<h3>Example:</h3>
159
+
``` cs
160
+
[DllExport]
161
+
public static IntPtr ToLower(IntPtr data, const int argc,
<p>See: <ahref="https://github.com/rainmeter/rainmeter-plugin-sdk/blob/3eb9d7fc911381cd82231ccc3b65be29635d82cc/C%23/PluginEmpty/PluginEmpty.cs#L81C25-L81C31">PluginEmpty code</a> for details.</p>
171
+
return IntPtr.Zero; // Do not replace the variable
0 commit comments