Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- !macro _SyncVariable _variable
- !define Lprefix L${__LINE__}
- push $R0
- goto _SyncVariableInner${Lprefix}
- _SyncVariableOuter${Lprefix}:
- StrCpy $R0 ${_variable}
- return
- _SyncVariableInner${Lprefix}:
- !insertmacro UAC_AsUser_Call Label _SyncVariableOuter${Lprefix} ${UAC_SYNCREGISTERS}
- StrCpy ${_variable} $R0
- !undef Lprefix
- pop $R0
- !macroend
- !define SyncVariable `!insertmacro _SyncVariable`
- !macro _SyncSection _section
- !define Lprefix L${__LINE__}
- push $R0
- goto _SyncSectionInner${Lprefix}
- _SyncSectionOuter${Lprefix}:
- SectionGetFlags ${_section} $R0
- return
- _SyncSectionInner${Lprefix}:
- !insertmacro UAC_AsUser_Call Label _SyncSectionOuter${Lprefix} ${UAC_SYNCREGISTERS}
- SectionSetFlags ${_section} $R0
- !undef Lprefix
- pop $R0
- !macroend
- !define SyncSection `!insertmacro _SyncSection`
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement