Search
Module:
Directory

   Desktop Functions:

   Smart Device Functions:


Show Recent Changes
Subscribe (RSS)
Misc. Pages
Comments
FAQ
Helpful Tools
Playground
Suggested Reading
Website TODO List
Support Forum
Download Visual Studio Add-In

Terms of Use
Privacy Policy

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)]

dtl

.

[DllImport("dtl.dll", SetLastError=true)]

.

[DllImport("dtl.dll", SetLastError=true)]

.

[DllImport("dtl.dll", SetLastError=true)]

.

[DllImport("dtl.dll", SetLastError=true)]

.

[DllImport("dtl.dll", SetLastError=true)]

.

[DllImport("dtl.dll", SetLastError=true)]

.

[DllImport("dtl.dll", SetLastError=true)]

.

[DllImport("dtl.dll", SetLastError=true)]

.

[DllImport("dtl.dll", SetLastError=true)]

.

[DllImport("dtl.dll", SetLastError=true)]

misc

.

[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.

glossary

.

[DllImport("glossary.dll", SetLastError=true)]

.

[DllImport("glossary.dll", SetLastError=true)]

rapi

.

[DllImport("rapi.dll", CharSet = CharSet.Unicode, SetLastError = true)]

.

[DllImport("rapi.dll", SetLastError=true)]

.

  <DllImport("rapi.dll", CharSet:=CharSet.Unicode, SetLastError:=True)>

.

[DllImport("rapi.dll", CharSet = CharSet.Unicode, SetLastError = true)]

.

[DllImport("rapi.dll", SetLastError=true)]

dnsapi

.

[DllImport("dnsapi.dll", SetLastError=true)]

.

    [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)]

.

[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)]

.

[DllImport("difxapi.dll", SetLastError=true)]

.

[DllImport("DIFxAPI.dll", CharSet = CharSet.Auto, SetLastError = true)]

ws2_32

.

    [DllImport("ws2_32.dll", CharSet = CharSet.Unicode, SetLastError = true)]

.

[DllImport("ws2_32.dll", SetLastError=true)]

.

   <System.Runtime.InteropServices.DllImport("ws2_32.dll", CharSet:=System.Runtime.InteropServices.CharSet.Ansi, SetLastError:=True)>

50: ntohs
.

[DllImport("ws2_32.dll", SetLastError=true)]

.

    [DllImport("ws2_32.dll", CharSet = CharSet.Unicode, 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)]

.

[DllImport("ws2_32.dll", CharSet = CharSet.Auto, SetLastError=true)]

.

[DllImport("ws2_32.dll", CharSet = CharSet.Auto, SetLastError=true)]

.

  [DllImport("ws2_32.dll", CharSet = CharSet.Unicode, SetLastError = true, CallingConvention = CallingConvention.StdCall)]

.

[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.


 
Access PInvoke.net directly from VS: