Desktop Functions: Smart Device Functions:
|
Search Results for "SetLastError" in [All]irprops
[DllImport("bthprops.cpl", SetLastError=true)]
[DllImport("irprops.cpl", SetLastError=true)]
[DllImportAttribute("irprops.cpl", EntryPoint="BluetoothEnableDiscovery", SetLastError=true)]
<DllImport("irprops.cpl", setlasterror:=True)> _
[DllImport("irprops.cpl", SetLastError=true)]
<DllImport("irprops.cpl", setlasterror:=True)> _
[DllImport("irprops.cpl", SetLastError=true)]
[DllImport("irprops.cpl", SetLastError=true)]
<DllImport("irprops.cpl", setlasterror:=True)> _
[DllImport("irprops.cpl", SetLastError=true)]
<DllImport("irprops.cpl", setlasterror:=True, CharSet:=CharSet.Auto)> _
[DllImport("irprops.cpl", SetLastError=true)]
<DllImport("irprops.cpl", SetLastError:=True, CharSet:=CharSet.Auto)> _
[DllImport("Kernel32.dll", SetLastError = true)]
[DllImport("irprops.cpl", SetLastError = true)]
[DllImport("Irprops.cpl", SetLastError = true)]
<DllImport("irprops.cpl", setlasterror:=True)> _
[DllImport("irprops.cpl", SetLastError=true)]
[DllImport("irprops.cpl", SetLastError=true)]
<DllImport("irprops.cpl", setlasterror:=True)> _
[DllImport("irprops.cpl", SetLastError=true)]
[DllImport("irprops.cpl", SetLastError=true)]
<DllImport("irprops.cpl", setlasterror:=True, CharSet:=CharSet.Auto)> _
[DllImport("irprops.dll", SetLastError=true)]
<DllImport("irprops.cpl", setlasterror:=True)> _
[DllImport("irprops.cpl", SetLastError=true)]
<DllImport("irprops.cpl", setlasterror:=True)> _
[DllImport("irprops.cpl", SetLastError=true)]
[DllImport("irprops.cpl", SetLastError=true)]
[DllImport("irprops.cpl", SetLastError=true)] dtl19: DTL_C_DEFINE
[DllImport("dtl.dll", SetLastError=true)] 20: DTL_DRIVER_CLOSE
[DllImport("dtl.dll", SetLastError=true)] 21: DTL_DRIVER_OPEN
[DllImport("dtl.dll", SetLastError=true)] 22: DTL_ERROR_S
[DllImport("dtl.dll", SetLastError=true)] 23: DTL_INIT
[DllImport("dtl.dll", SetLastError=true)] 24: DTL_READ_W
[DllImport("dtl.dll", SetLastError=true)] 25: DTL_UNDEF
[DllImport("dtl.dll", SetLastError=true)] 26: DTL_UNINIT
[DllImport("dtl.dll", SetLastError=true)] 27: DTL_VERSION
[DllImport("dtl.dll", SetLastError=true)] 28: DTL_WRITE_W
[DllImport("dtl.dll", SetLastError=true)] misc29: Comments [DllImport(“coredll.dll”, EntryPoint="CPAcquireContext", SetLastError=true)] [DllImport(“advapi32.dll”, EntryPoint="CPAcquireContext", SetLastError=true)] This site's been live for about a month, now -- either it's not getting indexed completely by Google, or there is nearly complete neglect for SetLastError=true. Or both. http://www.google.com/search?q=SetLastError+site:pinvoke.net http://www.windojitsu.com/blog/pleasesetlasterror.html IMHO, the hardest part of developing a good p/invoke signature is not substituting "LPCSTR" with "string" -- it's looking up the failure semantics of the methods' return values... (NULL or INVALID_HANDLE? Does it SetLastError? etc.) And then wrapping the call appropriately. I'd go so far as to recommend always mandating SetLastError -- explicitly setting SetLastError=false, to call out the (comparatively rare) Win32 functions that don't expose a failure path through GetLastError. And SetLastError is only half the problem -- remembering to actually check the return value is the other half! We should compel folks to check the return values properly, in the sample usage section -- assert success and/or throw Win32Exception, as appropriate. glossary30: Marshalling
[DllImport("glossary.dll", SetLastError=true)] 31: Marshalling
[DllImport("glossary.dll", SetLastError=true)] rapi32: CeCreateProcess
[DllImport("rapi.dll", CharSet = CharSet.Unicode, SetLastError = true)] 33: CeFindClose
[DllImport("rapi.dll", SetLastError=true)] 34: CeFindFirstFile
<DllImport("rapi.dll", CharSet:=CharSet.Unicode, SetLastError:=True)> 35: CeRapiInvoke [DllImport("rapi.dll", CharSet = CharSet.Unicode, SetLastError = true)] 36: CeRegDeleteValue
[DllImport("rapi.dll", SetLastError=true)] dnsapi
[DllImport("dnsapi.dll", SetLastError=true)] 38: DnsQuery
[DllImport("dnsapi", EntryPoint = "DnsQuery_W", CharSet = CharSet.Unicode, SetLastError = true, ExactSpelling = true)]
[DllImport("dnsapi", CharSet = CharSet.Auto, SetLastError = true)]
[DllImport("dnsapi", EntryPoint = "DnsQuery_W", CharSet = CharSet.Unicode, SetLastError = true,
[DllImport("dnsapi", CharSet = CharSet.Auto, SetLastError = true)] 39: DnsQueryEx
[DllImport("dnsapi", EntryPoint = "DnsQueryEx", CharSet = CharSet.Unicode, SetLastError = true, ExactSpelling = true)]
[DllImport("dnsapi", EntryPoint = "DnsQueryEx", CharSet = CharSet.Unicode, SetLastError = true, ExactSpelling = true)]
[DllImport("dnsapi", CharSet = CharSet.Auto, SetLastError = true)]
[DllImport("dnsapi", SetLastError = true)] difxapi
[DllImport("DIFxAPI.dll", CharSet = CharSet.Auto, SetLastError = true)]
[DllImport("DIFxAPI.dll", CharSet = CharSet.Auto, SetLastError = true)]
[DllImport("DIFxAPI.dll", CharSet = CharSet.Auto, SetLastError = true)]
[DllImport("DIFxAPI.dll", CharSet = CharSet.Auto, SetLastError = true)]
[DllImport("DIFxAPI.dll", CharSet = CharSet.Auto, SetLastError = true)]
[DllImport("DIFxAPI.dll", CharSet = CharSet.Auto, SetLastError = true)]
[DllImport("DIFxAPI.dll", CharSet = CharSet.Auto, SetLastError = true)] 45: DriverStore
[DllImport("difxapi.dll", SetLastError=true)]
[DllImport("DIFxAPI.dll", CharSet = CharSet.Auto, SetLastError = true)] ws2_3247: closesocket
[DllImport("ws2_32.dll", CharSet = CharSet.Unicode, SetLastError = true)] 48: gethostname
[DllImport("ws2_32.dll", SetLastError=true)] 49: inet_ntoa
<System.Runtime.InteropServices.DllImport("ws2_32.dll", CharSet:=System.Runtime.InteropServices.CharSet.Ansi, SetLastError:=True)> 50: ntohs
[DllImport("ws2_32.dll", SetLastError=true)] 51: shutdown
[DllImport("ws2_32.dll", CharSet = CharSet.Unicode, SetLastError = true)] 52: WSACleanup
[DllImport("ws2_32.dll",CharSet = CharSet.Auto, SetLastError=true)]
[DllImport("ws2_32.dll", CharSet = CharSet.Auto, SetLastError = true)]
[DllImport("ws2_32.dll", CharSet = CharSet.Auto, SetLastError=true)]
[DllImport("ws2_32.dll", CharSet = CharSet.Auto, SetLastError=true)]
[DllImport("ws2_32.dll", CharSet = CharSet.Auto, SetLastError=true)] 57: WSANSIoctl
[DllImport("ws2_32.dll", CharSet = CharSet.Auto, SetLastError=true)] 58: WSASocket
[DllImport("ws2_32.dll", CharSet = CharSet.Unicode, SetLastError = true, CallingConvention = CallingConvention.StdCall)] 59: WSAStartup
[DllImport("ws2_32.dll", CharSet = CharSet.Auto, SetLastError=true)] pdh
[DllImport("pdh.dll", SetLastError=true)] Cut off search results after 60. Please refine your search. |