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
Download Visual Studio Add-In

Search Results for "RESOURCE" in [All]

gdiplus

.
Summary
The GdiplusShutdown function cleans up resources used by GDI+. Each call to GdiplusStartup should be paired with a call to GdiplusShutdown.

msi

.

     case 5 :    return Resources.MsiErrorAccessDenied ;

.

     case 1610:  return Resources.MsiErrorBadConfiguration ;

.

     case 1627:  return Resources.MsiErrorFunctionFailed ;

.

     case 87:    return Resources.MsiErrorInvalidParameter ;

.

     case 234:   return Resources.MsiErrorMoreData ;

.

     case 0:     return Resources.MsiErrorSuccess ;

.

     case 1605:  return Resources.MsiErrorUnknownProduct ;

.

     case 1608:  return Resources.MsiErrorUnknownProperty ;

.

     case 1647:  return Resources.MsiErrorUnknownPatch ;

.

      return Resources.AgentErrorUnknown;

.

     case 5 :    return Resources.MsiErrorAccessDenied ;

.

     case 1610:  return Resources.MsiErrorBadConfiguration ;

.

     case 1627:  return Resources.MsiErrorFunctionFailed ;

.

     case 87:    return Resources.MsiErrorInvalidParameter ;

.

     case 234:   return Resources.MsiErrorMoreData ;

.

     case 0:     return Resources.MsiErrorSuccess ;

.

     case 1605:  return Resources.MsiErrorUnknownProduct ;

.

     case 1608:  return Resources.MsiErrorUnknownProperty ;

.

     case 1647:  return Resources.MsiErrorUnknownPatch ;

.

      return Resources.AgentErrorUnknown;

uxtheme

.

SetSystemVisualStyle(@"C:\WINDOWS\resources\Themes\Luna\Luna.msstyles", "Metallic", "NormalSize", 0);

.

SetSystemVisualStyle("C:\WINDOWS\resources\Themes\Luna\Luna.msstyles", "Metallic", "NormalSize", 0)

ole32

.

Setting the delay too short (or zero) can have unintended consequences, as some DLL's will return control before they have finished cleaning up resources, or they will continue executing in the background.

.

Setting the delay too short (or zero) can have unintended consequences, as some DLL's will return control before they have finished cleaning up resources, or they will continue executing in the background.

.

        /// <summary> Release unmanaged resources </summary>

advapi32

.

    const uint STATUS_INSUFFICIENT_RESOURCES = 0xc000009a;

.

        if ((ret == STATUS_INSUFFICIENT_RESOURCES) || (ret == STATUS_NO_MEMORY))

.

        if ((ret == STATUS_INSUFFICIENT_RESOURCES) || (ret == STATUS_NO_MEMORY))

.

    const uint STATUS_INSUFFICIENT_RESOURCES = 0xc000009a;

.

        if ((ret == STATUS_INSUFFICIENT_RESOURCES) || (ret == STATUS_NO_MEMORY))

.

        if (ret == STATUS_INSUFFICIENT_RESOURCES || ret == STATUS_NO_MEMORY)

.

        if (ret == STATUS_INSUFFICIENT_RESOURCES || ret == STATUS_NO_MEMORY)

.

        if ((ret == STATUS_INSUFFICIENT_RESOURCES) || (ret == STATUS_NO_MEMORY))

.

        if ((ret == STATUS_INSUFFICIENT_RESOURCES) || (ret == STATUS_NO_MEMORY))

.

   //Implement IDisposable. (from Implementing Finalize and Dispose to Clean Up Unmanaged Resources )

.

(Special Note: The .NET Framework (3.0 and earlier at least) cannot read registry values of special types (for example: REG_RESOURCE_LIST and REG_FULL_RESOURCE_DESCRIPTOR). I am not sure if they will ever be available under .NET, to see examples of these types of values at work, visit your registry under (HKLM\HARDWARE\DESCRIPTION\System) and (HKLM\HARDWARE\RESOURCEMAP\Hardware Abstraction Layer\ACPI x86 platform).

.

        RegResourceList = 8,

.

        RegFullResourceDescriptor = 9,

.

        RegResourceRequirementsList = 10,

.

static extern unsafe uint RegisterTraceGuids([In] EtwProc cbFunc, [In] void* context, [In] ref Guid controlGuid, [In] uint guidCount, ref TraceGuidRegistration guidReg, [In] string mofImagePath, [In] string mofResourceName, out ulong regHandle);

.

static extern unsafe uint RegisterTraceGuids([In] EtwProc cbFunc, [In] void* context, [In] ref Guid controlGuid, [In] uint guidCount, ref TraceGuidRegistration guidReg, [In] string mofImagePath, [In] string mofResourceName, out ulong regHandle);

.
Summary
The WNetGetUniversalName function takes a drive-based path for a network resource and returns an information structure that contains a more universal form of the name. What this means is that you can take a file name from a network drive can be converted to a UNC version that may be used from other computers on the network that do not have the same drive mappings.

Interfaces

.

        void OnLowResource([In] uint reserved);

.

     BINDSTATUS_FINDINGRESOURCE      = 1

.

        INET_E_RESOURCE_NOT_FOUND = 0x800C0005,

.

        /// Dispose and free used resources

.

        public void OnLowResource( uint reserved )

.

                case HRESULTS.INET_E_RESOURCE_NOT_FOUND:

.

                    Description = "Resource Not Found.";break;

.

    /// Gets the set of properties of the manifest resource with the specified metadata signature.

.

    /// <param name="mdmr">[in] An <c>mdManifestResource</c> token that represents the resource for which to get the properties. </param>

.

    /// <param name="ptkImplementation">[out] A pointer to an <c>mdFile</c> token or an mdAssemblyRef token that represents the file or assembly, respectively, that contains the resource. </param>

.

    /// <param name="pdwOffset">[out] A pointer to a value that specifies the offset to the beginning of the resource within the file.</param>

.

    /// <param name="pdwResourceFlags">[out] A pointer to flags that describe the metadata applied to a resource. The flags value is a combination of one or more <c>CorManifestResourceFlags</c> values.</param>

.

    /// STDMETHOD(GetManifestResourceProps)(    // S_OK or error.

.

    ///     mdManifestResource  mdmr,       // [IN] The ManifestResource for which to get the properties.

.

    ///     mdToken     *ptkImplementation,     // [OUT] mdFile or mdAssemblyRef that provides the ManifestResource.

.

    ///     DWORD       *pdwOffset,         // [OUT] Offset to the beginning of the resource within the file.

.

    ///     DWORD       *pdwResourceFlags) PURE;// [OUT] Flags.

.

    void GetManifestResourceProps(

.

        [Out] out CorManifestResourceFlags pdwResourceFlags);

.

    /// Gets a pointer to an enumerator for the resources referenced in the current assembly manifest.

.

    /// <param name="phEnum">[in, out] A pointer to the enumerator. This must be a null value when the <c>EnumManifestResources</c> method is called for the first time.</param>

.

    /// <param name="rManifestResources">[out] The array used to store the <c>mdManifestResource</c> metadata tokens.</param>

.

    /// <param name="cMax">[in] The maximum number of <c>mdManifestResource</c> tokens that can be placed in <c>rManifestResources</c>.</param>

.

    /// <param name="pcTokens">[out] The number of <c>mdManifestResource</c> tokens actually placed in <c>rManifestResources</c>.</param>

.

    /// STDMETHOD(EnumManifestResources)(       // S_OK or error

.

    ///     mdManifestResource  rManifestResources[],   // [OUT] Put ManifestResources here.

.

    ///     ULONG       cMax,           // [IN] Max Resources to put.

.

    void EnumManifestResources(

.

        [Out, MarshalAs(UnmanagedType.LPArray)] uint[] rManifestResources,

.

    /// Gets a pointer to the manifest resource with the specified name.

.

    /// <param name="szName">[in] The name of the resource.</param>

.

    /// <param name="ptkManifestResource">[out] The array used to store the <c>mdManifestResource</c> metadata tokens, each of which represents a manifest resource.</param>

.

    /// STDMETHOD(FindManifestResourceByName)(  // S_OK or error

.

    ///     LPCWSTR     szName,         // [IN] Name of the ManifestResource.

.

    ///     mdManifestResource *ptkManifestResource) PURE;  // [OUT] Put the ManifestResource token here.

.

    void FindManifestResourceByName(

.

        [Out] out uint ptkManifestResource);

.

    ffContainsMetaData      =   0x0000,     // This is not a resource file

.

    ffContainsNoMetaData    =   0x0001,     // This is a resource file or other non-metadata-containing file

.

    public enum CorManifestResourceFlags : uint {

.

    mrPublic        =   0x0001,     // The Resource is exported from the Assembly.

.

    mrPrivate           =   0x0002,     // The Resource is private to the Assembly.

.

        /// <param name="hInstAnimation">An instance handle to the module from which the AVI resource should be loaded.</param>

.

        /// <param name="idAnimation">An AVI resource identifier. To create this value, use the MAKEINTRESOURCE macro. The control loads the AVI resource from the module specified by hInstAnimation.</param>

.

     HRESULT LoadUI(IntPtr instance, [MarshalAs(UnmanagedType.LPWStr)] string resourceName);

misc

20: FAQ
.
Question
How can I fetch a parameterized message from an externalized ".mc" resource file using FormatMessage function ? What is the va* arguments parameter that the FormatMessage API takes as an input and how do I pass this parameter in C# ?
.
P/Invoke Wizard - automates process of writing declarations http://www.paulyao.com/resources/tools/pinvoke.asp

setupapi

.

SPOST_URL OEMSourceMediaLocation contains a universal resource locator (URL) specifying the Internet location from where the INF/driver files were retrieved. If OEMSourceMediaLocation is NULL, it is assumed that the default Code Download Manager location was used.

.
Summary
.

When finished using the device information set, the application should free the resources used by calling SetupDiDestroyDeviceInfoList

ws2_32

.
Summary
Cleans up the Windows Sockets resources. Ensure this method is called after every successful call to WSAStartup().

httpapi

.
Summary
The HttpTerminate function cleans up resources used by the HTTP API to process calls by an application. An application should call HttpTerminate once for every time it called HttpInitialize, with matching flag settings.

shell32

.

If this value is –1 and phiconLarge and phiconSmall are both NULL, the function returns the total number of icons in the specified file. If the file is an executable file or DLL, the return value is the number of RT_GROUP_ICON resources. If the file is an .ico file, the return value is 1.

.

Windows 95/98/Me, Windows NT 4.0 and later: If this value is a negative number and either phiconLarge or phiconSmall is not NULL, the function begins by extracting the icon whose resource identifier is equal to the absolute value of nIconIndex. For example, use -3 to extract the icon whose resource identifier is 3.

.

For Windows CE 2.10 and later: the nIconIndex parameter must be zero or –N, where N is a specified resource identifier. The nIcons parameter must be 1.

.

For Windows CE 1.0 through 2.10: the function returns the total number of icons in the specified file if nIconIndex is –1 and phIconLarge and phiconSmall are both NULL. If the file is an executable file or DLL, the return value is the number of RT_GROUP_ICON resources. If the file is an .ICO file, the return value is 1.

.

            // RELEASE RESOURCES

.

        'RELEASE RESOURCES

.

If this value is –1 and phiconLarge and phiconSmall are both NULL, the function returns the total number of icons in the specified file. If the file is an executable file or DLL, the return value is the number of RT_GROUP_ICON resources. If the file is an .ico file, the return value is 1.

.

Windows 95/98/Me, Windows NT 4.0 and later: If this value is a negative number and either phiconLarge or phiconSmall is not NULL, the function begins by extracting the icon whose resource identifier is equal to the absolute value of nIconIndex. For example, use -3 to extract the icon whose resource identifier is 3.

.

For Windows CE 2.10 and later: the nIconIndex parameter must be zero or –N, where N is a specified resource identifier. The nIcons parameter must be 1.

.

For Windows CE 1.0 through 2.10: the function returns the total number of icons in the specified file if nIconIndex is –1 and phIconLarge and phiconSmall are both NULL. If the file is an executable file or DLL, the return value is the number of RT_GROUP_ICON resources. If the file is an .ICO file, the return value is 1.

.

            // RELEASE RESOURCES

.

        'RELEASE RESOURCES

.

        private uint BIF_SHAREABLE      = 0x8000;  // sharable resources displayed (remote shares, requires BIF_USENEWUI)

.

A good sample of using this (with resource leek)

.

    public static readonly Guid LocalizedResourcesDir = new Guid( "2A00375E-224C-49DE-B8D1-440DF7EF3DDC" );

.

    public static readonly Guid ResourceDir = new Guid( "8AD10C31-2ADB-4296-A8F7-E4701232C972" );

.

    RESOURCES = &H38

.

    RESOURCES_LOCALIZED = &H39

.

    ''' Opens and selects all files. In addition releases all resources.

.

    public static Guid LocalizedResourcesDir = new Guid("2A00375E-224C-49DE-B8D1-440DF7EF3DDC");

.

    public static Guid ResourceDir = new Guid("8AD10C31-2ADB-4296-A8F7-E4701232C972");

Enums

.

    /// The browse dialog box can display shareable resources on remote systems.

.

    ''' The browse dialog box can display shareable resources on remote systems.

36: CSIDL
.

    CSIDL_RESOURCES         = 0x0038,

.

    CSIDL_RESOURCES_LOCALIZED       = 0x0039,

.

    CSIDL_RESOURCES = &H38

.

    CSIDL_RESOURCES_LOCALIZED = &H39

.

        /** Transform resources of source PE. */

.

        DELTA_FLAG_RESOURCES = (0x00000010), /* flags[ 4 ] */

.

    ///Could not allocate some required resource (memory, events, ...)

.

    [Description("Could not allocate some required resource (memory, events, ...)")]

.

    public const int RPC_E_OUT_OF_RESOURCES = unchecked((int)0x80010101);

.

    ///There are insufficient resources to open another file.

.

    [Description("There are insufficient resources to open another file.")]

.

    ///Another single phase resource manager has already been enlisted in this transaction.

.

    [Description("Another single phase resource manager has already been enlisted in this transaction.")]

.

    ///Instead of committing, the resource heuristically aborted.

.

    [Description("Instead of committing, the resource heuristically aborted.")]

.

    ///Instead of aborting, the resource heuristically committed.

.

    [Description("Instead of aborting, the resource heuristically committed.")]

.

    ///Some of the states of the resource were committed while others were aborted, likely because of heuristic decisions.

.

    [Description("Some of the states of the resource were committed while others were aborted, likely because of heuristic decisions.")]

.

    ///Some of the states of the resource may have been committed while others may have been aborted, likely because of heuristic decisions.

.

    [Description("Some of the states of the resource may have been committed while others may have been aborted, likely because of heuristic decisions.")]

.

    ///There is no resource presently associated with this enlistment

.

    [Description("There is no resource presently associated with this enlistment")]

.

    public const int XACT_E_NORESOURCE = unchecked((int)0x8004D00C);

.

    ///The transaction failed to commit due to the failure of optimistic concurrency control in at least one of the resource managers.

.

    [Description("The transaction failed to commit due to the failure of optimistic concurrency control in at least one of the resource managers.")]

.

    ///The resource manager id is not associated with this transaction or the transaction manager.

.

    [Description("The resource manager id is not associated with this transaction or the transaction manager.")]

.

    ///The indicated unit of work does not match the unit of work expected by the resource manager.

.

    [Description("The indicated unit of work does not match the unit of work expected by the resource manager.")]

.

    ///The transaction status is in doubt. A communication failure occurred, or a transaction manager or resource manager has failed

.

    [Description("The transaction status is in doubt. A communication failure occurred, or a transaction manager or resource manager has failed")]

.

    ///Resource manager reenlistment to determine transaction status timed out.

.

    [Description("Resource manager reenlistment to determine transaction status timed out.")]

.

    ///The transaction was successfully aborted. However, this is a coordinated transaction, and some number of enlisted resources were aborted outright because they could not support abort-retaining semantics

.

    [Description("The transaction was successfully aborted. However, this is a coordinated transaction, and some number of enlisted resources were aborted outright because they could not support abort-retaining semantics")]

.

    ///The sink is content and wishes the transaction to proceed. Changes were made to one or more resources during this call.

.

    [Description("The sink is content and wishes the transaction to proceed. Changes were made to one or more resources during this call.")]

.

    ///The resource manager has performed a single-phase commit of the transaction.

.

    [Description("The resource manager has performed a single-phase commit of the transaction.")]

.

    ///The resource manager has requested to be the coordinator (last resource manager) for the transaction.

.

    [Description("The resource manager has requested to be the coordinator (last resource manager) for the transaction.")]

.

    public const int XACT_S_LASTRESOURCEMANAGER = unchecked((int)0x0004D010);

.

    ///OSS ASN.1 Error: System resource error.

.

    [Description("OSS ASN.1 Error: System resource error.")]

.

    ///The Smart card resource manager is not running.

.

    [Description("The Smart card resource manager is not running.")]

.

    ///The Smart card resource manager has shut down.

.

    [Description("The Smart card resource manager has shut down.")]

.

    ///The Smart card resource manager is too busy to complete this operation.

.

    [Description("The Smart card resource manager is too busy to complete this operation.")]

.

    ///Cannot create a duplicate resource of type Distributed Transaction Coordinator

.

    [Description("Cannot create a duplicate resource of type Distributed Transaction Coordinator")]

.

    public const int MSDTC_E_DUPLICATE_RESOURCE = unchecked((int)0x80110701);

.

    '''Could not allocate some required resource (memory, events, ...)

.

    <Description("Could not allocate some required resource (memory, events, ...)")> _

.

    Public Const RPC_E_OUT_OF_RESOURCES As Integer = CInt(&H80010101UI)

.

    '''There are insufficient resources to open another file.

.

    <Description("There are insufficient resources to open another file.")> _

.

    '''Another single phase resource manager has already been enlisted in this transaction.

.

    <Description("Another single phase resource manager has already been enlisted in this transaction.")> _

.

    '''Instead of committing, the resource heuristically aborted.

.

    <Description("Instead of committing, the resource heuristically aborted.")> _

.

    '''Instead of aborting, the resource heuristically committed.

.

    <Description("Instead of aborting, the resource heuristically committed.")> _

.

    '''Some of the states of the resource were committed while others were aborted, likely because of heuristic decisions.

.

    <Description("Some of the states of the resource were committed while others were aborted, likely because of heuristic decisions.")> _

.

    '''Some of the states of the resource may have been committed while others may have been aborted, likely because of heuristic decisions.

.

    <Description("Some of the states of the resource may have been committed while others may have been aborted, likely because of heuristic decisions.")> _

.

    '''There is no resource presently associated with this enlistment

.

    <Description("There is no resource presently associated with this enlistment")> _

.

    Public Const XACT_E_NORESOURCE As Integer = CInt(&H8004d00cUI)

.

    '''The transaction failed to commit due to the failure of optimistic concurrency control in at least one of the resource managers.

.

    <Description("The transaction failed to commit due to the failure of optimistic concurrency control in at least one of the resource managers.")> _

.

    '''The resource manager id is not associated with this transaction or the transaction manager.

.

    <Description("The resource manager id is not associated with this transaction or the transaction manager.")> _

.

    '''The indicated unit of work does not match the unit of work expected by the resource manager.

.

    <Description("The indicated unit of work does not match the unit of work expected by the resource manager.")> _

.

    '''The transaction status is in doubt. A communication failure occurred, or a transaction manager or resource manager has failed

.

    <Description("The transaction status is in doubt. A communication failure occurred, or a transaction manager or resource manager has failed")> _

.

    '''Resource manager reenlistment to determine transaction status timed out.

.

    <Description("Resource manager reenlistment to determine transaction status timed out.")> _

.

    '''The transaction was successfully aborted. However, this is a coordinated transaction, and some number of enlisted resources were aborted outright because they could not support abort-retaining semantics

.

    <Description("The transaction was successfully aborted. However, this is a coordinated transaction, and some number of enlisted resources were aborted outright because they could not support abort-retaining semantics")> _

.

    '''The sink is content and wishes the transaction to proceed. Changes were made to one or more resources during this call.

.

    <Description("The sink is content and wishes the transaction to proceed. Changes were made to one or more resources during this call.")> _

.

    '''The resource manager has performed a single-phase commit of the transaction.

.

    <Description("The resource manager has performed a single-phase commit of the transaction.")> _

.

    '''The resource manager has requested to be the coordinator (last resource manager) for the transaction.

.

    <Description("The resource manager has requested to be the coordinator (last resource manager) for the transaction.")> _

.

    Public Const XACT_S_LASTRESOURCEMANAGER As Integer = CInt(&H4d010)

.

    '''OSS ASN.1 Error: System resource error.

.

    <Description("OSS ASN.1 Error: System resource error.")> _

.

    '''The Smart card resource manager is not running.

.

    <Description("The Smart card resource manager is not running.")> _

.

    '''The Smart card resource manager has shut down.

.

    <Description("The Smart card resource manager has shut down.")> _

.

    '''The Smart card resource manager is too busy to complete this operation.

.

    <Description("The Smart card resource manager is too busy to complete this operation.")> _

.

    '''Cannot create a duplicate resource of type Distributed Transaction Coordinator

.

    <Description("Cannot create a duplicate resource of type Distributed Transaction Coordinator")> _

.

    Public Const MSDTC_E_DUPLICATE_RESOURCE As Integer = CInt(&H80110701UI)

.

      LOAD_LIBRARY_AS_IMAGE_RESOURCE = 0x00000020,

.

    LOAD_LIBRARY_AS_IMAGE_RESOURCE = &H20

.

    ResourceDataNotFound = 0xc0000089,

.

    ResourceTypeNotFound = 0xc000008a,

.

    ResourceNameNotFound = 0xc000008b,

.

    ResourceInUse = 0xc0000708,

.

        /// <summary>641. The server cannot allocate NetBIOS resources needed to support the client. </summary>

.

        ERROR_SERVER_OUT_OF_RESOURCES,

.

        /// <summary>818. The Network Access Protection (NAP) enforcement client could not create system resources for remote access connections. Some network services or resources might not be available. </summary>

.

        ERROR_RASQEC_RESOURCE_CREATION_FAILED,

.

        /// <summary>819. The Network Access Protection Agent (NAP Agent) service has been disabled or is not installed on this computer. Some network services or resources might not be available. </summary>

.

        /// <summary>820. The Network Access Protection (NAP) enforcement client failed to register with the Network Access Protection Agent (NAP Agent) service. Some network services or resources might not be available. </summary>

.

        /// <summary>822. The Network Access Protection (NAP) enforcement client did not respond. Some network services or resources might not be available. </summary>

.

        RegResourceList = 8,

.

        RegFullResourceDescriptor = 9,

.

        RegResourceRequirementsList = 10,

.

private enum ResourceDisplayType : uint

.

Private Enum ResourceDisplayType As UInteger

.
Documentation
[ResourceDisplayType] on MSDN
.

private enum ResourceScope : uint

.

Private Enum ResourceScope As UInteger

.
Documentation
[ResourceScope] on MSDN
.
Summary
The type of resource. This member can be one of the following values defined in the Winnetwk.h header file.
.

private enum ResourceType : uint

.

Private Enum ResourceType As UInteger

.
Documentation
[ResourceType] on MSDN
.
Summary
A set of bit flags describing how the resource can be used.Note that this member can be specified only if the dwScope member is equal to RESOURCE_GLOBALNET. This member can be one of the following values defined in the Winnetwk.h header file.
.

private enum ResourceUsage : uint

.

Private Enum ResourceUsage As UInteger

.
Documentation
[ResourceUsage] on MSDN
.

The .NET Framework equivalent is System.Security.AccessControl.ResourceType (http://msdn2.microsoft.com/library/System.Security.AccessControl.ResourceType).

.

        SHCONTF_SHAREABLE       = 0x0400,   // hint that client is looking sharable resources (remote shares)

.

    SHCONTF_SHAREABLE = &H400      ' hint that client is looking sharable resources (remote shares)

.

        SHAREABLE = &H400    '  . The calling application is looking for resources that can be shared.

.

        FASTITEMS = &H2000     '  . Windows Vista and later   '  . The calling application is looking for resources that can be enumerated quickly.

.

    /// An application sends the WM_FONTCHANGE message to all top-level windows in the system after changing the pool of font resources.

.

    '''An application sends the WM_FONTCHANGE message to all top-level windows in the system after changing the pool of font resources.

.

    ''' pool of font resources.

.

        /// Clean up any resources being used.

.

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

                // 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);

Cut off search results after 60. Please refine your search.


 
Access PInvoke.net directly from VS: