Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix duplicate declaration warnings if puppet-windows_env is installed, too. #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/puppet/provider/windows_path/path_provider.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
API_METHOD_PARAMETER_TYPES = 'LLLPLLP'
API_METHOD_RETURN_TYPE = 'L'
# Receiver of the message, 0xffff means broadcast (all top level windows in the system)
HWND_BROADCAST = 0xffff
RECV_BROADCAST = 0xffff
# Message to send
WM_SETTINGCHANGE = 0x001A
MSG_SETTINGCHANGE = 0x001A
# This means: The function returns without waiting for the time-out
# period to elapse if the receiving thread appears to not respond or "hangs."
SMTO_ABORTIFHUNG = 2
Expand Down Expand Up @@ -144,6 +144,6 @@ def do_broadcast
# For details on Windows API method SendMessageTimeout see
# http://msdn.microsoft.com/en-us/library/windows/desktop/ms644952%28v=vs.85%29.aspx

sendMessageMethod.call(HWND_BROADCAST, WM_SETTINGCHANGE, 0, 'Environment', SMTO_ABORTIFHUNG, BROADCAST_TIMEOUT, 0)
sendMessageMethod.call(RECV_BROADCAST, MSG_SETTINGCHANGE, 0, 'Environment', SMTO_ABORTIFHUNG, BROADCAST_TIMEOUT, 0)
end
end