コード例 #1
0
int WINAPI __export DlgTableStructure (HWND hwndOwner, LPTABLEPARAMS lptable)
/*
	Function:
		Shows the Table Structure dialog

	Paramters:
		hwndOwner	- Handle of the parent window for the dialog.
		lptable 	   - Points to structure containing information used to 
						- initialise the dialog. The dialog uses the same
						- structure to return the result of the dialog.

	Returns:
		TRUE if successful.

	Note:
		If invalid parameters are passed in they are reset to a default
		so the dialog can be safely displayed.
*/
{
   int iRetVal;
   FARPROC lpfnDlgProc;

	if (!IsWindow(hwndOwner) || !lptable)
	{
		ASSERT(NULL);
		return -1;
	}

	if (!(*lptable->DBName))
	{
		ASSERT(NULL);
		return -1;
	}

   lpfnDlgProc = MakeProcInstance((FARPROC)DlgTableStructureDlgProc, hInst);

	iRetVal = VdbaDialogBoxParam (hResource, MAKEINTRESOURCE(IDD_TABLESTRUCT), hwndOwner, (DLGPROC)lpfnDlgProc, (LPARAM)lptable);

   FreeProcInstance (lpfnDlgProc);
	return iRetVal;
}
コード例 #2
0
int WINAPI __export DlgAddUser2Group (HWND hwndOwner, LPGROUPUSERPARAMS lpgroupuserparams)

/*
// Function:
// Shows the Add user to group dialog.
//
// Paramters:
//     1) hwndOwner        :   Handle of the parent window for the dialog.
//     2) lpgroupuserparams:   Points to structure containing information used to
//                             initialise the dialog. The dialog uses the same
//                             structure to return the result of the dialog.
//
// Returns:
// TRUE if successful.
*/
{
    FARPROC lpProc;
    int     retVal;

    if (!IsWindow (hwndOwner) || !lpgroupuserparams)
    {
        ASSERT(NULL);
        return FALSE;
    }

    lpProc = MakeProcInstance ((FARPROC) DlgAddUser2GroupDlgProc, hInst);
    retVal = VdbaDialogBoxParam
             (hResource,
              MAKEINTRESOURCE (IDD_USR2GRP),
              hwndOwner,
              (DLGPROC) lpProc,
              (LPARAM)  lpgroupuserparams
             );

    FreeProcInstance (lpProc);
    return (retVal);
}
コード例 #3
0
int WINAPI __export DlgGnrefProcedure  (HWND hwndOwner, LPGRANTPARAMS lpgrant)
/*
// Function:
// Shows the Grant (Table or View) dialog.
//
// Paramters:
//     1) hwndOwner:   Handle of the parent window for the dialog.
//     1) lpgrant  :   Points to structure containing information used to 
//                     initialise the dialog. 
//
// Returns:
//     (TRUE, FALSE)
//
*/
{
   FARPROC lpProc;
   int     retVal;
   
   if (!IsWindow (hwndOwner) || !lpgrant)
   {
       ASSERT (NULL);
       return FALSE;
   }

   lpProc = MakeProcInstance ((FARPROC) DlgGnrefProcedureDlgProc, hInst);
   retVal = VdbaDialogBoxParam
       (hResource,
        MAKEINTRESOURCE (IDD_GNREF_PROCEDURE),
        hwndOwner,
        (DLGPROC) lpProc,
        (LPARAM)  lpgrant
       );

   FreeProcInstance (lpProc);
   return (retVal);
}
コード例 #4
0
BOOL WINAPI __export DlgLocate (HWND hwndOwner, LPLOCATEPARAMS lplocate)
/*
// Function:
// Shows the specifyin database privileges dialog.
//
// Paramters:
//     1) hwndOwner:   Handle of the parent window for the dialog.
//     1) lplocate  :   Points to structure containing information used to 
//                     initialise the dialog. 
//
// Returns:
//     (TRUE, FALSE)
//
*/
{
   FARPROC lpProc;
   int     retVal;
   
   if (!IsWindow (hwndOwner) || !lplocate)
   {
       ASSERT(NULL);
       return FALSE;
   }

   lpProc = MakeProcInstance ((FARPROC) DlgLocateDlgProc, hInst);
   retVal = VdbaDialogBoxParam
       (hResource,
        MAKEINTRESOURCE (IDD_LOCATE),
        hwndOwner,
        (DLGPROC) lpProc,
        (LPARAM)  lplocate
       );

   FreeProcInstance (lpProc);
   return (retVal);
}
コード例 #5
0
int WINAPI __export DlgCreateSecurityAlarm2
                    (HWND hwndOwner, LPSECURITYALARMPARAMS lpsecurityalarmparams)
