Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- namespace Bluetooth
- {
- void CreateFile(/*params*/);
- void etc...
- }
- if (::CreateFile(...))
- {
- }
- if (Bluetooth::CreateFile(...))
- {
- }
- #define CreateFile MyCreateFile
- HRESULT MyCreateFile(whatever the params are);
- #undef CreateFile
- HRESULT MyCreateFile(NobodyCanRememberParamListsLikeThat params)
- {
- if (InputIsNormalFile())
- CreateFile(params);
- else
- // do your thing
- }
Add Comment
Please, Sign In to add comment