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

cards

.
Summary
Disposes card resources.

user32

.

http://windowssdk.msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/resources/cursors/cursorreference/cursorfunctions/clipcursor.asp

.
Summary
.

static extern IntPtr CreateIconFromResourceEx(byte [] pbIconBits, uint cbIconBits, bool fIcon, uint dwVersion, int cxDesired, int cyDesired, uint uFlags);

.

Private Shared Function CreateIconFromResourceEx(pbIconBits As Byte(), cbIconBits As UInteger, fIcon As Boolean, dwVersion As UInteger, cxDesired As Integer, cyDesired As Integer, uFlags As UInteger) As IntPtr

.
Documentation
[CreateIconFromResourceEx] on MSDN
.
Summary
.

static extern IntPtr CreateIconFromResourceEx(byte [] pbIconBits, uint

.

    Public Shared Function CreateIconFromResourceEx(ByVal pbIconBits As Byte(), _

.
Documentation
[CreateIconFromResourceEx] on MSDN
.

^^ One didn't think it was possible to get lower than a script kiddie yet here we are presented with the juvenile defacement of what is a brilliant resource. FAO: Site owners, please, if you find the time remove the extraneous "joke" API entries.

.

                                // Free resources used by this Process object.

.

             ' Free resources used by this Process object.

.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/winui/winui/windowsuserinterface/resources/cursors/cursorreference/cursorstructures/cursorinfo.asp

.
Summary
.

static extern uint GetGuiResources(IntPtr hProcess, uint uiFlags);

.

    ///      - WIN32 resources (accelerator tables, bitmap resources, dialog box templates, font resources, menu resources, raw data resources, string table entries, message table entries, cursors/icons)

.

    extern public static int GetGuiResources(IntPtr hProcess, int uiFlags);

.

    public static int GetGuiResourcesGDICount()

.

        return GetGuiResources(Process.GetCurrentProcess().Handle, 0);

.

    public static int GetGuiResourcesUserCount()

.

        return GetGuiResources(Process.GetCurrentProcess().Handle, 1);

.
Documentation
[GetGuiResources] on MSDN
.

The hbmColor and hbmMask are pointers to unmanaged data and must be deleted after use. The following code will grab the icon info for a cursor handle and dispose of the unmanaged resources, if needed:

.

Site Resources:

.

        /// Clean up any resources being used.

.

static extern IntPtr LoadBitmap(IntPtr hInstance, long resourceID)

.

static extern IntPtr LoadBitmap(IntPtr hInstance, int resourceID);

.

This function may not solve your problems when trying to load animated or colored cursors stored as embedded resources. I've wasted hours trying to get it to work to no avail. The LoadCursorFromFile method however works perfectly, so you might want to extract your cursor resource to a temp file and use the P/Invoke for that function.

.

   '''   Note: cursor must be embedded as native win32 resource in the assembly.

.

      Public Shared Function LoadCursor(ByVal embededWin32ResourceID As Integer) As Cursor

.

     Dim cursor As Cursor = TryLoadCursor(embededWin32ResourceID)

.

      Public Shared Function TryLoadCursor(ByVal embededWin32ResourceID As Integer) As Cursor

.

     Dim cPtr As IntPtr = LoadCursorAPI(hInstance, embededWin32ResourceID)

.

     cPtr = LoadCursorAPI(hInstance, "#" & embededWin32ResourceID)

.

How to Embed Multiple Icons and Color/Animated Cursors in VS2010 VB project as Native Win32 Resources:

.

1. Find native win32 resource file (*.res) on the web. Google “Embedding Multiple Icons into .NET Executables” and download the sample project which contains *.res file. VS2010 does not have the template to create this file; however the editor is still there.

.

     <Win32Resource>assemblyWin32.res</Win32Resource>

.

5. If you have included icons in the Win32 resource file for your EXE then remove application icon in project properties->Application Tab (this icon will no longer be used).

.

For loading icon-resource identified as integer ID

.

' For loading icon-resource identified as integer ID

.

C++/CLI: This solution allows you to load an image from an unmanaged resource in the assembly. In my case I added a .cur file to my .rc. The cursor had an ID of 101. After loading the cursor I assigned it to the Forms::Cursor.

.

To use integer resource ID instead of string, and avoid using MAKEINTRESOURCE, prepend the integer with '#'. For example, to use resource ID 32512, enter "#32512" for lpszName.

.

            LOAD_LIBRARY_AS_IMAGE_RESOURCE = 0x00000020,

.

        /// <param name="resId">Name of the resource icon that should be loaded.

.

- or to load an image from a managed resource (dll):

.

[System.Drawing.Bitmap.FromResource]

.

public String GetStringResource(IntPtr hModuleInstance, uint uiStringID)

.

    /** A dialog box has been displayed. The system sends this event for standard dialog boxes, which are created using resource

. * created using menu-template resources or Win32 menu functions. Servers send this event for custom menus, which are user . * by HMENU, created using menu-template resources or Win32 menu API elements. Servers send this event for custom menus,
.

        /// Clean up any resources being used.

netapi32

.

        if (!LookupAccountName(this.ResourceName, this.UserName, Sid, ref cbSid, referencedDomainName, ref cchReferencedDomainName, out sidUse))

.

            if (!LookupAccountName(this.ResourceName, this.UserName, Sid, ref cbSid, referencedDomainName, ref cchReferencedDomainName, out sidUse))

.

        aSystemName.SetTo(this.ResourceName);

.

    If MsgBox("Are you sure you want to disconnect this resource?", MsgBoxStyle.YesNo) = MsgBoxResult.Yes Then

.

        /// Unable to contact resource. Connection timed out.

.

The NetShareGetInfo function retrieves information about a particular shared resource on a server.

.

        const int NERR_NetNameNotFound = 2310; // This shared resource does not exist.

.

You can also use the WNetAddConnection2 and WNetAddConnection3 functions to redirect a local device to a network resource. Connections added by NetUseAdd are not shown in the Explorer. You should use one of the WNetAddConnection methods to make the networkdrive visible in the explorer.

.
Summary
The NetUseDel function ends a connection to a shared resource.
.
Summary
NetUseEnum - The NetUseEnum function lists all current connections between the local computer and resources on remote servers.

Constants

26: DI_
.

/// the function uses the actual resource size.

27: LR_
.

    /// lpszName specifies the image resource in the hinst module. If the image resource is to be loaded by name,

.

    /// the lpszName parameter is a pointer to a null-terminated string that contains the name of the image resource.

.

    /// If the image resource is to be loaded by ordinal, use the MAKEINTRESOURCE macro to convert the image ordinal

.

    /// To pass these constants to the LoadImage function, use the MAKEINTRESOURCE macro. For example, to load the OCR_NORMAL cursor,

.

    /// pass MAKEINTRESOURCE(OCR_NORMAL) as the lpszName parameter and NULL as the hinst parameter.

.

    /// the function uses the actual resource size. If the resource contains multiple images, the function uses the size of the first image.

.

    /// Tries to reload an icon or cursor resource from the original resource file rather than simply copying the current image.

.

    /// This is useful for creating a different-sized copy when the resource file contains multiple sizes of the resource.

.

    /// in the resource file closest to the desired size. This will succeed only if hImage was loaded by LoadIcon or LoadCursor,

.

    public const int LR_COPYFROMRESOURCE = 0x4000;

.

    /// same resource will load the image again and return a different handle.

.

    /// When you use this flag, the system will destroy the resource when it is no longer needed.

.

    /// When loading a system icon or cursor, you must use LR_SHARED or the function will fail to load the resource.

.

    /// Windows 95/98/Me: The function finds the first image with the requested resource name in the cache, regardless of the size requested.

.

<Flags()> Public Enum LoadResourceFlags As UInteger

.

    ''' lpszName specifies the image resource in the hinst module. If the image resource is to be loaded by name,

.

    ''' the lpszName parameter is a pointer to a null-terminated string that contains the name of the image resource.

.

    ''' If the image resource is to be loaded by ordinal, use the MAKEINTRESOURCE macro to convert the image ordinal

.

    ''' To pass these constants to the LoadImage function, use the MAKEINTRESOURCE macro. For example, to load the OCR_NORMAL cursor,

.

    ''' pass MAKEINTRESOURCE(OCR_NORMAL) as the lpszName parameter and NULL as the hinst parameter.

.

    ''' the function uses the actual resource size. If the resource contains multiple images, the function uses the size of the first image.

.

    ''' Tries to reload an icon or cursor resource from the original resource file rather than simply copying the current image.

.

    ''' This is useful for creating a different-sized copy when the resource file contains multiple sizes of the resource.

.

    ''' in the resource file closest to the desired size. This will succeed only if hImage was loaded by LoadIcon or LoadCursor,

.

    LR_COPYFROMRESOURCE = &H4000

.

    ''' same resource will load the image again and return a different handle.

.

    ''' When you use this flag, the system will destroy the resource when it is no longer needed.

.

    ''' When loading a system icon or cursor, you must use LR_SHARED or the function will fail to load the resource.

.

    ''' Windows 95/98/Me: The function finds the first image with the requested resource name in the cache, regardless of the size requested.

28: NERR_
.

        /// <summary> 2105 - A network resource shortage occurred. </summary>

.

        public const int NoNetworkResource = 2105;

.

        /// <summary> 2117 - The operation is invalid on a redirected resource. </summary>

.

        /// <summary> 2119 - The server is currently out of the requested resource. </summary>

.

        /// <summary> 2222 - The resource name could not be found. </summary>

.

        public const int ResourceNotFound = 2222;

.

        /// <summary> 2225 - The resource permission list already exists. </summary>

.

        public const int ResourceExists = 2225;

.

        /// <summary> 2230 - The limit of 64 entries per resource was exceeded. </summary>

.

        /// <summary> 2310 - This shared resource does not exist. </summary>

.

        /// <summary> 2318 - This device cannot be shared as both a spooled and a non-spooled resource. </summary>

.

        /// <summary> 2372 - The system cannot delete current connections to network resources. </summary>

.

        /// <summary> 2392 - The shared resource you are connected to could not be found. </summary>

.

        /// <summary> 2519 - A second connection to a Remoteboot resource is not allowed. </summary>

.

    public static PropertyKey PKEY_Device_ResourcePickerTags = new PropertyKey(0xa8b865dd, 0x2e3d, 0x4094, 0xad, 0x97, 0xe5, 0x93, 0xa7, 0xc, 0x75, 0xd6, 12);     // DEVPROP_TYPE_STRING

.

    public static PropertyKey PKEY_Device_ResourcePickerExceptions = new PropertyKey(0xa8b865dd, 0x2e3d, 0x4094, 0xad, 0x97, 0xe5, 0x93, 0xa7, 0xc, 0x75, 0xd6, 13); // DEVPROP_TYPE_STRING

.

    public static PropertyKey PKEY_Calendar_Resources = new PropertyKey( 0x00F58A38, 0xC54B, 0x4C40, 0x86, 0x96, 0x97, 0x23, 0x59, 0x80, 0xEA, 0xE1, 100);

.

    public static PropertyKey WPD_OBJECT_GENERATE_THUMBNAIL_FROM_RESOURCE = new PropertyKey(0xEF6B490D, 0x5CD8, 0x437A, 0xAF, 0xFC, 0xDA, 0x8B, 0x60, 0xEE, 0x4A, 0x3C, 24);

.

    public static PropertyKey WPD_APPOINTMENT_RESOURCES = new PropertyKey(0xF99EFD03, 0x431D, 0x40D8, 0xA1, 0xC9, 0x4E, 0x22, 0x0D, 0x9C, 0x88, 0xD3, 11);

.

    public static PropertyKey WPD_SECTION_DATA_REFERENCED_OBJECT_RESOURCE = new PropertyKey(0x516AFD2B, 0xC64E, 0x44F0, 0x98, 0xDC, 0xBE, 0xE1, 0xC8, 0x8F, 0x7D, 0x66, 5);

.

    public static PropertyKey WPD_RENDERING_INFORMATION_PROFILE_ENTRY_CREATABLE_RESOURCES = new PropertyKey(0xC53D039F, 0xEE23, 0x4A31, 0x85, 0x90, 0x76, 0x39, 0x87, 0x98, 0x70, 0xB4, 4);

.

    public static PropertyKey WPD_RESOURCE_DEFAULT = new PropertyKey(0xE81E79BE, 0x34F0, 0x41BF, 0xB5, 0x3F, 0xF1, 0xA0, 0x6A, 0xE8, 0x78, 0x42, 0);

.

    public static PropertyKey WPD_RESOURCE_CONTACT_PHOTO = new PropertyKey(0x2C4D6803, 0x80EA, 0x4580, 0xAF, 0x9A, 0x5B, 0xE1, 0xA2, 0x3E, 0xDD, 0xCB, 0);

.

    public static PropertyKey WPD_RESOURCE_THUMBNAIL = new PropertyKey(0xC7C407BA, 0x98FA, 0x46B5, 0x99, 0x60, 0x23, 0xFE, 0xC1, 0x24, 0xCF, 0xDE, 0);

.

    public static PropertyKey WPD_RESOURCE_ICON = new PropertyKey(0xF195FED8, 0xAA28, 0x4EE3, 0xB1, 0x53, 0xE1, 0x82, 0xDD, 0x5E, 0xDC, 0x39, 0);

.

    public static PropertyKey WPD_RESOURCE_AUDIO_CLIP = new PropertyKey(0x3BC13982, 0x85B1, 0x48E0, 0x95, 0xA6, 0x8D, 0x3A, 0xD0, 0x6B, 0xE1, 0x17, 0);

.

    public static PropertyKey WPD_RESOURCE_ALBUM_ART = new PropertyKey(0xF02AA354, 0x2300, 0x4E2D, 0xA1, 0xB9, 0x3B, 0x67, 0x30, 0xF7, 0xFA, 0x21, 0);

.

    public static PropertyKey WPD_RESOURCE_GENERIC = new PropertyKey(0xB9B9F515, 0xBA70, 0x4647, 0x94, 0xDC, 0xFA, 0x49, 0x25, 0xE9, 0x5A, 0x07, 0);

.

    public static PropertyKey WPD_RESOURCE_VIDEO_CLIP = new PropertyKey(0xB566EE42, 0x6368, 0x4290, 0x86, 0x62, 0x70, 0x18, 0x2F, 0xB7, 0x9F, 0x20, 0);

.

    public static PropertyKey WPD_RESOURCE_BRANDING_ART = new PropertyKey(0xB633B1AE, 0x6CAF, 0x4A87, 0x95, 0x89, 0x22, 0xDE, 0xD6, 0xDD, 0x58, 0x99, 0);

.

    public static PropertyKey WPD_RESOURCE_ATTRIBUTE_TOTAL_SIZE = new PropertyKey(0x1EB6F604, 0x9278, 0x429F, 0x93, 0xCC, 0x5B, 0xB8, 0xC0, 0x66, 0x56, 0xB6, 2);

.

    public static PropertyKey WPD_RESOURCE_ATTRIBUTE_CAN_READ = new PropertyKey(0x1EB6F604, 0x9278, 0x429F, 0x93, 0xCC, 0x5B, 0xB8, 0xC0, 0x66, 0x56, 0xB6, 3);

.

    public static PropertyKey WPD_RESOURCE_ATTRIBUTE_CAN_WRITE = new PropertyKey(0x1EB6F604, 0x9278, 0x429F, 0x93, 0xCC, 0x5B, 0xB8, 0xC0, 0x66, 0x56, 0xB6, 4);

.

    public static PropertyKey WPD_RESOURCE_ATTRIBUTE_CAN_DELETE = new PropertyKey(0x1EB6F604, 0x9278, 0x429F, 0x93, 0xCC, 0x5B, 0xB8, 0xC0, 0x66, 0x56, 0xB6, 5);

.

    public static PropertyKey WPD_RESOURCE_ATTRIBUTE_OPTIMAL_READ_BUFFER_SIZE = new PropertyKey(0x1EB6F604, 0x9278, 0x429F, 0x93, 0xCC, 0x5B, 0xB8, 0xC0, 0x66, 0x56, 0xB6, 6);

.

    public static PropertyKey WPD_RESOURCE_ATTRIBUTE_OPTIMAL_WRITE_BUFFER_SIZE = new PropertyKey(0x1EB6F604, 0x9278, 0x429F, 0x93, 0xCC, 0x5B, 0xB8, 0xC0, 0x66, 0x56, 0xB6, 7);

.

    public static PropertyKey WPD_RESOURCE_ATTRIBUTE_FORMAT = new PropertyKey(0x1EB6F604, 0x9278, 0x429F, 0x93, 0xCC, 0x5B, 0xB8, 0xC0, 0x66, 0x56, 0xB6, 8);

.

    public static PropertyKey WPD_RESOURCE_ATTRIBUTE_RESOURCE_KEY = new PropertyKey(0x1EB6F604, 0x9278, 0x429F, 0x93, 0xCC, 0x5B, 0xB8, 0xC0, 0x66, 0x56, 0xB6, 9);

.

    public static PropertyKey WPD_COMMAND_OBJECT_RESOURCES_GET_SUPPORTED = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 2);

.

    public static PropertyKey WPD_COMMAND_OBJECT_RESOURCES_GET_ATTRIBUTES = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 3);

.

    public static PropertyKey WPD_COMMAND_OBJECT_RESOURCES_OPEN = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 4);

.

    public static PropertyKey WPD_COMMAND_OBJECT_RESOURCES_READ = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 5);

.

    public static PropertyKey WPD_COMMAND_OBJECT_RESOURCES_WRITE = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 6);

.

    public static PropertyKey WPD_COMMAND_OBJECT_RESOURCES_CLOSE = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 7);

.

    public static PropertyKey WPD_COMMAND_OBJECT_RESOURCES_DELETE = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 8);

.

    public static PropertyKey WPD_COMMAND_OBJECT_RESOURCES_CREATE_RESOURCE = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 9);

.

    public static PropertyKey WPD_COMMAND_OBJECT_RESOURCES_REVERT = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 10);

.

    public static PropertyKey WPD_COMMAND_OBJECT_RESOURCES_SEEK = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 11);

.

    public static PropertyKey WPD_PROPERTY_OBJECT_RESOURCES_OBJECT_ID = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 1001);

.

    public static PropertyKey WPD_PROPERTY_OBJECT_RESOURCES_ACCESS_MODE = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 1002);

.

    public static PropertyKey WPD_PROPERTY_OBJECT_RESOURCES_RESOURCE_KEYS = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 1003);

.

    public static PropertyKey WPD_PROPERTY_OBJECT_RESOURCES_RESOURCE_ATTRIBUTES = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 1004);

.

    public static PropertyKey WPD_PROPERTY_OBJECT_RESOURCES_CONTEXT = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 1005);

.

    public static PropertyKey WPD_PROPERTY_OBJECT_RESOURCES_NUM_BYTES_TO_READ = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 1006);

.

    public static PropertyKey WPD_PROPERTY_OBJECT_RESOURCES_NUM_BYTES_READ = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 1007);

.

    public static PropertyKey WPD_PROPERTY_OBJECT_RESOURCES_NUM_BYTES_TO_WRITE = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 1008);

.

    public static PropertyKey WPD_PROPERTY_OBJECT_RESOURCES_NUM_BYTES_WRITTEN = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 1009);

.

    public static PropertyKey WPD_PROPERTY_OBJECT_RESOURCES_DATA = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 1010);

.

    public static PropertyKey WPD_PROPERTY_OBJECT_RESOURCES_OPTIMAL_TRANSFER_BUFFER_SIZE = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 1011);

.

    public static PropertyKey WPD_PROPERTY_OBJECT_RESOURCES_SEEK_OFFSET = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 1012);

.

    public static PropertyKey WPD_PROPERTY_OBJECT_RESOURCES_SEEK_ORIGIN_FLAG = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 1013);

.

    public static PropertyKey WPD_PROPERTY_OBJECT_RESOURCES_POSITION_FROM_START = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 1014);

.

    public static PropertyKey WPD_OPTION_OBJECT_RESOURCES_SEEK_ON_READ_SUPPORTED = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 5001);

.

    public static PropertyKey WPD_OPTION_OBJECT_RESOURCES_SEEK_ON_WRITE_SUPPORTED = new PropertyKey(0xB3A2B22D, 0xA595, 0x4108, 0xBE, 0x0A, 0xFC, 0x3C, 0x96, 0x5F, 0x3D, 0x4A, 5002);

.

    public static PropertyKey WPDNSE_OBJECT_HAS_CONTACT_PHOTO = new PropertyKey(0x34d71409, 0x4b47, 0x4d80, 0xaa, 0xac, 0x3a, 0x28, 0xa4, 0xa3, 0xb3, 0xe6, 2); // [ VT_BOOL ] Indicates whether the object has a contact photo resource.  

.

    public static PropertyKey WPDNSE_OBJECT_HAS_THUMBNAIL = new PropertyKey(0x34d71409, 0x4b47, 0x4d80, 0xaa, 0xac, 0x3a, 0x28, 0xa4, 0xa3, 0xb3, 0xe6, 3); // [ VT_BOOL ] Indicates whether the object has a thumbnail resource.  

.

    public static PropertyKey WPDNSE_OBJECT_HAS_ICON = new PropertyKey(0x34d71409, 0x4b47, 0x4d80, 0xaa, 0xac, 0x3a, 0x28, 0xa4, 0xa3, 0xb3, 0xe6, 4); // [ VT_BOOL ] Indicates whether the object has an icon resource.  

.

    public static PropertyKey WPDNSE_OBJECT_HAS_AUDIO_CLIP = new PropertyKey(0x34d71409, 0x4b47, 0x4d80, 0xaa, 0xac, 0x3a, 0x28, 0xa4, 0xa3, 0xb3, 0xe6, 5); // [ VT_BOOL ] Indicates whether the object has a voice annotation resource.  

.

    public static PropertyKey WPDNSE_OBJECT_HAS_ALBUM_ART = new PropertyKey(0x34d71409, 0x4b47, 0x4d80, 0xaa, 0xac, 0x3a, 0x28, 0xa4, 0xa3, 0xb3, 0xe6, 6); // [ VT_BOOL ] Indicates whether the object has an album art resource.  

.

    public static PropertyKey WPDNSE_OBJECT_OPTIMAL_READ_BLOCK_SIZE = new PropertyKey(0x34d71409, 0x4b47, 0x4d80, 0xaa, 0xac, 0x3a, 0x28, 0xa4, 0xa3, 0xb3, 0xe6, 7); // [ VT_UI4 ] The optimal buffer size clients can use to read data chunks of the default resource.  

.
Summary
RESOURCE* constants
.

const UInt32 RESOURCE_CONNECTED = 0x00000001;

.

const UInt32 RESOURCE_GLOBALNET = 0x00000002;

.

const UInt32 RESOURCE_REMEMBERED = 0x00000003;

.

const UInt32 RESOURCETYPE_ANY = 0x00000000;

.

const UInt32 RESOURCETYPE_DISK = 0x00000001;

.

const UInt32 RESOURCETYPE_PRINT = 0x00000002;

.

const UInt32 RESOURCEUSAGE_CONNECTABLE = 0x00000001;

.

const UInt32 RESOURCEUSAGE_CONTAINER = 0x00000002;

.

const UInt32 RESOURCEUSAGE_RESERVED = 0x80000000;

.

const UInt32 RESOURCEDISPLAYTYPE_GENERIC = 0x00000000;

.

const UInt32 RESOURCEDISPLAYTYPE_DOMAIN = 0x00000001;

.

const UInt32 RESOURCEDISPLAYTYPE_SERVER = 0x00000002;

.

const UInt32 RESOURCEDISPLAYTYPE_SHARE = 0x00000003;

.

const UInt32 RESOURCEDISPLAYTYPE_FILE = 0x00000004;

.

const UInt32 RESOURCEDISPLAYTYPE_GROUP = 0x00000005;

.

const UInt32 RESOURCEDISPLAYTYPE_TREE = 0x0000000A;

.

    /// <summary>The specified network resource or device is no longer available.</summary>

.

    /// <summary>The network resource type is not correct.</summary>

.

    /// <summary>Not enough resources are available to process this command.</summary>

.

    /// <summary>The requested resource is in use.</summary>

.

    /// <summary>A translator failed to translate resources.</summary>

.

    /// <summary>An interrupt request (IRQ) translator failed to translate resources.</summary>

.

    /// <summary>The arbiter has deferred arbitration of these resources to its parent.</summary>

.

    /// <summary>The device has succeeded a query-stop and its resource requirements have changed.</summary>

.

    public const int ERROR_RESOURCE_REQUIREMENTS_CHANGED = 0x000002F4;

.

    /// <summary>The translator has translated these resources into the global space and no further translations should be performed.</summary>

.

    public const int ERROR_INSUFFICIENT_RESOURCE_FOR_SPECIFIED_SHARED_SECTION_SIZE = 0x0000030D;

.

    /// <summary>The local device name has a remembered connection to another network resource.</summary>

.

    /// <summary>Multiple connections to a server or shared resource by the same user, using more than one user name, are not allowed. Disconnect all previous connections to the server or shared resource and try again.</summary>

.

    /// <summary>Insufficient system resources exist to complete the requested service.</summary>

.

    public const int ERROR_NO_SYSTEM_RESOURCES = 0x000005AA;

.

    /// <summary>Insufficient system resources exist to complete the requested service.</summary>

.

    public const int ERROR_NONPAGED_SYSTEM_RESOURCES = 0x000005AB;

.

    /// <summary>Insufficient system resources exist to complete the requested service.</summary>

.

    public const int ERROR_PAGED_SYSTEM_RESOURCES = 0x000005AC;

.

    /// <summary>Not enough resources are available to complete this operation.</summary>

.

    public const int RPC_S_OUT_OF_RESOURCES = 0x000006B9;

.

    /// <summary>The specified image file did not contain a resource section.</summary>

.

    public const int ERROR_RESOURCE_DATA_NOT_FOUND = 0x00000714;

.

    /// <summary>The specified resource type cannot be found in the image file.</summary>

.

    public const int ERROR_RESOURCE_TYPE_NOT_FOUND = 0x00000715;

.

    /// <summary>The specified resource name cannot be found in the image file.</summary>

.

    public const int ERROR_RESOURCE_NAME_NOT_FOUND = 0x00000716;

.

    /// <summary>The specified resource language ID cannot be found in the image file.</summary>

.

    public const int ERROR_RESOURCE_LANG_NOT_FOUND = 0x00000717;

.

    /// <summary>A network resource shortage occurred.</summary>

.

    public const int NERR_NoNetworkResource = 0x00000839;

.

    /// <summary>The operation is invalid on a redirected resource.</summary>

.

    /// <summary>The server is currently out of the requested resource.</summary>

.

    /// <summary>The resource name could not be found.</summary>

.

    public const int NERR_ResourceNotFound = 0x000008AE;

.

    /// <summary>The resource permission list already exists.</summary>

.

    public const int NERR_ResourceExists = 0x000008B1;

.

    /// <summary>The limit of 64 entries per resource was exceeded.</summary>

.

    /// <summary>This shared resource does not exist.</summary>

.

    /// <summary>This device cannot be shared as both a spooled and a nonspooled resource.</summary>

.

    /// <summary>The system cannot delete current connections to network resources.</summary>

.

    /// <summary>The shared resource you are connected to could not be found.</summary>

.

    /// <summary>A second connection to a Remoteboot resource is not allowed.</summary>

.

    /// <summary>A resource required for this operation is disabled.</summary>

.

    public const int ERROR_RESOURCE_DISABLED = 0x000010D5;

.

    /// <summary>The resource required for this operation does not exist.</summary>

.

    public const int ERROR_RESOURCE_NOT_PRESENT = 0x000010DC;

.

    /// <summary>The last remaining item in this group or resource cannot be deleted.</summary>

.

    /// <summary>The operation cannot be completed because other resources depend on this resource.</summary>

.

    public const int ERROR_DEPENDENT_RESOURCE_EXISTS = 0x00001389;

.

    /// <summary>The cluster resource dependency cannot be found.</summary>

.

    /// <summary>The cluster resource cannot be made dependent on the specified resource because it is already dependent.</summary>

.

    /// <summary>The cluster resource is not online.</summary>

.

    public const int ERROR_RESOURCE_NOT_ONLINE = 0x0000138C;

.

    /// <summary>The cluster resource is not available.</summary>

.

    public const int ERROR_RESOURCE_NOT_AVAILABLE = 0x0000138E;

.

    /// <summary>The cluster resource could not be found.</summary>

.

    public const int ERROR_RESOURCE_NOT_FOUND = 0x0000138F;

.

    /// <summary>The operation failed because either the specified cluster node is not the owner of the resource, or the node is not a possible owner of the resource.</summary>

.

    public const int ERROR_HOST_NODE_NOT_RESOURCE_OWNER = 0x00001397;

.

    /// <summary>The cluster resource could not be created in the specified resource monitor.</summary>

.

    /// <summary>The cluster resource could not be brought online by the resource monitor.</summary>

.

    /// <summary>The operation could not be completed because the cluster resource is online.</summary>

.

    public const int ERROR_RESOURCE_ONLINE = 0x0000139B;

.

    /// <summary>The cluster resource could not be deleted or brought offline because it is the quorum resource.</summary>

.

    public const int ERROR_QUORUM_RESOURCE = 0x0000139C;

.

    /// <summary>The cluster could not make the specified resource a quorum resource because it is not capable of being a quorum resource.</summary>

.

    /// <summary>The group or resource is not in the correct state to perform the requested operation.</summary>

.

    /// <summary>The properties were stored but not all changes will take effect until the next time the resource is brought online.</summary>

.

    public const int ERROR_RESOURCE_PROPERTIES_STORED = 0x000013A0;

.

    /// <summary>The cluster could not make the specified resource a quorum resource because it does not belong to a shared storage class.</summary>

.

    /// <summary>The cluster resource could not be deleted because it is a core resource.</summary>

.

    public const int ERROR_CORE_RESOURCE = 0x000013A2;

.

    /// <summary>The quorum resource failed to come online.</summary>

.

    public const int ERROR_QUORUM_RESOURCE_ONLINE_FAILED = 0x000013A3;

.

    /// <summary>The cluster node failed to take control of the quorum resource because the resource is owned by another active node.</summary>

.

    /// <summary>A cluster resource failed.</summary>

.

    public const int ERROR_RESOURCE_FAILED = 0x000013AE;

.

    /// <summary>One or more cluster resources depend on the network to provide service to clients. The client access capability cannot be removed from the network.</summary>

.

    /// <summary>This operation cannot be performed on the cluster resource because it is the quorum resource. This quorum resource cannot be brought offline and its possible owners list cannot be modified.</summary>

.

    /// <summary>The cluster quorum resource is not allowed to have any dependencies.</summary>

.

    /// <summary>The cluster resource cannot be brought online. The owner node cannot run this resource.</summary>

.

    public const int ERROR_NODE_CANT_HOST_RESOURCE = 0x000013CF;

.

    /// <summary>This resource cannot be created because the cluster has reached the limit on the number of resources it can monitor.</summary>

.

    public const int ERROR_CLUSTER_MAXNUM_OF_RESOURCES_EXCEEDED = 0x000013D4;

.

    /// <summary>The specified resource type was not found.</summary>

.

    public const int ERROR_CLUSTER_RESOURCE_TYPE_NOT_FOUND = 0x000013D6;

.

    /// <summary>The specified node does not support a resource of this type. This might be due to version inconsistencies or due to the absence of the resource DLL on this node.</summary>

.

    /// <summary>The specified resource name is not supported by this resource DLL. This might be due to a bad (or changed) name supplied to the resource DLL.</summary>

.

    /// <summary>The resource monitor will not allow the fail operation to be performed while the resource is in its current state. This can happen if the resource is in a pending state.</summary>

.

    /// <summary>An attempt to modify a resource property failed because it conflicts with another existing property.</summary>

.

    public const int ERROR_RESOURCE_PROPERTY_UNCHANGEABLE = 0x000013E1;

.

    /// <summary>The quorum resource does not contain the quorum log.</summary>

.

    /// <summary>Two or more parameter values specified for a resource's properties are in conflict.</summary>

.

    /// <summary>The name of the corresponding computer account does not match the network name for this resource.</summary>

.

    /// <summary>The resource type cannot accept the request because it is too busy performing another operation.</summary>

.

    public const int ERROR_CLUSTER_RESOURCE_TYPE_BUSY = 0x00001715;

.

    /// <summary>The call to the cluster resource DLL timed out.</summary>

.

    public const int ERROR_RESOURCE_CALL_TIMED_OUT = 0x00001716;

.

    /// <summary>The address is not valid for an IPv6 Address resource. A global IPv6 address is required, and it must match a cluster network. Compatibility addresses are not permitted.</summary>

.

    /// <summary>One or more property values for this resource are in conflict with one or more property values associated with its dependent resources.</summary>

.

    public const int ERROR_DEPENDENT_RESOURCE_PROPERTY_CONFLICT = 0x00001724;

.

    /// <summary>The cluster network is not valid for an IPv6 address resource, or it does not match the configured address.</summary>

.

    /// <summary>The cluster network is not valid for an IPv6 tunnel resource. Check the configuration of the IP Address resource on which the IPv6 tunnel resource depends.</summary>

.

    /// <summary>Quorum resource cannot reside in the available storage group.</summary>

.

    /// <summary>The specified resource manager made no changes or updates to the resource under this transaction.</summary>

.

    public const int ERROR_RESOURCEMANAGER_READ_ONLY = 0x00001A33;

.

    /// <summary>The resource manager has attempted to prepare a transaction that it has not successfully joined.</summary>

.

    /// <summary>The resource manager tried to register a protocol that already exists.</summary>

.

    /// <summary>The specified resource manager object could not be opened because it was not found.</summary>

.

    public const int ERROR_RESOURCEMANAGER_NOT_FOUND = 0x00001A3C;

.