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]

hid

.
Summary
The routine releases the resources that the HID class driver allocated to hold a top-level collection's preparsed data.

ws2_32

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

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

getuname

.

If you want to obtain (localized) names of Unicode characters, instead calling this function you can also load strings from the same place the function loads them. On Windows 7 it means from file \System32\{Culture}\getuname.dll.mui. ({Culture} is name of culture you want to obtain localized resources for e.g. en-US). An advantage of this approach is that you can choose culture without need to switch current Windows language (Windows Ultimate edition only).

Structures

.

     public string lpResourceName;

.

    Public lpResourceName As String

.

        public string        lpVerb;        // either a string or MAKEINTRESOURCE(idOffset)

.

     /// but it may not have access to network resources.

.

        public IMAGE_DATA_DIRECTORY ResourceTable;

.

        public IMAGE_DATA_DIRECTORY ResourceTable;

.

    public IMAGE_DATA_DIRECTORY ResourceTable;

.
.
Summary
Contains information about a network resource.
.

public class NetResource

.

    public ResourceScope dwScope;

.

    public ResourceType dwType;

.

    public ResourceDisplayType dwDisplayType;

.

    public ResourceUsage dwUsage;

.

Public Class NetResource

.

    Public dwScope As ResourceScope

.

    Public dwType As ResourceType

.

    Public dwDisplayType As ResourceDisplayType

.

    Public dwUsage As ResourceUsage

.

ResourceScope, ResourceType, ResourceDisplayType, ResourceUsage

.
Documentation
[NETRESOURCE] on MSDN
.

    ''' The name of the dialog template resource in the module identified by the hInstance member.

.

        /// Clean up any resources being used.

.

    /// The type of data in the version resource.

.

    /// This member is 1 if the version resource contains text data and 0 if the version resource contains binary data.

.

    '' The type of data in the version resource.

.

    '' This member is 1 if the version resource contains text data and 0 if the version resource contains binary data.

.
    • Specifies the number of extra bytes to allocate following the window instance. The system initializes the bytes to zero. If an application uses WNDCLASSEX to register a dialog box created by using the CLASS directive in the resource file, it must set this member to DLGWINDOWEXTRA.
.
    • Handle to the class icon. This member must be a handle to an icon resource. If this member is NULL, the system provides a default icon.
.
    • Handle to the class cursor. This member must be a handle to a cursor resource. If this member is NULL, an application must explicitly set the cursor shape whenever the mouse moves into the application's window.
.
    • Pointer to a null-terminated character string that specifies the resource name of the class menu, as the name appears in the resource file. If you use an integer to identify the menu, use the MAKEINTRESOURCE macro. If this member is NULL, windows belonging to this class have no default menu.
.
    • Handle to a small icon that is associated with the window class. If this member is NULL, the system searches the icon resource specified by the hIcon member for an icon of the appropriate size to use as the small icon.
.
    • Specifies the number of extra bytes to allocate following the window instance. The system initializes the bytes to zero. If an application uses WNDCLASSEX to register a dialog box created by using the CLASS directive in the resource file, it must set this member to DLGWINDOWEXTRA.
.
    • Handle to the class icon. This member must be a handle to an icon resource. If this member is NULL, the system provides a default icon.
.
    • Handle to the class cursor. This member must be a handle to a cursor resource. If this member is NULL, an application must explicitly set the cursor shape whenever the mouse moves into the application's window.
.
    • Pointer to a null-terminated character string that specifies the resource name of the class menu, as the name appears in the resource file. If you use an integer to identify the menu, use the MAKEINTRESOURCE macro. If this member is NULL, windows belonging to this class have no default menu.
.
    • Handle to a small icon that is associated with the window class. If this member is NULL, the system searches the icon resource specified by the hIcon member for an icon of the appropriate size to use as the small icon.

winscard

.
Summary
The SCardConnect function establishes a connection (using a specific resource manager context) between the calling application and a smart card contained by a specific reader. If no card exists in the specified reader, an error is returned.
.
Summary
The SCardEstablishContext function establishes the resource manager context (the scope) within which database operations are performed.
.

    // string cResourceToFree);

.
Summary
The SCardFreeMemory function releases memory that has been returned from the resource manager using the SCARD_AUTOALLOCATE length designator.
.

    /// <param name="hContext">A handle that identifies the resource manager context. The resource manager context is set by a previous call to the SCardEstablishContext function.</param>

.
Summary
The SCardReleaseContext function closes an established resource manager context, freeing any resources allocated under that context, including SCARDHANDLE objects and memory allocated using the SCARD_AUTOALLOCATE length designator.

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.

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

gdiplus

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

coredll

.

    ''' Releases all resources held by the current WaitEvent.

.

So the device ID is a very useful thing for software that wants to target just your device, e.g. copy protection, or to provide immutable identity to web service calls. Equally so it’s a resource that should be protected to mitigate the risk of identity theft.

.
Summary
This function loads the specified icon resource from the executable (.exe) file associated with an application instance.
.

            // Obtains the app icon (the resource number is fixed for all apps) for the current

.

        SND_RESOURCE = &H40004          ' name is resource name or atom

.

        SND_RESOURCE = 0x40004,        // name is resource name or atom

.

            SND_RESOURCE = 0x40004, // name is resource name or atom

.

            SND_RESOURCE = &H40004          ' name is resource name or atom

.

The .NET Compact Framework does not contain a HandleRef type, so it may be necessary to call [GC.KeepAlive] after calling this function if the calling class wraps the hKey parameter as an unmanaged resource.

.

The .NET Compact Framework does not contain a HandleRef type, so it may be necessary to call [GC.KeepAlive] after calling this function if the calling class wraps the hKey parameter as an unmanaged resource.

.

The .NET Compact Framework does not contain a HandleRef type, so it may be necessary to call [GC.KeepAlive] after calling this function if the calling class wraps the hKey parameter as an unmanaged resource.

.

The .NET Compact Framework does not contain a HandleRef type, so it may be necessary to call [GC.KeepAlive] after calling this function if the calling class wraps the hKey parameter as an unmanaged resource.

.

The .NET Compact Framework does not contain a HandleRef type, so it may be necessary to call [GC.KeepAlive] after calling this function if the calling class wraps the hKey parameter as an unmanaged resource.

.

The .NET Compact Framework does not contain a HandleRef type, so it may be necessary to call [GC.KeepAlive] after calling this function if the calling class wraps the hKey parameter as an unmanaged resource.

wininet

.

        throw new InvalidOperationException(Resources.FTPClient_NoFTPSiteSpecified);

.

        throw new InvalidOperationException(Resources.FTPClient_HDSourceFileDoesNotExist);

.

To close the handle returned from InternetConnect, the application should call InternetCloseHandle. This function disconnects the client from the server and frees all resources associated with the connection.

uxtheme

.

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

.

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

Enums

.

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

.

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

51: 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

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


 
Access PInvoke.net directly from VS: