Thanks for the reply Athar. I tried to declare detail_error outside the method and received the following error: error C2166: l-value specifies const object
which is essentially the same error.
Conversely, Parameter 1 uses the windows type def HANDLE which is a void *HANDLE. When placed inside the method I get the same error as using DWORD; however, when placed outside the method, it doesn't declare it as a constant.