WindowsオーディオミキサーAPIを使う アプリケーションから直接 Windows の音量などのサウンドデバイスに関する操作をするにはミキサーAPIを使います。ここではミキサー API について、完全ではありませんが解説していきます。 関数や構造体については SDK の記... 続きを読む
To make this code work you'll need to clear the OVERLAPPED struct before it's used by ReadFile/WriteFile. For that correct the ConnectToNewClient() method like this: BOOL ConnectToNewClient(HANDLE hPipe, LPOVERLAPPED lpo) { BOOL fConnected, f... 続きを読む
OpenSCManager CreateService OpenService DeleteService CloseServiceHandle 続きを読む
システム全体に関するパラメータのいずれかを取得または設定します。この関数を使ってパラメータを設定する際に、ユーザープロファイルを更新することもできます。 BOOL SystemParametersInfo( UINT uiAction, // 取得または設定するべきシステムパラメータ UIN... 続きを読む
The CryptStringToBinary function converts a formatted string into an array of bytes. Syntax BOOL WINAPI CryptStringToBinary( __in LPCTSTR pszString, __in DWORD cchString, __in DWORD dwFlags, __in BYTE *pbBinary, __inout DWORD *pcbBinary, __ou... 続きを読む
When installing Visual Studio 2008, you might run into an error dialog that reads, Error 1330.A file that is required cannot be installed because the cabinet file D:\cab1.cab has an invalid digital signature. This may indicate that the cabine... 続きを読む
Authenticode signatures are PKCS7-based, therefore you can use CryptQueryObject and other Crypto API functions to retrieve the PKCS7 signature and to decode the PKCS7 attributes. The following sample c code demonstrates how to use these APIs.... 続きを読む
If your device installation application will be invoked by AutoRun when the installation medium is inserted, there is another thing to consider. Your application should determine whether other installation activities are in progress before pe... 続きを読む
ウインドウを表示するアプリケーションが正しく動作するためには、 メッセージループの存在が必要不可欠です。 メッセージループは、GetMessageがメッセージキューからメッセージを取得し、 DispatchMessageでウインドウプロシージャにメッセージを送るのが目的... 続きを読む
パラメータ lp [入力]メモリブロックの最初のバイトへのポインタを指定します。 ucb [入力]メモリブロックのサイズをバイト単位で指定します。このパラメータが 0 の場合、0 が返ります。 戻り値 呼び出し側プロセスが、指定したメモリブロックのすべてのバ... 続きを読む
Remarks Call this function when you want to collect counter data for the counters in the query. PDH stores the raw counter values for the current and previous collection. If you want to retrieve the current raw counter value, call the PdhGetR... 続きを読む
Contains information about the current state of both physical and virtual memory, including extended memory. The GlobalMemoryStatusEx function stores information in this structure. Syntax typedef struct _MEMORYSTATUSEX { DWORD dwLength; DWORD... 続きを読む
2007/05/04 プロセス終了時にメモリを解放すべからず http://blogs.msdn.com/oldnewthing/archive/2007/05/03/2383346.aspx よく、OSが解放してくれるから、プロセス終了時にはリソース解放などをしなくてもいいという意見に対して、「いや、できる限りすべきだ... 続きを読む
Returns the specified object's counter and instance names that exist on the specified computer or in the specified log file. To use handles to data sources, use the PdhEnumObjectItemsH function. Syntax PDH_STATUS PdhEnumObjectItems( __in LPCT... 続きを読む
解説 Windowsに付属するperfmon.exeで調べることのできるパフォーマンスカウンター値(CPU使用量、各種メモリ使用量、他)の現在のプロセスに関する値を取得する関数は、今のところ標準では用意されていない(ような)ので、自作します。 実装内容としては、 Pd... 続きを読む
Deletes a subkey and all its descendants. The function will remove the key and all of the key's values from the registry.Syntax Parametershkey [in] A handle to the currently open key, or any of the following predefined values.HKEY_CLASSES_ROO... 続きを読む
Registry redirection To support the coexistence of 32-bit and 64-bit COM registration and program states, the WOW64 subsystem presents 32-bit programs by using another view of the registry. The WOW64 subsystem uses registry redirection to int... 続きを読む
Under WOW64, certain registry keys are redirected. When a 32-bit or 64-bit application makes a registry call for a redirected key, the registry redirector intercepts the call and maps it to the key's corresponding physical registry location. ... 続きを読む
Microsoft has released 64-bit versions of the Windows operating system, such as 64-bit Windows Vista, Windows XP Professional x64 Edition, and Windows Server 2003 R2 x64 Enterprise Edition. 64-bit Windows was designed with compatibility in mi... 続きを読む
[The information in this topic applies to Windows Server 2008, Windows Vista, Windows Server 2003, and Windows XP/2000. Starting with Windows 7 and Windows Server 2008 R2, WOW64 no longer uses registry reflection and formerly reflected keys a... 続きを読む
エントリや認証情報、プロパティの取得などを見てきたとこところで、 いよいよ実際にダイヤルする関数について見ていきたいと思います。 次に示すRasDialは、指定された情報を基にダイヤルを開始ます。 DWORD RasDial( LPRASDIALEXTENSIONS lpRasDialExtensions... 続きを読む
While many phone book settings are modifiable via the RASENTRY structure, there are many settings that are accessible through the Dial-Up Networking interface that don't have counterparts in the RASENTRY structure. This is because the RAS cli... 続きを読む
Windows Server 2003, Windows XP, and later operating systems provide support for Point-to-Point Protocol over Ethernet (PPPoE). For a PPPoE connection, set the following values in the RASENTRY structure. MemberValue 続きを読む
DWORD WINAPI PowerGetActiveScheme( __in_opt HKEY UserRootPowerKey, __out GUID **ActivePolicyGuid ); Parameters UserRootPowerKey [in, optional] This parameter is reserved for future use and must be set to NULL. ActivePolicyGuid [out] A pointer... 続きを読む
This topic explains how to register a program in the Microsoft Windows registry as one of the following client types: browser, e-mail, media playback, instant messaging, or virtual machine for Java. Note This information applies to the follo... 続きを読む
The WinHttpSendRequest function sends the specified request to the HTTP server. Syntax BOOL WinHttpSendRequest( __in HINTERNET hRequest, __in_opt LPCWSTR pwszHeaders, __in DWORD dwHeadersLength, __in_opt LPVOID lpOptional, __in DWORD dwOption... 続きを読む
The Microsoft Windows HTTP Services (WinHTTP) exposes a set of C/C++ functions that enable your application to access HTTP resources on the Web. This topic provides an overview of how these functions are used to interact with an HTTP server. ... 続きを読む
BOOL WINAPI HeapSetInformation( __in_opt HANDLE HeapHandle, __in HEAP_INFORMATION_CLASS HeapInformationClass, __in PVOID HeapInformation, __in SIZE_T HeapInformationLength ); Parameters HeapHandle [in, optional] A handle to the heap where inf... 続きを読む
新しい 1 個のプロセスと、そのプライマリスレッドを作成します。新しいプロセスは、指定された実行可能ファイルを実行します。 異なったセキュリティコンテキストで動作するプロセスを作成するには、CreateProcessAsUser または CreateProcessWithLogonW 関数... 続きを読む
int WSADuplicateSocket( __in SOCKET s, __in DWORD dwProcessId, __out LPWSAPROTOCOL_INFO lpProtocolInfo ); Parameters s [in] Descriptor identifying the local socket. dwProcessId [in] Process identifier of the target process in which the duplic... 続きを読む
Windows API(うぃんどうず えいぴいあい)とは、Microsoft Windows (Windows) のAPIのことである。特に32ビットプロセッサで動作するWindows 95以降やWindows NTで利用できるものはWin32 APIと呼ばれる。また、それらのWindowsにおけるWin32 APIの実装をWin32... 続きを読む
WinHTTPのサンプルコード 5/29の記事の続きです。 環境 Visual C++.NET 2003 OS WindowsNT+IE5.01 又は Windows2000以降 WinHTTPは、レスポンスのヘッダに関する細かい処理を行うことができます(HTTPライブラリとしては当たり前ですが)。 そこで細かい処理を行... 続きを読む
分散プログラミングの進歩の結果、最新の Windows® ベースのアプリケーションでは、HTTP 要求を発行する機能が必要になっています。HTTP は比較的単純ですが、最新の HTTP 処理は、簡単とは到底言えません。非同期処理では、大規模な要求や応答、認証、自動プロ... 続きを読む
Download Test.zip - 203.09 KB Introduction One way of changing DNS in C++, using Iphlpapi.h, register, and two undocumented windows API. It's a simple program, no UI for you, sorry... 1. Use GetAdaptersInfo to get adapters information. 2. The... 続きを読む
この資料は、マイクロソフトでサポートされていない製品について記述したものです。そのため、この資料は現状ベースで提供されており、今後更新されることはありません。 続きを読む
The HTML Help API Reference provides information on the HTML Help application programming interface (API), which enables a program to display a help window. It includes comprehensive information about how to use the HTML Help API commands, da... 続きを読む
The MsiReinstallFeature function reinstalls features. Syntax UINT MsiReinstallFeature( __in LPCTSTR szProduct, __in LPCTSTR szFeature, __in DWORD dwReinstallMode ); Parameters szProduct [in] Specifies the product code for the product that con... 続きを読む