regSetDWORD function
void
regSetDWORD(})
Sets a Windows registry key to a string value of type REG_SZ.
A WindowsException is thrown the call falls.
@Throwing(WindowsException)
Implementation
void regSetDWORD(
HKEY hkey,
String subKey,
String valueName,
int value, {
REG_SAM_FLAGS accessRights = KEY_SET_VALUE,
}) {
final pValue = calloc<Uint32>()..value = value;
try {
_regSetValue(
hkey,
subKey,
valueName,
pValue.cast(),
sizeOf<Uint32>(),
REG_DWORD,
accessRights: accessRights,
);
} finally {
calloc.free(pValue);
}
}