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