/*
// Function:
// Shows the Create Security alarm dialog.
//
// Paramters:
//     1) hwndOwner:               Handle of the parent window for the dialog.
//     2) lpsecurityalarmparams:   Points to structure containing information used to 
//                                 initialise the dialog. The dialog uses the same
//                                 structure to return the result of the dialog.
//     
// Returns:
//    TRUE if successful.
*/
{
   FARPROC lpProc;
   int     retVal;

   if (!IsWindow (hwndOwner) || !lpsecurityalarmparams)
   {
       ASSERT(NULL);
       return FALSE;
   }
   
   lpProc = MakeProcInstance ((FARPROC) DlgCreateSecurityAlarm2DlgProc, hInst);
   retVal = VdbaDialogBoxParam
       (hResource,
       MAKEINTRESOURCE (IDD_SECURITY_ALARM2),
       hwndOwner,
       (WNDPROC) lpProc,
       (LPARAM)  lpsecurityalarmparams );

   FreeProcInstance (lpProc);
   return (retVal);
}
コード例 #6
0
int WINAPI __export DlgAuditDB (HWND hwndOwner, LPAUDITDBPARAMS lpauditdb)
/*
// Function:
// Shows the Refresh dialog.
//
// Paramters:
//     1) hwndOwner:   Handle of the parent window for the dialog.
//     1) lpauditdb:   Points to structure containing information used to 
//                     initialise the dialog. 
//
// Returns:
//     TRUE if successful.
//
*/
{
   FARPROC lpProc;
   int     retVal;
   
   if (!IsWindow (hwndOwner) || !lpauditdb)
   {
       ASSERT(NULL);
       return FALSE;
   }

   lpProc = MakeProcInstance ((FARPROC) DlgAuditDBDlgProc, hInst);
   retVal = VdbaDialogBoxParam
       (hResource,
        MAKEINTRESOURCE (IDD_AUDITDB),
        hwndOwner,
        (DLGPROC) lpProc,
        (LPARAM)  lpauditdb
       );

   FreeProcInstance (lpProc);
   return (retVal);
}
コード例 #7
0
BOOL WINAPI __export DlgRelocate (HWND hwndOwner, LPSTORAGEPARAMS lpstructure)
/* ____________________________________________________________________________
// Function:
// Shows the Create/Alter profile dialog.
//
// Paramters:
//     1) hwndOwner:    Handle of the parent window for the dialog.
//     2) lpstructure:  Points to structure containing information used to 
//                      initialise the dialog. The dialog uses the same
//                      structure to return the result of the dialog.
//
// Returns: TRUE if Successful.
// ____________________________________________________________________________
*/
{
   FARPROC lpProc;
   int     retVal;
   
   if (!IsWindow (hwndOwner) || !lpstructure)
   {
       ASSERT(NULL);
       return FALSE;
   }

   lpProc = MakeProcInstance ((FARPROC) DlgRelocateDlgProc, hInst);
   retVal = VdbaDialogBoxParam
       (hResource,
        MAKEINTRESOURCE (IDD_RELOCATE),
        hwndOwner,
        (DLGPROC) lpProc,
        (LPARAM)  lpstructure
       );

   FreeProcInstance (lpProc);
   return (retVal);
}
コード例 #8
0
BOOL WINAPI __export DlgReconciler (HWND hwndOwner, LPRECONCILER lpReconciler)
/*
   Function:
      Shows the system modification dialog.

   Paramters:
      hwndOwner   - Handle of the parent window for the dialog.
      lpReconciler    - Points to structure containing information used to 
                  - initialise the dialog. The dialog uses the same
                  - structure to return the result of the dialog.

   Returns:
      TRUE if successful.
*/
{
   FARPROC lpProc;
   int     RetVal;

   if (!IsWindow(hwndOwner) || !lpReconciler)
   {
     ASSERT(NULL);
     return FALSE;
   }

   lpProc = MakeProcInstance ((FARPROC) DlgReconcilerDlgProc, hInst);

   RetVal = VdbaDialogBoxParam (hResource,
                            MAKEINTRESOURCE(IDD_RECONCILER),
                            hwndOwner,
                            (DLGPROC) lpProc,
                            (LPARAM)lpReconciler);

   FreeProcInstance (lpProc);

   return (RetVal);
}