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 "ResourceUsage" in [All]

Enums

.

private enum ResourceUsage : uint

.

Private Enum ResourceUsage As UInteger

.
Documentation
[ResourceUsage] on MSDN

Constants

.

const UInt32 RESOURCEUSAGE_CONNECTABLE = 0x00000001;

.

const UInt32 RESOURCEUSAGE_CONTAINER = 0x00000002;

.

const UInt32 RESOURCEUSAGE_RESERVED = 0x80000000;

mpr

.

        public ResourceUsage dwUsage = 0;

.

    public enum ResourceUsage

.

        RESOURCEUSAGE_CONNECTABLE = 0x00000001,

.

        RESOURCEUSAGE_CONTAINER = 0x00000002,

.

        RESOURCEUSAGE_NOLOCALDEVICE = 0x00000004,

.

        RESOURCEUSAGE_SIBLING = 0x00000008,

.

        RESOURCEUSAGE_ATTACHED = 0x00000010,

.

        RESOURCEUSAGE_ALL = (RESOURCEUSAGE_CONNECTABLE | RESOURCEUSAGE_CONTAINER | RESOURCEUSAGE_ATTACHED),

.

nr.dwUsage = ResourceUsage.RESOURCEUSAGE_CONNECTABLE;

.

  //      public enum ResourceUsage

.

  //      RESOURCEUSAGE_CONNECTABLE = 0x00000001,

.

  //      RESOURCEUSAGE_CONTAINER = 0x00000002,

.

  //      RESOURCEUSAGE_NOLOCALDEVICE = 0x00000004,

.

  //      RESOURCEUSAGE_SIBLING = 0x00000008,

.

  //      RESOURCEUSAGE_ATTACHED = 0x00000010,

.

  //      RESOURCEUSAGE_ALL = (RESOURCEUSAGE_CONNECTABLE | RESOURCEUSAGE_CONTAINER | RESOURCEUSAGE_ATTACHED),

.

  //      public ResourceUsage dwUsage = 0;

.

    public enum ResourceUsage

.

        RESOURCEUSAGE_CONNECTABLE = 0x00000001,

.

        RESOURCEUSAGE_CONTAINER = 0x00000002,

.

        RESOURCEUSAGE_NOLOCALDEVICE = 0x00000004,

.

        RESOURCEUSAGE_SIBLING = 0x00000008,

.

        RESOURCEUSAGE_ATTACHED = 0x00000010,

.

        RESOURCEUSAGE_ALL = (RESOURCEUSAGE_CONNECTABLE | RESOURCEUSAGE_CONTAINER | RESOURCEUSAGE_ATTACHED),

.

        public ResourceUsage dwUsage = 0;

.

    RESOURCEUSAGE_CONNECTABLE =0x00000001,

.

    RESOURCEUSAGE_CONTAINER=0x00000002,

.

    RESOURCEUSAGE_NOLOCALDEVICE =0x00000004,

.

    RESOURCEUSAGE_SIBLING=0x00000008,

.

    RESOURCEUSAGE_ATTACHED=0x00000010,

.

    RESOURCEUSAGE_ALL =(RESOURCEUSAGE_CONNECTABLE | RESOURCEUSAGE_CONTAINER | RESOURCEUSAGE_ATTACHED),

.

       RESOURCE_USAGE.RESOURCEUSAGE_ALL,

.

        if(RESOURCE_USAGE.RESOURCEUSAGE_CONTAINER == (nr.dwUsage

.

            & RESOURCE_USAGE.RESOURCEUSAGE_CONTAINER))

.

    RESOURCEUSAGE_CONNECTABLE = &H1

.

    RESOURCEUSAGE_CONTAINER = &H2

.

    RESOURCEUSAGE_NOLOCALDEVICE = &H4

.

    RESOURCEUSAGE_SIBLING = &H8

.

    RESOURCEUSAGE_ATTACHED = &H10

.

    RESOURCEUSAGE_ALL = (RESOURCEUSAGE_CONNECTABLE Or RESOURCEUSAGE_CONTAINER Or RESOURCEUSAGE_ATTACHED)

.

        iRet = WNetOpenEnum(RESOURCE_SCOPE.RESOURCE_REMEMBERED, RESOURCE_TYPE.RESOURCETYPE_ANY, RESOURCE_USAGE.RESOURCEUSAGE_ATTACHED, o, ptrHandle)

.

            If (RESOURCE_USAGE.RESOURCEUSAGE_CONTAINER = (nr.dwUsage And RESOURCE_USAGE.RESOURCEUSAGE_CONTAINER)) Then

.

        iRet = WNetOpenEnum(RESOURCE_SCOPE.RESOURCE_GLOBALNET, RESOURCE_TYPE.RESOURCETYPE_ANY, RESOURCE_USAGE.RESOURCEUSAGE_CONTAINER, o, ptrHandle)

.

            If (RESOURCE_USAGE.RESOURCEUSAGE_CONTAINER = (nr.dwUsage And RESOURCE_USAGE.RESOURCEUSAGE_CONTAINER)) Then

.

        iRet = WNetOpenEnum(RESOURCE_SCOPE.RESOURCE_GLOBALNET, RESOURCE_TYPE.RESOURCETYPE_ANY, RESOURCE_USAGE.RESOURCEUSAGE_CONTAINER, o, ptrHandle)

.

            If (RESOURCE_USAGE.RESOURCEUSAGE_CONTAINER = (nr.dwUsage And RESOURCE_USAGE.RESOURCEUSAGE_CONTAINER)) Then

.

public static extern UInt32 WNetOpenEnum(ResourceScope dwScope, ResourceType dwType, ResourceUsage dwUsage, NetResource lpNetResource, ref IntPtr lphEnum);

.

Public Shared Function WNetOpenEnum(dwScope As ResourceScope, dwType As ResourceType, dwUsage As ResourceUsage, lpNetResource As NetResource, ByRef lphEnum As IntPtr) As UInteger

.

ResourceScope, ResourceType, ResourceUsage, NetResource

.

public enum ResourceUsage

.

    public ResourceUsage        dwUsage       = 0;


 
Access PInvoke.net directly from VS: