181 references to S_OK
System.Windows.Forms (181)
winforms\Managed\System\WinForms\AccessibleObject.cs (8)
923
hr = NativeMethods.
S_OK
;
2756
return result == NativeMethods.
S_OK
;
2771
return result == NativeMethods.
S_OK
;
2780
return result == NativeMethods.
S_OK
;
2789
return result == NativeMethods.
S_OK
;
2899
return (ns[0] == n) ? NativeMethods.
S_OK
: NativeMethods.S_FALSE;
3336
if (hr >= NativeMethods.
S_OK
) {
3360
return NativeMethods.
S_OK
;
winforms\Managed\System\WinForms\AxHost.cs (46)
1461
return NativeMethods.
S_OK
;
2059
if (hr == NativeMethods.
S_OK
) {
2644
if (hr == NativeMethods.
S_OK
&& name != null) {
3098
if (hr != NativeMethods.
S_OK
) {
3713
if (cpc.FindConnectionPoint(ref tmp, out connectionPoint) != NativeMethods.
S_OK
) {
3733
if (hr == NativeMethods.
S_OK
) {
3967
return NativeMethods.
S_OK
;
3981
return NativeMethods.
S_OK
;
3987
return NativeMethods.
S_OK
;
4059
return NativeMethods.
S_OK
;
4073
return NativeMethods.
S_OK
;
4114
return NativeMethods.
S_OK
;
4129
return f ? NativeMethods.
S_OK
: NativeMethods.S_FALSE;
4138
return NativeMethods.
S_OK
;
4144
return NativeMethods.
S_OK
;
4165
return NativeMethods.
S_OK
;
4173
return NativeMethods.
S_OK
;
4189
return NativeMethods.
S_OK
;
4205
return NativeMethods.
S_OK
;
4210
return NativeMethods.
S_OK
;
4248
return NativeMethods.
S_OK
;
4256
return NativeMethods.
S_OK
;
4263
return NativeMethods.
S_OK
;
4279
return NativeMethods.
S_OK
;
4299
return NativeMethods.
S_OK
;
4311
return NativeMethods.
S_OK
;
4316
return NativeMethods.
S_OK
;
4343
return NativeMethods.
S_OK
;
4414
return NativeMethods.
S_OK
;
5178
return NativeMethods.
S_OK
;
5230
return NativeMethods.
S_OK
;
5238
return NativeMethods.
S_OK
;
5943
return NativeMethods.
S_OK
;
5947
return NativeMethods.
S_OK
;
5968
return NativeMethods.
S_OK
;
6026
return NativeMethods.
S_OK
;
6061
return NativeMethods.
S_OK
;
6070
return NativeMethods.
S_OK
;
6141
return NativeMethods.
S_OK
;
6164
return NativeMethods.
S_OK
;
6896
return (pVar == null) ? NativeMethods.E_INVALIDARG : NativeMethods.
S_OK
;
6903
return NativeMethods.
S_OK
;
6907
return NativeMethods.
S_OK
;
7228
int hr = NativeMethods.
S_OK
;
7240
if (hr != NativeMethods.
S_OK
) {
7451
if (hr == NativeMethods.
S_OK
&& var.vt != (short)NativeMethods.tagVT.VT_EMPTY) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2ComponentEditor.cs (2)
26
if ((hr == NativeMethods.
S_OK
) && !guid.Equals(Guid.Empty)) {
66
if (hr == NativeMethods.
S_OK
) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2ICategorizePropertiesHandler.cs (2)
35
if (NativeMethods.
S_OK
== catObj.MapPropertyToCategory(dispid, ref categoryID)) {
63
if (NativeMethods.
S_OK
== catObj.GetCategoryName(categoryID, CultureInfo.CurrentCulture.LCID, out categoryName)) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IManagedPerPropertyBrowsingHandler.cs (1)
60
if (hr != NativeMethods.
S_OK
|| cItems == 0) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IPerPropertyBrowsingHandler.cs (6)
42
if (hr == NativeMethods.
S_OK
) {
51
if (hr == NativeMethods.
S_OK
) {
116
int hr = NativeMethods.
S_OK
;
133
if (hr != NativeMethods.
S_OK
) {
291
if (hr == NativeMethods.
S_OK
&& var.vt != (short)NativeMethods.tagVT.VT_EMPTY) {
309
if (hr == NativeMethods.
S_OK
) {
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2IVsPerPropertyBrowsingHandler.cs (10)
44
return (hr == NativeMethods.
S_OK
&& pfHide);
84
if (hr == NativeMethods.
S_OK
&& pHelpString[0] != null){
100
int hr = NativeMethods.
S_OK
;
111
if (hr == NativeMethods.
S_OK
){
120
if (hr == NativeMethods.
S_OK
&& pfDisplay){
152
if (hr == NativeMethods.
S_OK
&& pNameString[0] != null){
171
if (hr == NativeMethods.
S_OK
){
193
gveevent.TypeConverter = new Com2IDispatchConverter(sender, (hr == NativeMethods.
S_OK
&& pfResult));
196
gveevent.TypeConverter = new Com2IDispatchConverter(sender, (hr == NativeMethods.
S_OK
&& pfResult), gveevent.TypeConverter);
227
if (hr == NativeMethods.
S_OK
&& !pfResult){
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2PropertyDescriptor.cs (2)
887
case NativeMethods.
S_OK
:
1269
case NativeMethods.
S_OK
:
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\COM2TypeInfoProcessor.cs (2)
481
int hr = NativeMethods.
S_OK
;
506
hr = NativeMethods.
S_OK
;
winforms\Managed\System\WinForms\ComponentModel\COM2Interop\ComNativeDescriptor.cs (1)
184
if (GetPropertyValue(component, dispid, pVarResult) == NativeMethods.
S_OK
) {
winforms\Managed\System\WinForms\Control.cs (33)
15290
return NativeMethods.
S_OK
;
15304
return NativeMethods.
S_OK
;
15316
return NativeMethods.
S_OK
;
15327
return NativeMethods.
S_OK
;
15462
return NativeMethods.
S_OK
;
15482
return NativeMethods.
S_OK
;
15492
return NativeMethods.
S_OK
;
15568
return NativeMethods.
S_OK
;
15586
return NativeMethods.
S_OK
;
15595
return NativeMethods.
S_OK
;
15605
return NativeMethods.
S_OK
;
15620
return NativeMethods.
S_OK
;
15632
return NativeMethods.
S_OK
;
15645
return NativeMethods.
S_OK
;
15655
return NativeMethods.
S_OK
;
15667
return NativeMethods.
S_OK
;
15704
return NativeMethods.
S_OK
;
15713
return NativeMethods.
S_OK
;
15815
return NativeMethods.
S_OK
;
15956
return NativeMethods.
S_OK
;
16766
return NativeMethods.
S_OK
;
16949
return NativeMethods.
S_OK
;
17012
return NativeMethods.
S_OK
;
17050
if (hr != NativeMethods.
S_OK
) {
17226
return NativeMethods.
S_OK
;
18527
return NativeMethods.
S_OK
;
18540
return NativeMethods.
S_OK
;
18582
return NativeMethods.
S_OK
;
18603
return NativeMethods.
S_OK
;
18811
return NativeMethods.
S_OK
;
18818
return NativeMethods.
S_OK
;
19063
return(celt == 0 ? NativeMethods.
S_OK
: NativeMethods.S_FALSE);
19069
return NativeMethods.
S_OK
;
winforms\Managed\System\WinForms\DataObject.cs (14)
844
return NativeMethods.
S_OK
;
971
return NativeMethods.
S_OK
;
981
return NativeMethods.
S_OK
;
984
return NativeMethods.
S_OK
;
1066
return NativeMethods.
S_OK
;
1127
return NativeMethods.
S_OK
;
1158
return NativeMethods.
S_OK
;
1332
return NativeMethods.
S_OK
;
1341
return NativeMethods.
S_OK
;
1347
return NativeMethods.
S_OK
;
1400
if (NativeMethods.
S_OK
!= QueryGetDataUnsafe(ref formatetc)){
1548
if (NativeMethods.
S_OK
== QueryGetDataUnsafe(ref formatetc)) {
1604
if (NativeMethods.
S_OK
== QueryGetDataUnsafe(ref formatetc)) {
1996
return (hr == NativeMethods.
S_OK
);
winforms\Managed\System\WinForms\DropTarget.cs (4)
79
return NativeMethods.
S_OK
;
91
return NativeMethods.
S_OK
;
96
return NativeMethods.
S_OK
;
116
return NativeMethods.
S_OK
;
winforms\Managed\System\WinForms\FileDialog_Vista.cs (2)
230
return this._dialog.HandleVistaFileOk(pfd) ? NativeMethods.
S_OK
: NativeMethods.S_FALSE;
235
return NativeMethods.
S_OK
;
winforms\Managed\System\WinForms\FileDialogCustomPlace.cs (1)
110
if (NativeMethods.
S_OK
== result)
winforms\Managed\System\WinForms\HtmlDocument.cs (1)
579
if (hr == NativeMethods.
S_OK
)
winforms\Managed\System\WinForms\HtmlElement.cs (1)
629
if (hr == NativeMethods.
S_OK
)
winforms\Managed\System\WinForms\ImageListStreamer.cs (1)
242
return (hResult == NativeMethods.
S_OK
);
winforms\Managed\System\WinForms\InputLanguage.cs (1)
319
if (res == NativeMethods.
S_OK
) {
winforms\Managed\System\WinForms\PropertyGrid.cs (1)
3231
return NativeMethods.
S_OK
;
winforms\Managed\System\WinForms\RichTextBox.cs (8)
3798
return NativeMethods.
S_OK
;
3811
return NativeMethods.
S_OK
;
3821
return NativeMethods.
S_OK
;
3850
return NativeMethods.
S_OK
;
3860
return NativeMethods.
S_OK
;
3938
return NativeMethods.
S_OK
;
4020
return NativeMethods.
S_OK
;
4059
return NativeMethods.
S_OK
;
winforms\Managed\System\WinForms\StringSource.cs (2)
132
return celt == 0 ? NativeMethods.
S_OK
: NativeMethods.S_FALSE;
147
return NativeMethods.
S_OK
;
winforms\Managed\System\WinForms\UnsafeNativeMethods.cs (2)
7641
if ((result = SHGetKnownFolderPath(ref rfid, dwFlags, hToken, out path)) == NativeMethods.
S_OK
)
9010
return ((result == NativeMethods.
S_OK
) && (isEnabled != 0));
winforms\Managed\System\WinForms\WebBrowser.cs (4)
1732
return NativeMethods.
S_OK
;
1760
return NativeMethods.
S_OK
;
1828
return NativeMethods.
S_OK
;
1847
return NativeMethods.
S_OK
;
winforms\Managed\System\WinForms\WebBrowserBase.cs (3)
316
if (hr == NativeMethods.
S_OK
)
747
Debug.Assert(hr == NativeMethods.
S_OK
, String.Format(CultureInfo.CurrentCulture, "DoVerb call failed for verb 0x{0:X}", verb));
748
return hr == NativeMethods.
S_OK
;
winforms\Managed\System\WinForms\WebBrowserContainer.cs (6)
58
return NativeMethods.
S_OK
;
62
return NativeMethods.
S_OK
;
77
return NativeMethods.
S_OK
;
98
return NativeMethods.
S_OK
;
134
return NativeMethods.
S_OK
;
138
return NativeMethods.
S_OK
;
winforms\Managed\System\WinForms\WebBrowserSiteBase.cs (17)
113
return NativeMethods.
S_OK
;
162
return NativeMethods.
S_OK
;
179
return f ? NativeMethods.
S_OK
: NativeMethods.S_FALSE;
189
return NativeMethods.
S_OK
;
218
return NativeMethods.
S_OK
;
239
return NativeMethods.
S_OK
;
245
return NativeMethods.
S_OK
;
280
return NativeMethods.
S_OK
;
288
return NativeMethods.
S_OK
;
296
return NativeMethods.
S_OK
;
319
return NativeMethods.
S_OK
;
335
return NativeMethods.
S_OK
;
347
return NativeMethods.
S_OK
;
353
return NativeMethods.
S_OK
;
374
return NativeMethods.
S_OK
;
413
return NativeMethods.
S_OK
;
496
return NativeMethods.
S_OK
;