I am new to C++ and I need to create a function with this structure:

```
BOOL myfunc(LPDWORD myLpdword){ // myLpdword must be an out parameter

    DWORD myDword = 1;
    myLpdword = &myDword;
    return true;

}

int main(){

    DWORD outDword = 20;
    myfunc(&outDword);
    cout << outDword << end1;
    return 0;
}

```

I expected that the value of outDword would be 1 (changed by myfunc), but the value is not changed by myfunc.  

Please, can you give me a hint to solve this problem?