Setting Up Registry With User Application - Casio PA-2400W Software Manual

C library manual
Hide thumbs Also See for PA-2400W:
Table of Contents

Advertisement

7.9.2 Setting Up Registry with User Application

Modify the registry as required from your application while referencing the following sample program.
/***********************************************/
/* Registry Registration Program
/***********************************************/
#include <windows.h>
#include <string.h>
#include <commctrl.h>
int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance,
{
HKEY hKey1;
LONG lReg1;
DWORD Disp1;
int
const wchar_t SubKey1[]
const
const
err=TRUE;
// Open the registry key
lReg1=RegCreateKeyEx( HKEY_CURRENT_USER, SubKey1, 0, NULL, 0, 0, 0,
if( lReg1 == ERROR_SUCCESS) {
// Close the registry key.
LPWSTR lpCmdLine, int nCmdShow )
err;
wchar_t Name[]
DWORD Value
// Set the value 
lReg1=RegSetValueEx( hKey1, Name, 0, REG_DWORD, ( const BYTE
err=FALSE;
lReg1=RegCloseKey( hKey1);
if( lReg1 != ERROR_SUCCESS)
*/
= TEXT( "FLCE"); // Key for FLCE
= TEXT( "RECVWAIT");
// Name for the command-to-response interval timeout
= 1800L;
*)&Value, sizeof( Value)); if( lReg1 != ERROR_SUCCESS)
52
// Open Handle
// Result code
// Create or Open disposition
// Time-out value to be set (seconds)
&hKey1, &Disp1);

Advertisement

Table of Contents
loading

Table of Contents