C language function:AssocQueryKey sample codes

Search sample code in the internet.It is the result.


TITLE : SHRegGetPath function (Windows)
HRESULT AssocQueryKey(.......
http://msdn.microsoft.com/en-us/library/windows/desktop/bb773468(v=vs.85).aspx


TITLE : c# - How do I correctly retrieve the open command associated with an extension on Windows? - Stack Overflow
Your best bet is probably to use the Assoc* group of functions, such as AssocQueryKey() and AssocQueryString() via PInvoke. I don't know, however, whether one of the many classes that come with the .NET framework in its many incarnations wraps this for you already. But the Shell API gives you an option to retrieve this information........
http://stackoverflow.com/questions/13461236/how-do-i-correctly-retrieve-the-open-command-associated-with-an-extension-on-win
TITLE : registry - Should I be closing HKEY? - Stack Overflow
if(AssocQueryKey(..., &lKey) == S_OK).......
http://stackoverflow.com/questions/6614555/should-i-be-closing-hkey@rq=1
TITLE : A programming and hacking the Windows registry using C and Win32 library functions with reference, notes and C program examples and codes samples
AssocQueryKey().......
http://www.tenouk.com/ModuleO1.html
search Google

https://www.google.com/#q=AssocQueryKey