VirtualBox

Changeset 107985 in vbox for trunk/include/VBox/GuestHost


Ignore:
Timestamp:
Jan 30, 2025 10:01:07 AM (3 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
167248
Message:

Windows driver installation: Implemented APIs for controlling (driver SCM) services. bugref:10762

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/GuestHost/VBoxWinDrvInst.h

    r107973 r107985  
    107107#define VBOX_WIN_DRIVERINSTALL_F_VALID_MASK 0xf
    108108
     109/**
     110 * Enumeration for Windows driver service functions.
     111 */
     112typedef enum VBOXWINDRVSVCFN
     113{
     114    /** Invalid function. */
     115    VBOXWINDRVSVCFN_INVALID = 0,
     116    /** Starts the service. */
     117    VBOXWINDRVSVCFN_START,
     118    /** Stops the service. */
     119    VBOXWINDRVSVCFN_STOP,
     120    /** Restart the service. */
     121    VBOXWINDRVSVCFN_RESTART,
     122    /** End marker, do not use. */
     123    VBOXWINDRVSVCFN_END
     124} VBOXWINDRVSVCFN;
     125
     126/** No service function flags specified. */
     127#define VBOXWINDRVSVCFN_F_NONE              0
     128/** Wait for the service function to get executed. */
     129#define VBOXWINDRVSVCFN_F_WAIT              RT_BIT(0)
     130/** Validation mask. */
     131#define VBOXWINDRVSVCFN_F_VALID_MASK        0x1
     132
    109133int VBoxWinDrvInstCreate(PVBOXWINDRVINST hDrvInst);
    110134int VBoxWinDrvInstCreateEx(PVBOXWINDRVINST phDrvInst, unsigned uVerbosity, PFNVBOXWINDRIVERLOGMSG pfnLog, void *pvUser);
     
    120144int VBoxWinDrvInstUninstall(VBOXWINDRVINST hDrvInst, const char *pszInfFile, const char *pszModel, const char *pszPnPId, uint32_t fFlags);
    121145int VBoxWinDrvInstUninstallExecuteInf(VBOXWINDRVINST hDrvInst, const char *pszInfFile, const char *pszSection, uint32_t fFlags);
    122 
     146int VBoxWinDrvInstControlServiceEx(VBOXWINDRVINST hDrvInst, const char *pszService, VBOXWINDRVSVCFN enmFn, uint32_t fFlags);
     147int VBooxWinDrvInstControlServiceEx(VBOXWINDRVINST hDrvInst, const char *pszService, VBOXWINDRVSVCFN enmFn, uint32_t fFlags, RTMSINTERVAL msTimeout);
    123148RT_C_DECLS_END
    124149
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette