Casio PA-2400W Software Manual page 30

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

Advertisement

if (hWnd == 0)
return (FALSE);
if (lsWindow(hWnd) != TRUE)
return (FALSE);
return(TRUE);
}
// ****************************************************************************************//
// WinMain
// ****************************************************************************************//
int WINAPI WinMain(
{
MSG msg;
HWND hWnd;
long lResult;
HKEY hKeyResult;
TCHAR TsrName[] = TEXT("SipTsr.exe");
if ( hWnd = FindWindow( ClassName, NULL)) {
SIP_ExecutePanel( TEXT(""));
return FLASE;
}
if (hPrevInstance == 0) {
if (InitApplication(hInstance) == FALSE)
return(FALSE);
}
if (InitInstance(hInstance, nCmdShow) == FALSE)
return(FALSE);
lResult = RegOpenKeyEx( HKEY_LOCAL_MACHINE,
TEXT( "Software\\Apps\\SIPManager"),
0, KEY_WRITE, &hKeyResult);
if ( lResult != ERROR_SUCCESS)
return(FALSE);
lResult = RegSetValueEx( hKeyResult,
TEXT( "SIPExeName"), 0, REG_SZ,
( unsigned char *)TsrName , sizeof( TsrName));
if ( lResult !=ERROR_SUCCESS)
return(FALSE);
RegCloseKey( hKeyResult);
While (GetMessage(&msg, NULL, 0, 0) == TRUE) {
DispatchMessage (&msg);
}
return TRUE;
}
// Check whether values returned by CreateWindow() are valid.
HINTANCE hInstance.
HINSTANCE
LPTSTR
int
hPrevInstance,
lpCmdLine,
ncmdShow)
30
// Window handle hWnd is valid.
// Open Registry
// Write Registry
// Close Registry
//

Advertisement

Table of Contents
loading

Table of Contents